/* ==========================================================================
   MOSER Agrar & Baufachzentrum — Enterprise Theme
   ========================================================================== */

/* --- Poppins Font Face --- */
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* --- Custom Properties --- */
:root {
    --accent: #ec6704;
    --accent-hover: #d45d03;
    --accent-light: rgba(236, 103, 4, 0.07);
    --accent-glow: rgba(236, 103, 4, 0.25);
    --white: #ffffff;
    --bg: #ffffff;
    --bg-light: #f5f6f8;
    --bg-warm: #faf8f6;
    --bg-dark: #333333;
    --bg-dark-2: #3d3d3d;
    --text: #333333;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: #e2e4e8;
    --border-light: #eef0f2;

    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;

    --leading: 1.7;
    --tracking: -0.01em;
    --tracking-tight: -0.025em;
    --tracking-wide: 0.08em;

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-full: 0;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.1);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration: 0.2s;
    --duration-slow: 0.35s;

    --top-bar-height: 40px;
    --header-height: 60px;
    --total-header: calc(var(--top-bar-height) + var(--header-height));
    --container-max: 1240px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-weight: 400;
    line-height: var(--leading);
    color: var(--text);
    background: var(--bg);
    letter-spacing: var(--tracking);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--tracking-tight);
    color: var(--text-secondary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--space-sm); color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

.content-wrap p, .content-wrap ul, .content-wrap ol { max-width: 70ch; }
.content-wrap ul, .content-wrap ol { margin-bottom: var(--space-sm); padding-left: var(--space-md); }
.content-wrap ul { list-style: disc; }
.content-wrap ol { list-style: decimal; }
.content-wrap li { margin-bottom: var(--space-2xs); color: var(--text-secondary); }
.content-wrap h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.content-wrap h3 { margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.content-wrap table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; }
.content-wrap th, .content-wrap td { padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--border-light); text-align: left; }
.content-wrap th { font-weight: 600; color: var(--text); background: var(--bg-light); }
.content-center { text-align: center; }
.content-center p { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--text-base);
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--text);
    transform: translateY(-2px);
}
.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    font-size: var(--text-xs);
    height: var(--top-bar-height);
    display: none;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--top-bar-height);
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    transition: color var(--duration) var(--ease);
    text-decoration: none;
}
.top-bar-item:hover { color: var(--white); }
.top-bar-item svg, .top-bar-item .bi { opacity: 0.6; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--duration-slow) var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-light);
}

/* Hero-Header wrapper for fullscreen hero positioning */
.has-fullscreen-hero .hero-header-wrap {
    position: relative;
}

/* Fullscreen hero: header sits at bottom of hero, then fixed on scroll */
/* State 1: absolute bottom, slim bar */
.has-fullscreen-hero .site-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    background: rgba(255,255,255,0.95);
}
.has-fullscreen-hero .site-header:not(.scrolled) .header-inner {
    height: auto;
    padding: 0.25rem 0;
    justify-content: center;
}
.has-fullscreen-hero .site-header:not(.scrolled) .logo {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-30px);
}
.has-fullscreen-hero .site-header:not(.scrolled) .header-actions {
    display: none;
}

/* State 2: pinned at top, still slim (after auto-snap) */
.has-fullscreen-hero .site-header.pinned {
    position: fixed;
    top: 0;
    bottom: auto;
    background: rgba(255,255,255,0.98);
    overflow: visible;
}
.has-fullscreen-hero .site-header.pinned .header-inner {
    overflow: visible;
}
/* Pinned: keep slim but fixed */

