:root {
    --primary-red: #EF2126;
    --secondary-blue: #0073B9;
    --bg-white: #FFFFFF;
    --text-charcoal: #333333;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --space-sm: 24px;
    --space-md: 48px;
    --space-lg: 96px;
    --space-xl: 160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-charcoal);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Typography */
h1, h2, h3, h4, .heritage-year, .v-year, .p-num {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-charcoal);
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

p {
    margin-bottom: 1em;
    color: var(--text-charcoal);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--bg-white);
    padding: 16px 36px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    transition: background-color 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: #c91b1f;
    border-color: #c91b1f;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-charcoal);
    padding: 16px 36px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border: 1px solid rgba(51, 51, 51, 0.2);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-secondary:hover {
    background-color: var(--text-charcoal);
    color: var(--bg-white);
    border-color: var(--text-charcoal);
}

.btn-text {
    display: inline-block;
    color: var(--text-charcoal);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    padding-bottom: 4px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-text:hover {
    color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

/* Nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* Elegant height for navbar */
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease;
}

.nav.scrolled .logo img {
    height: 56px;
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-charcoal);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    transition: color 0.4s ease;
}

.nav-links a:hover {
    color: var(--secondary-blue);
}

.cta-nav {
    text-decoration: none;
    color: var(--text-charcoal);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--text-charcoal);
    padding-bottom: 2px;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.cta-nav:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    padding: 120px 5% var(--space-md);
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-content h1, .hero-content p {
    color: var(--bg-white);
}

.hero-actions {
    margin-top: var(--space-md);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero .btn-secondary {
    color: var(--bg-white);
    border-color: rgba(255,255,255,0.4);
}

.hero .btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--text-charcoal);
}

.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-image.in-view img {
    transform: scale(1);
}

/* Heritage */
.heritage {
    padding: var(--space-xl) 5%;
    position: relative;
    background-color: #FAFAFA;
}

.heritage-year {
    font-size: clamp(8rem, 20vw, 20rem);
    color: rgba(239, 33, 38, 0.15);

    position: absolute;
    top: 50px;
    left: 5%;
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
}

.heritage-grid {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.heritage-content {
    flex: 1;
    padding-top: 140px;
}

.heritage-image {
    flex: 1;
    height: 80vh;
    overflow: hidden;
}

.heritage-image img {
    width: 100%;
    height: 100%;
}

/* Services */
.services {
    padding: var(--space-lg) 2%;
}

.section-header {
    margin-bottom: var(--space-lg);
    padding: 0 3%;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(51, 51, 51, 0.8);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 32px;
}

.service-grid-item {
    display: flex;
    flex-direction: column;
}

.service-grid-item .service-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 24px;
}

.service-grid-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-grid-item:hover .service-img img {
    transform: scale(1.05);
}

.service-grid-item h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 16px;
    font-family: var(--font-heading);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
}

