/**
 * KFZ Werkstatt Kirchberg – Main Stylesheet
 * Modern light-first automotive theme with animations
 */

/* ========================================
   LOCAL FONTS
   ======================================== */

/* Barlow – Headlines */
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-extrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Source Sans 3 – Body (Variable Font) */
@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/sourcesans3-variable.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

/* Inter – Legacy fallback */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.1);
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.15);
    --accent-subtle: rgba(249, 115, 22, 0.06);
    --success: #10b981;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(249, 115, 22, 0.25);
    --surface: rgba(0, 0, 0, 0.02);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font-heading: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font: var(--font-body);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --max-w: 1200px;
}

/* ========================================
   DARK THEME
   ======================================== */
[data-theme="dark"] {
    --bg: #0a0f1a;
    --bg-elevated: #111827;
    --bg-card: #161d2e;
    --bg-card-hover: #1c2538;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --accent-glow: rgba(249, 115, 22, 0.25);
    --accent-subtle: rgba(249, 115, 22, 0.08);
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(249, 115, 22, 0.2);
    --surface: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] header {
    background: rgba(10, 15, 26, 0.85);
}
[data-theme="dark"] .card {
    box-shadow: none;
}
[data-theme="dark"] .card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-strong);
}
[data-theme="dark"] .panel {
    box-shadow: none;
}
[data-theme="dark"] .cta-box {
    box-shadow: none;
}
[data-theme="dark"] ::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #fff;
}
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--text-muted);
    color: var(--text);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s var(--ease); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(249, 115, 22, 0.2); color: #0f172a; }

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 20px; font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 12px; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 8px; font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; }
p { color: var(--text-secondary); margin-bottom: 12px; }

.lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 28px;
}
.sub { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }
.muted { color: var(--text-muted); font-size: 0.9rem; }

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.container.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}
.brand:hover { transform: scale(1.02); }

.brand-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px var(--accent-glow);
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease);
}
.brand:hover .brand-mark {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.brand-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.brand-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
    transition: color 0.25s var(--ease);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; left: 0; }

/* Nav CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #fff;
    font-size: 1.3rem;
    width: 48px; height: 48px;
    border-radius: var(--radius-xs);
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.menu-toggle:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 2px solid var(--accent);
    background: var(--bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s var(--ease-out);
}
[data-theme="dark"] .mobile-menu {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a {
    padding: 14px 0;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu > a:last-child { border: none; }
.mobile-menu > a:hover { color: var(--accent); padding-left: 6px; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 16px var(--accent-glow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--accent-glow);
    color: #fff;
}
.btn-primary:active { transform: translateY(-1px); }
.nav-cta .btn-primary { font-weight: 800; letter-spacing: 0.04em; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
    transform: translateY(-3px);
}
.btn-ghost:active { transform: translateY(-1px); }

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 110px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; left: -20%;
    width: 140%; height: 180%;
    background:
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(37, 99, 235, 0.1), transparent 70%),
        radial-gradient(ellipse 50% 35% at 70% 60%, rgba(249, 115, 22, 0.07), transparent 70%);
    animation: heroBgShift 15s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroBgShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -2%) scale(1.05); }
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Pill */
.pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    margin-bottom: 20px;
    transition: all 0.3s var(--ease);
}
.pill:hover {
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.35);
}

.pill-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-accent);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-bounce);
}
.pill-icon:hover { transform: scale(1.1) rotate(5deg); }

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}
.hero-actions .pill { margin-bottom: 0; }

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 52px;
    text-align: left;
}

/* ========================================
   PANEL
   ======================================== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.panel:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   METRICS
   ======================================== */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}
.metric {
    padding: 8px 0;
    transition: transform 0.3s var(--ease);
}
.metric:hover { transform: scale(1.05); }
.metric small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.metric strong {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 88px 0;
    position: relative;
}
.section + .section {
    border-top: 1px solid var(--border);
}

/* Two Column */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all 0.35s var(--ease);
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-strong);
}
a.card { cursor: pointer; }
a.card:hover { color: inherit; }

.card .tag { margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; transition: color 0.25s; }
.card:hover h3 { color: var(--accent); }
.card p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 8px; }
.card .label { margin-top: 10px; }
.card .btn { margin-top: 14px; }
.card .list { margin-top: 12px; }

.card.floating {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.card.floating:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.08), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.card.floating small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ========================================
   TAG & LABEL
   ======================================== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-glow);
    color: var(--primary-light);
    transition: background 0.25s;
}