/* State 3: scrolled — full header with logo */
.has-fullscreen-hero .site-header.scrolled {
    position: fixed;
    top: 0;
    bottom: auto;
    height: var(--header-height);
    background: rgba(255,255,255,0.98);
}
.has-fullscreen-hero .site-header.scrolled .header-inner {
    height: var(--header-height);
    padding: 0;
    justify-content: space-between;
}
.has-fullscreen-hero .site-header.scrolled .logo {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.has-fullscreen-hero .site-header.scrolled .header-actions {
    display: flex;
}
/* Dropdown direction based on header position (JS adds .nav-drop-down when above 50vh) */
/* Default: dropup (nav in lower half) */
.has-fullscreen-hero .site-header:not(.nav-drop-down) .nav-dropdown {
    top: auto;
    bottom: 100%;
    padding-top: var(--space-xs);
    padding-bottom: calc(var(--space-xs) + 10px);
    animation: dropUp var(--duration) var(--ease-out);
}
.has-fullscreen-hero .site-header:not(.nav-drop-down) .nav-dropdown::before {
    top: auto;
    bottom: -10px;
    height: 10px;
}
.has-fullscreen-hero .site-header:not(.nav-drop-down) .nav-chevron {
    transform: rotate(180deg);
}
/* Dropdown (nav in upper half) */
.has-fullscreen-hero .site-header.nav-drop-down .nav-dropdown {
    top: 100%;
    bottom: auto;
    padding-top: calc(var(--space-xs) + 10px);
    padding-bottom: var(--space-xs);
}
.has-fullscreen-hero .site-header.nav-drop-down .nav-dropdown::before {
    top: -10px;
    bottom: auto;
}
@keyframes dropUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}


/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-img { height: 36px; width: auto; transition: height var(--duration-slow) var(--ease); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.logo-sub { font-size: 0.55rem; font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--accent); }

/* Desktop Nav */
.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: block;
    padding: 0.6rem 1rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    position: relative;
}
.nav-link:hover, .nav-item.active > .nav-link { color: var(--text); }
.nav-item.active > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* Dropdown chevron indicator */
.nav-chevron {
    font-size: 0.85em;
    margin-left: 0.2em;
    transition: transform var(--duration) var(--ease);
    display: inline-block;
    vertical-align: middle;
    color: var(--text-secondary);
}
.nav-item:hover > .nav-link .nav-chevron {
    color: var(--accent-hover);
}
/* Chevron direction is now controlled via .nav-drop-down class */

/* Nav Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -0.5rem;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xs);
    padding-top: calc(var(--space-xs) + 10px);
    z-index: 100;
    border: 1px solid var(--border-light);
    animation: dropIn var(--duration) var(--ease-out);
}
/* Invisible bridge to cover gap between nav-item and dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-item:hover > .nav-dropdown { display: block; }
.nav-dropdown .nav-link { padding: 0.5rem 0.75rem; font-size: var(--text-sm); }
.nav-dropdown .nav-link:hover { background: var(--bg-light); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: var(--space-xs); }
.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}
.header-action-btn:hover { color: var(--accent); background: var(--accent-light); }
.header-phone { display: none; }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: var(--space-xs);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 999;
    padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    transition: right var(--duration-slow) var(--ease);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-nav.open { right: 0; }
.mobile-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.mobile-nav .nav-link {
    padding: 1rem 0;
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}
.mobile-nav .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-sm);
    min-width: auto;
    animation: none;
}
.mobile-nav .nav-item.sub-open > .nav-dropdown { display: block; }
.mobile-nav .nav-dropdown .nav-link {
    font-size: var(--text-base);
    color: var(--text-muted);
    padding: 0.75rem 0;
}
.mobile-nav .nav-item.has-children > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav .nav-item.has-children > .nav-link::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--duration) var(--ease);
    flex-shrink: 0;
    margin-left: var(--space-sm);
}
.mobile-nav .nav-item.sub-open > .nav-link::after {
    transform: rotate(-135deg);
}
.mobile-nav-footer {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}
.mobile-nav-contact {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text);
    font-weight: 600;
    font-size: var(--text-lg);
    text-decoration: none;
    margin-bottom: var(--space-xs);
}
.mobile-nav-contact svg, .mobile-nav-contact .bi { color: var(--accent); }
.mobile-nav-hours { color: var(--text-muted); font-size: var(--text-sm); }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    padding: var(--space-2xl) 0 calc(3rem + var(--space-2xl));
    overflow: hidden;
}
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(26, 26, 26, 0.65) 40%,
        rgba(26, 26, 26, 0.3) 100%
    );
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero-pretitle {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    padding: 0.35rem 1rem;
    background: rgba(236, 103, 4, 0.15);
    border-radius: var(--radius-full);
}
.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}
.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--space-xl);
    max-width: 520px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ==========================================================================
   SERVICE BAR
   ========================================================================== */
.section-services {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-lg) 0;
    position: relative;
    z-index: 3;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
.service-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    color: var(--accent);
    flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }
