@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Palette: ClearView Arizona Modern */
    --col-primary: #0f172a;     /* Deep Navy Slate */
    --col-secondary: #334155;   /* Lighter Slate */
    --col-accent: #b45309;      /* Arizona Copper */
    --col-gold: #d4af37;        /* Subtle Gold */
    --col-bg: #f8fafc;          /* Cool White */
    --col-bg-warm: #fdfbf7;     /* Warm Paper */
    --col-white: #ffffff;
    
    /* Spacing */
    --nav-height: 90px;
    --section-padding: 6rem 2rem;
    
    /* Typography */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--col-secondary);
    background-color: var(--col-bg-warm);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--col-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* --- GLOBAL NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height); /* 90px Default */
    /* Updated Transparency: 50% */
    background: rgba(255, 255, 255, 0.50); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    transition: all 0.4s ease;
}

/* Scrolled State (Triggered by JS class) */
header.scrolled {
    height: 70px; /* Shrinks on scroll */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo img {
    height: 72px; 
    width: auto;
    display: block;
    transition: height 0.4s ease;
}

/* Shrink logo when header shrinks */
header.scrolled .logo img {
    height: 50px;
}

/* Desktop Nav */
nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--col-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 5px;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--col-accent);
    transition: width 0.3s ease;
}

nav a:hover { color: var(--col-primary); }
nav a:hover:after { width: 100%; }

nav .active { color: var(--col-primary); border-bottom: 1px solid var(--col-accent); }

/* Header CTA Button */
.cta-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--col-primary);
    color: var(--col-white);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.cta-btn:hover {
    background-color: var(--col-accent);
    transform: translateY(-2px);
    color: var(--col-white);
}

/* --- MOBILE HAMBURGER MENU --- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2000; /* Higher than nav and overlay */
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--col-primary);
    border-radius: 2px;
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* Hamburger Active State (X) */
.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.hamburger.open span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

/* Fog Overlay (The blur behind the menu) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3); /* Slight dark tint */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1001; /* Behind menu, above content */
    opacity: 0;
    pointer-events: none; /* Let clicks pass through when hidden */
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all; /* Catch clicks to close */
}

/* Mobile Menu Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Start off screen right */
    width: 80%; /* 80% Width */
    max-width: 400px;
    height: 100vh;
    background: var(--col-bg-warm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1002; /* Topmost */
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth Glide */
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav.active { right: 0; }

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li { margin-bottom: 2rem; }

.mobile-nav a {
    font-family: var(--font-head);
    font-size: 1.75rem;
    color: var(--col-primary);
}

.mobile-nav-login {
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    width: 100%;
    text-align: center;
}

/* Differentiated Mobile Button (Color & Layout) */
.mobile-nav-login .cta-btn {
    background-color: var(--col-accent); /* Copper */
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

.mobile-nav-login .cta-btn:hover {
    background-color: var(--col-primary); /* Navy on Hover */
}


/* --- PAGE HERO --- */
.page-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    margin-bottom: 4rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(15, 23, 42, 0.6);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; color: rgba(255,255,255,0.9); }

/* --- INTERACTIVE COMPONENTS --- */

/* Tabs */
.tab-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Ensure tabs wrap on mobile */
}

.tab-btn {
    padding: 1rem 2rem;
    border: 1px solid var(--col-primary);
    background: transparent;
    color: var(--col-primary);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--col-primary);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active { display: block; }

/* Accordion */
.accordion {
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--col-primary);
}

.accordion-header:hover { color: var(--col-accent); }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body p {
    padding-bottom: 1.5rem;
    color: var(--col-secondary);
}

.icon-plus { font-weight: bold; font-size: 1.5rem; }

/* --- FOOTER --- */
footer {
    background: var(--col-primary);
    color: var(--col-bg);
    padding: 5rem 5% 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    color: var(--col-white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { opacity: 0.7; }
.footer-col a:hover { color: var(--col-accent); opacity: 1; }

.legal-line {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* --- UTILITIES & ANIMATION --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* STANDARD DESKTOP PADDING */
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-accent { color: var(--col-accent); }
.bg-light { background-color: white; }
.section-gap { padding: 6rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

/* --- MOBILE & TABLET OPTIMIZATIONS --- */
@media (max-width: 900px) {
    /* Safety Zones */
    .container {
        padding: 0 1.5rem; /* Text never touches edge */
    }

    /* Header Reconfiguration */
    header { 
        padding: 0 1.5rem; 
        height: 90px !important; /* LOCK HEIGHT ON MOBILE */
    }
    
    header.scrolled {
        height: 90px !important; /* Disable shrink behavior on mobile */
    }
    
    .logo img {
        height: 60px !important; /* LOCK LOGO SIZE ON MOBILE */
    }

    /* Hide Desktop Elements */
    nav, header .cta-btn { display: none; }

    /* Show Hamburger */
    .hamburger { display: block; }
    
    /* Footer Stack */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Grid Collapse */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }

    /* Typography Adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}