/*
================================================
GLOBAL.CSS - GARBACZ ZLOTOWITZ LAW FIRM
Premium boutique law firm website foundation
Mobile-first, performance-optimized, elegant
================================================
*/

/* ==========================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================== */
:root {
  /* ===== COLOR SYSTEM ===== */
  --color-dark-bg: #0A0E14;            /* Main page background - navy-black base */
  --color-dark-primary: #101620;       /* Slightly lighter for section contrast */
  --color-dark-secondary: #161E29;     /* Used for dark blocks (bg-dark) */
  --color-light-text: #ECECEC;         /* Primary body text color */
  --color-light-text-muted: #9EA4AD;   /* Secondary muted text */
  --color-accent: #c2a673;             /* Brushed gold for accents, CTA, hover highlights */
  --color-accent-hover: #d4b980;       /* Brighter gold for hover states */
  --color-accent-text: #c2a673;        /* Better contrast for small text (WCAG AA compliant) */
  --color-border: rgba(194,166,115,0.2); /* Thin accent borders / dividers */
  --color-border-solid: rgba(255,255,255,0.05); /* Soft white divider lines */

  /* ===== NEW BLUE GRADIENT SYSTEM ===== */
  --color-blue-dark: #0a1628;
  --color-blue-medium: #1a2642;
  --color-blue-light: #0f1d35;
  --color-gold: #c2a673;
  --color-gold-hover: #d4b980;

  /* ===== GRADIENT PRESETS ===== */
  --gradient-blue-hero: linear-gradient(135deg, #0a1628 0%, #1a2642 50%, #0f1d35 100%);
  --gradient-blue-standard: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
  --gradient-blue-footer: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
  --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
  --gradient-credit: linear-gradient(135deg, #071221 0%, #0f1b30 100%);

  /* ===== TEXT COLORS FOR DIFFERENT BACKGROUNDS ===== */
  --color-text-on-blue: #ffffff;
  --color-text-on-blue-muted: rgba(255, 255, 255, 0.85);
  --color-text-on-blue-subtle: rgba(255, 255, 255, 0.7);
  --color-text-on-white: #0a1628;
  --color-text-on-white-body: #333;
  --color-text-on-white-muted: #555;

  /* ===== TYPOGRAPHY SYSTEM ===== */
  --font-heading: 'Cormorant Garamond', serif; /* Elegant serif for headings */
  --font-body: 'Inter', sans-serif;            /* Clean, modern body text */
  --font-accent: 'Inter', sans-serif;          /* Used for nav, buttons, small labels */

    
    /* ===== SIZING & SPACING (RESPONSIVE) ===== */
    --header-height: 90px;
    --header-height-mobile: 70px;
    --section-padding: 8rem;
    --section-padding-mobile: 4rem;
    --container-max-width: min(1280px, calc(100vw - 2rem));
    --container-padding: clamp(1rem, 3vw, 2rem);
    --container-padding-mobile: clamp(1rem, 4vw, 1.5rem);
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-medium: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-slow: 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-elastic: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-INDEX SYSTEM ===== */
    --z-header: 1000;
    --z-mobile-nav: 999;
    --z-modal: 2000;
    --z-tooltip: 3000;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-blue: 0 4px 20px rgba(10, 22, 40, 0.3);
    
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ==========================================
   2. MODERN CSS RESET
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    background-color: var(--color-dark-bg);
    color: var(--color-light-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    min-height: 100vh;
    min-width: 320px; /* Minimum supported width */
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Improve image rendering */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Blur-up loading effect for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="eager"] {
    opacity: 1;
}

/* Remove default button styles */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Improve form element rendering */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================
   3. TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-light-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    max-width: 70ch;
    color: var(--color-light-text-muted);
    line-height: 1.8;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

strong, b {
    font-weight: 600;
    color: var(--color-light-text);
}

em, i {
    font-style: italic;
}

/* 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-width: 0;
}

/* ==========================================
   4. LAYOUT SYSTEM (RESPONSIVE FIXES)
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

/* Ensure all sections respect container bounds */
section {
    overflow-x: hidden;
    width: 100%;
}

/* Page content wrapper for mobile nav animation */
#page-content {
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1),
                filter 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow-x: hidden;
}

body.nav-open #page-content {
    transform: scale(0.95);
    filter: blur(4px) brightness(0.6);
    border-radius: 20px;
    overflow: hidden;
}