.service-icon .bi { font-size: 22px; }
.service-content {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.service-content strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}
.service-content span {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: var(--space-3xl) 0;
}
.bg-light { background: var(--bg-light); }
.bg-warm { background: var(--bg-warm); }
.bg-dark { background: var(--bg-dark); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.7); }
.bg-dark .section-pretitle { color: var(--accent); }

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-pretitle {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}
.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    transition: all var(--duration-slow) var(--ease);
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--accent);
    transition: all var(--duration) var(--ease);
}
.card:hover .card-icon {
    background: var(--accent);
    color: var(--white);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon .bi { font-size: 24px; }
.card h3 { margin-bottom: var(--space-xs); font-size: 1.125rem; }
.card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    margin-top: var(--space-md);
    transition: gap var(--duration) var(--ease);
}
.card-link:hover { gap: 10px; color: var(--accent-hover); }

/* ==========================================================================
   STATS
   ========================================================================== */
.section-stats {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}
.section-stats::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
}
.stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
}
.stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}
.stat-sublabel {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

/* ==========================================================================
   SPLIT / TEXT LAYOUT
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.split-content h2 { margin-bottom: var(--space-md); }
.split-content p { font-size: var(--text-base); line-height: 1.8; }
.split-content .btn { margin-top: var(--space-lg); }
.split-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.6s var(--ease);
}
.split-image:hover img { transform: scale(1.03); }

/* ==========================================================================
   CTA
   ========================================================================== */
.section-cta { padding: var(--space-2xl) 0; }
.cta-box {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.cta-content h2 { color: var(--white); margin-bottom: var(--space-sm); }
.cta-content p { color: rgba(255,255,255,0.7); max-width: 500px; font-size: var(--text-lg); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); position: relative; z-index: 1; }

/* ==========================================================================
   LOCATIONS (Tab-based)
   ========================================================================== */
.section-locations { padding: var(--space-2xl) 0; background: var(--bg-light); }
.section-locations .container { padding: 0 var(--space-xs); }

/* --- Tab bar --- */
.location-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.location-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-xs);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-align: center;
    min-height: 56px;
}
.location-tab:hover {
    border-color: var(--text);
    background: var(--white);
}
.location-tab.active {
    border-color: var(--accent);
    background: var(--white);
    color: var(--text);
    box-shadow: none;
}
.location-tab-name {
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1.3;
}
.location-tab-type {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}
.location-tab.active .location-tab-type { color: var(--text-secondary); }

/* --- Location Card --- */
.location-card {
    display: none;
}
.location-card.active { display: block; }

.location-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.location-card-badge {
    display: inline-block;
    background: rgba(236, 103, 4, 0.1);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.location-card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.location-features {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

/* --- Contact details --- */
.location-card-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.location-card-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text);
}
.location-card-detail svg, .location-card-detail .bi {
    flex-shrink: 0;
    color: var(--accent);
}
.location-card-detail a {
    color: var(--text);
    transition: color var(--duration) var(--ease);
}
.location-card-detail a:hover { color: var(--accent); }

/* --- Opening hours --- */
.location-hours {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}
.location-hours h4 {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}
.location-hours h4 svg, .location-hours h4 .bi { color: var(--accent); }

.hours-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--accent);
    margin-bottom: var(--space-xs);
    margin-top: var(--space-md);
}
.hours-label:first-of-type { margin-top: 0; }

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xs);
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xs);
    padding: 6px 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hours-list li:last-child { border-bottom: none; }
.hours-day {
    font-weight: 500;
    color: var(--text);
    flex-shrink: 0;
}
.hours-time { color: var(--text-secondary); text-align: right; }

/* --- Route button --- */
.location-card-info .btn-outline-accent {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    background: transparent;
}
.location-card-info .btn-outline-accent:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- Map image --- */
.location-card-map {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 200px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
.location-card-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.location-card-info {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
.footer-logo { display: flex; flex-direction: column; line-height: 1.1; margin-bottom: var(--space-md); }
.footer-logo .logo-main { font-size: 1.5rem; color: var(--white); }
.footer-logo .logo-sub { color: var(--accent); }
.footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.5); line-height: 1.6; }

.site-footer h4 {
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
}
.footer-contact svg, .footer-contact .bi { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--white); }

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    max-width: 240px;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-hours span:first-child { font-weight: 500; color: rgba(255,255,255,0.8); }

