/* ==========================================================================
   Malermeisterbetrieb Schneider — style.css

   1  Design tokens
   2  Base / reset
   3  Layout & utilities
   4  Buttons
   5  Header & navigation
   6  Sections (hero → faq)
   7  Contact form
   8  Consent banner, dialogs (consent + legal)
   9  Footer & mobile CTA
   10 Motion (keyframes, scroll reveal)
   11 Responsive: 1024 → 768 → 600 → 380
   12 Reduced motion
   ========================================================================== */


/* 1 — DESIGN TOKENS
   ========================================================================== */

:root {
    /* Colors */
    --color-white: #FAFAF8;
    --color-off-white: #F5F3F0;
    --color-beige: #E8E5DC;
    --color-gray-light: #D9D6D0;
    --color-gray-medium: #6F6D66;      /* was #8B8980 — darkened for WCAG AA (4.5:1) */
    --color-gray-on-dark: #A09D94;     /* secondary text on anthracite (AA) */
    --color-gray-dark: #4A4845;
    --color-anthracite: #2B2925;
    --color-accent: #8B6914;
    --color-accent-light: #C9A227;     /* accent on dark backgrounds (AA) */
    --accent-rgb: 184, 134, 11;        /* tint overlays / glows */
    --color-text: #2B2925;
    --color-text-light: #4A4845;
    --color-border: #E8E5DC;
    --color-error: #B00020;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-size-base: 16px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    /* Fluid sizes (replace the former per-breakpoint h1/h2/h3 patches) */
    --fs-hero:  clamp(22px, 6.5vw - 2px, 64px);
    --fs-title: clamp(1.5rem, 0.2rem + 5.6vw, 4rem);
    --fs-h2:    clamp(1.25rem, 0.3rem + 4.1vw, 3rem);
    --fs-h3:    clamp(1rem, 0.52rem + 2vw, 1.5rem);
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;

    /* Shadows, radius, motion */
    --shadow-sm: 0 2px 8px rgba(43, 41, 37, 0.08);
    --shadow-md: 0 4px 16px rgba(43, 41, 37, 0.12);
    --shadow-lg: 0 8px 32px rgba(43, 41, 37, 0.15);
    --radius: 4px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layers */
    --z-sticky-cta: 999;
    --z-header: 1000;
    --z-progress: 1001;
    --z-banner: 1002;

    /* Height of the sticky header when anchors are followed */
    --header-offset: 96px;
}


/* 2 — BASE / RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;                 /* all in-page anchors — no JS needed */
    scroll-padding-top: var(--header-offset);
}

/* Lock page scroll while any modal dialog is open */
html:has(dialog[open]) {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
}

/* Keyboard focus only (replaces the old JS focus-outline handlers) */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.section.dark :focus-visible,
.cookie-banner :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--color-accent-light);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--spacing-sm);
    z-index: 2000;
    padding: 8px 16px;
    border-radius: var(--radius);
    background: var(--color-anthracite);
    color: var(--color-white);
}

.skip-link:focus {
    top: var(--spacing-sm);
}


/* 3 — LAYOUT & UTILITIES
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section.dark {
    background-color: var(--color-anthracite);
    color: var(--color-white);
}

.section.light-gray {
    background-color: var(--color-off-white);
}

.section-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    text-align: center;
}

.section-header--full {
    max-width: none;
}

.eyebrow {
    display: block;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-gray-medium);
}

h1, h2, h3 {
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: var(--line-height-tight);
}

h1 { font-size: var(--fs-title); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

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

.form-checkbox a,
.form-info a,
.map-consent a {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* 4 — BUTTONS
   ========================================================================== */

.btn-primary,
.btn-secondary,
.cta-button,
.form-button {
    display: inline-block;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary,
.btn-secondary {
    padding: 14px 40px;
    overflow: hidden;                        /* keeps the original line-box spacing below inline buttons */
    white-space: normal;
}

.btn-primary,
.cta-button,
.form-button {
    background-color: var(--color-anthracite);
    color: var(--color-white);
}

.btn-primary {
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-gray-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--color-text);
    background-color: transparent;
    color: var(--color-text);
}

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

.cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
}

.cta-button:hover,
.form-button:hover:not(:disabled) {
    background-color: var(--color-gray-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Buttons inside the dark CTA section */
.cta-section .btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.cta-section .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-anthracite);
}


