/* ===========================
   ForMedEx – Main Stylesheet
   Dark Medical Luxury Theme
=========================== */

:root {
    --black:       #06060A;
    --dark:        #0D0D14;
    --dark-card:   #12121C;
    --dark-border: #1E1E2E;
    --gold:        #C8A96E;
    --gold-light:  #E2C990;
    --gold-dim:    #8A6E42;
    --white:       #F0EDE6;
    --muted:       #7A7A8E;
    --accent-red:  #8B2635;
    --accent-teal: #1A5C6B;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;

    --radius-sm: 4px;
    --radius:    10px;
    --radius-lg: 20px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 40px rgba(200, 169, 110, 0.15);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Noise Overlay ---- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.section-title span { color: var(--gold); }
.section-desc {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.8;
}
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 1.5rem 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--gold);
    color: var(--black);
}
.btn-primary:hover {
    background: var(--gold-light);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 169, 110, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: rgba(200, 169, 110, 0.1);
    color: var(--gold-light);
    transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    transition: all var(--transition);
}
.site-header.scrolled {
    background: rgba(6, 6, 10, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
}
.logo-icon svg { width: 38px; height: 38px; }
.logo-main {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.logo-sub {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
    margin-top: 3px;
}
.main-nav ul {
    display: flex;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,169,110,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(26,92,107,0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(200,169,110,0.1);
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title .line-gold { color: var(--gold); display: block; }
.hero-desc {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--dark-border);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-emblem {
    width: 380px;
    height: 380px;
    position: relative;
}
.hero-emblem svg { width: 100%; height: 100%; }

/* ---- Cards ---- */
.card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: rgba(200,169,110,0.25);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}
.card:hover::before { opacity: 1; }
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(200,169,110,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.card-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ---- Why Section ---- */
.why-section {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.check-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.check-icon::after {
    content: '✓';
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 700;
}
.check-text strong { color: var(--white); display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.check-text span { color: var(--muted); font-size: 0.83rem; }

/* ---- News Card ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.news-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover {
    border-color: rgba(200,169,110,0.25);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}
.news-card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.news-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(200,169,110,0.12);
    color: var(--gold);
    border: 1px solid rgba(200,169,110,0.2);
}
.news-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(200,169,110,0.12);
    line-height: 1;
}
.news-card-body { padding: 1.5rem; }
.news-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.news-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.news-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-meta { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(26,92,107,0.15) 100%);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-banner-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-banner-desc { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Page Hero ---- */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
    border-bottom: 1px solid var(--dark-border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 80% 50%, rgba(200,169,110,0.05) 0%, transparent 70%);
}
.page-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.page-hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.page-hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 600px; }

/* ---- Membership ---- */
.membership-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.benefit-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}
.benefit-item:hover {
    border-color: rgba(200,169,110,0.2);
    background: rgba(200,169,110,0.04);
}
.benefit-item .icon { font-size: 1.3rem; }
.benefit-item span { font-size: 0.9rem; color: var(--white); font-weight: 500; }

/* ---- Knowledgebase ---- */
.kb-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}
.kb-cat {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}
.kb-cat:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}
.kb-cat .icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.kb-cat-name { font-weight: 600; color: var(--white); font-size: 0.95rem; margin-bottom: 0.3rem; }
.kb-cat-count { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }

/* ---- Forum ---- */
.forum-thread {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: all var(--transition);
}
.forum-thread:hover {
    border-color: rgba(200,169,110,0.2);
}
.thread-title {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.thread-meta { font-size: 0.78rem; color: var(--muted); }
.thread-stats {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}
.thread-replies { font-size: 1.1rem; font-weight: 700; color: var(--gold); display: block; }

/* ---- Contact Form ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}
.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(200,169,110,0.1);
    border: 1px solid rgba(200,169,110,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-info-text strong { color: var(--white); display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-info-text span { color: var(--muted); font-size: 0.85rem; }

/* ---- Form ---- */
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.form-control {
    width: 100%;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--white);
    font-family: var(--font-body);
    transition: all var(--transition);
    outline: none;
    appearance: none;
}
.form-control:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }

/* ---- About Timeline ---- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.mission-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.mission-card::after {
    content: attr(data-num);
    position: absolute;
    bottom: -0.5rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(200,169,110,0.05);
    line-height: 1;
}

/* ---- Alert / Notice ---- */
.notice {
    background: rgba(200,169,110,0.08);
    border: 1px solid rgba(200,169,110,0.2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    font-size: 0.88rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* ---- News Detail ---- */
.news-detail-header {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.news-detail-section {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.news-detail-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.news-detail-section ul { display: flex; flex-direction: column; gap: 0.6rem; }
.news-detail-section ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.news-detail-section ul li::before {
    content: '→';
    color: var(--gold);
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 1px;
}
.news-detail-section ul li:last-child { border-bottom: none; }

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    padding: 5rem 0 0;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all var(--transition);
}
.social-link:hover { color: var(--gold); border-color: var(--gold-dim); }
.social-link svg { width: 16px; height: 16px; }
.footer-nav-group h4 {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.footer-nav-group ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-group a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color var(--transition);
}
.footer-nav-group a:hover { color: var(--gold); }
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--muted); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    /* Mobile nav — hidden by default, slides down when .open */
    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6,6,10,0.98);
        backdrop-filter: blur(20px);
        z-index: 998;
        padding: 1.5rem 1.5rem 2rem;
        border-top: 1px solid var(--dark-border);
        overflow-y: auto;
        /* hidden state */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .main-nav.open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
                min-height: 500px;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--dark-border);
    }
    .main-nav ul li:first-child {
        border-top: 1px solid var(--dark-border);
    }
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0.5rem;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 0;
    }
    .nav-link.active::after { display: none; }
    .nav-link.active {
        color: var(--gold);
        padding-left: 1rem;
        border-left: 3px solid var(--gold);
    }

    /* Hamburger becomes X when open */
    .hamburger { display: flex; }
    .hamburger span { transition: all 0.25s ease; }
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay backdrop */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 72px 0 0 0;
        z-index: 997;
        background: rgba(0,0,0,0.5);
    }
    .nav-backdrop.open { display: block; }

    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .section { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
    .cta-banner { padding: 2.5rem 1.5rem; }
    .page-hero { padding: 110px 0 60px; }
    .news-grid { grid-template-columns: 1fr; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.7s ease both; }
.fade-in-2 { animation: fadeInUp 0.7s ease 0.15s both; }
.fade-in-3 { animation: fadeInUp 0.7s ease 0.3s both; }
.fade-in-4 { animation: fadeInUp 0.7s ease 0.45s both; }
