/* ========================================
   HiLex Law — Premium Under Construction
   Design: Luxury / Refined / Dark + Light
   ======================================== */

/* --- CSS Custom Properties (Dark Theme — Default) --- */
:root {
    --color-bg: #0b0b0f;
    --color-bg-elevated: #111118;
    --color-bg-card: #16161e;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);

    --color-accent: #c8102e;
    --color-accent-soft: rgba(200, 16, 46, 0.15);
    --color-accent-glow: rgba(200, 16, 46, 0.5);

    --color-text: #e8e6e3;
    --color-text-muted: #7a7a85;
    --color-text-faint: #4a4a55;
    --color-white: #ffffff;

    --logo-filter: invert(1);
    --card-shadow-hover: rgba(0, 0, 0, 0.3);
    --canvas-particle: 200, 200, 220;
    --canvas-line: 200, 16, 46;
    --cursor-border: rgba(255, 255, 255, 0.3);
    --cursor-dot-bg: #ffffff;

    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
    --font-serif: 'Libre Baskerville', 'Georgia', serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --section-padding: clamp(80px, 12vh, 160px);
    --container-max: 1200px;
    --grid-gap: clamp(40px, 6vw, 80px);
}

/* --- Light Theme --- */
[data-theme="light"] {
    --color-bg: #f8f7f4;
    --color-bg-elevated: #efede8;
    --color-bg-card: #ffffff;
    --color-surface: rgba(0, 0, 0, 0.02);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);

    --color-accent: #b10e27;
    --color-accent-soft: rgba(200, 16, 46, 0.1);
    --color-accent-glow: rgba(200, 16, 46, 0.3);

    --color-text: #1a1a22;
    --color-text-muted: #5c5c6b;
    --color-text-faint: #9090a0;
    --color-white: #1a1a22;

    --logo-filter: invert(0);
    --card-shadow-hover: rgba(0, 0, 0, 0.08);
    --canvas-particle: 60, 60, 80;
    --canvas-line: 200, 16, 46;
    --cursor-border: rgba(0, 0, 0, 0.2);
    --cursor-dot-bg: #1a1a22;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; cursor: none; }

::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.preloader-logo-img {
    height: 40px;
    filter: var(--logo-filter);
    opacity: 0.8;
    margin-bottom: 32px;
    transition: filter 0.5s ease;
}

.preloader-bar-track {
    width: 200px;
    height: 1px;
    background: var(--color-border);
    border-radius: 1px;
    overflow: hidden;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--color-accent);
    transition: width 0.3s linear;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--cursor-border);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s var(--ease-out-quart), opacity 0.3s, border-color 0.5s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--cursor-dot-bg);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s linear, background 0.5s ease;
}

@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
    a, button, input, textarea, select { cursor: auto; }
}

/* --- Canvas & Grain --- */
#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(24px, 5vw, 60px);
    transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 247, 244, 0.88);
}

.nav-logo-img {
    height: 28px;
    filter: var(--logo-filter);
    opacity: 0.9;
    transition: opacity 0.3s, filter 0.5s ease;
}

/* --- Theme Toggle --- */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.08);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.3s;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-logo-img:hover { opacity: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover { color: var(--color-white); }
.nav-link:hover::after { width: 100%; }

.nav-link-outline {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.nav-link-outline::after { display: none; }

.nav-link-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
    background: var(--color-accent-soft);
}

/* --- Reveal Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px clamp(24px, 5vw, 60px) 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-line {
    width: 40px;
    height: 1px;
    background: var(--color-text-faint);
}

.hero-eyebrow-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.hero-logo-wrap {
    margin-bottom: 32px;
}

.hero-logo-img {
    height: clamp(50px, 8vw, 90px);
    margin: 0 auto;
    position: relative;
    filter: var(--logo-filter) drop-shadow(0 0 20px var(--color-accent-glow)) drop-shadow(0 0 60px rgba(200, 16, 46, 0.25));
    transition: filter 0.5s ease;
}

[data-theme="light"] .hero-logo-img {
    filter: var(--logo-filter) drop-shadow(0 0 12px var(--color-accent-glow));
}

.hero-tagline {
    margin-bottom: 48px;
}

.hero-tagline p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.hero-status {
    margin-bottom: 80px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--color-text-muted);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.15), inset 0 0 20px rgba(200, 16, 46, 0.05);
    animation: pillGlow 3s ease-in-out infinite;
}

/* Glowing border pulse */
@keyframes pillGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(200, 16, 46, 0.1), inset 0 0 15px rgba(200, 16, 46, 0.03); }
    50% { box-shadow: 0 0 30px rgba(200, 16, 46, 0.25), inset 0 0 25px rgba(200, 16, 46, 0.08); }
}

/* Light sweep across the pill */
.status-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.12), transparent);
    animation: sweepAcross 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sweepAcross {
    0% { left: -50%; }
    100% { left: 150%; }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    position: relative;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px transparent; transform: scale(1.2); }
}

/* === Progress Section === */
.progress-section {
    max-width: 420px;
    margin: 32px auto 0;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

.progress-percent {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #e8354d);
    border-radius: 4px;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-accent-glow), 0 0 24px rgba(200, 16, 46, 0.3);
    animation: edgeGlow 1.5s ease-in-out infinite;
}