.label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.25s;
}
.card:hover .label { color: var(--text); }

/* ========================================
   LIST
   ======================================== */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.25s, padding-left 0.25s;
}
.list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.25s var(--ease-bounce);
}
.list li:hover {
    color: var(--text);
    padding-left: 26px;
}
.list li:hover::before { transform: scale(1.4); }

/* ========================================
   CTA BOX
   ======================================== */
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s var(--ease);
}
.cta-box:hover { border-color: var(--border-strong); }
.cta-box h3 { font-size: 1.15rem; }
.cta-box h4 { font-size: 1rem; }

/* Flex helper */
.flex {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.flex > div:first-child { flex: 1; min-width: 200px; }

/* ========================================
   PARTNERS
   ======================================== */
.partners { margin-top: 32px; }
.partner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}
.partner {
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}
.partner:hover {
    border-color: var(--border-strong);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.25s var(--ease);
}
.timeline-item:hover { background: rgba(0, 0, 0, 0.02); }
.timeline-item .badge {
    flex-shrink: 0;
    min-width: fit-content;
    padding: 5px 14px;
    background: var(--primary-glow);
    color: var(--primary-light);
    border-radius: var(--radius-xs);
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.25s;
}
.timeline-item:hover .badge {
    background: rgba(37, 99, 235, 0.22);
}
.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* Badge standalone */
.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.73rem;
    font-weight: 600;
    background: var(--primary-glow);
    color: var(--primary-light);
}

/* ========================================
   FORMS
   ======================================== */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.field input,
.field select,
.field textarea {
    padding: 12px 16px;
    min-height: 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background: var(--bg-card-hover);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-card);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.status {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form .btn-primary {
    align-self: flex-start;
    padding: 13px 32px;
}

/* ========================================
   FOOTER
   ======================================== */

/* Footer — modern multi-section layout */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
@media (min-width: 1024px) {
    .footer__top {
        grid-template-columns: 1fr 2fr;
        align-items: end;
    }
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}
.footer__logo .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-xs);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.footer__logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.5px;
}
.footer__logo-text span {
    color: var(--accent);
}
.footer__contact-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.footer__contact-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 8px;
}
.footer__contact-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    transition: color 0.25s var(--ease);
}
.footer__contact-link:hover { color: var(--accent-hover); }

/* Footer Image Cards */
.footer__image-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .footer__image-links { grid-template-columns: 1fr; }
}
.footer__image-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease);
    text-decoration: none;
}
.footer__image-card:hover { transform: translateY(-4px); }
.footer__image-card-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}
.footer__image-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__image-card:hover .footer__image-card-img {
    border-color: var(--accent);
    transform: scale(1.02);
}

/* Footer Grid */
.footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    margin-bottom: 48px;
}
@media (min-width: 640px) {
    .footer__grid { gap: 32px 24px; }
}
@media (min-width: 1024px) {
    .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 24px; }
}
.footer__title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer__link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 2;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease);
    text-decoration: none;
    display: inline-block;
}
.footer__link:hover {
    color: var(--accent);
    transform: translateX(3px);
}

/* Footer Legal Bar */
.footer__legal-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.footer__legal-link {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
    transition: color 0.25s var(--ease);
    text-decoration: none;
}
.footer__legal-link:hover { color: var(--accent); }
.footer__legal-separator { color: var(--text-muted); font-size: 0.8rem; }

/* Footer Copyright */
.footer__copyright-section {
    text-align: center;
    padding: 16px 0;
}
.footer__copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer Credit */
.footer__credit-section {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.footer__credit {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}
.footer__credit a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s;
}
.footer__credit a:hover { color: var(--accent); }
.footer__credit-heart { color: var(--accent); }

