/* ==============================================================================
   GLOBAL STYLES - Base styles for all pages
   Custom Coded Websites - customcodedwebsites.com
   ============================================================================== */

/* CSS Variables - StagHenHouses Brand System */
:root {
    /* Brand Colors */
    --brand-primary: #0F172A;
    /* Slate 900 - CTAs, highlights */
    --brand-primary-hover: #1E293B;
    /* Slate 800 hover state */
    --brand-primary-light: #F1F5F9;
    /* Slate 100 - subtle backgrounds */

    /* Text Colors */
    --text-primary: #0F172A;
    /* Slate 900 - headings */
    --text-secondary: #475569;
    /* Slate 600 - body text */
    --text-muted: #64748B;
    /* Slate 500 - captions, metadata */
    --text-inverse: #FFFFFF;
    /* White - on dark backgrounds */

    /* Background Colors */
    --bg-primary: #FFFFFF;
    /* White - main background */
    --bg-secondary: #F8FAFC;
    /* Slate 50 - alternate sections */
    --bg-dark: #0F172A;
    /* Slate 900 - footer, dark sections */

    /* Border & Divider Colors */
    --border-light: #E2E8F0;
    /* Slate 200 */
    --border-medium: #CBD5E1;
    /* Slate 300 */

    /* Feedback Colors */
    --color-success: #10B981;
    /* Green */
    --color-error: #EF4444;
    /* Red */
    --color-warning: #F59E0B;
    /* Amber */
    --color-info: #3B82F6;
    /* Blue */

    /* Legacy aliases (for compatibility) */
    --primary-color: var(--brand-primary);
    --secondary-color: var(--text-secondary);
    --accent-color: var(--brand-primary);
    --text-color: var(--text-primary);
    --text-light: var(--text-muted);
    --bg-color: var(--bg-primary);
    --border-color: var(--border-light);
    --error-color: var(--color-error);
    --success-color: var(--color-success);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Layout */
    --header-height: 100px;
    --max-width: 1280px;
    --max-width-narrow: 768px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

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

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

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

/* ==============================================================================
   HEADER / NAVBAR - Premium Navigation
   ============================================================================== */

.site-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-normal);
}

/* Transparent header on homepage */
.page-home .site-header {
    background-color: transparent;
    border-bottom-color: transparent;
}

/* Scrolled state - solid dark background with blur */
.site-header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.site-header .container {
    height: 100%;
    max-width: 1400px;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.site-logo .logo-img {
    height: 65px;
    width: auto;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.nav-menu>li {
    margin: 0;
    position: relative;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu>li>a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-menu>li>a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Active indicator line */
.nav-menu>li>a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--brand-primary);
    border-radius: 2px;
}

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

.nav-dropdown>a {
    gap: 8px;
}

.nav-dropdown>a .dropdown-arrow {
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.nav-dropdown>a .dropdown-arrow svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    opacity: 0.7;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    list-style: none;
}

/* Dropdown arrow pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(20, 30, 48, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

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

.dropdown-menu li {
    margin: 2px 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border-radius: 10px;
    position: relative;
}

.dropdown-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    transform: translateX(4px);
}

.dropdown-menu a:hover::before {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* CTA Button in Nav */
.nav-cta {
    margin-left: 20px;
}

.nav-cta .btn-primary {
    background: #0F172A;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    padding: 12px 26px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-cta .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #1E293B;
    color: white;
}

.nav-cta .btn-primary:hover::before {
    opacity: 1;
}

.nav-cta .btn-primary:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Menu Active State */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu-desktop {
        display: none !important;
    }
}

