/* css/shared.css */
/* Yeroku Shared Styles - Header, Footer, Base Components */
/* Version: 2.0.0 - Premium Header Update */

/* ===========================================
   CSS RESET & ROOT VARIABLES
=========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --teal-900: #063d3c;
    --teal-800: #085554;
    --teal-700: #0a5d5c;
    --teal-600: #0e7c7b;
    --teal-500: #14a8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --teal-200: #99f6e4;
    --teal-100: #ccfbf1;
    --teal-50: #f0fdfa;
    
    --coral-700: #c2410c;
    --coral-600: #ea580c;
    --coral-500: #ff6b4a;
    --coral-400: #ff8a6c;
    --coral-300: #fdba74;
    --coral-200: #fed7aa;
    --coral-100: #ffedd5;
    --coral-50: #fff7ed;
    
    --grey-900: #0f172a;
    --grey-800: #1e293b;
    --grey-700: #334155;
    --grey-600: #475569;
    --grey-500: #64748b;
    --grey-400: #94a3b8;
    --grey-300: #cbd5e1;
    --grey-200: #e2e8f0;
    --grey-100: #f1f5f9;
    --grey-50: #f8fafc;
    --white: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    
    --gradient-brand: linear-gradient(135deg, var(--teal-600) 0%, var(--coral-400) 100%);
    
    /* Background Gradients */
    --bg-gradient-main: linear-gradient(135deg, 
        rgba(240, 253, 250, 0.95) 0%, 
        rgba(255, 247, 237, 0.85) 50%,
        rgba(240, 253, 250, 0.9) 100%);
    
    --bg-gradient-teal: linear-gradient(180deg,
        rgba(240, 253, 250, 0.98) 0%,
        rgba(204, 251, 241, 0.5) 50%,
        rgba(240, 253, 250, 0.95) 100%);
        
    --bg-gradient-coral: linear-gradient(180deg,
        rgba(255, 247, 237, 0.98) 0%,
        rgba(255, 237, 213, 0.6) 50%,
        rgba(255, 247, 237, 0.95) 100%);
        
    --bg-gradient-mixed: linear-gradient(135deg,
        rgba(240, 253, 250, 0.9) 0%,
        rgba(230, 244, 244, 0.85) 25%,
        rgba(255, 244, 241, 0.85) 75%,
        rgba(255, 247, 237, 0.9) 100%);
    
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-teal: 0 8px 24px rgba(14, 124, 123, 0.25);
    --shadow-coral: 0 8px 24px rgba(255, 107, 74, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s var(--ease-out-expo);
    --transition-slow: 0.4s var(--ease-out-expo);
}

html { 
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--grey-800);
    background: var(--bg-gradient-main);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================================
   PREMIUM HEADER SYSTEM v2.0
   Mobile-First Premium Navigation
=========================================== */

/* -------------------------------------------
   HEADER BASE - Enhanced Premium Styling
------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 124, 123, 0.06);
    transition: 
        transform 0.4s var(--ease-premium),
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    will-change: transform;
}

/* Gradient accent line - appears on scroll */
.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: 
        opacity 0.4s ease,
        transform 0.5s var(--ease-premium);
}

/* Scrolled state */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom-color: transparent;
}

.header.scrolled::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Hidden state - slides up smoothly */
.header.header-hidden {
    transform: translateY(-100%);
}