/* Dark theme footer adjustments */
[data-theme="dark"] .footer__image-card-img {
    border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .footer__image-card:hover .footer__image-card-img {
    border-color: var(--accent);
}

/* ========================================
   FOOTER MODAL
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
}
.modal.active .modal__dialog {
    transform: translateY(0) scale(1);
}
[data-theme="dark"] .modal__dialog {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 16px 16px 0 0;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}
.modal__close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}
.modal__title {
    padding: 32px 32px 16px;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}
.modal__body {
    padding: 0 32px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.modal__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 12px;
}
.modal__body p { margin-bottom: 16px; }
.modal__body ul {
    list-style: none;
    padding: 0;
}
.modal__body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}
.modal__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.modal__body .modal__highlight {
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
}
.modal__body .modal__highlight strong { color: var(--accent); }

/* Modal Accordion */
.modal__body .modal__accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}
.modal__body .modal__accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: none;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}
.modal__body .modal__accordion-header:hover { background: var(--bg-card-hover); }
.modal__body .modal__accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}
.modal__body .modal__accordion.active .modal__accordion-header::after {
    content: '\2212';
}
.modal__body .modal__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.modal__body .modal__accordion.active .modal__accordion-content {
    max-height: 500px;
}
.modal__body .modal__accordion-body {
    padding: 0 16px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Modal CTA */
.modal__cta {
    padding: 16px 32px 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Mobile footer adjustments */
@media (max-width: 640px) {
    .footer__top { gap: 32px; }
    .footer__grid { gap: 32px; }
    .modal__title { padding: 24px 20px 12px; }
    .modal__body { padding: 0 20px 20px; }
    .modal__cta { padding: 12px 20px 24px; flex-direction: column; }
    .modal__cta .btn { width: 100%; text-align: center; }
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal { padding-top: 44px; }
.legal h1 { margin-bottom: 12px; }
.legal h2 { font-size: 1.3rem; color: var(--text); }
.legal .sub { margin-bottom: 24px; }

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.table th, .table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.table th {
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
}
.table td { color: var(--text-secondary); }
.table tr {
    transition: background 0.2s;
}
.table tr:hover td { background: rgba(0, 0, 0, 0.02); }

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* ========================================
   DOWNLOAD CARD
   ======================================== */
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.25s;
}
.download-card:hover { padding-left: 6px; }
.download-card:last-child { border-bottom: none; }
.download-card strong { font-size: 0.92rem; color: var(--text); display: block; }
.download-card .sub { font-size: 0.8rem; margin: 0; }
.download-card .label {
    font-size: 0.7rem;
    padding: 4px 12px;
    background: var(--primary-glow);
    color: var(--primary-light);
    border-radius: 5px;
    font-weight: 600;
}

/* ========================================
   SOCIAL GRID
   ======================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s var(--ease);
}
.social-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.social-card h3 { margin-bottom: 8px; }

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}
.faq-item:hover {
    border-color: var(--border-strong);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-card);
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.25s var(--ease);
}
.faq-question:hover {
    background: var(--bg-card-hover);
}
.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}
.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 22px 18px;
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals */
.card-grid .card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out);
}
.card-grid.visible .card {
    opacity: 1;
    transform: translateY(0);
}
.card-grid.visible .card:nth-child(1) { transition-delay: 0s; }
.card-grid.visible .card:nth-child(2) { transition-delay: 0.08s; }
.card-grid.visible .card:nth-child(3) { transition-delay: 0.16s; }
.card-grid.visible .card:nth-child(4) { transition-delay: 0.24s; }
.card-grid.visible .card:nth-child(5) { transition-delay: 0.32s; }
.card-grid.visible .card:nth-child(6) { transition-delay: 0.40s; }
.card-grid.visible .card:nth-child(7) { transition-delay: 0.48s; }
.card-grid.visible .card:nth-child(8) { transition-delay: 0.56s; }

/* Metrics counter animation shimmer */
.metric strong {
    display: inline-block;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all 0.35s var(--ease);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.testimonial-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .testimonial-card {
    box-shadow: none;
}
[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 14px;
}
.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   MAP CONTAINER
   ======================================== */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   HOURS GRID
   ======================================== */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.hours-grid .hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-card);
    font-size: 0.9rem;
}
.hours-grid .hours-item:nth-child(odd) {
    background: var(--bg-elevated);
}
.hours-grid .hours-day {
    font-weight: 600;
    color: var(--text);
}
.hours-grid .hours-time {
    color: var(--text-secondary);
}
.hours-grid .hours-closed {
    color: var(--text-muted);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius);
    padding: 48px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1), transparent 70%);
    pointer-events: none;
}
.cta-banner h2 {
    color: #fff;
    margin-bottom: 8px;
    position: relative;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    position: relative;
}
.cta-banner-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.cta-banner .btn {
    background: #fff;
    color: var(--accent-hover);
    border-color: #fff;
}
.cta-banner .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--accent-hover);
}
.cta-banner .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.cta-banner .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ========================================
   STATS GRID
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.35s var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========================================
   VALUE CARDS
   ======================================== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.35s var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.value-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.value-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}
.value-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.value-card p {
    font-size: 0.88rem;
}

/* ========================================
   PRICE HINT
   ======================================== */