/* 5 — HEADER & NAVIGATION
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-progress);
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideDown 0.6s var(--ease-spring);
}

.site-header.scrolled {
    padding: var(--spacing-sm) 0;
    background-color: rgba(250, 250, 248, 0.98);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.2;
    animation: slideInLeft 0.7s var(--ease-spring);
}

.logo img {
    width: 56px;
    height: 56px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 0.4s var(--ease-spring);
}

.logo:hover img {
    transform: scale(1.15) rotate(5deg);
}

.logo-main {
    display: block;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.logo-sub {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--color-gray-medium);
}

.nav-links {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 24px;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* 6 — SECTIONS
   ========================================================================== */

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-white);
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {                               /* light tint over the photo */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(245, 243, 240, 0.4) 0%, rgba(232, 229, 220, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.hero .eyebrow {
    color: var(--color-accent);
}

.hero h1 {
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-hero);
    line-height: 1.2;
    color: var(--color-anthracite);
}

.hero-subheading {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Trust bar */
.trust-bar {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.trust-bar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.trust-bar-item {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gray-medium);
}

.trust-bar-item::before {
    content: '◆';
    margin-right: 8px;
    font-size: 6px;
    color: var(--color-accent);
}

/* Intro */
.intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.intro .btn-primary {
    margin-top: var(--spacing-lg);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.service-card {
    position: relative;
    padding: var(--spacing-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-bottom: 3px solid transparent;
    border-radius: var(--radius);
    background-color: var(--color-white);
    transition: border-color 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.service-card::before {                      /* accent line that sweeps in on hover */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: width 0.5s var(--ease-spring);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    width: 100%;
}

.service-card p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.services-cta {
    text-align: center;
}

/* Visual performance */
.visual-performance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
}

.visual-performance-image,
.about-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-gray-light) 100%);
}

.visual-performance-image {
    height: 400px;
}

.visual-performance-image img,
.about-image img,
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-performance-content > p {
    margin-bottom: var(--spacing-lg);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.process-step {
    display: flex;
    gap: var(--spacing-md);
}

.process-step-number {
    flex: 0 0 40px;
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-accent);
}

.process-step-text {
    flex: 1;
}

.process-step-text strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--color-text);
}

.process-step-text span {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    position: relative;
    padding: var(--spacing-lg);
    overflow: hidden;
    text-align: center;
}

.benefit-card::after {                       /* soft glow on hover */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius);
    background-color: var(--color-off-white);
    font-size: 32px;
    color: var(--color-accent);
}

.benefit-card h3,
.timeline-step h3 {
    margin-bottom: var(--spacing-sm);
}

.benefit-card p,
.timeline-step p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    position: relative;
    padding: 8px 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.filter-btn::after {                         /* underline for hover / active */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-spring);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    border-color: var(--color-text);
    background-color: var(--color-text);
    color: var(--color-white);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    transform: scaleX(1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--color-off-white);
    transition: box-shadow 0.5s var(--ease-spring);
}

