/* ===================================================
   GLOBAL STYLES — Chill Astoria
   =================================================== */

* {
    margin: 0;
    padding: 0;
    font-family: "Lato", sans-serif;
    box-sizing: border-box;
    word-break: break-word;
    scroll-behavior: smooth;
}

:root {
    /* Core brand colors */
    --black:          #151515;
    --white:          #ffffff;
    --yellow:         #ff9b00;
    --cream:          #0f0f11;
    --green:          #c8c4bc;

    /* Extended palette */
    --charcoal:       #1a1a1e;
    --charcoal-light: #242428;
    --surface:        #1e1e22;
    --surface-2:      #252529;
    --amber:          #ff9b00;
    --gold:           #d4a843;
    --text-primary:   #f0ebe2;
    --text-secondary: #a09a91;
    --border:         rgba(255, 255, 255, 0.07);
    --border-amber:   rgba(255, 155, 0, 0.3);
    --glow-amber:     rgba(255, 155, 0, 0.10);
    --glow-amber-md:  rgba(255, 155, 0, 0.22);

    /* Typography scale */
    --h1: clamp(2.5rem, 4.5vw, 4.8rem);
    --h2: clamp(1.8rem, 3vw, 3.2rem);
    --h3: clamp(1.2rem, 1.8vw, 1.7rem);
    --text-base: clamp(1rem, 1.1vw, 1.125rem);
    --text-sm:   clamp(0.875rem, 0.95vw, 1rem);
    --text-xs:   clamp(0.75rem, 0.8vw, 0.8125rem);

    /* Layout */
    --section-pad:     clamp(5rem, 9vw, 9rem);
    --container-max:   1400px;
    --container-pad:   clamp(1.5rem, 5vw, 5rem);
    --radius:          10px;
    --radius-lg:       18px;

    /* Motion */
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 0; height: 0; }
html { scrollbar-width: none; }
body {
    -ms-overflow-style: none;
    background: var(--cream);
}
body.noscroll { overflow: hidden; }

/* Base */
img, svg {
    width: 100%;
    max-width: 100%;
    display: block;
}

a {
    cursor: pointer;
    width: fit-content;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: "Raleway", sans-serif;
    color: var(--yellow);
    text-wrap: balance;
}

h1 { font-size: var(--h1); line-height: 1.05; }
h2 { font-size: var(--h2); line-height: 1.15; }
h2.subtitle { font-size: clamp(1rem, 1.5vw, 1.5rem); }
h3 { font-size: var(--h3); line-height: 1.3; }

p, li {
    color: var(--green);
    font-size: var(--text-base);
    text-wrap: balance;
    font-weight: 300;
    line-height: 1.75;
}

p b, li b { font-weight: 600; }

ul {
    color: var(--green);
    list-style-position: inside;
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */

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

.section_label {
    font-family: "Raleway", sans-serif;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
    margin-bottom: 1rem;
}

.btn_primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    background: var(--amber);
    color: var(--black);
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--amber);
    transition: var(--transition);
    width: fit-content;
}

.btn_primary:hover {
    background: transparent;
    color: var(--amber);
}

.btn_secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    background: transparent;
    color: var(--white);
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: var(--transition);
    width: fit-content;
}

.btn_secondary:hover {
    border-color: var(--amber);
    color: var(--amber);
}

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */

.site_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.site_header.scrolled {
    background: rgba(15, 15, 17, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}

.nav_container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

.nav_logo {
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav_logo img {
    width: auto;
    height: 46px;
    max-width: none;
    display: block;
    object-fit: contain;
}

.nav_links {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 3vw, 3rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav_links li { margin: 0; }

.nav_links a {
    width: 100%;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-bottom: 5px;
}

.nav_links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--transition);
}

.nav_links a:hover { color: var(--white); }
.nav_links a:hover::after { width: 100%; }

.nav_cta { width: auto; }

.nav_hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    cursor: pointer;
}