/* Revealed mid-page */
.header.header-revealed {
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------
   TRANSPARENT HEADER MODE (Opt-in)
   Add class 'header-transparent' to <body>
------------------------------------------- */
body.header-transparent .header:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.header-transparent .header:not(.scrolled) .logo-text {
    color: var(--white);
}

body.header-transparent .header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

body.header-transparent .header:not(.scrolled) .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

body.header-transparent .header:not(.scrolled) .hamburger-line {
    background: var(--white);
}

body.header-transparent .header:not(.scrolled) .nav-btn-solid {
    background: var(--white);
    color: var(--teal-700);
}

/* -------------------------------------------
   NAV CONTAINER
------------------------------------------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    min-height: 68px;
}

@media (min-width: 769px) {
    .nav {
        padding: 0.875rem 0;
        min-height: 72px;
    }
}

/* -------------------------------------------
   LOGO - Premium Hover Effect
------------------------------------------- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-700);
    flex-shrink: 0;
    min-width: 120px;
    transition: transform 0.3s var(--ease-premium);
}

@media (min-width: 769px) {
    .logo {
        font-size: 1.375rem;
        min-width: 140px;
    }
}

.logo:hover {
    transform: scale(1.02);
}

.logo:active {
    transform: scale(0.98);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    position: relative;
    transition: transform 0.3s var(--ease-premium);
}

@media (min-width: 769px) {
    .logo-icon {
        width: 44px;
        height: 44px;
    }
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    border-radius: var(--radius-full);
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    color: var(--grey-600);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.logo:hover .logo-text {
    color: var(--grey-800);
}

/* -------------------------------------------
   DESKTOP NAV LINKS - Animated Underline
------------------------------------------- */
.nav-links {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--grey-600);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    min-height: 44px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s ease;
}

/* Animated underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-premium);
}

.nav-link:hover {
    color: var(--grey-900);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Active state */
.nav-link.active {
    color: var(--teal-600);
}

.nav-link.active::after {
    transform: scaleX(1);
    background: var(--teal-500);
}

/* Dropdown trigger styling */
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.nav-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-premium);
    opacity: 0.6;
}

.nav-item:hover .nav-chevron,
.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* -------------------------------------------
   DROPDOWN PANEL - Refined Animation
------------------------------------------- */
.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 10px 20px -3px rgba(0, 0, 0, 0.06),
        0 20px 40px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(14, 124, 123, 0.04);
    border: 1px solid rgba(14, 124, 123, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.25s ease,
        transform 0.35s var(--ease-premium),
        visibility 0.25s;
    z-index: 100;
}

/* Dropdown arrow */
.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid rgba(14, 124, 123, 0.06);
    border-top: 1px solid rgba(14, 124, 123, 0.06);
    border-radius: 2px 0 0 0;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-dropdown-trigger[aria-expanded="true"] + .dropdown,
.dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown link */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--grey-700);
    border-radius: var(--radius-lg);
    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dropdown-link svg {
    width: 20px;
    height: 20px;
    color: var(--grey-400);
    transition: 
        color 0.2s ease,
        transform 0.2s ease;
    flex-shrink: 0;
}

.dropdown-link:hover {
    background: var(--teal-50);
    color: var(--teal-700);
    transform: translateX(4px);
}

.dropdown-link:hover svg {
    color: var(--teal-500);
    transform: scale(1.1);
}

.dropdown-link:active {
    background: var(--teal-100);
    transform: translateX(4px) scale(0.98);
}

/* Active dropdown link */
.dropdown-link.active {
    background: var(--teal-50);
    color: var(--teal-700);
}

.dropdown-link.active svg {
    color: var(--teal-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--grey-100);
    margin: 0.375rem 0.75rem;
}

/* -------------------------------------------
   NAV CTA BUTTON
------------------------------------------- */
.nav-cta {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 140px;
}

@media (min-width: 769px) {
    .nav-cta {
        display: flex;
    }
}

.nav-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--teal-600);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 44px;
    box-shadow: 
        0 1px 3px rgba(14, 124, 123, 0.2),
        0 4px 12px rgba(14, 124, 123, 0.15);
    transition: 
        background 0.2s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.nav-btn-solid svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-premium);
}

.nav-btn-solid:hover {
    background: var(--teal-700);
    box-shadow: 
        0 2px 6px rgba(14, 124, 123, 0.25),
        0 8px 20px rgba(14, 124, 123, 0.2);
    transform: translateY(-1px);
}

.nav-btn-solid:hover svg {
    transform: translateX(4px);
}

.nav-btn-solid:active {
    transform: translateY(0) scale(0.98);
}

.nav-btn-outline {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-lg);
    color: var(--grey-700);
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 44px;
    background: rgba(240, 253, 250, 0.5);
    transition: all var(--transition-fast);
}