@keyframes edgeGlow {
    0%, 100% { box-shadow: 0 0 8px var(--color-accent-glow), 0 0 16px rgba(200, 16, 46, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 16px var(--color-accent-glow), 0 0 32px rgba(200, 16, 46, 0.4); transform: scale(1.3); }
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 60%, rgba(200, 16, 46, 0.08));
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === Milestones === */
.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.milestone span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-faint);
    transition: color 0.3s;
}

.milestone-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.3s, background 0.3s;
}

/* Completed milestone */
.milestone.completed .milestone-dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.milestone.completed span {
    color: var(--color-text-muted);
}

/* Active milestone */
.milestone.active .milestone-dot {
    border-color: var(--color-accent);
    background: transparent;
}

.milestone.active span {
    color: var(--color-accent);
    font-weight: 700;
}

.milestone-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: milestonePulse 2s ease-in-out infinite;
}

@keyframes milestonePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--color-text-faint);
}

.scroll-indicator {
    width: 1px;
    height: 48px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-line {
    width: 100%;
    height: 16px;
    background: var(--color-accent);
    position: absolute;
    top: -16px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -16px; }
    100% { top: 48px; }
}

/* --- Shared Section Layout --- */
.section-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) clamp(24px, 5vw, 60px);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--grid-gap);
}

@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.section-number {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 8px;
}

.section-title-sm {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--color-text-faint);
    text-transform: uppercase;
}

/* --- About Section --- */
.about {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-border);
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-white);
    margin-bottom: 32px;
}

.about-heading em {
    font-style: italic;
    color: var(--color-accent);
}

.about-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 640px;
    margin-bottom: 48px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* --- Offices Section --- */
.offices {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-border);
}

.offices-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .offices-content { grid-template-columns: 1fr; }
}

.office-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.office-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px var(--card-shadow-hover);
}

.office-card-inner {
    padding: 36px;
}

.office-icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.office-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.office-address {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.office-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: gap 0.3s var(--ease-out-expo);
}

.office-directions:hover {
    gap: 10px;
}

/* ============================================
   Practice Areas Section
   ============================================ */
.practices {
    position: relative;
    z-index: 2;
    padding: var(--section-spacing) var(--content-padding);
    border-top: 1px solid var(--color-border);
}

.practices-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.practices-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 48px;
}

.practices-heading em {
    font-style: italic;
    color: var(--color-accent);
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .practices-grid { grid-template-columns: 1fr; }
}

.practice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.practice-card:hover {
    transform: translateY(-6px);
    background: rgba(200, 16, 46, 0.04);
    border-color: rgba(200, 16, 46, 0.3);
    box-shadow: 0 20px 60px rgba(200, 16, 46, 0.08);
}

.practice-icon {
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 20px;
    transition: background 0.3s, border-color 0.3s;
}

.practice-card:hover .practice-icon {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
}

.practice-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.practice-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* --- Contact Section --- */
.contact {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-border);
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-white);
    margin-bottom: 16px;
}

.contact-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* --- Contact Details --- */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
}

.contact-detail-item:hover .detail-icon {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-faint);
    display: block;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 1rem;
    color: var(--color-text);
    display: block;
    transition: color 0.3s;
    line-height: 1.6;
}

.detail-value:hover { color: var(--color-accent); }

/* --- Form --- */
.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

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

input, textarea, select {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    -webkit-appearance: none;
}

input::placeholder, textarea::placeholder {
    color: var(--color-text-faint);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-bg-elevated);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a7a85' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select option {
    background: var(--color-bg-card);
    color: var(--color-text);
}

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

.form-submit {
    position: relative;
    width: 100%;
    padding: 16px 32px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.form-submit:hover {
    background: #a80d26;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px var(--color-accent-glow);
}

.form-submit:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

.form-submit:hover .btn-shine { left: 100%; }

.form-submit.success {
    background: #1a7a3a;
}

.form-submit.error {
    background: #8a1a1a;
}

.form-disclaimer {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    text-align: center;
    font-style: italic;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px clamp(24px, 5vw, 60px) 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 24px;
    filter: var(--logo-filter);
    opacity: 0.6;
    margin-bottom: 12px;
    transition: filter 0.5s ease;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-text-faint);
}

.footer-cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-col a, .footer-col p {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-faint);
    line-height: 1.8;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

.footer-bottom a {
    color: var(--color-text-muted);
    transition: color 0.3s;
}

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

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links { gap: 16px; }
    .nav-link { font-size: 0.7rem; letter-spacing: 1px; }
    .nav-link-outline { padding: 6px 14px; }

    .hero { padding: 100px 24px 60px; }

    .about-stats { gap: 24px; }
    .stat-divider { display: none; }

    .footer-top { flex-direction: column; }
    .footer-cols { gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-eyebrow { gap: 10px; }
    .hero-line { width: 24px; }
    .hero-scroll { display: none; }

    .status-pill { font-size: 0.6rem; padding: 8px 16px; letter-spacing: 1.5px; }
}