.portfolio-item::before {                    /* gold tint on hover */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item img {
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: var(--shadow-lg);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item.is-entering {                /* re-played by the filter in main.js */
    animation: fadeInUp 0.5s ease-out calc(var(--i, 0) * 0.1s) backwards;
}

.portfolio-cta {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.timeline-step {
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.4s var(--ease-spring);
}

.timeline-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(var(--accent-rgb), 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.timeline-step:hover {
    box-shadow: var(--shadow-md);
}

.timeline-step:hover::before {
    opacity: 1;
}

.timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background-color: var(--color-anthracite);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-white);
}

/* Region */
.region-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.region-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.region-location {
    padding: var(--spacing-md);
    border-radius: var(--radius);
    background-color: var(--color-off-white);
    font-weight: 500;
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-image {
    aspect-ratio: 1;
}

.about-content > p {
    line-height: var(--line-height-relaxed);
}

.about-highlight {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--color-accent);
    background: linear-gradient(135deg, var(--color-off-white) 0%, rgba(var(--accent-rgb), 0.1) 100%);
    font-style: italic;
    font-weight: 500;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.about-highlight:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

/* CTA */
.cta-section {
    position: relative;
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--color-white);
}

.cta-section .eyebrow {
    color: var(--color-accent-light);
}

.cta-section-subheading {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray-light);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.cta-section-location {
    font-size: var(--font-size-base);
    color: var(--color-gray-light);
}

/* Contact block */
.contact-title {
    margin-bottom: var(--spacing-xl);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-block {
    padding-left: var(--spacing-md);
    border-left: 3px solid var(--color-accent);
}

.contact-block h4 {
    margin-bottom: 6px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
}

.contact-block p {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.contact-hours {
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    background-color: var(--color-off-white);
}

.contact-hours-title {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: var(--font-size-sm);
}

.hours-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hours-item span:first-child {
    font-weight: 500;
}

.hours-item span:last-child {
    color: var(--color-text-light);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
    width: 100%;
    margin-top: var(--spacing-xl);
}

.contact-btn {
    position: relative;
    display: inline-block;
    flex: 1 1 160px;
    padding: 16px 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-off-white);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--color-text);
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-spring);
}

.contact-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(var(--accent-rgb), 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-btn:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.contact-btn:hover::after {
    opacity: 1;
}

/* Map */
.map-section {
    width: 100%;
    height: 400px;
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--color-off-white);
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-gray-light) 100%);
    color: var(--color-text-light);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent {
    max-width: 480px;
    padding: var(--spacing-lg);
    text-align: center;
}

.map-consent p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.map-consent a {
    font-weight: 600;
    color: var(--color-anthracite);
}

.map-consent .consent-btn {
    padding: 10px 24px;
}

/* FAQ */
.faq-section {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-item h3 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md) 0;
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: left;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.faq-question::before {                      /* marker bar while open */
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-accent);
    transform: translateY(-50%);
    transition: height 0.4s var(--ease-spring);
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: var(--font-size-xl);
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;                      /* closed answers are not read or focusable */
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    transition: max-height 0.3s ease, visibility 0.3s;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-item.open .faq-question::before {
    height: 100%;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: var(--spacing-md);
    visibility: visible;
}


/* 7 — CONTACT FORM
   ========================================================================== */

.form-section {
    max-width: 600px;
    margin: 0 auto;
}

.form-section h2 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input.is-filled,
.form-group textarea.is-filled {
    border-color: var(--color-accent);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35);
}

.form-group [aria-invalid="true"] {
    border-color: var(--color-error);
}

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

.field-error {
    display: block;
    margin-top: 6px;
    font-size: var(--font-size-xs);
    color: var(--color-error);
}