.nav_hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav_hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav_hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav_hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile fullscreen nav */
.nav_mobile {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav_mobile.open {
    display: flex;
    opacity: 1;
}

.nav_mobile a {
    font-family: "Raleway", sans-serif;
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.nav_mobile a:hover { color: var(--amber); }

.nav_mobile .nav_mobile_cta {
    margin-top: 1rem;
}

/* Header responsive */
@media (max-width: 996px) {
    .nav_links,
    .nav_cta { display: none; }
    .nav_hamburger { display: flex; }
}

/* ===================================================
   DROPDOWN NAV
   =================================================== */

.nav_has_dropdown { position: relative; }

/* Trigger inherits .nav_links a styles; chevron transitions */
.nav_dropdown_trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav_chevron {
    font-size: 0.6rem;
    transition: transform var(--transition);
}

.nav_has_dropdown:hover .nav_chevron,
.nav_has_dropdown:focus-within .nav_chevron {
    transform: rotate(180deg);
}

/* Invisible bridge fills the gap between trigger and panel */
.nav_dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 14px; /* gap between trigger text and panel */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nav_has_dropdown:hover .nav_dropdown,
.nav_has_dropdown:focus-within .nav_dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Invisible bridge: extends hover area over the gap */
.nav_dropdown_bridge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
}

.nav_dropdown_panel {
    background: #1a1a1e;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 155, 0, 0.06);
    overflow: hidden;
    min-width: 220px;
    transform: translateY(-6px);
    transition: transform 0.22s ease;
}

.nav_has_dropdown:hover .nav_dropdown_panel,
.nav_has_dropdown:focus-within .nav_dropdown_panel {
    transform: translateY(0);
}

.nav_dropdown_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    transition: background var(--transition);
}

/* Override the underline-on-hover from .nav_links a */
.nav_dropdown_item::after { display: none !important; }

.nav_dropdown_item:hover {
    background: rgba(255, 155, 0, 0.06);
    color: var(--white);
}

.nav_dropdown_icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 155, 0, 0.1);
    color: var(--amber);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav_dropdown_text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav_dropdown_text strong {
    font-family: "Raleway", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
}

.nav_dropdown_text small {
    font-family: "Lato", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-secondary);
}

.nav_dropdown_sep {
    height: 1px;
    background: var(--border);
    margin: 0 1.25rem;
}

/* ── Mobile group expand/collapse ── */
.nav_mobile_group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nav_mobile_group_trigger {
    font-family: "Raleway", sans-serif;
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.nav_mobile_group_trigger:hover { color: var(--amber); }

.nav_mobile_group_trigger .fa-chevron-down {
    font-size: 0.7em;
    transition: transform var(--transition);
}

.nav_mobile_group.open .nav_mobile_group_trigger { color: var(--amber); }

.nav_mobile_group.open .nav_mobile_group_trigger .fa-chevron-down {
    transform: rotate(180deg);
}

.nav_mobile_group_items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.nav_mobile_group.open .nav_mobile_group_items {
    max-height: 300px;
    padding: 1.25rem 0 0.5rem;
}

.nav_mobile_group_items a {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem) !important;
    color: var(--text-secondary) !important;
    letter-spacing: 0.08em;
}

.nav_mobile_group_items a:hover { color: var(--amber) !important; }

/* ===================================================
   FOOTER
   =================================================== */

.site_footer {
    background: #0a0a0c;
    border-top: 1px solid var(--border);
}

.footer_main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 7rem) var(--container-pad) clamp(2.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.footer_logo img {
    width: auto;
    height: 50px;
    max-width: none;
    object-fit: contain;
}

.footer_tagline {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 280px;
}

.footer_social {
    display: flex;
    gap: 0.6rem;
    margin-top: 2rem;
}

.footer_social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    width: 40px;
}

.footer_social a:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: var(--glow-amber);
}

.footer_col h4 {
    font-family: "Raleway", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.5rem;
}

.footer_col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer_col ul li { margin: 0; }

.footer_col ul a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 300;
    transition: var(--transition);
}

.footer_col ul a:hover { color: var(--white); }

.footer_contact_item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.footer_contact_item i {
    color: var(--amber);
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.footer_contact_item p,
.footer_contact_item a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

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

.footer_bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer_bottom p,
.footer_bottom a {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.footer_bottom a:hover { 
    color: var(--yellow); 
}

@media (max-width: 996px) {
    .footer_main {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }
    .footer_brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer_main {
        grid-template-columns: 1fr;
    }
    .footer_brand {
        grid-column: 1;
        place-items: center;
        text-align: center;
    }
    .footer_col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer_contact_item {
        flex-direction: column;
        align-items: center;
    }
    .footer_bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
