/* =============================================
   AMAC Navigation Prototype - Option C
   Mega Menu Navigation
   Tailwind-Inspired Design Token System
   ============================================= */

/* -----------------------------------------
   1. TAILWIND-INSPIRED DESIGN TOKENS
   ----------------------------------------- */
:root {
    /* ===== FONT FAMILY (per amac_brand.txt) ===== */
    --font-serif: "Merriweather", Georgia, serif;
    --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-base: var(--font-sans);  /* Alias for backwards compatibility */

    /* ===== SPACING SCALE (4px base unit) ===== */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;   /* 2px */
    --space-1: 0.25rem;      /* 4px */
    --space-1-5: 0.375rem;   /* 6px */
    --space-2: 0.5rem;       /* 8px */
    --space-2-5: 0.625rem;   /* 10px */
    --space-3: 0.75rem;      /* 12px */
    --space-3-5: 0.875rem;   /* 14px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-9: 2.25rem;      /* 36px */
    --space-10: 2.5rem;      /* 40px */
    --space-11: 2.75rem;     /* 44px */
    --space-12: 3rem;        /* 48px */
    --space-14: 3.5rem;      /* 56px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-28: 7rem;        /* 112px */
    --space-32: 8rem;        /* 128px */

    /* ===== TYPOGRAPHY SCALE (per amac_brand.txt) ===== */
    --text-xs: 0.75rem;      /* 12px - fine print */
    --text-sm: 0.875rem;     /* 14px - small text, labels */
    --text-base: 1rem;       /* 16px - nav items minimum */
    --text-lg: 1.125rem;     /* 18px - body text (brand standard) */
    --text-xl: 1.25rem;      /* 20px - callouts, stressed text */
    --text-2xl: 1.5rem;      /* 24px - small headings */
    --text-3xl: 1.75rem;     /* 28px - H3 subsection */
    --text-4xl: 2.25rem;     /* 36px - H2 section */
    --text-5xl: 3rem;        /* 48px - H1 hero */

    /* Line Heights (optimized for 50+ readability) */
    --leading-none: 1;
    --leading-tight: 1.2;       /* headings per brand */
    --leading-snug: 1.375;
    --leading-normal: 1.5;      /* minimum for body per brand */
    --leading-relaxed: 1.625;   /* preferred for body */
    --leading-loose: 2;

    /* Font Weights (AMAC Brand: 400/600/700) */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Letter Spacing (improved for uppercase readability) */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;    /* uppercase text standard per brand */
    --tracking-wider: 0.075em;  /* small uppercase labels */
    --tracking-widest: 0.1em;

    /* ===== COLOR PALETTE ===== */

    /* Liberty Blue Scale (Primary Brand Color) */
    --blue-50: #e6eef8;
    --blue-100: #ccddf1;
    --blue-200: #99bbe3;
    --blue-300: #6699d5;
    --blue-400: #3377c7;
    --blue-500: #0055b9;
    --blue-600: #004694;
    --blue-700: #003870;
    --blue-800: #002a4b;
    --blue-900: #002868;  /* Liberty Blue - Primary */
    --blue-950: #001a44;

    /* Patriot Red Scale (Secondary Brand Color) */
    --red-50: #fce8ec;
    --red-100: #f9d1d9;
    --red-200: #f3a3b3;
    --red-300: #ed758d;
    --red-400: #e74767;
    --red-500: #e11941;
    --red-600: #e21d37;  /* AMAC Logo Red - Primary */
    --red-700: #990826;
    --red-800: #73061d;
    --red-900: #4d0413;
    --red-950: #26020a;

    /* Constitution Gold Scale (Accent Color) */
    --gold-50: #faf6f0;
    --gold-100: #f5ede1;
    --gold-200: #ebdbc3;
    --gold-300: #e1c9a5;
    --gold-400: #d7b787;
    --gold-500: #C49A6C;  /* Constitution Gold - Primary */
    --gold-600: #b08656;
    --gold-700: #8c6b45;
    --gold-800: #685033;
    --gold-900: #443522;
    --gold-950: #221a11;

    /* Slate Blue Scale (Supporting Color) */
    --slate-50: #f0f4f8;
    --slate-100: #e1e9f1;
    --slate-200: #c3d3e3;
    --slate-300: #a5bdd5;
    --slate-400: #87a7c7;
    --slate-500: #4A6FA5;  /* Slate Blue - Primary */
    --slate-600: #3b5984;
    --slate-700: #2c4363;
    --slate-800: #1e2d42;
    --slate-900: #0f1721;
    --slate-950: #080b11;

    /* Neutral Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;

    /* Semantic Color Tokens */
    --color-liberty-blue: var(--blue-900);
    --color-patriot-red: var(--red-600);
    --color-constitution-gold: var(--gold-500);
    --color-slate-blue: var(--slate-500);
    --color-white: #FFFFFF;
    --color-cream: #F8F7F2;
    --color-charcoal: #333333;
    --color-text: #333333;
    --color-bg: #FFFFFF;
    --color-border: #cccccc;
    --color-link: #cc3366;
    --color-link-hover: #333366;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --shadow-none: 0 0 #0000;

    /* ===== BORDER RADIUS ===== */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius: 0.25rem;       /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* ===== TRANSITIONS ===== */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;

    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== RING (Focus Outlines) ===== */
    --ring-color: var(--gold-500);
    --ring-offset-width: 2px;
    --ring-offset-color: var(--color-white);
    --ring-width: 3px;

    /* ===== Z-INDEX SCALE ===== */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;

    /* ===== COMPONENT-SPECIFIC TOKENS ===== */
    --nav-height-upper: 36px;      /* Compact utility bar */
    --nav-height-main: 80px;       /* Substantial primary nav (enterprise standard) */
    --nav-height-mobile-tab: 64px;
    --container-width: 1280px;
    --nav-padding-desktop: 48px;   /* Generous horizontal padding */
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-lg);           /* 18px - AMAC brand standard for body */
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed); /* 1.625 - optimized for 50+ readability */
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-150) var(--ease-in-out);
}

a:focus-visible {
    outline: var(--ring-width) solid var(--ring-color);
    outline-offset: var(--ring-offset-width);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible {
    outline: var(--ring-width) solid var(--ring-color);
    outline-offset: var(--ring-offset-width);
}

ul {
    list-style: none;
}

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

/* -----------------------------------------
   3. UTILITY CLASSES
   ----------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transition-all {
    transition-property: all;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: var(--ease-in-out);
    transition-duration: var(--duration-150);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
    width: 100%;
}

/* -----------------------------------------
   4. SKIP LINK (Accessibility)
   ----------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-liberty-blue);
    color: var(--color-white);
    padding: var(--space-3) var(--space-6);
    font-weight: var(--font-semibold);
    z-index: 9999;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top var(--duration-200) var(--ease-out);
}

.skip-link:focus {
    top: 0;
}

/* -----------------------------------------
   5. PROMO STRIP (Membership CTA)
   Thin, attention-grabbing, converts visitors
   ----------------------------------------- */
.promo-strip {
    background-color: var(--color-liberty-blue);
    padding: var(--space-2) 0;
    text-align: center;
    position: relative;
    z-index: calc(var(--z-50) + 2);
}

.promo-strip .container {
    padding-inline: var(--nav-padding-desktop);
    max-width: 100%;
}

.promo-text {
    color: var(--color-white);
    font-size: 13px;
    font-weight: var(--font-normal);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.promo-text strong {
    font-weight: var(--font-bold);
    color: var(--gold-300);
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-white);
    font-weight: var(--font-semibold);
    background-color: var(--color-patriot-red);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    margin-left: var(--space-2);
    transition: all var(--duration-150) var(--ease-in-out);
}

.promo-cta:hover {
    background-color: var(--red-700);
    transform: translateX(2px);
}

.promo-arrow {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform var(--duration-150) var(--ease-in-out);
}

.promo-cta:hover .promo-arrow {
    transform: translateX(2px);
}

/* -----------------------------------------
   6. UPPER UTILITY NAV (Enterprise Dark Bar)
   Professional, compact, clearly secondary
   ----------------------------------------- */
.upper-nav {
    background-color: #1a1a1a;  /* Near-black for authority */
    height: var(--nav-height-upper);
    position: relative;
    z-index: calc(var(--z-50) + 1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.upper-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-inline: var(--nav-padding-desktop);
    max-width: 100%;
}

.upper-nav-group {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.upper-nav a,
.upper-nav button {
    color: rgba(255,255,255,0.85);
    font-size: 13px;               /* Smaller, clearly utility */
    font-weight: var(--font-medium);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-1) 0;
    transition: color var(--duration-150) var(--ease-in-out);
}

.upper-nav a:hover,
.upper-nav button:hover {
    color: var(--color-white);
}

/* Separator between utility items */
/* Utility bar label and separator */
.utility-label {
    color: rgba(255,255,255,0.75);  /* Improved contrast (#2) */
    font-size: 13px;
    font-weight: var(--font-medium);
    letter-spacing: 0.3px;
    margin-right: var(--space-2);
}

.utility-separator {
    color: rgba(255,255,255,0.2);  /* Lighter separators (#6) */
    margin: 0 var(--space-2);
}

/* Visual divider between left and right groups (#3) */
.upper-nav-left {
    gap: var(--space-1);
    padding-right: var(--space-6);
    border-right: 1px solid rgba(255,255,255,0.15);
    margin-right: var(--space-2);
}

/* External link with persistent icon (#1) */
.external-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.external-link::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 3h7v7h-2V6.41L8.41 17 7 15.59 17.59 5H14V3zM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7H5V5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    transition: opacity var(--duration-150) var(--ease-in-out);
}

.external-link:hover::after {
    opacity: 1;
}

.icon-external,
.icon-search {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
}

.search-text {
    display: none;  /* Icon only in utility bar for cleaner look */
}

.login-link {
    opacity: 0.9;
}

/* Join AMAC Button (Primary CTA - enhanced prominence #4) */
/* "Trusted Authority" - Join Button */
.btn-join {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-weight: 700;              /* Bold */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: var(--color-amac-blue);  /* AMAC Blue */
    color: var(--color-white) !important;
    padding: var(--space-2) var(--space-5) !important;
    border-radius: 4px;            /* Sharp corners - serious tone */
    transition: all var(--duration-150) var(--ease-in-out);
    box-shadow: var(--shadow-sm);
}

.btn-join:hover {
    background-color: var(--color-liberty-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--color-white) !important;
}

/* -----------------------------------------
   5b. ANNOUNCEMENT BAR
   Slides away on scroll, dismissable
   ----------------------------------------- */
:root {
    --announcement-height: 36px;
}

.announcement-bar {
    background: linear-gradient(135deg, var(--color-liberty-blue) 0%, var(--blue-800) 100%);
    height: var(--announcement-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-50) + 1);  /* Above header */
    transition: transform 0.3s ease-out;
}