.footer-nav li { margin-bottom: var(--space-xs); }
.footer-nav a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.55);
    transition: all var(--duration) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-nav a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration) var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-nav a:hover::before { width: 12px; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: var(--text-xs);
}
.footer-bottom p { color: rgba(255,255,255,0.35); margin: 0; }
.footer-links { display: flex; gap: var(--space-md); }
.footer-links a { color: rgba(255,255,255,0.35); font-size: var(--text-xs); }
.footer-links a:hover { color: var(--white); }

/* ==========================================================================
   NEWS
   ========================================================================== */
.section-news { padding: var(--space-3xl) 0; }
.news-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

/* Mobile: natural HTML order = Title → Image → Text */
.news-card {
    display: grid;
    gap: var(--space-md);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-md);
    box-shadow: var(--shadow-card-hover);
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.news-card-meta .bi {
    font-size: 0.8125rem;
    margin-right: 3px;
    color: var(--accent);
    vertical-align: -1px;
}
.news-card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
}
.news-card-pretitle {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-2xs);
}
.news-card-caption {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
    line-height: 1.4;
}
.news-card-body p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
}
.news-card-body .btn {
    margin-top: var(--space-md);
}

/* --- Error Page --- */
.error-page { text-align: center; padding: var(--space-4xl) 0; }
.error-page h1 { font-size: 8rem; font-weight: 700; color: var(--border); margin-bottom: var(--space-sm); line-height: 1; }
.error-page p { font-size: var(--text-lg); margin-bottom: var(--space-xl); }

/* --- Spacer --- */
main#content { padding-top: var(--header-height); }
.page-modular main#content { padding-top: 0; }
.has-fullscreen-hero main#content { padding-top: 0; }

/* ==========================================================================
   RESPONSIVE — Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .top-bar { display: block; }
    .site-header { top: var(--top-bar-height); }
    .site-header.scrolled { top: 0; }
    main#content { padding-top: var(--total-header); }
    .page-modular main#content { padding-top: 0; }
    .has-fullscreen-hero main#content { padding-top: 0; }
    .has-fullscreen-hero .top-bar { display: none; }
    .has-fullscreen-hero .site-header { top: auto; }
    .has-fullscreen-hero .site-header.scrolled { top: 0; }
    .hero { min-height: 100vh; padding: var(--space-2xl) 0 calc(3rem + var(--space-2xl)); }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .location-card-grid { grid-template-columns: 1fr 1fr; align-items: start; overflow: visible; }
    .location-card-map {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        z-index: auto;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        background: var(--bg-light);
    }
    .location-card-map img { min-height: 350px; }
    .location-tabs { grid-template-columns: repeat(4, 1fr); }
    .location-tab-name { font-size: var(--text-base); }
    .section-locations .container { padding: 0 var(--space-md); }
    .location-card-grid { padding: var(--space-xl); gap: var(--space-xl); border-radius: var(--radius-xl); }
    .location-hours { padding: var(--space-lg); margin-bottom: var(--space-lg); }
    .hours-list li { font-size: var(--text-sm); }
    .hours-day { min-width: 80px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    /* News: image left, title + text right */
    .news-card {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        gap: var(--space-md) var(--space-xl);
        padding: var(--space-xl);
    }
    .news-card-image {
        grid-column: 1;
        grid-row: 1 / -1;
    }
    .news-card-header {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
    }
    .news-card-body {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    /* Alternate: even cards → image right, text left */
    .news-card:nth-child(even) .news-card-image {
        grid-column: 2;
        grid-row: 1 / -1;
    }
    .news-card:nth-child(even) .news-card-header {
        grid-column: 1;
    }
    .news-card:nth-child(even) .news-card-body {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .cta-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-2xl) var(--space-2xl);
    }
    .header-phone { display: flex; }
}

/* ==========================================================================
   RESPONSIVE — Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .header-location { display: flex; }

    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

    .hero {
        min-height: 100vh;
        padding: var(--space-4xl) 0 calc(3rem + var(--space-2xl));
    }
    .hero h1 { font-size: 3.75rem; }
    .hero-content { max-width: 700px; }

    .card { padding: var(--space-xl) var(--space-lg); }
}

/* ==========================================================================
   RESPONSIVE — Large (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
    .container { padding: 0 var(--space-lg); }
    .hero h1 { font-size: 4rem; }
}

/* --- Utility --- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-accent { color: var(--accent); }