.service-grid-item p {
    font-size: 0.95rem;
    color: rgba(51, 51, 51, 0.8);
    text-align: justify;
    line-height: 1.6;
    margin: 0;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .service-list {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mission */
.mission {
    padding: var(--space-lg) 5%;
    background-color: var(--text-charcoal);
    color: var(--bg-white);
    text-align: center;
}

.mission h2, .mission p {
    color: var(--bg-white);
}

.mission-container {
    max-width: 900px;
    margin: 0 auto;
}

.mission h2 {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.mission-text p {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Vision */
.vision {
    padding: var(--space-xl) 5%;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.v-year {
    font-size: clamp(3rem, 5vw, 5rem);
    color: rgba(239, 33, 38, 0.15);
    margin-bottom: 16px;
}

.v-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--secondary-blue);
}

/* Process */
.process {
    padding: var(--space-xl) 5%;
    background-color: #FAFAFA;
}

.process-sequence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-lg);
}

.process-step {
    text-align: center;
    position: relative;
}

.p-num {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 16px;
}

.p-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.p-details {
    position: absolute;
    top: calc(100% + 40px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    font-size: 0.85rem;
    color: rgba(51, 51, 51, 0.7);
    text-align: center;
    line-height: 1.6;
    background: #ffffff;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.p-details::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.1);
}

.process-step.step-up .p-details {
    top: auto;
    bottom: calc(100% + 40px);
}

.process-step.step-up .p-details::before {
    bottom: auto;
    top: 100%;
}

.process-step:first-child .p-details {
    left: 0;
    transform: none;
}

.process-step:first-child .p-details::before {
    left: 35px;
    transform: none;
}

.process-step:last-child .p-details {
    left: auto;
    right: 0;
    transform: none;
}

.process-step:last-child .p-details::before {
    left: auto;
    right: 35px;
    transform: none;
}

.process-line {
    flex: 1;
    height: 1px;
    background-color: rgba(51, 51, 51, 0.2);
    margin: 0 24px;
    position: relative;
    top: -20px;
    transform-origin: left;
}

/* Premium */
.premium {
    padding: var(--space-lg) 5%;
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.premium-content {
    flex: 1;
}

.premium-list {
    list-style: none;
    margin-top: 32px;
}

.premium-list li {
    font-size: 1.2rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.premium-image {
    flex: 1;
    height: 70vh;
}

/* Contact */
.contact {
    padding: var(--space-xl) 5%;
    display: flex;
    gap: var(--space-lg);
    background-color: #FAFAFA;
}

.contact-cta {
    flex: 2;
}

.contact-actions {
    margin-top: 48px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-location {
    flex: 1;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: var(--space-lg);
}

.contact-location p {
    font-size: 1rem;
    margin-top: 24px;
}

/* Footer */
.footer {
    padding: var(--space-lg) 5% var(--space-md);
    background-color: var(--text-charcoal);
    color: var(--bg-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-md);
}

.footer h2, .footer p {
    color: var(--bg-white);
}

.footer-brand h2 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-brand p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-red);
    padding-left: 32px;
    margin-top: -36px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.4s ease;
}

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

.footer-address p, .footer-contact p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
.reveal-text, .reveal-image, .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.process-line {
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.in-view, .reveal-image.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero, .heritage-grid, .premium, .contact {
        flex-direction: column;
    }
    .hero-image, .heritage-image, .premium-image {
        width: 100%;
        height: 50vh;
        margin-top: var(--space-md);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .process-sequence {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .process-step {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .p-details,
    .process-step.step-up .p-details,
    .process-step:first-child .p-details,
    .process-step:last-child .p-details {
        position: static;
        width: 100%;
        transform: none;
        padding: 8px 0 0 0;
        text-align: left;
    }
    
    .p-details::before {
        display: none;
    }
    .process-line {
        width: 1px;
        height: 40px;
        margin: 16px 0 16px 20px;
        transform-origin: top;
        transform: scaleY(0);
    }
    .process-line.in-view {
        transform: scaleY(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .vision-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .contact-location {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding-left: 0;
        padding-top: var(--space-lg);
    }
    .hero-actions, .contact-actions {
        flex-direction: column;
    }
}

/* Before & After */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 5% var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.ba-box {
    display: flex;
    flex-direction: column;
}

.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ba-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

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

.ba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-after {
    z-index: 1;
}

.ba-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255,255,255,0.9);
    color: var(--text-charcoal);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    font-weight: 500;
    z-index: 3;
    pointer-events: none;
    border-radius: 2px;
}

.after-label {
    left: auto;
    right: 20px;
    z-index: 1; /* beneath before layer */
}

.ba-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 4;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.ba-slider-line {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: white;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-slider-handle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    color: var(--text-charcoal);
}

.ba-slider-handle svg {
    width: 14px;
    height: 14px;
}
.ba-slider-handle svg:first-child {
    margin-right: -2px;
}

.ba-caption {
    text-align: center;
    padding: 24px 0 40px;
}
.ba-caption h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-charcoal);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.ba-caption p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(51,51,51,0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ba-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   MOBILE-ONLY OPTIMIZATIONS
   Hidden/neutral on desktop; everything else is inside
   max-width media queries so desktop rendering is unchanged.
   ========================================================== */
.nav-toggle,
.nav-cta-mobile {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --space-md: 32px;
        --space-lg: 56px;
        --space-xl: 88px;
    }

    /* --- Mobile navigation --- */
    .nav,
    .nav.scrolled {
        padding: 8px 5%;
    }
    .nav,
    .nav.scrolled {
        background: rgba(255, 255, 255, 0.95);
    }
    .logo,
    .nav-toggle {
        position: relative;
        z-index: 3;
    }
    .logo img,
    .nav.scrolled .logo img {
        height: 56px;
    }
    .nav .cta-nav {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 48px;
        height: 48px;
        padding: 0;
        margin-right: -12px;
        background: transparent;
        border: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-toggle:focus-visible {
        outline: 2px solid var(--secondary-blue);
        outline-offset: 2px;
    }
    .nav-toggle-bar {
        display: block;
        width: 24px;
        height: 1.5px;
        background: var(--text-charcoal);
        transition: transform 0.4s ease, opacity 0.3s ease;
    }
    .nav.menu-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .nav.menu-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav.menu-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    /* backdrop-filter would trap the fixed drawer inside the nav box */
    .nav.menu-open,
    .nav.menu-open.scrolled {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        transition: none;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 2;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        padding: 96px 5% 40px;
        background: rgba(255, 255, 255, 0.55);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        overflow-y: auto;
        text-align: center;
    }
    .nav.menu-open .nav-links {
        display: flex;
    }
    .nav-links a {
        font-family: var(--font-heading);
        font-size: 1.9rem;
        letter-spacing: 0.05em;
        padding: 4px 8px;
    }
    .nav-links .nav-cta-mobile {
        display: inline-block;
        margin-top: 12px;
        padding: 16px 28px;
        background: var(--primary-red);
        color: var(--bg-white);
        border: 1px solid var(--primary-red);
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }
    .nav-links .nav-cta-mobile:hover {
        color: var(--bg-white);
    }
    body.menu-lock {
        overflow: hidden;
    }

    /* --- Layout --- */
    .hero {
        padding: 112px 5% var(--space-md);
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-actions,
    .contact-actions {
        align-items: stretch;
        gap: 16px;
    }
    .btn-primary,
    .btn-secondary {
        text-align: center;
        padding: 16px 20px;
        letter-spacing: 0.12em;
        min-height: 48px;
    }
    .heritage-year {
        font-size: clamp(5rem, 28vw, 8rem);
        top: 90px;
    }
    .heritage-content {
        padding-top: var(--space-md);
    }
    .heritage-grid,
    .premium,
    .contact {
        gap: var(--space-md);
    }
    .section-header {
        padding: 0;
    }
    .service-grid-item p {
        text-align: left;
        padding: 0 8px;
    }
    .services {
        padding-left: 5%;
        padding-right: 5%;
    }
    .vision-grid {
        gap: var(--space-md);
    }
    .mission-text p {
        font-size: 1.1rem;
    }
    .footer-brand p {
        margin-top: 0;
        padding-left: 0;
    }
    .footer-links a {
        display: inline-block;
        padding: 6px 0;
    }
    .contact iframe {
        height: 300px;
    }
    .ba-grid {
        gap: 32px;
        padding-bottom: var(--space-lg);
    }
    .ba-slider-handle {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        margin-bottom: var(--space-sm);
    }
    h2 {
        font-size: clamp(2rem, 9vw, 2.6rem);
        margin-bottom: var(--space-sm);
    }
    .mission h2 {
        font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    }
    p {
        font-size: 1rem;
    }
    .nav-links a {
        font-size: 1.6rem;
    }
}

/* Mobile only: hero photo fills the whole hero section */
@media (max-width: 768px) {
    .hero .hero-image {
        height: 100%;
        margin-top: 0;
    }
}