.announcement-bar.hidden {
    transform: translateY(-100%);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    height: 100%;
}

.announcement-text {
    color: var(--color-white);
    font-size: var(--text-sm);
}

.announcement-text strong {
    color: var(--color-constitution-gold);
}

.announcement-cta {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-liberty-blue);
    background-color: var(--color-constitution-gold);
    padding: 3px var(--space-3);
    border-radius: var(--radius);
    transition: all var(--duration-150) var(--ease-in-out);
    white-space: nowrap;
}

.announcement-cta:hover {
    background-color: var(--gold-400);
    transform: translateY(-1px);
}

.announcement-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--duration-150) var(--ease-in-out);
    margin-left: var(--space-2);
}

.announcement-close:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.announcement-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* -----------------------------------------
   5c. UTILITY BAR (Top Strip)
   Member Tools, Help, Account Access
   Background: AMAC Dark Navy #0F172A
   ----------------------------------------- */
:root {
    --utility-bar-height: 38px;
}

.utility-bar {
    background-color: #0F172A;  /* AMAC Dark Navy */
    height: var(--utility-bar-height);
    position: fixed;
    top: var(--announcement-height);
    left: 0;
    right: 0;
    z-index: calc(var(--z-50) + 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: top 0.3s ease-out;
}

/* When announcement is hidden, utility bar moves to top */
.announcement-bar.hidden ~ .utility-bar,
body.announcement-dismissed .utility-bar {
    top: 0;
}

.utility-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-inline: var(--nav-padding-desktop);
    max-width: none;
}

/* Left Side: Phone Number */
.utility-left {
    display: flex;
    align-items: center;
}

.utility-phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--duration-150) var(--ease-in-out);
}

.utility-phone:hover {
    color: var(--color-white);
}

.utility-phone .utility-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.8;
}

/* Right Side: Help & Account Cluster */
.utility-right {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.utility-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-1) var(--space-2);
    transition: color var(--duration-150) var(--ease-in-out);
}

.utility-link:hover {
    color: var(--color-white);
}

.utility-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    margin: 0 var(--space-1);
    user-select: none;
}

.utility-login {
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
}

.utility-login .utility-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.8;
}

/* Adjust header position when announcement + utility bar are visible */
.main-header {
    top: calc(var(--announcement-height) + var(--utility-bar-height));
    transition: top 0.3s ease-out;
}

.announcement-bar.hidden ~ .utility-bar ~ .main-header,
body.announcement-dismissed .main-header {
    top: var(--utility-bar-height);
}

/* Adjust body padding for announcement + utility bar + header */
body {
    padding-top: calc(var(--announcement-height) + var(--utility-bar-height) + var(--nav-height-main));
    transition: padding-top 0.3s ease-out;
}

body.announcement-dismissed {
    padding-top: calc(var(--utility-bar-height) + var(--nav-height-main));
}

/* =========================================
   VERSION 2: STACKED 2-TIER HEADER LAYOUT
   Inspired by Vanguard / Financial Site Design
   ========================================= */

/* V2 Header Heights */
:root {
    --v2-brand-bar-height: 80px;
    --v2-nav-bar-height: 60px;
    --v2-total-header-height: calc(var(--announcement-height) + var(--v2-brand-bar-height) + var(--v2-nav-bar-height));
}

/* Override body padding for V2 layout */
body {
    padding-top: var(--v2-total-header-height);
}

/* When announcement is dismissed */
body.announcement-dismissed {
    padding-top: calc(var(--v2-brand-bar-height) + var(--v2-nav-bar-height));
}

/* Hide V1 utility bar in V2 (but keep announcement bar) */
.utility-bar {
    display: none;
}

/* -----------------------------------------
   V2 ROW 1: BRAND & UTILITY BAR (~80px)
   Logo + Tagline | Search, Support, Log In
   ----------------------------------------- */
.v2-brand-bar {
    background-color: var(--color-white);
    height: var(--v2-brand-bar-height);
    position: fixed;
    top: var(--announcement-height);
    left: 0;
    right: 0;
    z-index: calc(var(--z-50) + 2);
    border-bottom: 1px solid var(--gray-200);
    transition: top 0.3s ease-out;
}

/* When announcement is hidden */
.announcement-bar.hidden ~ .v2-brand-bar,
body.announcement-dismissed .v2-brand-bar {
    top: 0;
}

.v2-brand-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-inline: var(--nav-padding-desktop);
    max-width: none;
}

/* Left Side: Logo + Divider + Tagline */
.v2-brand-left {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.v2-logo-link {
    display: flex;
    align-items: center;
}

.v2-logo-img {
    height: 48px;
    width: auto;
}

.v2-brand-divider {
    width: 1px;
    height: 36px;
    background-color: var(--gray-300);
}

.v2-tagline {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 400;
    font-style: italic;
    color: var(--gray-600);
    letter-spacing: 0.01em;
}

/* Right Side: Utility Buttons (Search, Help, Register, Log In) */
.v2-brand-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: nowrap;
}

.v2-utility-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--duration-150) var(--ease-in-out);
    text-decoration: none;
    color: var(--gray-700);
    white-space: nowrap;
}

.v2-utility-btn:hover {
    background-color: var(--gray-100);
    color: var(--blue-900);
}

.v2-utility-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.v2-utility-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: currentColor;
    white-space: nowrap;
}

/* Login button emphasis */
.v2-login-btn {
    color: var(--blue-900);
}

.v2-login-btn:hover {
    background-color: var(--blue-50);
}

/* Search button styling */
.v2-search-btn {
    color: var(--gray-600);
}

.v2-search-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

/* -----------------------------------------
   V2 ROW 2: NAVIGATION BAR (~60px)
   Nav Links (Serif) | JOIN AMAC Button
   ----------------------------------------- */
.v2-nav-bar {
    background-color: var(--color-white);
    height: var(--v2-nav-bar-height);
    position: fixed;
    top: calc(var(--announcement-height) + var(--v2-brand-bar-height));
    left: 0;
    right: 0;
    z-index: var(--z-50);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: top 0.3s ease-out;
}