.nav-btn-outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-600);
    background: var(--teal-50);
}

/* -------------------------------------------
   MOBILE MENU BUTTON - Premium Animation
------------------------------------------- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1002;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    background: rgba(14, 124, 123, 0.06);
}

.mobile-menu-btn:active {
    background: rgba(14, 124, 123, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--grey-800);
    border-radius: 2px;
    transition: 
        transform 0.4s var(--ease-premium),
        opacity 0.3s ease,
        width 0.3s ease;
    transform-origin: center;
}

/* Staggered line widths for visual interest */
.hamburger-line:nth-child(2) {
    width: 20px;
}

.mobile-menu-btn:hover .hamburger-line:nth-child(2) {
    width: 24px;
}

/* Active hamburger - morphs to X */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------
   MOBILE MENU - Full Screen with Glass
------------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1001;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: 
        transform 0.5s var(--ease-premium),
        visibility 0.5s;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

/* Subtle gradient overlay */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(240, 253, 250, 0.5) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 247, 237, 0.3) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* -------------------------------------------
   MOBILE MENU HEADER
------------------------------------------- */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(14, 124, 123, 0.06);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 68px;
}

.mobile-menu-header .logo {
    font-size: 1.25rem;
}

.mobile-menu-header .logo-icon {
    width: 40px;
    height: 40px;
}

/* Close button */
.mobile-close-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--grey-600);
    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-close-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-close-btn:hover {
    background: var(--grey-100);
    color: var(--grey-900);
}

.mobile-close-btn:active {
    background: var(--grey-200);
    transform: scale(0.95);
}

/* -------------------------------------------
   MOBILE NAV SECTIONS
------------------------------------------- */
.mobile-nav-section {
    padding: 1.25rem 1.5rem 0.5rem;
    opacity: 0;
    transform: translateX(24px);
    transition: 
        opacity 0.5s var(--ease-premium),
        transform 0.5s var(--ease-premium);
}

.mobile-menu.active .mobile-nav-section {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered entrance delays */
.mobile-menu.active .mobile-nav-section:nth-of-type(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-section:nth-of-type(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-section:nth-of-type(3) {
    transition-delay: 0.2s;
}

.mobile-nav-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-400);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* -------------------------------------------
   MOBILE NAV LINKS - Large Touch Targets
------------------------------------------- */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--grey-800);
    border-radius: var(--radius-xl);
    min-height: 56px;
    transition: 
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link svg {
    width: 24px;
    height: 24px;
    color: var(--grey-400);
    flex-shrink: 0;
    transition: 
        color 0.2s ease,
        transform 0.3s var(--ease-premium);
}

.mobile-nav-link:hover {
    background: var(--teal-50);
    color: var(--teal-700);
}

.mobile-nav-link:hover svg {
    color: var(--teal-500);
    transform: scale(1.1);
}

.mobile-nav-link:active {
    background: var(--teal-100);
    transform: scale(0.98);
}

/* Active state */
.mobile-nav-link.active {
    background: var(--teal-50);
    color: var(--teal-700);
}

.mobile-nav-link.active svg {
    color: var(--teal-500);
}

/* Active indicator dot */
.mobile-nav-link.active::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal-500);
    border-radius: var(--radius-full);
    margin-left: auto;
}

/* -------------------------------------------
   MOBILE CONTACT SECTION
------------------------------------------- */
.mobile-contact-section {
    padding: 1.5rem;
    margin: 1rem 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(240, 253, 250, 0.8) 0%,
        rgba(255, 247, 237, 0.6) 100%
    );
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(14, 124, 123, 0.08);
    opacity: 0;
    transform: translateX(24px);
    transition: 
        opacity 0.5s var(--ease-premium),
        transform 0.5s var(--ease-premium);
}

.mobile-menu.active .mobile-contact-section {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.25s;
}

.mobile-contact-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-400);
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    min-height: 52px;
    transition: 
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-contact-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.phone-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--teal-700);
    border: 1px solid var(--teal-200);
}

.phone-btn:hover {
    background: var(--teal-50);
    border-color: var(--teal-300);
}

