/* ============================================
   Panaderia La Reina — Styles
   Palette: Teal (#1B4D5A / #2A7A8A) + Slate Grey (#2D3748 / #64748B)
   Fonts: Cormorant Garamond (serif) + Lato (sans)
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2D3748;
    background-color: #FDFBF9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1B4D5A;
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
}
.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid #2A7A8A;
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1B4D5A;
}

.section-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2A7A8A;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: #1B4D5A;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1B4D5A;
    color: #fff;
}
.btn-primary:hover {
    background-color: #2A7A8A;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27, 77, 90, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1B4D5A;
    border: 1.5px solid #1B4D5A;
}
.btn-secondary:hover {
    background-color: #1B4D5A;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 77, 90, 0.1);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(27, 77, 90, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #1B4D5A;
}

.nav-logo:hover {
    color: #2A7A8A;
}

.logo-icon {
    color: #2A7A8A;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #64748B;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4A5568;
    padding: 0.5rem 0.875rem;
    border-radius: 4px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: #1B4D5A;
    background: rgba(27, 77, 90, 0.06);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #2A7A8A !important;
    font-weight: 700 !important;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(27, 77, 90, 0.15);
    padding-left: 1rem !important;
}
.nav-phone:hover {
    color: #1B4D5A !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1B4D5A;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #1B4D5A;
    position: relative;
    transition: background 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #1B4D5A;
    left: 0;
    transition: transform 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #FDFBF9;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-content {
    padding-right: 1rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2A7A8A;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #1B4D5A;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: #2A7A8A;
    font-weight: 500;
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4A5568;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #64748B;
}

.hero-detail svg {
    color: #2A7A8A;
    flex-shrink: 0;
}

/* Hero image */
.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(27, 77, 90, 0.15);
}

.hero-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid #2A7A8A;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 6rem 0;
    background: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(27, 77, 90, 0.1);
}

.about-content .section-title {
    margin-bottom: 1.25rem;
}

.about-content p {
    color: #4A5568;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(27, 77, 90, 0.1);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1B4D5A;
    letter-spacing: 0.02em;
}

.about-feature svg {
    color: #2A7A8A;
}

/* ============================================
   Specialties
   ============================================ */
.specialties {
    padding: 6rem 0;
    background: #FDFBF9;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.specialty-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(27, 77, 90, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27, 77, 90, 0.1);
}

.specialty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(42, 122, 138, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4D5A;
    margin-bottom: 1.25rem;
}

.specialty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1B4D5A;
    margin-bottom: 0.75rem;
}

.specialty-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #64748B;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    padding: 6rem 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #E2E8F0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:nth-child(1) { aspect-ratio: 1/1; }
.gallery-item:nth-child(2) { aspect-ratio: 4/3; }
.gallery-item:nth-child(3) { aspect-ratio: 4/3; }
.gallery-item:nth-child(4) { aspect-ratio: 1/1; }
.gallery-item:nth-child(5) { aspect-ratio: 4/3; }
.gallery-item:nth-child(6) { aspect-ratio: 1/1; }

.gallery-item:hover img {
    transform: scale(1.04);
}

/* ============================================
   Visit
   ============================================ */
.visit {
    padding: 6rem 0;
    background: #1B4D5A;
    color: #fff;
}

.visit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit .section-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.visit .section-title {
    color: #fff;
    margin-bottom: 2.5rem;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: flex;
    gap: 1rem;
}

.visit-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.visit-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.visit-value {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

.visit-value a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}
.visit-value a:hover {
    color: #fff;
}

.visit-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.visit .btn-primary {
    background: #fff;
    color: #1B4D5A;
}
.visit .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #153D48;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.footer-tagline {
    font-size: 0.875rem;
    max-width: 360px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    text-align: center;
}

/* ============================================
   Scroll reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 249, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(27, 77, 90, 0.1);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0.875rem;
    }

    .nav-phone {
        margin-left: 0;
        padding-left: 0.875rem !important;
        border-left: none !important;
        border-top: 1px solid rgba(27, 77, 90, 0.1);
        margin-top: 0.5rem;
        padding-top: 0.75rem !important;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        order: 1;
    }

    .hero-image {
        order: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-details {
        align-items: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        flex-wrap: wrap;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visit-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visit-map {
        min-height: 280px;
    }
    .visit-map iframe {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(6) {
        aspect-ratio: 4/3;
    }
}