/* When announcement is hidden */
.announcement-bar.hidden ~ .v2-brand-bar ~ .v2-nav-bar,
body.announcement-dismissed .v2-nav-bar {
    top: var(--v2-brand-bar-height);
}

.v2-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-inline: var(--nav-padding-desktop);
    max-width: none;
}

/* Override nav-list styles for V2 serif typography */
.v2-nav-bar .nav-list {
    gap: var(--space-1);
}

.v2-nav-bar .nav-link {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--gray-800);
    padding: var(--space-3) var(--space-4);
    letter-spacing: 0.01em;
}

.v2-nav-bar .nav-link:hover {
    color: var(--blue-900);
    background-color: var(--gray-50);
}

.v2-nav-bar .nav-link .chevron {
    width: 16px;
    height: 16px;
    margin-left: var(--space-1);
    opacity: 0.6;
}

/* Right Side: JOIN AMAC CTA */
.v2-nav-right {
    display: flex;
    align-items: center;
}

.v2-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2-5) var(--space-6);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-white);
    background-color: var(--red-600);
    border-radius: var(--radius-md);
    transition: all var(--duration-150) var(--ease-in-out);
    text-decoration: none;
}

.v2-join-btn:hover {
    background-color: var(--red-700);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 35, 46, 0.25);
}

/* V2 Search Mega Menu (triggered from brand bar) */
.v2-search-mega-menu.mega-menu {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Position below brand bar: announcement + brand bar */
    top: calc(var(--announcement-height) + var(--v2-brand-bar-height)) !important;
    width: 800px;
    max-width: calc(100vw - 48px);
    background-color: var(--color-white);
    border: 1px solid #e5e5e5;
    border-top: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 9999 !important;  /* Ensure it's above everything */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-150) var(--ease-out),
                visibility var(--duration-150) var(--ease-out);
}

/* When announcement bar is dismissed */
body.announcement-dismissed .v2-search-mega-menu {
    top: var(--v2-brand-bar-height);
}

/* Show search mega menu when active */
.v2-search-mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Override hidden attribute display */
.v2-search-mega-menu[hidden] {
    display: none;
}

.v2-search-mega-menu:not([hidden]) {
    display: block;
}

/* Active state for search button */
.v2-search-btn[aria-expanded="true"] {
    background-color: var(--gray-100);
    color: var(--blue-900);
}

/* -----------------------------------------
   V2 RESPONSIVE ADJUSTMENTS
   ----------------------------------------- */
@media (max-width: 1024px) {
    .v2-tagline {
        display: none;
    }

    .v2-brand-divider {
        display: none;
    }

    .v2-utility-label {
        display: none;
    }

    .v2-utility-btn {
        padding: var(--space-2);
    }

    .v2-utility-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --v2-brand-bar-height: 60px;
        --v2-nav-bar-height: 0px;  /* Hide nav bar on mobile */
    }

    .v2-nav-bar {
        display: none;
    }

    .v2-brand-right {
        gap: var(--space-1);
    }

    .v2-logo-img {
        height: 40px;
    }
}

/* -----------------------------------------
   6. MAIN HEADER NAV (Enterprise Primary Nav)
   NOTE: Hidden in V2 - using .v2-nav-bar instead
   ----------------------------------------- */
.main-header {
    display: none;  /* Hidden in V2 layout */
    background-color: var(--color-white);
    height: var(--nav-height-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: fixed;
    left: 0;
    right: 0;
    z-index: var(--z-50);
    border-bottom: 1px solid var(--gray-200);
    /* top position controlled by announcement bar rules above */
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-inline: var(--nav-padding-desktop);
    max-width: none;  /* Full width with padding */
}

/* Logo - Commands attention */
.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--duration-150) var(--ease-in-out);
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-logo-img {
    width: 130px;   /* Larger for authority */
    height: auto;
}

/* Navigation List - 4 items only */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);  /* Tighter, controlled spacing */
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Nav Links - Authority Typography (4-item mega menu nav) */
/* "Trusted Authority" Typography - Editorial Nav Style */
.nav-link {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;               /* Editorial size - reduced for balance */
    font-weight: 500;              /* Medium weight for editorial look */
    letter-spacing: -0.01em;       /* Tight tracking for editorial style */
    color: #0F172A;                /* Dark Navy Blue */
    padding: var(--space-2) var(--space-3);  /* Tighter horizontal spacing */
    padding-bottom: 6px;           /* Space for underline */
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    position: relative;
    transition: color var(--duration-200) var(--ease-in-out);
    min-height: var(--space-11);
}

/* Slide-in Red Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #D9232E;     /* AMAC Red */
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link[aria-expanded="true"]::after {
    width: calc(100% - var(--space-8));  /* Underline width matches text */
}

.nav-link:hover,
.nav-link:focus {
    color: #0F172A;                /* Keep dark on hover */
}

.chevron {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.5;   /* Subtle, not prominent */
    transition: transform var(--duration-200) var(--ease-out),
                opacity var(--duration-200) var(--ease-out);
}

.nav-link:hover .chevron {
    opacity: 0.7;
}

/* Rotate chevron when dropdown is expanded (via aria-expanded) */
.nav-link[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* Visual affordance that nav items with dropdowns are clickable */
.nav-link[aria-haspopup="true"] {
    cursor: pointer;
}

/* Active/expanded state - subtle underline */
.nav-link[aria-expanded="true"],
.nav-link.active {
    color: var(--color-liberty-blue);
    border-bottom-color: var(--color-liberty-blue);
}

/* -----------------------------------------
   6b. HEADER ACTIONS (Login + Join CTA)
   Professional Utility Area - Distinct from main nav
   ----------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: var(--space-6);
}

/* Member Login Link - Secondary Action */
.header-login {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;              /* Semi-Bold */
    color: #475569;                /* Slate Gray */
    padding: var(--space-2) 0;
    transition: color var(--duration-150) var(--ease-in-out);
}

.header-login:hover {
    color: #0F172A;                /* AMAC Blue on hover */
}

/* User/Profile Icon */
.login-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Vertical Divider */
.header-divider {
    display: block;
    width: 1px;
    height: 24px;
    background-color: #CBD5E1;     /* Light Gray */
    margin: 0 16px;                /* Even spacing on both sides */
    flex-shrink: 0;                /* Prevent collapse */
}

/* Join AMAC Button - Primary CTA (Legacy) */
.header-join {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 700;              /* Bold */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    background-color: #D9232E;     /* AMAC Red */
    padding: var(--space-2-5) var(--space-5);
    border-radius: 4px;            /* Slightly rounded - Authority look */
    transition: all var(--duration-150) var(--ease-in-out);
    box-shadow: 0 2px 5px rgba(217, 35, 46, 0.3);  /* Subtle red drop shadow */
}

.header-join:hover {
    background-color: #B91C26;     /* Darker red on hover */
    transform: translateY(-1px);   /* Lift effect */
    box-shadow: 0 4px 8px rgba(217, 35, 46, 0.4);
}

/* JOIN AMAC - Large Red CTA Button (New Design) */
.header-join-cta {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 700;              /* Bold */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF !important;
    background-color: #D9232E;     /* AMAC Red */
    padding: var(--space-3) var(--space-6);
    border-radius: 4px;            /* Sharp corners - Authority */
    transition: all var(--duration-150) var(--ease-in-out);
    box-shadow: 0 2px 8px rgba(217, 35, 46, 0.35);
    white-space: nowrap;
}

.header-join-cta:hover {
    background-color: #B91C26;     /* Darker red on hover */
    transform: translateY(-2px);   /* Lift effect */
    box-shadow: 0 4px 12px rgba(217, 35, 46, 0.45);
    color: #FFFFFF !important;
}

.header-join-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(217, 35, 46, 0.3);
}

/* -----------------------------------------
   7. REGULAR DROPDOWN (About) - Enterprise Style
   ----------------------------------------- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 220px;
    border: 1px solid #e5e5e5;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  /* Professional shadow */
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity var(--duration-150) var(--ease-out),
                transform var(--duration-150) var(--ease-out),
                visibility var(--duration-150) var(--ease-out);
    pointer-events: none;
    padding: var(--space-2) 0;
}

/* Align last nav item dropdown to right edge to prevent cutoff */
.nav-item:last-child .dropdown {
    left: auto;
    right: 0;
}

/* Show dropdown via aria-expanded (works with click AND hover via JS) */
.nav-link[aria-expanded="true"] + .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* "Trusted Authority" - Dropdown Links */
.dropdown a {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #334155;                /* Slate Gray */
    line-height: var(--leading-normal);
    transition: background-color var(--duration-150) var(--ease-in-out),
                color var(--duration-150) var(--ease-in-out);
}