.phone-btn:active {
    background: var(--teal-100);
    transform: scale(0.98);
}

.email-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--coral-700);
    border: 1px solid var(--coral-200);
}

.email-btn:hover {
    background: var(--coral-50);
    border-color: var(--coral-300);
}

.email-btn:active {
    background: var(--coral-100);
    transform: scale(0.98);
}

/* -------------------------------------------
   MOBILE CTA BUTTON
------------------------------------------- */
.mobile-cta {
    padding: 1.25rem 1.5rem 2rem;
    opacity: 0;
    transform: translateY(16px);
    transition: 
        opacity 0.5s var(--ease-premium),
        transform 0.5s var(--ease-premium);
    border-top: none;
    margin-top: auto;
}

.mobile-menu.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.125rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    min-height: 60px;
    transition: 
        box-shadow 0.3s ease,
        transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s var(--ease-premium);
}

.mobile-btn-gradient {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 
        0 4px 16px rgba(14, 124, 123, 0.25),
        0 2px 8px rgba(255, 107, 74, 0.15);
}

.mobile-btn-gradient:hover {
    box-shadow: 
        0 8px 24px rgba(14, 124, 123, 0.3),
        0 4px 12px rgba(255, 107, 74, 0.2);
}

.mobile-btn-gradient:hover svg {
    transform: translateX(4px);
}

.mobile-btn-gradient:active {
    transform: scale(0.98);
    box-shadow: 
        0 2px 8px rgba(14, 124, 123, 0.25),
        0 1px 4px rgba(255, 107, 74, 0.15);
}

/* -------------------------------------------
   BODY SCROLL LOCK
------------------------------------------- */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* -------------------------------------------
   FOCUS STATES - Accessibility
------------------------------------------- */
.nav-link:focus-visible,
.dropdown-link:focus-visible,
.nav-btn-solid:focus-visible,
.nav-btn-outline:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-contact-btn:focus-visible,
.mobile-btn:focus-visible,
.mobile-menu-btn:focus-visible,
.mobile-close-btn:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