.field-error:empty {
    display: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.form-checkbox input {
    flex: 0 0 auto;
    width: auto;
    margin-top: 4px;
}

.form-checkbox-group {
    margin-bottom: var(--spacing-md);
}

.form-checkbox-group .form-checkbox {
    margin-bottom: 0;
}

.form-button {
    width: 100%;
    padding: 14px;
    margin-bottom: var(--spacing-md);
    white-space: normal;
}

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-info {
    font-size: var(--font-size-sm);
    text-align: center;
    color: var(--color-text-light);
}

.form-info + .form-info {
    margin-top: 4px;
}

.form-status {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.form-status.is-error {
    color: var(--color-error);
}

.hp-field {                                  /* honeypot: invisible for people */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* 8 — CONSENT BANNER & DIALOGS
   ========================================================================== */

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-banner);
    padding: var(--spacing-md);
    background: var(--color-anthracite);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    font-size: var(--font-size-sm);
    text-align: center;
    color: var(--color-white);
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner p {
    margin-bottom: var(--spacing-sm);
    color: inherit;
}

.cookie-banner a {
    text-decoration: underline;
    color: var(--color-accent-light);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.consent-btn {
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
}

.consent-btn--primary {
    background: var(--color-accent);
    font-weight: 600;
    color: var(--color-white);
}

.consent-btn--outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.consent-btn--link {
    text-decoration: underline;
    color: var(--color-white);
}

.consent-btn--ghost {
    border-color: var(--color-border);
    color: var(--color-anthracite);
}

/* Consent settings dialog */
.consent-dialog {
    width: calc(100% - 2 * var(--spacing-md));
    max-width: 480px;
    padding: var(--spacing-xl);
    border: 0;
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: var(--color-anthracite);
}

.consent-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.dialog-title {
    font-size: var(--fs-h3);
}

.consent-dialog > p {
    font-size: var(--font-size-sm);
}

.consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.consent-row-desc {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.legal-page {
    padding: var(--spacing-2xl) 0;
    background: var(--color-white);
    animation: fadeInUp 0.3s ease-out;
}

.legal-page--alt {
    background: var(--color-off-white);
}

.legal-container {
    max-width: 900px;
}

.legal-page a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-title {
    margin-bottom: var(--spacing-xl);
    font-size: var(--fs-title);
}

.legal-heading {
    margin: var(--spacing-xl) 0 var(--spacing-md);
    font-size: var(--fs-h2);
}

.legal-subheading {
    margin: var(--spacing-lg) 0 var(--spacing-md);
    font-size: var(--fs-h3);
    line-height: var(--line-height-tight);
}

.legal-list {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    color: var(--color-text-light);
}

.legal-list li {
    margin-bottom: 8px;
}

.legal-updated {
    margin-top: var(--spacing-2xl);
    font-size: var(--font-size-sm);
    color: var(--color-gray-medium);
}

.legal-fill {                                /* owner-supplied data still missing */
    padding: 0 4px;
    border-radius: 2px;
    font-style: normal;
    color: var(--color-anthracite);
}


/* 9 — FOOTER & MOBILE CTA
   ========================================================================== */

.site-footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid #3d3a36;
    background-color: var(--color-anthracite);
    color: var(--color-white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    margin-bottom: var(--spacing-md);
}

.footer-brand-name {
    margin-bottom: 4px;
    font-weight: 700;
}

.footer-brand-sub {
    font-size: var(--font-size-sm);
    color: var(--color-gray-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: var(--spacing-md);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #3d3a36;
    border-radius: 50%;
    color: var(--color-gray-light);
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: var(--color-anthracite);
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.footer-heading {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: var(--line-height-normal);
}

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

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

.footer-section a {
    font-size: var(--font-size-sm);
    color: var(--color-gray-light);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #3d3a36;
    font-size: var(--font-size-sm);
    color: var(--color-gray-on-dark);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-links a,
.footer-link-btn {
    font-size: inherit;
    line-height: inherit;
    color: var(--color-gray-on-dark);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link-btn:hover {
    color: var(--color-white);
}

.mobile-sticky-cta {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-sticky-cta);
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.mobile-sticky-cta a {
    flex: 1;
    padding: 12px;
    border: 0;
    font-size: var(--font-size-sm);
    text-align: center;
}

.mobile-sticky-cta .btn-secondary {
    border: 1px solid var(--color-border);
    background-color: var(--color-off-white);
    color: var(--color-text);
}


/* 10 — MOTION
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal: main.js adds .reveal only to elements below the fold and
   removes both classes again when the animation has finished. */
.reveal {
    opacity: 0;
}

.reveal.is-visible {
    animation: fadeInUp 0.8s var(--ease-spring) var(--reveal-delay, 0s) both;
}

.nav-links.open {
    animation: slideDown 0.3s ease-out;
}


/* 11 — RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .visual-performance,
    .about,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .visual-performance-image {
        order: -1;
        height: 350px;
    }

    .about-image {
        order: -1;
        max-height: 400px;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-2xl: 60px;
        --spacing-xl: 40px;
        --header-offset: 80px;
    }

    /* Header & mobile menu */
    .site-header {
        padding: 12px 0;
    }

    .site-header.scrolled {
        padding: 8px 0;
    }

    .hamburger {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: var(--z-sticky-cta);
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
        background: var(--color-white);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .logo-sub {
        font-size: var(--font-size-xs);
    }

    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .hero {
        height: auto;
        min-height: 60vh;
        padding: 40px 0;
    }

    .hero h1 {
        margin-bottom: var(--spacing-lg);
    }

    .hero-subheading {
        margin-bottom: var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .trust-bar-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .trust-bar-item {
        font-size: var(--font-size-xs);
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .benefit-card {
        padding: var(--spacing-md);
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: var(--font-size-xs);
        white-space: nowrap;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .timeline-step {
        padding: var(--spacing-md);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        background: var(--color-white);
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .map-section {
        height: 300px;
    }

    .mobile-sticky-cta {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 600px) {
    :root {
        --spacing-2xl: 48px;
        --spacing-xl: 32px;
        --spacing-lg: 24px;
        --radius: 3px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .eyebrow {
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-xs);
        letter-spacing: 1px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 11px 16px;
        font-size: var(--font-size-sm);
    }

    /* Hero */
    .hero {
        min-height: 50vh;
        padding: 30px 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    .hero h1 {
        margin-bottom: var(--spacing-md);
    }

    .hero-subheading {
        margin-bottom: var(--spacing-md);
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 8px;
    }

    /* Trust bar */
    .trust-bar {
        padding: var(--spacing-md) 0;
    }

    .trust-bar-content {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trust-bar-item {
        padding: 6px 0;
    }

    /* Cards */
    .services-grid,
    .benefits-grid {
        gap: var(--spacing-md);
    }

    .service-card h3 {
        margin-bottom: var(--spacing-sm);
    }

    .service-card p,
    .benefit-card p,
    .timeline-step p {
        font-size: var(--font-size-xs);
    }

    .service-card p {
        line-height: 1.5;
    }

    .benefit-icon {
        width: 45px;
        height: 45px;
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-lg);
    }

    .benefit-card h3,
    .timeline-step h3 {
        margin-bottom: 6px;
        font-size: var(--font-size-base);
    }

    .portfolio-grid {
        gap: 8px;
    }

    .timeline {
        gap: var(--spacing-sm);
    }

    .timeline-number {
        width: 45px;
        height: 45px;
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-base);
    }

    /* Content blocks */
    .visual-performance-image,
    .about-image {
        height: 250px;
    }

    .process-step-number {
        flex-basis: 30px;
        font-size: var(--font-size-lg);
    }

    .process-step-text strong {
        margin-bottom: 2px;
        font-size: var(--font-size-sm);
    }

    .process-step-text span {
        font-size: var(--font-size-xs);
    }

    .region-locations {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .region-location {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }

    .about-highlight {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .cta-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .cta-section h2 {
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-xl);
    }

    .cta-section-subheading {
        margin-bottom: var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .cta-buttons {
        flex-direction: column;
        gap: 8px;
    }

    /* Form */
    .form-group label {
        margin-bottom: 6px;
        font-size: var(--font-size-xs);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px var(--spacing-sm);
        font-size: var(--font-size-sm);
    }

    .form-button {
        padding: 12px;
        font-size: var(--font-size-sm);
    }

    .form-info {
        font-size: var(--font-size-xs);
    }

    /* Contact */
    .contact-section {
        gap: var(--spacing-lg);
    }

    .contact-info h3 {
        font-size: var(--font-size-base);
    }

    .contact-block {
        margin-bottom: var(--spacing-md);
    }

    .contact-block h4 {
        margin-bottom: 4px;
        font-size: var(--font-size-sm);
    }

    .contact-block p,
    .hours-item {
        font-size: var(--font-size-xs);
    }

    .contact-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .contact-btn {
        padding: 10px 16px;
        font-size: var(--font-size-xs);
    }

    .contact-hours {
        padding: var(--spacing-md);
    }

    .contact-hours-title {
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }

    .hours-list {
        gap: 6px;
    }

    .map-section {
        height: 250px;
        margin-bottom: var(--spacing-lg);
    }

    /* FAQ */
    .faq-section {
        max-width: 100%;
    }

    .faq-item {
        padding: var(--spacing-md) 0;
    }

    .faq-question {
        padding: var(--spacing-sm) 0;
    }

    .faq-toggle {
        width: 20px;
        height: 20px;
        font-size: var(--font-size-base);
    }

    .faq-answer {
        font-size: var(--font-size-xs);
    }

    .faq-item.open .faq-answer {
        padding-bottom: var(--spacing-sm);
    }

    /* Footer & sticky CTA */
    .site-footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-heading {
        font-size: var(--font-size-sm);
    }

    .footer-section a {
        font-size: var(--font-size-xs);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        font-size: var(--font-size-xs);
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 8px var(--spacing-sm);
    }

    .mobile-sticky-cta {
        gap: 8px;
        padding: 8px;
    }

    .mobile-sticky-cta a {
        padding: 10px;
        font-size: var(--font-size-xs);
    }
}

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

    .logo {
        gap: 4px;
    }

    .logo img {
        margin-right: 4px;
    }
}


/* 12 — REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