.dropdown a:hover,
.dropdown a:focus {
    background-color: var(--gray-50);
    color: var(--color-liberty-blue);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--gray-100);
    margin: var(--space-2) var(--space-4);
}

/* -----------------------------------------
   8. MEGA MENU (Enterprise Style)
   ----------------------------------------- */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: var(--color-white);
    width: 800px;
    max-width: calc(100vw - 48px);  /* Account for page padding */
    border: 1px solid #e5e5e5;
    border-top: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);  /* Professional shadow */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-150) var(--ease-out),
                transform var(--duration-150) var(--ease-out),
                visibility var(--duration-150) var(--ease-out);
    pointer-events: none;
}

/* Center mega menus relative to viewport, not nav item */
.nav-item.has-mega-menu .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    /* Position below header: announcement bar height + main nav height */
    top: calc(var(--announcement-height) + var(--nav-height-main));
}

/* When announcement bar is dismissed, adjust mega menu position */
body.announcement-dismissed .nav-item.has-mega-menu .mega-menu {
    top: var(--nav-height-main);
}

/* Show mega menu via aria-expanded (works with click AND hover via JS) */
.nav-item.has-mega-menu .nav-link[aria-expanded="true"] + .mega-menu,
.nav-item.has-mega-menu:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
    pointer-events: auto;
}

/* V2 MEGA MENU POSITION OVERRIDE - must come after generic rules */
.v2-nav-bar .nav-item.has-mega-menu .mega-menu {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: calc(var(--announcement-height) + var(--v2-brand-bar-height) + var(--v2-nav-bar-height) + 1px) !important;
    margin-top: 0 !important;
    border-top: none !important;
}

body.announcement-dismissed .v2-nav-bar .nav-item.has-mega-menu .mega-menu {
    top: calc(var(--v2-brand-bar-height) + var(--v2-nav-bar-height) + 1px) !important;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    padding: var(--space-5);
}

/* 4-column mega menu (Benefits) - wider to fit 4 columns */
.mega-menu:has(.mega-column:nth-child(4)) {
    width: 960px;
}

.mega-menu-inner:has(.mega-column:nth-child(4)) {
    grid-template-columns: repeat(4, 1fr);
}

.mega-column {
    /* Column styles */
}

.mega-column-featured {
    /* Featured column (e.g., Medicare) */
}

/* "Trusted Authority" - Mega Menu Section Headers */
.mega-column-title {
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 11px;               /* Small, refined */
    font-weight: 700;              /* Bold */
    text-transform: uppercase;
    letter-spacing: 0.05em;        /* Wide tracking */
    color: #64748B;                /* Muted Blue-Gray */
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-1-5);
    border-bottom: 2px solid var(--gray-200);
}

.mega-icon {
    width: var(--space-4);
    height: var(--space-4);
    fill: var(--color-constitution-gold);
}

/* "Trusted Authority" - Mega Menu Links */
.mega-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-links a {
    display: flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;               /* Clean, readable */
    font-weight: 400;
    color: #334155;                /* Slate Gray */
    line-height: var(--leading-tight);
    min-height: var(--space-8);    /* 32px - compact */
    border-radius: var(--radius);
    transition: all var(--duration-150) var(--ease-in-out);
}

.mega-links a:hover {
    background-color: var(--color-cream);
    color: var(--color-liberty-blue);
    padding-left: var(--space-4);
}

.mega-links .featured-action {
    color: var(--color-patriot-red);
    font-weight: var(--font-semibold);
}

/* Mega Menu Footer (Featured CTA) */
.mega-footer {
    background-color: var(--color-cream);
    padding: var(--space-3) var(--space-5);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mega-footer-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.mega-footer-triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-3);
    align-items: start;  /* Align CTAs at top */
}

.mega-cta {
    display: block;
    padding: var(--space-2-5) var(--space-3);
    background-color: var(--color-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all var(--duration-150) var(--ease-in-out);
}

.mega-cta:hover {
    border-color: var(--color-constitution-gold);
    box-shadow: var(--shadow-md);
}

.mega-cta-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-patriot-red);
    background-color: var(--red-50);
    padding: var(--space-0-5) var(--space-1-5);
    border-radius: var(--radius);
    margin-bottom: var(--space-1);
}

.mega-cta-action {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-liberty-blue);
    margin-top: var(--space-1);
}

/* Mega CTA with Image */
.mega-cta-with-image {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.mega-cta-image {
    width: 80px;
    height: 64px;      /* Fixed height for consistency */
    object-fit: cover;
    flex-shrink: 0;
}

.mega-cta-content {
    padding: var(--space-2-5) var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Align content at top for consistent spacing */
}

.mega-cta-secondary {
    background-color: transparent;
}

.mega-cta-action-red {
    background-color: var(--color-patriot-red);
    color: var(--color-white);
    border-color: var(--color-patriot-red);
}

.mega-cta-action-red .mega-cta-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.mega-cta-action-red .mega-cta-action {
    color: var(--color-white);
}

.mega-cta-action-red:hover {
    background-color: var(--red-700);
    border-color: var(--red-700);
}

/* -----------------------------------------
   8a. SERVICES MEGA MENU WITH HERO BANNER
   Stacked layout: Links on top, Hero Banner on bottom
   Hero Banner: 30/70 two-column grid
   ----------------------------------------- */
.mega-menu-services {
    width: 800px;  /* Standard mega menu width */
}

/* Hero Banner - Full Width Bottom Section with 30/70 Grid */
.mega-hero-banner {
    display: grid;
    grid-template-columns: 30% 1fr;  /* 30% left, remaining space for right */
    gap: var(--space-5);  /* Tighter gap to maximize text space */
    padding: var(--space-5) var(--space-4) var(--space-5) var(--space-5);  /* Reduced right padding */
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Left Column (30%): Action Side */
.hero-action-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    text-align: center;
}

/* Avatar Stack */
.hero-avatars {
    display: flex;
    justify-content: center;
}

.hero-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-white);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.hero-avatar:not(:first-child) {
    margin-left: -12px;
}

/* US-Based Support Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    background-color: var(--blue-50);
    color: var(--color-liberty-blue);
    font-size: 10px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: var(--space-1-5) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--blue-100);
    white-space: nowrap;
}

.hero-badge .flag-icon {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
}

/* Hero CTA Button - AMAC Dark Blue */
.hero-cta {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-liberty-blue);
    border-radius: var(--radius);
    transition: all var(--duration-150) var(--ease-in-out);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    margin-top: var(--space-2);
}

.hero-cta:hover {
    background-color: var(--blue-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Blue CTA Variant - AMAC Dark Blue */
.hero-cta-blue {
    background-color: #002868;  /* AMAC Dark Blue / Liberty Blue */
}

.hero-cta-blue:hover {
    background-color: #001a4d;  /* Darker on hover */
}

/* Phone Link - Below CTA */
.hero-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-2);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 13px;
    color: #475569;  /* Slate gray */
    transition: color var(--duration-150) var(--ease-in-out);
}

.hero-phone-link:hover {
    color: #002868;  /* AMAC Blue on hover */
}

.hero-phone-link strong {
    font-weight: 700;
    color: #334155;  /* Darker for emphasis */
}

.hero-phone-link:hover strong {
    color: #002868;
}

.hero-phone-link .phone-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Right Column (70%): Info Side */
.hero-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    min-width: 0;  /* Allow flex child to shrink below content size */
    width: 100%;   /* Fill available grid cell space */
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-liberty-blue);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2);
}

.hero-subheadline {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    max-width: 100%;  /* Use full available width */
}

/* Hero Checklist - 2x2 Grid */
.hero-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-6);
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-charcoal);
    line-height: var(--leading-snug);
}

.hero-checklist .check-icon {
    width: 18px;
    height: 18px;
    fill: #22c55e;  /* Green checkmark */
    flex-shrink: 0;
}

/* Hero Benefit Grid (2x2) - "Genuine Support" Layout */
.hero-benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-5);
}

.hero-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.hero-benefit-item .check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-benefit-item .benefit-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-benefit-item .benefit-content strong {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-liberty-blue);
    line-height: 1.3;
}