/* -------------------------------------------
   SAFE AREA INSETS (iPhone notch/home bar)
------------------------------------------- */
@supports (padding: max(0px)) {
    .mobile-menu {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .mobile-menu-header {
        padding-top: max(0.875rem, env(safe-area-inset-top));
    }
    
    .mobile-cta {
        padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
    }
}

/* -------------------------------------------
   REDUCED MOTION - Accessibility
------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .header,
    .header::after,
    .logo,
    .logo-icon,
    .nav-link,
    .nav-link::after,
    .nav-chevron,
    .dropdown,
    .dropdown-link,
    .nav-btn-solid,
    .hamburger-line,
    .mobile-menu,
    .mobile-nav-section,
    .mobile-contact-section,
    .mobile-cta,
    .mobile-nav-link,
    .mobile-contact-btn,
    .mobile-btn {
        transition: none;
    }
    
    .mobile-menu {
        transform: none;
        opacity: 0;
    }
    
    .mobile-menu.active {
        opacity: 1;
    }
}

/* -------------------------------------------
   HIGH CONTRAST MODE
------------------------------------------- */
@media (prefers-contrast: high) {
    .header {
        background: var(--white);
        border-bottom: 2px solid var(--grey-900);
    }
    
    .header::after {
        display: none;
    }
    
    .nav-link {
        color: var(--grey-900);
    }
    
    .dropdown {
        border: 2px solid var(--grey-900);
    }
    
    .mobile-menu {
        background: var(--white);
    }
}

/* ===========================================
   BUTTONS
=========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.9375rem 1.875rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    min-height: 52px;
}

.btn-gradient {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(14, 124, 123, 0.3), 0 8px 20px rgba(255, 107, 74, 0.2);
}

.btn-outline-teal {
    background: rgba(240, 253, 250, 0.8);
    color: var(--teal-700);
    border: 2px solid var(--teal-300);
    backdrop-filter: blur(8px);
}

.btn-outline-teal:hover {
    background: var(--teal-50);
    border-color: var(--teal-600);
    transform: translateY(-2px);
}

/* ===========================================
   FOOTER STYLES - PREMIUM VERSION 2.0
   =========================================== 
   
   INSTALLATION INSTRUCTIONS:
   1. Open shared.css
   2. Find the FOOTER section (around line 880)
   3. Delete everything from "FOOTER" comment to just before "SCROLL REVEAL ANIMATION"
   4. Paste this entire file in its place
   5. Also update the responsive media queries section
   
=========================================== */

/* ===========================================
   FOOTER STYLES - PREMIUM VERSION 2.0
   =========================================== 
   
   INSTALLATION INSTRUCTIONS:
   1. Open shared.css
   2. Find the FOOTER section (around line 880)
   3. Delete everything from "FOOTER" comment to just before "SCROLL REVEAL ANIMATION"
   4. Paste this entire file in its place
   5. Also update the responsive media queries section
   
=========================================== */

/* ===========================================
   PRE-FOOTER NEWSLETTER SECTION
=========================================== */
.pre-footer {
    background: linear-gradient(180deg, 
        rgba(240, 253, 250, 0.98) 0%,
        rgba(230, 244, 244, 0.95) 100%);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

/* Hide pre-footer when body has no-pre-footer class */
body.no-pre-footer .pre-footer {
    display: none;
}

/* Subtle background pattern */
.pre-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
        circle at 20% 50%,
        rgba(14, 124, 123, 0.03) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 50%,
        rgba(255, 138, 108, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    flex: 1;
    max-width: 480px;
}

.newsletter-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-600);
    background: rgba(14, 124, 123, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--grey-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.newsletter-desc {
    font-size: 1rem;
    color: var(--grey-600);
    line-height: 1.6;
}

.newsletter-form {
    flex: 1;
    max-width: 440px;
}

.newsletter-input-wrapper {
    display: flex;
    background: var(--white);
    border: 1px solid rgba(14, 124, 123, 0.15);
    border-radius: var(--radius-xl);
    padding: 0.375rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 0 0 0 rgba(14, 124, 123, 0);
    transition: all var(--transition-base);
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--teal-400);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 0 0 3px rgba(14, 124, 123, 0.1);
}

.newsletter-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--grey-800);
    outline: none;
    min-width: 0;
}

.newsletter-input-wrapper input::placeholder {
    color: var(--grey-400);
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-brand);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-btn.success {
    background: var(--success);
}

.newsletter-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.newsletter-btn:hover svg {
    transform: translateX(3px);
}

.newsletter-privacy {
    font-size: 0.8125rem;
    color: var(--grey-500);
    margin-top: 0.875rem;
    text-align: right;
}

.newsletter-privacy a {
    color: var(--teal-600);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.newsletter-privacy a:hover {
    color: var(--teal-700);
}

/* Decorative gradient line */
.footer-gradient-line {
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0.6;
}

/* ===========================================
   MAIN FOOTER
=========================================== */
.footer {
    background: linear-gradient(180deg, 
        #0a1a1a 0%,
        #0f1f1f 50%,
        #081414 100%);
    color: var(--grey-300);
    padding: 4.5rem 0 2.5rem;
    position: relative;
}

/* Subtle teal tint overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 20% 0%,
        rgba(14, 124, 123, 0.05) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem 2.5rem;
    margin-bottom: 3.5rem;
}

/* Brand Column */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    box-shadow: 
        0 4px 12px rgba(14, 124, 123, 0.3),
        0 0 20px rgba(14, 124, 123, 0.15);
    position: relative;
}

/* Inner highlight for depth */
.footer-logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%);
}

.footer-logo-text {
    font-family: var(--font-body);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--coral-300);
    margin-bottom: 0.875rem;
    letter-spacing: 0.01em;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--grey-400);
    margin-bottom: 1.75rem;
}

/* Social Links - 44px for WCAG touch targets */
.footer-social {
    display: flex;
    gap: 0.625rem;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-400);
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 124, 123, 0.3);
}

