/* ===== DESIGN SYSTEM ===== */
:root {
    --cream: #F5F0E8;
    --dark: #0E0D0A;
    --gold: #B8975A;
    --muted: rgba(14, 13, 10, 0.6);
    --border: rgba(14, 13, 10, 0.1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }

p {
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s;
    word-wrap: break-word;
}

a:hover { opacity: 0.7; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--dark);
    color: var(--cream);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--dark);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: transparent;
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--cream);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.75rem;
}

/* ===== HEADER/NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100vw;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-main {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-main a {
    color: var(--dark);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 8px 0;
    position: relative;
}

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

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

.nav-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cream);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 16px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 0.8rem;
}

.dropdown-menu a:hover {
    background: rgba(184,151,90,0.05);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 60px 80px;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(245,240,232,0.95), rgba(245,240,232,0.85)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80') center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    margin-bottom: 32px;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 40px;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 60px;
    max-width: 100vw;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-overline {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ===== GRID ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

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

/* ===== CARDS ===== */
.card {
    background: white;
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(245,240,232,0.7);
    padding: 80px 60px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    color: rgba(245,240,232,0.9);
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(245,240,232,0.5);
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(184,151,90,0.1);
    font-size: 0.75rem;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 120px 60px 40px;
    font-size: 0.75rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--muted);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    nav { padding: 24px 40px; }
    .container { padding: 0 40px; }
    section { padding: 80px 40px; }
    .hero { padding: 120px 40px 60px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Prevent overflow */
    body, html, nav, section, .hero, .container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Mobile nav */
    nav {
        padding: 16px 20px;
        flex-wrap: nowrap;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: -1;
    }
    
    .logo {
        font-size: 1.2rem;
        flex: 1;
        text-align: center;
    }
    
    .nav-main {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        max-width: 100vw;
    }
    
    .nav-main.active {
        display: flex;
    }
    
    .nav-main li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        padding: 16px 0;
    }
    
    .nav-main a {
        display: block;
        width: 100%;
        padding: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: rgba(184,151,90,0.05);
        margin-top: 12px;
    }
    
    .nav-cta {
        order: 1;
    }
    
    .nav-cta .btn-outline {
        display: none;
    }
    
    .nav-cta .btn {
        font-size: 0.65rem;
        padding: 10px 16px;
    }
    
    /* Mobile sections */
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .breadcrumbs {
        padding: 90px 20px 30px;
    }
    
    /* Mobile grids */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Mobile footer */
    footer {
        padding: 60px 20px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Typography mobile */
    h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    h3 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
}