.hero-benefit-item .benefit-content span {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

/* Responsive: Stack columns on tablet/mobile */
@media (max-width: 1023px) {
    .mega-menu-services {
        width: 95vw;
    }

    .mega-hero-banner {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    /* Info first, then Action on mobile */
    .hero-info-column {
        order: 1;
        text-align: center;
    }

    .hero-action-column {
        order: 2;
    }

    .hero-checklist {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-checklist li {
        justify-content: center;
    }

    .hero-benefit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .hero-benefit-item {
        text-align: left;
    }
}

/* -----------------------------------------
   8a-2. ADVOCACY HERO CARD (Get Involved)
   Variant with square image and 6-item grid
   ----------------------------------------- */

/* Square Image Container (1:1 aspect ratio) */
.advocacy-hero .hero-image-container {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.advocacy-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Body paragraph for longer copy */
.hero-body {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    max-width: 100%;
}

/* 6-Item Priorities Grid (2 columns x 3 rows for better readability) */
.hero-priorities-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2) var(--space-6);
}

.hero-priorities-grid li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-charcoal);
    line-height: var(--leading-snug);
}

.hero-priorities-grid .check-icon {
    width: 16px;
    height: 16px;
    fill: #22c55e;  /* Green checkmark */
    flex-shrink: 0;
}

/* Responsive: Stack and adjust grid on mobile */
@media (max-width: 1023px) {
    .advocacy-hero .hero-image-container {
        max-width: 120px;
    }

    .hero-priorities-grid li {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-priorities-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* -----------------------------------------
   8a-3. DUAL FEATURE CARDS (Explore Menu)
   Two equal-width cards matching Services design system
   ----------------------------------------- */

/* Container: Flex row with 50/50 split */
.mega-feature-cards {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Individual Feature Card */
.feature-card {
    flex: 1;
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-in-out);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-200);
}

/* Card Image (Left Side) */
.feature-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content (Right Side) */
.feature-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.feature-card-title {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--color-liberty-blue);
    margin-bottom: var(--space-1);
    line-height: var(--leading-snug);
}

.feature-card-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-amac-blue);
    transition: color var(--duration-150) var(--ease-in-out);
}

.feature-card:hover .feature-card-link {
    color: var(--color-liberty-blue);
}

.feature-card-link .arrow-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--duration-150) var(--ease-in-out);
}

.feature-card:hover .feature-card-link .arrow-icon {
    transform: translateX(3px);
}

/* Responsive: Stack cards on mobile */
@media (max-width: 768px) {
    .mega-feature-cards {
        flex-direction: column;
        gap: var(--space-3);
    }

    .feature-card {
        flex: none;
    }
}

/* -----------------------------------------
   8a-3b. COMPACT PROMO CARDS (Inline in Columns)
   Horizontal layout: [Thumb 60px] [Title + Link]
   Used in Explore mega menu columns
   ----------------------------------------- */
.compact-promo-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-6);  /* 24px separation from links above */
    padding: var(--space-3);
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-150) var(--ease-in-out);
}

.compact-promo-card:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compact-promo-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.compact-promo-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;  /* Allow text truncation */
}

.compact-promo-title {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--blue-900);
    margin: 0;
    line-height: 1.3;
}

.compact-promo-text {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

.compact-promo-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-amac-red);
    margin-top: var(--space-1);
    transition: gap var(--duration-150) var(--ease-in-out);
}

.compact-promo-card:hover .compact-promo-link {
    gap: var(--space-2);
}

.compact-promo-link .arrow-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform var(--duration-150) var(--ease-in-out);
}

.compact-promo-card:hover .compact-promo-link .arrow-icon {
    transform: translateX(2px);
}

/* Explore mega menu specific styling */
.mega-menu-explore .mega-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-explore .mega-links {
    flex-grow: 0;
}

.mega-menu-explore .compact-promo-card {
    margin-top: auto;  /* Push to bottom of column */
    padding-top: var(--space-6);  /* Extra top spacing */
}

/* -----------------------------------------
   8a-4. BENEFIT CARDS (Benefits Menu)
   Three vertical cards (33% each) matching design system
   ----------------------------------------- */

/* Container: Flex row with equal-width cards */
.mega-benefit-cards {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Individual Benefit Card - Vertical Layout */
.benefit-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-in-out);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--gray-200);
}

/* Card Image (Top) - Fixed Height Container */
.benefit-card-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.benefit-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-300) var(--ease-in-out);
}

.benefit-card:hover .benefit-card-image img {
    transform: scale(1.05);
}

/* Card Content (Middle & Bottom) */
.benefit-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: var(--space-4);
    text-align: center;
}

.benefit-card-title {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-liberty-blue);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.benefit-card-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: var(--space-3);
    flex-grow: 1;
}

.benefit-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-amac-blue);
    transition: color var(--duration-150) var(--ease-in-out);
    margin-top: auto;
}

.benefit-card:hover .benefit-card-link {
    color: var(--color-liberty-blue);
}

.benefit-card-link .arrow-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--duration-150) var(--ease-in-out);
}

.benefit-card:hover .benefit-card-link .arrow-icon {
    transform: translateX(3px);
}

/* Responsive: Stack cards on mobile */
@media (max-width: 900px) {
    .mega-benefit-cards {
        flex-direction: column;
        gap: var(--space-3);
    }

    .benefit-card {
        flex-direction: row;
        height: auto;
    }

    .benefit-card-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .benefit-card-content {
        text-align: left;
        padding: var(--space-3);
    }

    .benefit-card-link {
        justify-content: flex-start;
    }
}

/* -----------------------------------------
   8b. SEARCH MEGA MENU
   Premium search experience with quick actions
   ----------------------------------------- */
/* Search positioned before header actions */
.nav-item-search {
    margin-left: auto;
    margin-right: var(--space-2);
}

/* -----------------------------------------
   12. ABOUT MEGA MENU - Heritage Hero Card
   Left Sidebar (25%) + Hero Card (75%)
   ----------------------------------------- */
.mega-menu-about {
    width: 900px;
}

.mega-about-layout {
    display: flex;
    gap: 0;
    padding: 0;
}

/* Left Sidebar: Navigation Links (25%) */
.about-nav-sidebar {
    width: 25%;
    min-width: 200px;
    padding: var(--space-5);
    border-right: 1px solid #e5e7eb;
    background-color: var(--color-white);
}

.about-nav-sidebar .mega-column-title {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid #e5e7eb;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.about-links li a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;              /* Match other mega-links */
    color: #334155;
    border-radius: 4px;            /* Match other mega-links */
    transition: all var(--duration-150) var(--ease-in-out);
}

.about-links li a:hover {
    background-color: var(--color-cream);      /* Match other menus */
    color: var(--color-liberty-blue);          /* Match other menus */
    padding-left: var(--space-4);              /* Slide effect via padding */
}

/* Heritage Hero Card (75%) */
.heritage-hero-card {
    flex: 1;
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: var(--space-5);
    padding: var(--space-5);
    background-color: var(--color-white);
    border-radius: 0 0 8px 0;
}

/* Left Column: Visuals (30%) */
.heritage-visual-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.heritage-image-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.heritage-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Trust Badge */
.heritage-trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.trust-flag-icon {
    width: 24px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
}

.trust-badge-text {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Right Column: Story & Mission (70%) */
.heritage-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heritage-headline {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.heritage-subheadline {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: var(--space-4);
}

/* Value Proposition Grid (2x2) */
.heritage-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-4);
    margin-bottom: 0;  /* No CTA below, clean bottom edge */
}

.heritage-value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.heritage-check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.heritage-value-item span {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

/* Heritage CTA Button */
.heritage-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2-5) var(--space-5);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #00549b;
    border-radius: 6px;
    transition: all var(--duration-150) var(--ease-in-out);
    align-self: flex-start;
}

.heritage-cta:hover {
    background-color: #003d73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 84, 155, 0.3);
}

/* -----------------------------------------
   13. SEARCH NAV ITEM & MEGA MENU
   ----------------------------------------- */
.nav-link-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link-search .search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mega-menu-search {
    width: 500px;
    right: 0;
    left: auto;
}

.mega-menu-search .mega-menu-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-6);
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: var(--space-4);
    width: 20px;
    height: 20px;
    fill: var(--gray-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-12);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background-color: var(--gray-50);
    transition: all var(--duration-150) var(--ease-in-out);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-liberty-blue);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-shortcut {
    position: absolute;
    right: var(--space-3);
    padding: var(--space-1) var(--space-2);
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: var(--font-medium);
    color: var(--gray-400);
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

/* Section Titles */
.search-section-title {
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

/* Quick Search Pills */
.search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.search-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-2) var(--space-3);
    font-size: 13px;
    font-weight: var(--font-medium);
    color: var(--color-liberty-blue);
    background-color: var(--blue-50);
    border-radius: var(--radius-full);
    transition: all var(--duration-150) var(--ease-in-out);
}

