/* ========================================
   FILIPINO BAKERY — Editorial Template
   Deep Navy (#0A1628) + Warm Gold (#C9A84C)
   Playfair Display + Inter
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0A1628;
    --navy-light: #132240;
    --navy-mid: #1a2d4a;
    --gold: #C9A84C;
    --gold-light: #D4B96A;
    --gold-pale: #F5E6B8;
    --cream: #FAF6EE;
    --cream-dark: #F0E8D8;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background 0.4s var(--ease-smooth);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy) !important;
    background: var(--gold);
    padding: 10px 22px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/31320350/pexels-photo-31320350.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.92) 0%, 
        rgba(10, 22, 40, 0.85) 40%,
        rgba(10, 22, 40, 0.70) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(42px, 5.5vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold);
    font-weight: 600;
}

.hero-accent {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-pale);
    margin-top: 8px;
    letter-spacing: 0;
}

.hero-subheadline {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn--large {
    padding: 20px 40px;
    font-size: 14px;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.hero-image-col {
    position: relative;
    height: 600px;
}

.hero-img {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-img--main {
    width: 380px;
    height: 500px;
    top: 0;
    right: 0;
}

.hero-img--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.hero-img--main:hover img {
    transform: scale(1.03);
}

.hero-img--accent {
    width: 240px;
    height: 180px;
    bottom: 20px;
    left: 0;
    border: 4px solid var(--navy);
}

.hero-img--accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.hero-img--accent:hover img {
    transform: scale(1.05);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-trust-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-trust-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.hero-trust-sep {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ========================================
   SECTIONS — Shared
   ======================================== */
.section {
    padding: 120px 0;
}

.section--intro {
    background: var(--cream);
}

.section--specialties {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.specialties-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.section--editorial {
    background: var(--cream-dark);
    padding: 0;
}

.section--gallery {
    background: var(--white);
}

.section--visit {
    background: var(--cream);
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.section-headline--light {
    color: var(--white);
}

.section-subheadline {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 560px;
    font-weight: 300;
}

.section-subheadline--light {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    margin-bottom: 64px;
}

.intro-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-copy p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-mid);
    font-weight: 300;
}

.intro-copy p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--navy);
}

.intro-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.intro-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.08);
}

.intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    aspect-ratio: 5/4;
}

.intro-img:hover img {
    transform: scale(1.03);
}

/* ========================================
   SPECIALTIES SECTION
   ======================================== */
.specialties-header {
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    z-index: 1;
}

.specialties-header .section-eyebrow {
    margin-bottom: 16px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.specialty-card {
    background: var(--navy-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-smooth);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.specialty-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.specialty-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.specialty-card:hover .specialty-card-img img {
    transform: scale(1.05);
}

.specialty-card-body {
    padding: 28px;
}

.specialty-card-body h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.specialty-card-body p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* ========================================
   EDITORIAL SECTION
   ======================================== */
.editorial-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 700px;
}

.editorial-image {
    overflow: hidden;
    border-radius: 0;
    min-height: 700px;
}

.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-content {
    padding: 80px 80px 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--navy);
}

.editorial-content .section-eyebrow {
    margin-bottom: 20px;
}

.editorial-content .section-headline {
    color: var(--white);
    margin-bottom: 28px;
}

.editorial-content p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 480px;
}

.editorial-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.editorial-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editorial-stat-num {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.editorial-stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.gallery-item--tall {
    grid-column: span 3;
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 6;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4) {
    grid-column: span 3;
}

/* ========================================
   VISIT SECTION
   ======================================== */
.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit-info {
    padding: 48px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-info .section-eyebrow {
    margin-bottom: 16px;
}

.visit-info .section-headline {
    color: var(--white);
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-icon {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.visit-detail p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-weight: 300;
}

.visit-detail a {
    color: var(--gold);
    transition: color 0.3s var(--ease-smooth);
}

.visit-detail a:hover {
    color: var(--gold-light);
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.12);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--navy);
    padding: 80px 0 0;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .nav-logo-mark {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    max-width: 280px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links strong,
.footer-contact strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s var(--ease-smooth);
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
}

.footer-contact a {
    color: var(--gold);
    transition: color 0.3s var(--ease-smooth);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s var(--ease-smooth);
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr 0.55fr;
        gap: 40px;
    }
    
    .hero-image-col {
        height: 480px;
    }
    
    .hero-img--main {
        width: 280px;
        height: 380px;
    }
    
    .hero-img--accent {
        width: 180px;
        height: 140px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .editorial-layout {
        grid-template-columns: 1fr;
    }
    
    .editorial-image {
        min-height: 400px;
    }
    
    .editorial-content {
        padding: 60px 40px;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
    }
    
    .visit-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
    }
    
    .hero-inner {
        padding: 100px 24px 60px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image-col {
        display: none;
    }
    
    .hero-trust {
        gap: 24px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .intro-image-row {
        grid-template-columns: 1fr;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .editorial-content {
        padding: 48px 24px;
    }
    
    .editorial-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--tall {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }
    
    .gallery-item--wide {
        grid-column: span 2;
    }
    
    .visit-info {
        padding: 32px 24px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 36px;
    }
    
    .hero-accent {
        font-size: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hero-trust-sep {
        display: none;
    }
    
    .section-headline {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }
    
    .gallery-item--tall {
        aspect-ratio: 4/3;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .specialty-card,
    .gallery-item,
    .intro-img {
        will-change: transform;
    }
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}