/* Mobile Nav Overlay - lives outside header, no stacking context issues */
.mobile-nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        background-color: var(--bg-dark);
        padding: calc(var(--header-height) + 20px) 24px 24px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .mobile-nav-overlay.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-nav-list>li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .mobile-nav-overlay.active .mobile-nav-list>li {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-nav-overlay.active .mobile-nav-list>li:nth-child(1) {
        transition-delay: 0.08s;
    }

    .mobile-nav-overlay.active .mobile-nav-list>li:nth-child(2) {
        transition-delay: 0.14s;
    }

    .mobile-nav-overlay.active .mobile-nav-list>li:nth-child(3) {
        transition-delay: 0.20s;
    }

    .mobile-nav-overlay.active .mobile-nav-list>li:nth-child(4) {
        transition-delay: 0.26s;
    }

    .mobile-nav-list>li>a,
    .mobile-nav-label {
        display: block;
        font-size: 1.2rem;
        font-weight: 600;
        padding: 16px 20px;
        border-radius: var(--radius-md);
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-nav-label {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding-bottom: 8px;
    }

    .mobile-nav-list>li>a:hover,
    .mobile-nav-list>li>a.active {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-sub {
        list-style: none;
        padding: 0 0 8px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-nav-sub a {
        display: block;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.05rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }

    .mobile-nav-sub a:hover {
        color: white;
        background-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-cta {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-cta .btn-primary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        font-size: 1rem;
        display: block;
    }

    /* Keep header above the overlay so logo + X button are visible */
    .site-header {
        z-index: 100000;
    }
}

/* Main Content */
main {
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* Add top padding for fixed header on non-home pages */
body:not(.page-home) main {
    padding-top: var(--header-height);
}

/* ==============================================================================
   FOOTER - Premium Modern Footer
   ============================================================================== */

.site-footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3) 50%, transparent);
}

/* Footer Container - Wider than main content */
.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 340px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer-logo img {
    height: 64px;
    width: auto;
    display: block;
}

.footer-tagline {
    color: #CBD5E1;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Footer Social Links - Enhanced */
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94A3B8;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Main Content - 4 Column Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h4 {
    color: var(--text-inverse);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, transparent);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 14px;
}

.footer-section ul a {
    color: #94A3B8;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.footer-section ul a::before {
    content: '';
    width: 0;
    height: 1px;
    background: #3B82F6;
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width var(--transition-fast);
}

.footer-section ul a:hover {
    color: var(--text-inverse);
    transform: translateX(4px);
}

.footer-section ul a:hover::before {
    width: 100%;
}

.footer-section ul a.highlight-link {
    color: #60A5FA;
    font-weight: 600;
}

.footer-section ul a.highlight-link:hover {
    color: #3B82F6;
}

/* Footer Contact Info */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #60A5FA;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: #94A3B8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--text-inverse);
}

.footer-contact span {
    color: #94A3B8;
    font-size: 0.9375rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 32px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #64748B;
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #94A3B8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--text-inverse);
}

.footer-legal-links .separator {
    color: #475569;
    font-size: 0.75rem;
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-container {
        padding: 0 32px;
    }

    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 32px 0 20px;
        row-gap: 24px;
        column-gap: 24px;
    }

    /* Brand — full width, compact */
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 4px;
    }

    .footer-brand .footer-logo {
        margin-bottom: 10px;
    }

    .footer-brand .footer-logo img {
        margin: 0 auto;
        height: 40px;
    }

    .footer-brand .footer-tagline {
        font-size: 0.8rem;
        line-height: 1.55;
        margin-bottom: 14px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        color: #94A3B8;
    }

    .footer-brand .footer-social {
        justify-content: center;
        gap: 10px;
    }

    .footer-brand .social-link {
        width: 34px;
        height: 34px;
    }

    .footer-brand .social-link svg {
        width: 15px;
        height: 15px;
    }

    /* Section headings — compact */
    .footer-section h4 {
        font-size: 0.7rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
        letter-spacing: 0.1em;
        text-align: center;
    }

    .footer-section h4::after {
        width: 24px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section ul a {
        font-size: 0.8rem;
        justify-content: center;
    }

    .footer-section ul a:hover {
        transform: none;
    }

    /* Get In Touch — full width, horizontal layout */
    .footer-section:last-child {
        grid-column: 1 / -1;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-section:last-child h4 {
        text-align: center;
    }

    .footer-section:last-child h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 24px;
    }

    .footer-contact li {
        margin-bottom: 0 !important;
        align-items: center !important;
    }

    .footer-contact a {
        font-size: 0.78rem !important;
        word-break: normal;
        white-space: nowrap;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
    }

    /* Footer bottom — compact */
    .footer-bottom {
        padding: 16px 0;
    }

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

    .copyright {
        font-size: 0.75rem;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 6px;
    }

    .footer-legal-links a {
        font-size: 0.75rem;
    }

    .footer-legal-links .separator {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        padding: 28px 0 16px;
        row-gap: 20px;
        column-gap: 16px;
    }

    .footer-brand {
        padding-bottom: 16px;
    }

    .footer-brand .footer-tagline {
        font-size: 0.75rem;
        max-width: 280px;
    }

    .footer-contact {
        flex-direction: column !important;
        align-items: center;
        gap: 10px !important;
    }

    .footer-bottom {
        padding: 14px 0;
    }
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-primary,
.btn {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover,
.btn:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: var(--text-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: #1E293B;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-sm);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Cards */
/* Messages & Alerts */
.messages-container {
    padding: var(--spacing-sm) 0;
}

.alert {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 0.25rem;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* ==============================================================================
   GLOBAL RESPONSIVE
   ============================================================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* ==============================================================================
   UTILITY COMPONENTS
   ============================================================================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-5px);
}

/* Form Error States */
input.error,
textarea.error,
select.error {
    border-color: var(--error-color, #ef4444);
}

.error-message {
    color: var(--error-color, #ef4444);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}