.search-pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}

.search-pill:hover {
    background-color: var(--color-liberty-blue);
    color: var(--color-white);
}

.search-pill:hover svg {
    opacity: 1;
}

/* Popular Searches */
.search-popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.search-popular-list li a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: 14px;
    color: var(--color-charcoal);
    border-radius: var(--radius);
    transition: all var(--duration-150) var(--ease-in-out);
}

.search-popular-list li a:hover {
    background-color: var(--gray-50);
    color: var(--color-liberty-blue);
}

/* Search Footer */
.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

.search-tip {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 12px;
    color: var(--gray-500);
}

.search-tip kbd {
    padding: var(--space-0-5) var(--space-1-5);
    font-size: 11px;
    font-family: var(--font-sans);
    background-color: var(--color-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.mega-cta-link {
    font-size: 13px;
    font-weight: var(--font-semibold);
    color: var(--color-liberty-blue);
}

.mega-cta-link:hover {
    text-decoration: underline;
}

/* -----------------------------------------
   9. MOBILE MENU TOGGLE
   ----------------------------------------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: var(--space-12);
    height: var(--space-12);
    gap: var(--space-1);
}

.hamburger-line {
    width: var(--space-6);
    height: var(--space-0-5);
    background-color: var(--color-liberty-blue);
    border-radius: var(--radius-full);
    transition: all var(--duration-150) var(--ease-in-out);
}

/* -----------------------------------------
   10. MOBILE NAVIGATION DRAWER
   ----------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-50) + 48);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-200) var(--ease-out);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: calc(var(--z-50) + 49);
    box-shadow: var(--shadow-2xl);
    transition: right var(--duration-200) var(--ease-out);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--color-liberty-blue);
}

.mobile-nav-title {
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--color-white);
}

.mobile-nav-close {
    width: var(--space-11);
    height: var(--space-11);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.mobile-nav-close svg {
    width: var(--space-6);
    height: var(--space-6);
    fill: currentColor;
}

.mobile-nav-list {
    padding: var(--space-4) 0;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-liberty-blue);
    border-bottom: 1px solid var(--gray-200);
    min-height: var(--space-14);  /* 56px - generous touch target for seniors */
    transition: background-color var(--duration-150) var(--ease-in-out);
}

.mobile-nav-list > li > a:hover {
    background-color: var(--color-cream);
}

/* Mobile Expandable Sections */
.mobile-nav-section {
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-liberty-blue);
    background: none;
    border: none;
    cursor: pointer;
    min-height: var(--space-14);
    transition: background-color var(--duration-150) var(--ease-in-out);
}

.mobile-nav-toggle:hover {
    background-color: var(--color-cream);
}

.mobile-chevron {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.5;
    transition: transform var(--duration-200) var(--ease-out);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-subnav {
    display: none;
    background-color: var(--gray-50);
    padding: var(--space-2) 0;
}

.mobile-nav-toggle[aria-expanded="true"] + .mobile-subnav {
    display: block;
}

.mobile-subnav li a {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-6) var(--space-3) var(--space-10);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--color-charcoal);
    min-height: var(--space-12);
    transition: all var(--duration-150) var(--ease-in-out);
}

.mobile-subnav li a:hover {
    background-color: var(--gray-100);
    color: var(--color-liberty-blue);
}

.mobile-nav-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: var(--space-4) 0;
}

.mobile-join-btn {
    background-color: var(--color-patriot-red) !important;
    color: var(--color-white) !important;
    margin: var(--space-4) var(--space-6);
    border-radius: var(--radius);
    text-align: center;
}

/* -----------------------------------------
   11. MOBILE BOTTOM TAB BAR (4 items)
   ----------------------------------------- */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height-mobile-tab);
    background-color: var(--color-white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: var(--z-50);
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    min-width: var(--space-20);
    min-height: var(--space-14);  /* 56px - generous touch target for seniors */
    color: var(--gray-600);       /* improved contrast */
    transition: color var(--duration-150) var(--ease-in-out);
}

.tab-item:hover,
.tab-item:focus,
.tab-item.active {
    color: var(--color-patriot-red);
}

.tab-icon {
    width: var(--space-6);
    height: var(--space-6);
    fill: currentColor;
}

.tab-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-tight);
}

/* -----------------------------------------
   12. HERO SECTION
   ----------------------------------------- */
.hero-section {
    position: relative;
    color: var(--color-white);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 40, 104, 0.85) 0%, rgba(0, 26, 77, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: var(--z-10);
    text-align: center;
    padding: var(--space-20) var(--space-5);
}

.hero-title {
    font-family: var(--font-serif);      /* Merriweather for headlines */
    font-size: var(--text-5xl);          /* 48px - H1 hero per brand */
    font-weight: var(--font-bold);       /* 700 - per brand serif weights */
    line-height: var(--leading-tight);   /* 1.2 for headings */
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.hero-subtitle {
    font-size: var(--text-xl);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    opacity: 0.95;
    line-height: var(--leading-relaxed);
}

.hero-ctas {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius);
    transition: all var(--duration-150) var(--ease-in-out);
    min-height: var(--space-11);
}

.btn-primary {
    background-color: var(--color-patriot-red);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--red-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-liberty-blue);
}

/* -----------------------------------------
   13. PROTOTYPE INFO SECTION
   ----------------------------------------- */
.prototype-info {
    padding: var(--space-16) 0;
    background-color: var(--color-white);
}

.info-card {
    background-color: var(--color-cream);
    padding: var(--space-10);
    border-radius: var(--radius-lg);
    border-left: var(--space-1) solid var(--color-constitution-gold);
}

.info-card h2 {
    font-family: var(--font-serif);      /* Merriweather for headlines */
    font-size: var(--text-4xl);          /* 36px - H2 section per brand */
    font-weight: var(--font-bold);       /* 700 - per brand */
    line-height: var(--leading-tight);
    color: var(--color-liberty-blue);
    margin-bottom: var(--space-4);
}

.info-card h3 {
    font-family: var(--font-serif);  /* Merriweather for headlines */
    font-size: var(--text-3xl);      /* 28px - H3 subsection per brand */
    font-weight: var(--font-bold);   /* 700 - per brand */
    color: var(--color-liberty-blue);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.info-card p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.info-card ul {
    list-style: disc;
    padding-left: var(--space-6);
}

.info-card li {
    margin-bottom: var(--space-2);
}

/* -----------------------------------------
   14. SCROLL TEST SECTION
   ----------------------------------------- */
.scroll-test {
    padding: var(--space-16) 0;
}

.scroll-test h2 {
    font-family: var(--font-serif);  /* Merriweather for headlines */
    font-size: var(--text-4xl);      /* 36px - H2 section per brand */
    font-weight: var(--font-bold);   /* 700 - per brand */
    line-height: var(--leading-tight);
    color: var(--color-liberty-blue);
    margin-bottom: var(--space-4);
}

.placeholder-content {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.placeholder-block {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: var(--radius-lg);
}

/* -----------------------------------------
   15. FOOTER - Trusted Authority Design System
   ----------------------------------------- */
.site-footer {
    margin-top: var(--space-16);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Newsletter Bar */
.newsletter-bar {
    background-color: var(--color-patriot-red);
    padding: var(--space-8) 0;
}

.newsletter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.newsletter-content {
    flex: 1;
    min-width: 280px;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-family: var(--font-sans);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.newsletter-form {
    flex: 1.2;
    min-width: 320px;
}

.newsletter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.input-group {
    flex: 1;
    min-width: 140px;
}

.newsletter-fields input {
    flex: 1;
    min-width: 150px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid transparent;
    border-radius: var(--radius);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    transition: border-color var(--duration-150) var(--ease-in-out);
}

.newsletter-fields input:focus {
    outline: none;
    border-color: var(--color-constitution-gold);
}

.newsletter-fields input::placeholder {
    color: var(--gray-500);  /* improved contrast for placeholder text */
}

.btn-subscribe {
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-liberty-blue);
    background-color: var(--color-constitution-gold);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration-150) var(--ease-in-out);
}

.btn-subscribe:hover {
    background-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Footer */
.footer-main {
    background-color: var(--color-liberty-blue);
    padding: var(--space-16) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
}

.footer-column {
    /* Column base styles */
}

.footer-brand {
    /* Brand column */
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-5);
}

.footer-logo img {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1); /* Make logo white on dark background */
}

.footer-mission {
    color: rgba(255, 255, 255, 0.9);  /* improved contrast for seniors */
    font-size: var(--text-base);       /* larger text for readability */
    line-height: var(--leading-relaxed);
}

/* Social icons/links under mission text */
.footer-brand .social-icons {
    margin-top: var(--space-5);
}

.footer-brand .social-links {
    margin-top: var(--space-6);
}

.footer-heading {
    color: var(--color-constitution-gold);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

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

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);  /* improved contrast for seniors */
    font-size: var(--text-base);       /* larger text for readability */
    transition: color var(--duration-150) var(--ease-in-out);
}

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

