/* ==========================================================================
   NEW CHARLES — CORE STYLESHEET
   Monochromatic luxury, Four Seasons inspired
   ========================================================================== */

/* ==========================================================================
   [SECTION 1] VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    /* Monochromatic Palette — ink black, white, hairline grays */
    --ink: #000000;
    --ink-soft: #2d2d2d;
    --canvas: #ffffff;
    --muted: #6d6d6d;
    --muted-light: #7d7d7d;
    --hairline: #d8d8d8;
    --hairline-dark: #1f1f1f;
    --surface: #030303;

    /* Typography — Three registers: aspirational, structural, editorial */
    --font-display: 'Cormorant Garamond', 'EB Garamond', 'Times New Roman', serif;
    --font-structural: 'Inter', 'Helvetica Neue', helvetica, sans-serif;
    --font-body: 'EB Garamond', 'Cormorant Garamond', 'Georgia', serif;

    /* Layout & Spacing */
    --header-height: 60px;
    --container-width: 1280px;
    --gutter: 40px;
    --radius: 0px;
    --spacing-base: 40px;
    --spacing-lg: 60px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   [SECTION 2] RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    width: 100%;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
}

/* ==========================================================================
   [SECTION 3] TYPOGRAPHY TOKENS
   ========================================================================== */

/* Display — Saol Display → Cormorant Garamond weight 300 */
.display-xl {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--canvas);
}

.display-lg {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.display-md {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Heading — Neue Helvetica → Inter weight 700 uppercase tracked */
.heading-section {
    font-family: var(--font-structural);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink);
}

/* Overline / Label */
.overline {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

.overline-light {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Body — Monotype Garamond → EB Garamond weight 400 */
.body-lg {
    font-family: var(--font-body);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.body-md {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.body-sm {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.5px;
}

/* Nav link */
.nav-label {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   [SECTION 4] SPACING UTILITIES
   ========================================================================== */
.section {
    padding: var(--spacing-lg) 0;
}

.section-lg {
    padding: 120px 0;
}

.section-xl {
    padding: 160px 0;
}

/* ==========================================================================
   [SECTION 5] HEADER / NAVIGATION
   ========================================================================== */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    height: var(--header-height);
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    width: 100%;
    transition: background-color 0.4s var(--ease-out-expo);
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 30px;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    margin-left: auto;
    margin-right: 30px;
}

.nav-links a {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--ink);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-action {
    display: flex;
    align-items: center;
    height: 100%;
}

/* ==========================================================================
   [SECTION 6] BUTTONS
   ========================================================================== */

/* Primary — gray fill, no radius, uppercase label */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background-color: var(--muted);
    color: var(--canvas);
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--ink);
}

/* Secondary — outline */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background-color: transparent;
    color: var(--ink);
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: var(--ink);
    color: var(--canvas);
}

/* Primary light (for dark backgrounds) */
.btn-primary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background-color: transparent;
    color: var(--canvas);
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary-light:hover {
    border-color: var(--canvas);
    background-color: var(--canvas);
    color: var(--ink);
}

/* Text link with arrow */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--hairline);
    transition: all 0.3s ease;
}

.btn-text:hover {
    border-bottom-color: var(--ink);
}

.btn-text .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   [SECTION 7] SECTION HEADERS
   ========================================================================== */
.section-header {
    margin-bottom: var(--spacing-base);
}

.section-header .overline {
    display: block;
    margin-bottom: 12px;
}

.section-header .display-md {
    color: var(--ink);
}

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

.section-header.light .display-md {
    color: var(--canvas);
}

/* ==========================================================================
   [SECTION 8] SECTION SEPARATORS
   ========================================================================== */
.section-border {
    border-top: 1px solid var(--hairline);
}

/* ==========================================================================
   [SECTION 9] ANIMATION UTILITIES
   ========================================================================== */
.reveal-wrap {
    overflow: hidden;
    display: block;
    line-height: 1.1;
}

.reveal-content {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-out-expo);
    will-change: transform;
}

.is-visible .reveal-content {
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
    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; }
.delay-5 { transition-delay: 0.5s; }

.img-scale-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.img-scale-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.5s var(--ease-out-expo);
    will-change: transform;
}

.is-visible .img-scale-wrap img,
.img-scale-wrap.is-visible img {
    transform: scale(1);
}

/* ==========================================================================
   [SECTION 10] CTA STRIP (shared)
   ========================================================================== */
.cta-strip {
    padding: 100px 0;
    background-color: var(--ink);
    text-align: center;
}

.cta-strip .overline-light {
    display: block;
    margin-bottom: 16px;
}

.cta-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--canvas);
    max-width: 600px;
    margin: 0 auto 12px;
}

.cta-strip p {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* ==========================================================================
   [SECTION 11] FOOTER
   ========================================================================== */
.footer {
    background-color: var(--ink);
    color: var(--canvas);
    padding: var(--spacing-lg) var(--gutter);
    border-top: 1px solid var(--hairline-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    max-width: var(--container-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--hairline-dark);
}

.footer-col {
    padding: var(--spacing-lg) var(--gutter);
    border-right: 1px solid var(--hairline-dark);
    display: flex;
    flex-direction: column;
}

.footer-col:last-child {
    border-right: none;
}

.footer-col-label {
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 30px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--canvas);
}

.footer-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    max-width: 300px;
}

.footer-col address {
    color: var(--canvas);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-col a:not(.footer-nav-link) {
    color: #888;
    transition: color 0.3s ease;
}

.footer-col a:not(.footer-nav-link):hover {
    color: var(--canvas);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-link {
    color: #999;
    font-family: var(--font-structural);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.footer-base {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    font-family: var(--font-structural);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    font-family: var(--font-structural);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   [SECTION 12] RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:nth-child(2) {
        border-right: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --gutter: 20px;
        --header-height: 55px;
    }

    .section-xl {
        padding: 80px 0;
    }

    .section-lg {
        padding: 60px 0;
    }

    .cta-strip {
        padding: 80px var(--gutter);
    }

    .navbar .container-fluid {
        padding: 0 15px;
    }

    /* Mobile nav — hamburger based */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: var(--canvas);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 0;
        z-index: 2000;
    }

    .nav-links.active {
        display: flex;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links a {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .nav-action .btn-primary {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 55px;
        height: 100%;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        z-index: 3000;
    }

    .hamburger-bar {
        display: block;
        width: 22px;
        height: 1px;
        background-color: var(--ink);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
    }

    .footer-col {
        border-right: none;
        border-bottom: 1px solid var(--hairline-dark);
        padding: 40px 20px;
        align-items: center;
        text-align: center;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-base {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Desktop: hide hamburger */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}