/* Section utilities */
.py-section {
    padding: var(--section-padding-mobile) 0;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .py-section {
        padding: var(--section-padding) 0;
    }
}

.bg-dark {
    background-color: var(--color-dark-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.light-text {
    color: var(--color-light-text);
}

/* Grid utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   5. HEADER & NAVIGATION
   ========================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height-mobile);
    display: flex;
    align-items: center;
    z-index: var(--z-header);
    background-color: transparent;
    transition: background-color var(--transition-medium),
                border-bottom var(--transition-medium),
                height var(--transition-medium);
}

@media (min-width: 768px) {
    #main-header {
        height: var(--header-height);
    }
}

/* Scrolled state - BLUE GRADIENT */
#main-header.scrolled {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(26, 38, 66, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(194, 166, 115, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: calc(var(--z-header) + 1);
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

@media (min-width: 768px) {
    .logo img {
        height: 45px;
    }
}

.logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-light-text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav a span {
    color: var(--color-accent);
    margin-right: 0.5rem;
    font-weight: 400;
}

/* Underline animation */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-medium);
}

.main-nav a:hover {
    color: white;
}

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

/* Dropdown Menu Styles */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: min(560px, 90vw); /* Responsive width */
    max-width: calc(100vw - 2rem); /* Prevent overflow */
    background: rgba(16, 22, 32, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(194, 166, 115, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(194, 166, 115, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    box-sizing: border-box;
}

.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown.keyboard-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown arrow */
.main-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(16, 22, 32, 0.98);
    border: 1px solid rgba(194, 166, 115, 0.15);
    border-bottom: none;
    border-right: none;
    z-index: -1;
}

.main-nav .dropdown-menu li {
    margin: 0;
    list-style: none;
}

.main-nav .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.1rem;
    width: 100%;
    min-height: 52px;
    color: var(--color-light-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
}

.main-nav .dropdown-menu a::after {
    display: none;
}

/* Hover background effect */
.main-nav .dropdown-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(194, 166, 115, 0.12) 0%, 
        rgba(194, 166, 115, 0.06) 100%);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.main-nav .dropdown-menu a:hover {
    color: var(--color-accent-hover);
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--color-accent);
}

.main-nav .dropdown-menu a:hover::before {
    opacity: 1;
}

/* Dropdown indicator arrow */
.main-nav .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--color-accent);
    transition: transform 0.2s ease;
    position: relative;
    top: -1px;
}

.main-nav .has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Staggered dropdown animation */
.main-nav .dropdown-menu li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .has-dropdown:hover .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
}

.main-nav .has-dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.main-nav .has-dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.08s; }
.main-nav .has-dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.11s; }
.main-nav .has-dropdown:hover .dropdown-menu li:nth-child(4) { transition-delay: 0.14s; }
.main-nav .has-dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.17s; }
.main-nav .has-dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.20s; }

/* Responsive dropdown adjustments */
@media (max-width: 1280px) {
    .main-nav .dropdown-menu {
        min-width: min(480px, 85vw);
    }
}

@media (max-width: 1024px) {
    .main-nav .dropdown-menu {
        min-width: min(400px, 90vw);
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }
    
    .main-nav .dropdown-menu a {
        min-height: 48px;
        padding: 0.8rem 1rem;
    }
}

/* Desktop CTA Button */
.desktop-cta {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-cta {
        display: inline-block;
    }
}

/* ==========================================
   6. MOBILE NAVIGATION
   ========================================== */