/* External link icon in footer */
.footer-links .external-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
}

.footer-links .external-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    opacity: 0.5;
    transition: opacity var(--duration-150) var(--ease-in-out);
}

.footer-links .external-link:hover .external-icon {
    opacity: 1;
}

/* Social Icons */
.footer-social {
    margin-top: var(--space-6);
}

.footer-social .footer-heading {
    margin-bottom: var(--space-3);
}

.social-icons {
    display: flex;
    gap: var(--space-3);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--space-11);   /* 44px - WCAG touch target minimum */
    height: var(--space-11);  /* 44px - WCAG touch target minimum */
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: all var(--duration-150) var(--ease-in-out);
}

.social-icons a:hover {
    background-color: var(--color-constitution-gold);
    color: var(--color-liberty-blue);
    transform: translateY(-2px);
}

.social-icons svg {
    width: var(--space-5);
    height: var(--space-5);
}

/* Social Links - Outlined Circles (New Design) */
.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--duration-150) var(--ease-in-out);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* X/Twitter and some icons use filled paths */
.social-link svg path:only-child {
    fill: currentColor;
    stroke: none;
}

/* YouTube polygon needs fill */
.social-link svg polygon {
    fill: currentColor;
    stroke: none;
}

.social-link:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-liberty-blue);
}

.social-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* AMAC Network Links */
.footer-network {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-network li {
    margin-bottom: var(--space-2); /* Match Quick Links spacing */
}

.network-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    padding: 0;
    transition: transform var(--duration-150) var(--ease-in-out);
}

.network-link:hover {
    transform: translateX(4px);
}

.network-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.network-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--color-constitution-gold);
    transition: fill var(--duration-150) var(--ease-in-out);
}

.network-text {
    font-family: var(--font-sans);
    font-size: var(--text-base); /* Match footer-links */
    font-weight: 400; /* Match footer-links */
    color: rgba(255, 255, 255, 0.9); /* Match footer-links */
    transition: color var(--duration-150) var(--ease-in-out);
}

.network-link:hover .network-icon svg {
    fill: var(--gold-400);
}

.network-link:hover .network-text {
    color: var(--color-constitution-gold);
}

.network-link:focus {
    outline: none;
}

.network-link:focus .network-text {
    color: var(--color-constitution-gold);
    text-decoration: underline;
}

/* Sub-Footer / Copyright Bar */
.footer-bottom {
    background-color: var(--color-liberty-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-5) 0;
}

.copyright-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.copyright-text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.legal-links a {
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--duration-150) var(--ease-in-out);
}

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

.legal-links .separator {
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.5;
}

/* Legacy support */
.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.copyright {
    color: rgba(255, 255, 255, 0.85);  /* improved contrast */
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);  /* improved contrast */
    font-size: var(--text-sm);
    transition: color var(--duration-150) var(--ease-in-out);
}

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

/* -----------------------------------------
   16. RESPONSIVE STYLES
   ----------------------------------------- */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .mega-menu {
        width: 95vw;
    }

    .mega-menu:has(.mega-column:nth-child(4)) {
        width: 95vw;
    }

    .mega-menu-inner {
        gap: var(--space-5);
        padding: var(--space-6);
    }

    /* Stack 4-column to 2x2 grid on tablet */
    .mega-menu-inner:has(.mega-column:nth-child(4)) {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Triple footer stacks to single column on tablet */
    .mega-footer-triple {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .nav-link {
        padding: 0 var(--space-3);
        font-size: var(--text-base);
    }

    .brand-logo-img {
        width: 90px;
    }

    /* Footer tablet - 3 column grid with network spanning full width */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--space-8);
    }

    /* Move network to its own row on tablet */
    .footer-grid .footer-column:last-child {
        grid-column: 1 / -1;
        padding-top: var(--space-6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-network {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-6);
    }

    .footer-network li {
        margin-bottom: 0;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    /* Hide utility bar on mobile */
    .utility-bar {
        display: none;
    }

    .nav-list,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-tab-bar {
        display: flex;
    }

    .search-text {
        display: none;
    }

    .main-header {
        height: var(--space-16);
        top: var(--announcement-height);  /* No utility bar on mobile */
    }

    body.announcement-dismissed .main-header {
        top: 0;
    }

    body {
        padding-top: calc(var(--announcement-height) + var(--space-16));
    }

    body.announcement-dismissed {
        padding-top: var(--space-16);
    }

    /* Hide announcement bar on very small screens or simplify */
    .announcement-text {
        font-size: 12px;
    }

    .announcement-cta {
        font-size: 11px;
        padding: var(--space-1) var(--space-3);
    }

    .brand-logo-img {
        width: 80px;
    }

    /* Hero adjustments */
    .hero-section {
        min-height: 400px;
    }

    .hero-content {
        padding: var(--space-12) var(--space-5) var(--space-32);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    main {
        padding-bottom: calc(var(--nav-height-mobile-tab) + var(--space-5));
    }

    .info-card {
        padding: var(--space-6);
    }

    /* Footer responsive */
    .newsletter-bar {
        padding: var(--space-6) 0;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content {
        min-width: 100%;
        text-align: center;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-form {
        min-width: 100%;
        width: 100%;
    }

    .newsletter-fields {
        flex-direction: column;
    }

    .input-group {
        min-width: 100%;
    }

    .btn-subscribe {
        width: 100%;
    }

    .footer-main {
        padding: var(--space-10) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .footer-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Network column */
    .footer-network {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .footer-network li {
        margin-bottom: 0;
    }

    .network-link {
        justify-content: center;
    }

    /* Copyright bar */
    .copyright-row {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* -----------------------------------------
   17. POLISH & ENHANCEMENTS (December 2025)
   Added: staggered animations, focus states,
   touch targets, visual refinements
   To rollback: restore from _backup/ folder
   ----------------------------------------- */

/* Enhanced focus ring for mega menu links (accessibility) */
.mega-links a:focus-visible {
    outline: var(--ring-width) solid var(--ring-color);
    outline-offset: 2px;
    border-radius: var(--radius);
    background-color: var(--color-cream);
}

.dropdown a:focus-visible {
    outline: var(--ring-width) solid var(--ring-color);
    outline-offset: -2px;
    background-color: var(--gray-50);
}

/* Hover shadow lift for mega CTAs */
.mega-cta {
    transform: translateY(0);
}

.mega-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Enhanced footer heading with underline */
.footer-heading {
    position: relative;
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--gold-500);
    display: inline-block;
    margin-bottom: var(--space-4);
}

/* Increased mobile subnav touch targets (48px minimum per WCAG) */
.mobile-subnav li a {
    min-height: var(--space-12);  /* 48px - up from 32px */
    padding: var(--space-3) var(--space-6) var(--space-3) var(--space-10);
}

/* Enhanced newsletter input focus state */
.newsletter-fields input:focus {
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.3);
}

/* Subtle hover effect on footer links */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--color-constitution-gold);
    transition: width var(--duration-200) var(--ease-out);
}

.footer-links a:hover::after {
    width: 100%;
}

/* -----------------------------------------
   18. SEARCH MEGA MENU V2 - Trusted Authority Experience
   ----------------------------------------- */

/* Accessibility Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Override base mega menu styles for search */
.mega-menu-search {
    width: 100%;
    max-width: 900px;
    right: 0;
    left: auto;
    padding: 0;
    /* Override the transform from base mega-menu since we use right positioning */
    transform: translateY(8px);
}

/* When search is open, don't apply translateX - just translateY(0) */
.nav-item-search .nav-link[aria-expanded="true"] + .mega-menu-search {
    transform: translateY(0);
}

/* Prevent :focus-within from keeping search menu open when input is focused */
.nav-item-search:focus-within .mega-menu-search {
    /* Only show via aria-expanded, not focus-within */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Override: Show search menu ONLY via aria-expanded */
.nav-item-search .nav-link[aria-expanded="true"] + .mega-menu-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu-search .mega-menu-inner {
    padding: 0;
}

/* Hero Search Input Area */
.mega-menu-search .search-hero {
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* Search Input Wrapper V2 */
.search-input-wrapper-v2 {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    background-color: var(--color-white);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color var(--duration-150) var(--ease-in-out), box-shadow var(--duration-150) var(--ease-in-out);
}

.search-input-wrapper-v2:focus-within {
    border-color: var(--color-amac-blue);
    box-shadow: 0 0 0 3px rgba(0, 84, 155, 0.15);
}

.search-input-icon-v2 {
    position: absolute;
    left: var(--space-4);
    width: 20px;
    height: 20px;
    fill: var(--color-liberty-blue);
    pointer-events: none;
}

.search-input-v2 {
    flex: 1;
    height: 100%;
    padding: 0 var(--space-4);
    padding-left: calc(var(--space-4) + 20px + var(--space-3));
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-liberty-blue);
    background: transparent;
    border: none;
}

.search-input-v2::placeholder {
    color: var(--gray-500);
    font-style: italic;
}

.search-input-v2:focus {
    outline: none;
}

/* Clear Button */
.mega-menu-search .search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: var(--space-2);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--duration-150) var(--ease-in-out);
}

.mega-menu-search .search-clear-btn:hover {
    background-color: var(--gray-100);
}

.mega-menu-search .search-clear-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-500);
}

.mega-menu-search .search-clear-btn[hidden] {
    display: none;
}

/* Search Body V2 */
.search-body-v2 {
    padding: var(--space-4) var(--space-5);
    max-height: 340px;
    overflow-y: auto;
}

/* Initial State - 2 Column Layout */
.search-initial-v2 {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-4);
}