.price-hint {
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}
.price-hint-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.price-hint p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hours-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 20px 14px; }
    .stat-number { font-size: 1.6rem; }
    .cta-banner { padding: 32px 20px; }
    .cta-banner-actions { flex-direction: column; align-items: stretch; }
}

/* ========================================
   HERO IMAGE (Background Photo)
   ======================================== */
.hero-image {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248,250,252,0.7) 0%, rgba(248,250,252,0.95) 100%);
    z-index: 1;
}
.hero-image .container {
    position: relative;
    z-index: 2;
}
.hero-image h1 {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}
.hero-image p { color: var(--text-secondary); }
.hero-image .pill { color: var(--accent); }
[data-theme="dark"] .hero-image::before {
    background: linear-gradient(180deg, rgba(10,15,26,0.75) 0%, rgba(10,15,26,0.95) 100%);
}
[data-theme="dark"] .hero-image h1 { color: #fff; }
[data-theme="dark"] .hero-image p { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .hero-stats { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .hero-stat-number { color: #fff; }
[data-theme="dark"] .hero-stat-label { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .hero-stat-divider { background: rgba(255,255,255,0.15); }

/* ========================================
   HERO STATS BAR (inline in hero)
   ======================================== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding: 0 24px;
}
.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .hero-stats { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
    .hero-stat-divider { display: none; }
    .hero-stat { flex: 0 0 calc(50% - 8px); padding: 8px 0; }
}
@media (max-width: 600px) {
    .hero-stats { gap: 12px; padding: 14px 16px; }
    .hero-stat-number { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.72rem; }
}

/* ========================================
   SPLIT SECTION (Image + Text)
   ======================================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.split-section.reverse {
    direction: rtl;
}
.split-section.reverse > * {
    direction: ltr;
}
.split-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.split-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.split-section:hover .split-image img {
    transform: scale(1.03);
}
.split-content {
    padding: 64px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-elevated);
}
.split-content h2 { margin-bottom: 16px; }
.split-content .list { margin-top: 20px; }

/* ========================================
   FULL BANNER (Full-Width Image with Overlay)
   ======================================== */
.full-banner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
    text-align: center;
}
.full-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,15,26,0.7);
}
.full-banner .container {
    position: relative;
    z-index: 2;
}
.full-banner h2,
.full-banner h3 {
    color: #fff;
}
.full-banner p {
    color: rgba(255,255,255,0.85);
}
.full-banner .btn-primary {
    margin-top: 20px;
}
@supports (-webkit-touch-callout: none) {
    .full-banner { background-attachment: scroll; }
}

/* ========================================
   PROCESS STEPS (Numbered)
   ======================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
    padding: 32px 0;
}
.process-step {
    text-align: center;
    position: relative;
}
.process-step::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(50% + 36px);
    right: calc(-50% + 36px);
    height: 2px;
    background: var(--border-strong);
}
.process-step:last-child::before {
    display: none;
}
.process-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    transition: all 0.3s var(--ease);
    background: var(--bg);
    position: relative;
    z-index: 2;
}
.process-step:hover .process-step-number {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.process-step h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   FEATURE HIGHLIGHT (Image Card with Overlay)
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.feature-highlight {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
}
.feature-highlight img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.feature-highlight:hover img {
    transform: scale(1.06);
}
.feature-highlight-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background: linear-gradient(180deg, transparent 30%, rgba(10,15,26,0.85) 100%);
}
.feature-highlight-content h3,
.feature-highlight-content p {
    color: #fff;
}
.feature-highlight-content p {
    font-size: 0.88rem;
    margin: 0;
    opacity: 0.9;
}

/* ========================================
   CARD IMAGE (Image Header for Cards)
   ======================================== */
.card-image {
    margin: -26px -26px 18px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.card:hover .card-image img {
    transform: scale(1.06);
}

/* ========================================
   GALLERY GRID
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background: linear-gradient(transparent, rgba(10,15,26,0.8));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease);
}
.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* ========================================
   SECTION ACCENT (Alternating Background)
   ======================================== */
.section-accent {
    background: var(--bg-elevated);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-secondary);
    padding: 4px 2px;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-muted);
}
.breadcrumb .breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

/* ========================================
   MEGA-MENU
   ======================================== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown > a .dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.25s var(--ease);
    display: inline-block;
}
.nav-dropdown:hover > a .dropdown-arrow,
.nav-dropdown:focus-within > a .dropdown-arrow {
    transform: rotate(180deg);
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 28px 32px;
    min-width: 580px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border);
    z-index: 200;
}
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-menu-column h4 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.mega-menu-column a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.2s, padding-left 0.2s;
}
.mega-menu-column a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.mega-menu-column.mega-menu-highlight {
    grid-column: 1 / -1;
    background: var(--accent);
    margin: -28px -32px 0;
    padding: 20px 32px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    gap: 24px;
}
.mega-menu-column.mega-menu-highlight h4 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.mega-menu-column.mega-menu-highlight a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.mega-menu-column.mega-menu-highlight a:hover {
    color: #fff;
    padding-left: 0;
}
.mega-menu-badge {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.4;
}
.mega-menu-footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    text-align: center;
}
.mega-menu-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
}
.mega-menu-footer a:hover {
    color: var(--text);
}
[data-theme="dark"] .mega-menu {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border);
}

/* Mobile Mega-Menu */
.mobile-menu .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
.mobile-menu .mobile-dropdown-toggle:hover {
    color: var(--accent);
}
.mobile-menu .mobile-dropdown-toggle .dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s var(--ease);
}
.mobile-menu .mobile-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-submenu.open {
    max-height: 600px;
}
.mobile-submenu-category {
    padding: 12px 0 4px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.mobile-submenu-category:first-child {
    border-top: none;
    margin-top: 0;
}
.mobile-submenu a {
    display: block;
    padding: 10px 0 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-submenu a:hover {
    color: var(--accent);
    padding-left: 22px;
}

/* ========================================
   RELATED SERVICES
   ======================================== */
.related-services {
    padding: 64px 0;
}
.related-services h2 {
    text-align: center;
    margin-bottom: 8px;
}
.related-services .sub {
    text-align: center;
    margin-bottom: 32px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.related-grid .card .card-image {
    height: 160px;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========================================
   FOCUS STYLES (a11y)
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   DETAIL CARDS (Split-Header-Cards)
   ======================================== */
.detail-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.detail-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.detail-card__header {
    background: #1e293b;
    padding: 28px 28px 24px;
}
[data-theme="dark"] .detail-card__header {
    background: #0f172a;
}
.detail-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    color: #fff;
}
.detail-card__header h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}
.detail-card__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}
.detail-card__body {
    padding: 28px;
}
.detail-card__body > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 20px;
}
.detail-card__checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-card__checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--text);
    font-weight: 500;
}
.detail-card__checks li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ef4444' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========================================
   MOBILE UTILITY
   ======================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal p, .legal td, .modal__body p { word-break: break-word; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .menu-toggle { display: flex; order: 3; }
    .mega-menu { display: none; }
    .theme-toggle { order: 2; margin-left: auto; margin-right: 8px; }

    .hero { padding: 76px 0 52px; }
    .hero-image { padding: 100px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; }

    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .grid-split { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }

    .split-section { grid-template-columns: 1fr; }
    .split-section.reverse { direction: ltr; }
    .split-image { min-height: 280px; }
    .split-content { padding: 40px 28px; }

    .detail-cards { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .section { padding: 60px 0; }
    .form-row { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }

    .flex { flex-direction: column; align-items: flex-start; }

    .form .btn-primary { width: 100%; text-align: center; }
    .gallery-item figcaption { transform: translateY(0); opacity: 1; }
    .field input, .field select, .field textarea { font-size: 16px; }
}

@media (max-width: 600px) {
    .detail-cards { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
    .container.nav { height: 56px; }
    .brand-text strong { font-size: 0.8rem; }
    .brand-text span { display: none; }
    .brand-mark { width: 36px; height: 36px; font-size: 12px; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .hero { padding: 56px 0 40px; }
    .hero-image { padding: 80px 0 56px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .pill { text-align: center; }

    .full-banner { padding: 56px 0; background-attachment: scroll; }
    .split-content { padding: 32px 20px; }
    .split-image { min-height: 220px; }

    .gallery-grid { grid-template-columns: 1fr; }
    .feature-highlight { min-height: 240px; }

    .process-step::before { display: none; }
    .card-image { height: 150px; margin: -22px -22px 14px; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }

    .card { padding: 22px; }
    .panel { padding: 22px; }
    .cta-box { padding: 22px; }

    .partner-row { flex-direction: column; align-items: stretch; }
    .partner { text-align: center; }

    .metrics { grid-template-columns: 1fr; gap: 16px; }
    .metric strong { font-size: 1.8rem; }

    .table th, .table td { padding: 10px 12px; font-size: 0.85rem; }
}