.mobile-nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-header) + 2);
    padding: 15px;
    margin-right: -15px;
}

@media (min-width: 1024px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Hamburger icon */
.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-light-text);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-light-text);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

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

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

/* Active state (X icon) */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile navigation container */
.mobile-nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-dark-secondary);
    z-index: var(--z-mobile-nav);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .mobile-nav-container {
        max-width: 100%;
    }
}

.mobile-nav-container[data-visible="true"] {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
}

.mobile-nav ul {
    width: 100%;
    text-align: center;
}

.mobile-nav > ul > li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-bottom: 0.5rem;
}

.mobile-nav-container[data-visible="true"] .mobile-nav > ul > li {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation - faster timing */
.mobile-nav-container[data-visible="true"] .mobile-nav > ul > li:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav-container[data-visible="true"] .mobile-nav > ul > li:nth-child(2) { transition-delay: 0.12s; }
.mobile-nav-container[data-visible="true"] .mobile-nav > ul > li:nth-child(3) { transition-delay: 0.16s; }
.mobile-nav-container[data-visible="true"] .mobile-nav > ul > li:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav-container[data-visible="true"] .mobile-nav > ul > li:nth-child(5) { transition-delay: 0.24s; }

.mobile-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--color-light-text);
    transition: color var(--transition-fast);
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

.mobile-nav a span {
    color: var(--color-accent);
    margin-right: 0.75rem;
}

/* Mobile dropdown */
.mobile-nav .has-dropdown > a {
    cursor: pointer;
    position: relative;
}

.mobile-nav .has-dropdown > a::after {
    content: '\25BC';;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-nav .has-dropdown.active > a::after {
   transform: rotate(180deg); 
}

.mobile-nav .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.mobile-nav .has-dropdown.active .dropdown-menu {
    max-height: 500px;
}

.mobile-nav .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border-bottom: 1px solid var(--color-border-solid);
}

.mobile-nav .dropdown-menu a:hover {
    padding-left: 1.5rem;
}

/* Mobile CTA */
.mobile-cta {
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.28s;
}

.mobile-nav-container[data-visible="true"] .mobile-cta {
    opacity: 1;
}

/* ==========================================
   7. BUTTONS (RESPONSIVE FIXES)
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1.5rem, 4vw, 2rem);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-medium);
    z-index: 1;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button svg {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-accent);
    transition: width var(--transition-medium);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-dark-bg);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Button variants */
.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-dark-bg);
    border: 1px solid var(--color-accent);
}

.btn-secondary::before {
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* ==========================================
   8. FORMS
   ========================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-light-text);
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus ,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

::placeholder {
    color: var(--color-light-text-muted);
    opacity: 0.6;
}

/* ==========================================
   9. FOOTER
   ========================================== */
#main-footer {
    padding: 3rem 0 2rem;
    background-color: var(--color-dark-secondary);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    overflow-x: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--color-light-text-muted);
    margin: 0.3rem 0;
    max-width: none;
}

.footer-right .logo img {
    height: 40px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-right .logo:hover img {
    opacity: 1;
}

/* ==========================================
   10. UTILITY CLASSES
   ========================================== */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.section-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.accent-text {
    color: var(--color-accent);
}

.muted-text {
    color: var(--color-light-text-muted);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    z-index: calc(var(--z-header) + 1);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   11. CORE ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gold glow animation */
@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

/* ==========================================
   12. ACCESSIBILITY
   ========================================== */
/* Focus styles - improved visibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Special focus styles for interactive elements */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(212, 184, 117, 0.2);
}

.cta-button:focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(212, 184, 117, 0.3);
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-accent: #ffde59;
        --color-border: rgba(255, 255, 255, 0.3);
    }
}

/* ==========================================
   13. PRINT STYLES
   ========================================== */
@media print {
    #main-header,
    #main-footer,
    .mobile-nav-container,
    .cta-button {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}