/* Section Headers */
.search-section-header-v2 {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

/* Topic Grid (2x3) */
.topic-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.topic-card-v2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background-color: var(--gray-100);
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--duration-150) var(--ease-in-out);
    min-height: 40px;
}

.topic-card-v2:hover {
    background-color: var(--color-amac-blue);
    border-color: var(--color-amac-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 84, 155, 0.2);
}

.topic-card-v2:hover .topic-icon-v2,
.topic-card-v2:hover .topic-label-v2 {
    color: var(--color-white);
}

.topic-card-v2:focus-visible {
    outline: 3px solid var(--color-amac-blue);
    outline-offset: 2px;
}

.topic-icon-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--color-amac-blue);
    transition: color var(--duration-150) var(--ease-in-out);
}

.topic-icon-v2 svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.topic-label-v2 {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-liberty-blue);
    transition: color var(--duration-150) var(--ease-in-out);
}

/* Trending List */
.trending-list-v2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-item-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-2);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color var(--duration-150) var(--ease-in-out);
    min-height: 36px;
}

.trending-item-v2:hover {
    background-color: var(--gray-100);
}

.trending-item-v2:focus-visible {
    outline: 3px solid var(--color-amac-blue);
    outline-offset: 2px;
}

.trending-item-v2 span {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-liberty-blue);
}

.trending-arrow-v2 {
    width: 16px;
    height: 16px;
    fill: var(--gray-400);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--duration-150) var(--ease-in-out);
}

.trending-item-v2:hover .trending-arrow-v2 {
    opacity: 1;
    transform: translateX(0);
}

/* Active Results State */
.search-results-v2[hidden] {
    display: none;
}

/* Loading Skeleton */
.search-loading-v2[hidden] {
    display: none;
}

.skeleton-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.skeleton-column-v2 {
    display: flex;
    flex-direction: column;
}

.skeleton-header-v2,
.skeleton-card-v2,
.skeleton-item-v2 {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer-v2 1.5s infinite;
    border-radius: 6px;
}

.skeleton-header-v2 {
    height: 14px;
    width: 100px;
    margin-bottom: var(--space-4);
}

.skeleton-card-v2 {
    height: 80px;
    margin-bottom: var(--space-3);
}

.skeleton-item-v2 {
    height: 24px;
    margin-bottom: var(--space-2);
}

@keyframes shimmer-v2 {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Results Grid (3 Columns) */
.results-grid-v2 {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: var(--space-4);
}

.results-column-v2 {
    min-width: 0;
}

/* Result Cards (Top Matches) */
.result-card-v2 {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color var(--duration-150) var(--ease-in-out);
    margin-bottom: var(--space-1);
}

.result-card-v2:hover {
    background-color: var(--gray-100);
}

.result-card-v2:focus-visible {
    outline: 3px solid var(--color-amac-blue);
    outline-offset: 2px;
}

.result-thumbnail-v2 {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background-color: var(--gray-200);
}

.result-content-v2 {
    flex: 1;
    min-width: 0;
}

.result-title-v2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-liberty-blue);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-excerpt-v2 {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article/Resource Items */
.result-item-v2 {
    display: block;
    padding: var(--space-1-5) var(--space-2);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color var(--duration-150) var(--ease-in-out);
    min-height: 32px;
}

.result-item-v2:hover {
    background-color: var(--gray-100);
}

.result-item-v2:focus-visible {
    outline: 3px solid var(--color-amac-blue);
    outline-offset: 2px;
}

.result-item-title-v2 {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-liberty-blue);
    line-height: 1.4;
    margin-bottom: 2px;
}

.result-item-meta-v2 {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 12px;
    color: var(--gray-500);
}

/* No Results State */
.search-no-results-v2 {
    padding: var(--space-6);
    text-align: center;
}

.search-no-results-v2[hidden] {
    display: none;
}

.no-results-icon-v2 {
    width: 48px;
    height: 48px;
    fill: var(--gray-300);
    margin-bottom: var(--space-4);
}

.no-results-title-v2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-liberty-blue);
    margin-bottom: var(--space-2);
}

.no-results-text-v2 {
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Results Footer CTA */
.search-results-footer-v2 {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
}

.search-results-footer-v2[hidden] {
    display: none;
}

.results-see-all-v2 {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-2) var(--space-4);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-amac-blue);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color var(--duration-150) var(--ease-in-out);
    min-height: 36px;
}

.results-see-all-v2:hover {
    background-color: #003d73;
}

.results-see-all-v2:focus-visible {
    outline: 3px solid var(--color-amac-blue);
    outline-offset: 3px;
}

.results-see-all-v2 svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Keyboard Hints Footer */
.search-footer-v2 {
    padding: var(--space-2) var(--space-5);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.keyboard-hints-v2 {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.hint-v2 {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 12px;
    color: var(--gray-500);
}

.hint-v2 kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 var(--space-1-5);
    font-family: 'Open Sans', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    background-color: var(--color-white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* State: Searching (switch from Initial to Results) */
.mega-menu-search.is-searching .search-initial-v2 {
    display: none;
}

.mega-menu-search.is-searching .search-results-v2 {
    display: block;
}

/* Responsive - Hide keyboard hints on mobile */
@media (max-width: 767px) {
    .keyboard-hints-v2 {
        display: none;
    }

    .search-initial-v2 {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .results-grid-v2 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .skeleton-grid-v2 {
        grid-template-columns: 1fr;
    }

    .search-input-v2 {
        font-size: 16px;
    }
}

/* -----------------------------------------
   19. MEMBER DROPDOWN STYLES
   (for AuthState.createMemberDropdown())
   ----------------------------------------- */

.member-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.member-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--color-liberty-blue, #002868) !important;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: var(--font-sans);
    font-size: 14px;
}

.member-dropdown-toggle:hover {
    background: var(--gray-100, #f3f4f6);
}

.member-avatar-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.member-greeting {
    font-weight: 600;
}

.member-chevron {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.member-dropdown-toggle[aria-expanded="true"] .member-chevron {
    transform: rotate(180deg);
}

.member-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
    overflow: hidden;
}

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

.member-dropdown-header {
    padding: 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.member-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    font-family: var(--font-sans);
}

.member-id {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-family: var(--font-sans);
}

.member-dropdown-nav {
    padding: 8px 0;
}

.member-dropdown-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: background 0.15s ease;
}

.member-dropdown-nav a:hover {
    background: #f3f4f6;
}

.member-dropdown-nav a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.member-dropdown-footer {
    padding: 8px 16px;
    border-top: 1px solid #e5e7eb;
}

.member-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    color: #6b7280;
    font-size: 14px;
    font-family: var(--font-sans);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.member-logout-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.member-logout-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* -----------------------------------------
   20. PRINT STYLES
   ----------------------------------------- */
@media print {
    .upper-nav,
    .main-header,
    .mobile-tab-bar,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}