.footer-social-link:active {
    transform: translateY(-1px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Columns */
.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

/* Subtle teal accent under headers for visual hierarchy */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 24px;
    height: 2px;
    background: var(--teal-500);
    border-radius: 1px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    list-style: none;
}

.footer-links li {
    line-height: 1;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--grey-300); /* Improved contrast from grey-400 */
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--teal-400);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--teal-300); /* Brighter hover for better feedback */
}

.footer-links a:hover::after {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--grey-500);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.8125rem;
    color: var(--grey-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--grey-300);
}

/* ===========================================
   BACK TO TOP BUTTON
=========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--grey-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--grey-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-teal);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   FOOTER RESPONSIVE STYLES
=========================================== */
@media (max-width: 1024px) {
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-content {
        max-width: 100%;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .newsletter-privacy {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .pre-footer {
        padding: 3.5rem 0 0;
    }
    
    .newsletter-wrapper {
        padding-bottom: 3rem;
    }
    
    .newsletter-title {
        font-size: 1.625rem;
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .newsletter-input-wrapper input {
        text-align: center;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0; /* Remove gap, use padding for dividers */
        text-align: center;
    }
    
    /* Add visual separation between sections on mobile */
    .footer-column {
        text-align: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Larger headers on mobile for better hierarchy */
    .footer-column h4 {
        font-size: 1.125rem;
        margin-bottom: 1.75rem;
    }
    
    /* Center the header accent line */
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
    }
    
    /* Better spacing and larger tap targets */
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links a {
        font-size: 1rem;
        padding: 0.625rem 1rem;
        color: var(--grey-300);
    }
    
    .footer-links a::after {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding-top: 2rem;
        margin-top: 0.5rem;
    }
    
    .footer-legal {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-legal a {
        font-size: 0.875rem;
        color: var(--grey-400);
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .pre-footer {
        padding: 2.5rem 0 0;
    }
    
    .newsletter-wrapper {
        padding-bottom: 2.5rem;
    }
    
    .newsletter-badge {
        font-size: 0.6875rem;
    }
    
    .newsletter-title {
        font-size: 1.375rem;
    }
    
    .newsletter-desc {
        font-size: 0.9375rem;
    }
    
    .footer {
        padding: 3rem 0 1.75rem;
    }
    
    .footer-column {
        padding: 1.75rem 0;
    }
    
    .footer-column h4 {
        font-size: 1.0625rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-desc {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
    
    .footer-legal {
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===========================================
   ACCESSIBILITY ENHANCEMENTS
=========================================== */
.footer-links a:focus-visible,
.footer-social-link:focus-visible,
.footer-legal a:focus-visible,
.newsletter-btn:focus-visible,
.back-to-top:focus-visible,
.footer-logo:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .newsletter-btn,
    .footer-social-link,
    .footer-links a::after,
    .back-to-top {
        transition: none;
    }
    
    .newsletter-btn:hover,
    .footer-social-link:hover,
    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top.visible {
        transform: none;
    }
}

/* ===========================================
   BACK TO TOP BUTTON
=========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--grey-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--grey-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-teal);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   FOOTER RESPONSIVE STYLES
=========================================== */
@media (max-width: 1024px) {
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-content {
        max-width: 100%;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .newsletter-privacy {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .pre-footer {
        padding: 3.5rem 0 0;
    }
    
    .newsletter-wrapper {
        padding-bottom: 3rem;
    }
    
    .newsletter-title {
        font-size: 1.625rem;
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .newsletter-input-wrapper input {
        text-align: center;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4 {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        gap: 0.75rem;
    }
    
    .footer-links a::after {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-legal {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .pre-footer {
        padding: 2.5rem 0 0;
    }
    
    .newsletter-wrapper {
        padding-bottom: 2.5rem;
    }
    
    .newsletter-badge {
        font-size: 0.6875rem;
    }
    
    .newsletter-title {
        font-size: 1.375rem;
    }
    
    .newsletter-desc {
        font-size: 0.9375rem;
    }
    
    .footer {
        padding: 3rem 0 1.75rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-desc {
        font-size: 0.875rem;
    }
    
    .footer-legal {
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===========================================
   ACCESSIBILITY ENHANCEMENTS
=========================================== */
.footer-links a:focus-visible,
.footer-social-link:focus-visible,
.footer-legal a:focus-visible,
.newsletter-btn:focus-visible,
.back-to-top:focus-visible,
.footer-logo:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .newsletter-btn,
    .footer-social-link,
    .footer-links a::after,
    .back-to-top {
        transition: none;
    }
    
    .newsletter-btn:hover,
    .footer-social-link:hover,
    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top.visible {
        transform: none;
    }
}

/* ===========================================
   SCROLL REVEAL ANIMATION
=========================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================================
   RESPONSIVE
=========================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* 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;
}

/* ============================================
   BLOG UX IMPROVEMENTS
============================================ */

/* Fix 1: Taller blog card images for premium look */
.blog-card-visual {
    min-height: 180px;
}

/* Fix 2: Spacing between image and category tag */
.blog-card-content {
    padding-top: 1rem;
}

/* Fix 3: Spacing for featured cards */
.featured-card-content {
    padding-top: 1rem;
}

.featured-card:first-child .featured-card-content {
    padding-top: 1.25rem;
}

/* Fix 4: Filter horizontal scroll */
.filters-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-right: 2rem;
}

.filter-pills {
    flex-shrink: 0;
}

.filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Fix 5: Fade indicator for filter scroll */
.filters-section .container {
    position: relative;
}

.filters-section .container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, rgba(240, 253, 250, 0.95));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.filters-section .container.scroll-end::after {
    opacity: 0;
}

/* Fix 6: Skeleton loading dimensions */
.skeleton-visual {
    height: 180px;
}


/* ===========================================
   FOOTER MOBILE LEGIBILITY IMPROVEMENTS
   =========================================== 
   
   Add these styles to your footer CSS section
   OR replace the existing mobile media queries
   
=========================================== */

/* ===========================================
   BASE IMPROVEMENTS (All Screen Sizes)
=========================================== */

/* Improve link contrast - was grey-400, now grey-300 */
.footer-links a {
    font-size: 0.9375rem;
    color: var(--grey-300); /* Changed from grey-400 for better contrast */
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--teal-300); /* Brighter hover for better feedback */
}

/* Make column headers more prominent */
.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

/* Add subtle teal accent under headers */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 24px;
    height: 2px;
    background: var(--teal-500);
    border-radius: 1px;
    opacity: 0.6;
}

/* ===========================================
   MOBILE-SPECIFIC IMPROVEMENTS
=========================================== */

@media (max-width: 768px) {
    .footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0; /* Remove gap, use padding instead for dividers */
        text-align: center;
    }
    
    /* Add visual separation between sections on mobile */
    .footer-column {
        text-align: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Center the header accent line */
    .footer-column h4 {
        font-size: 1.125rem; /* Slightly larger on mobile */
        margin-bottom: 1.75rem;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
    }
    
    /* Larger tap targets and better spacing for links */
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links li {
        line-height: 1;
    }
    
    .footer-links a {
        font-size: 1rem; /* Slightly larger for mobile readability */
        padding: 0.625rem 1rem; /* Add padding for larger tap target */
        display: inline-block;
        color: var(--grey-300);
    }
    
    /* Remove underline animation on mobile (touch devices) */
    .footer-links a::after {
        display: none;
    }
    
    /* Footer bottom adjustments */
    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding-top: 2rem;
        margin-top: 0.5rem;
    }
    
    .footer-legal {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-legal a {
        color: var(--grey-400); /* Legal links can be slightly lighter */
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.75rem;
    }
    
    .footer-column {
        padding: 1.75rem 0;
    }
    
    .footer-column h4 {
        font-size: 1.0625rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-desc {
        font-size: 0.875rem;
        padding: 0 1rem; /* Add some horizontal padding */
    }
    
    .footer-legal {
        gap: 1rem;
    }
}


@media (min-width: 481px) and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        text-align: left;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 0.5rem;
    }
    
    .footer-column {
        text-align: left;
        padding: 0;
        border-bottom: none;
    }
    
    .footer-column h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-links a {
        padding: 0.5rem 0;
    }
}