/* ==========================================================================
   Distinct Spaces — Shared stylesheet
   Used by all pages (home + service pages + contact + legal)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */

:root {
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Colour system */
    --bg: #fafaf7;
    --bg-soft: #f5f0eb;
    --ink: #1a1a1a;
    --ink-muted: #6b6b6b;
    --ink-faint: #999999;
    --line: #e8e5dd;
    --line-strong: #d4cfc4;

    --dark: #1a1a1a;
    --dark-soft: #2a2a2a;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, 0.7);
    --on-dark-faint: rgba(255, 255, 255, 0.4);

    --accent: #b8513a;
    --accent-hover: #a24631;
    --accent-soft: #f0c4b5;
    --accent-bg: #fff5ed;

    /* Layout */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --container: 1200px;
    --container-narrow: 900px;
    --container-wide: 1400px;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
    --s-10: 128px;
}

/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 {
    color: var(--on-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    max-width: 65ch;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: var(--s-3);
}

.on-dark .eyebrow {
    color: var(--accent-soft);
}

.lede {
    font-size: 1.125rem;
    color: var(--ink-muted);
    line-height: 1.6;
    max-width: 55ch;
}

.on-dark .lede {
    color: var(--on-dark-muted);
}

/* ---------- Layout helpers ---------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-5);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--s-5);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--s-5);
}

.section {
    padding: var(--s-9) 0;
}

.section-tight {
    padding: var(--s-7) 0;
}

.section-wide {
    padding: var(--s-10) 0;
}

.section-header {
    max-width: 640px;
    margin: 0 auto var(--s-7);
    text-align: center;
}

.section-header.left {
    margin-left: 0;
    text-align: left;
}

.section-header h2 {
    margin-bottom: var(--s-3);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--on-dark);
    border: 1px solid var(--accent);
}

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

.btn-dark {
    background: var(--dark);
    color: var(--on-dark);
    border: 1px solid var(--dark);
}

.btn-dark:hover {
    background: var(--dark-soft);
    border-color: var(--dark-soft);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-light {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.btn-ghost-light:hover {
    background: var(--bg-soft);
    border-color: var(--ink);
}

.btn-large {
    padding: 16px 28px;
    font-size: 1rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 14px var(--s-5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0.2);
    transition: filter 0.2s ease;
}

.nav-brand-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-6);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--ink-muted);
    transition: color 0.15s ease;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.nav-phone {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
    display: none;
}

@media (min-width: 900px) {
    .nav-phone { display: inline; }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 900px) {
    .mobile-menu-btn { display: none; }
}

@media (max-width: 899px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: var(--s-5);
        gap: var(--s-4);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    }

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

    .nav-links a {
        padding: 10px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    background: var(--dark);
    color: var(--on-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-9) var(--s-5) var(--s-8);
}

.hero-content h1 {
    color: var(--on-dark);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    max-width: 16ch;
    margin-bottom: var(--s-4);
}

.hero-content .lede {
    color: rgba(255, 255, 255, 0.9);
    max-width: 52ch;
    margin-bottom: var(--s-6);
    font-size: 1.0625rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* Service page hero variant — shorter */
.hero-compact {
    min-height: 50vh;
}

.hero-compact .hero-content {
    padding: var(--s-8) var(--s-5) var(--s-7);
}

/* ---------- Trust bar (under hero) ---------- */

.trust-bar {
    background: var(--dark);
    color: var(--on-dark);
    padding: var(--s-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-bar-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-4) var(--s-6);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-5);
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.trust-bar-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ---------- Service cards grid ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-5);
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
    border-color: var(--line-strong);
}

.service-card-img {
    aspect-ratio: 4 / 3;
    background: var(--bg-soft) center / cover no-repeat;
    background-image: var(--card-image);
    position: relative;
}

.service-card-body {
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--s-2);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    margin-bottom: var(--s-4);
    flex: 1;
}

.service-card-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.service-card-price {
    font-size: 0.8125rem;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}

.service-card-arrow {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Credibility band (dark mid-page block) ---------- */

.credibility-band {
    background: var(--dark);
    color: var(--on-dark);
    padding: var(--s-10) 0;
    position: relative;
}

.credibility-band .container {
    text-align: center;
}

.credibility-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: 22ch;
    margin: 0 auto var(--s-5);
    color: var(--on-dark);
}

.credibility-lede {
    color: var(--on-dark-muted);
    max-width: 58ch;
    margin: 0 auto var(--s-7);
    font-size: 1.0625rem;
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-4);
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.credibility-item {
    padding: var(--s-5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.credibility-item-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--on-dark);
    margin-bottom: 6px;
    display: block;
    line-height: 1;
}

.credibility-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--on-dark);
    margin-bottom: 4px;
}

.credibility-item p {
    font-size: 0.875rem;
    color: var(--on-dark-muted);
    line-height: 1.5;
}

/* ---------- Project gallery ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-4);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--s-4) var(--s-4) var(--s-3);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--on-dark);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.gallery-tall {
    grid-row: span 2;
    aspect-ratio: 4 / 5;
}

@media (max-width: 700px) {
    .gallery-tall { grid-row: auto; aspect-ratio: 4 / 3; }
}

.reference-disclaimer {
    margin: var(--s-6) auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ink-faint);
    font-style: italic;
    line-height: 1.6;
}

/* ---------- Before/after comparison slider ---------- */

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--s-5);
}

.compare-unit {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.compare-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-soft);
    user-select: none;
    --compare-pos: 50%;
}

.compare-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.compare-after {
    z-index: 1;
}

.compare-before-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    width: var(--compare-pos);
}

.compare-before {
    width: calc(100% / (var(--compare-pos-raw, 0.5)));
    max-width: none;
}

/* Fallback: use clip-path for cleaner behaviour */
.compare-slider .compare-before-wrap {
    width: 100%;
    clip-path: inset(0 calc(100% - var(--compare-pos)) 0 0);
}

.compare-slider .compare-before {
    width: 100%;
}

/* Range input sits on top, invisible except its thumb acts as the handle */
.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: ew-resize;
    z-index: 4;
    opacity: 0;
}

.compare-range:focus-visible + .compare-tag-before,
.compare-range:focus {
    outline: none;
}

.compare-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 100%;
    background: transparent;
    cursor: ew-resize;
}

.compare-range::-moz-range-thumb {
    width: 28px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: ew-resize;
}

/* Visual handle line + circle */
.compare-slider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-pos);
    transform: translateX(-1px);
    width: 2px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.compare-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--compare-pos);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffffff;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
    background-image:
        linear-gradient(45deg, transparent 40%, var(--accent) 40%, var(--accent) 42%, transparent 42%),
        linear-gradient(-45deg, transparent 40%, var(--accent) 40%, var(--accent) 42%, transparent 42%),
        linear-gradient(45deg, transparent 58%, var(--accent) 58%, var(--accent) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 58%, var(--accent) 58%, var(--accent) 60%, transparent 60%);
}

.compare-range:focus-visible ~ .compare-slider::after,
.compare-slider:has(.compare-range:focus-visible)::after {
    box-shadow: 0 0 0 3px rgba(184, 81, 58, 0.4), 0 2px 14px rgba(0, 0, 0, 0.3);
}

.compare-tag {
    position: absolute;
    top: 12px;
    z-index: 3;
    padding: 5px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border-radius: var(--radius-sm);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.compare-tag-before {
    left: 12px;
}

.compare-tag-after {
    right: 12px;
}

.compare-caption {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    letter-spacing: 0.03em;
}

/* ---------- Process steps ---------- */

.process-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-7);
}

@media (min-width: 900px) {
    .process-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--s-9);
    }
}

.process-intro {
    position: sticky;
    top: 100px;
    align-self: start;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--s-7);
}

.process-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: var(--s-4);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--line);
}

.process-step:last-child { border-bottom: none; }

.process-step-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
    font-style: italic;
}

.process-step h3 {
    font-size: 1.375rem;
    margin-bottom: var(--s-3);
}

.process-step p {
    color: var(--ink-muted);
    font-size: 0.9375rem;
}

/* ---------- Service area ---------- */

.service-area {
    background: var(--bg-soft);
    padding: var(--s-9) 0;
    text-align: center;
}

.service-area h2 {
    margin-bottom: var(--s-4);
}

.service-area p {
    max-width: 55ch;
    margin: 0 auto var(--s-5);
    color: var(--ink-muted);
}

.service-area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-2) var(--s-3);
    max-width: 720px;
    margin: 0 auto;
}

.service-area-tag {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* ---------- Testimonials ---------- */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-4);
}

.testimonial-card {
    padding: var(--s-5);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.6;
    flex: 1;
}

.testimonial-author {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
}

.testimonial-author strong {
    color: var(--ink);
    font-weight: 500;
}

.testimonial-placeholder-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fef3c7;
    color: #78350f;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--s-2);
}

/* ---------- Contact section / form ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-7);
    align-items: start;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-9);
    }
}

.contact-intro h2 {
    margin-bottom: var(--s-4);
}

.contact-details {
    margin-top: var(--s-6);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line);
    display: grid;
    gap: var(--s-4);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--ink);
}

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

/* Form */
.form {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--s-6);
    display: grid;
    gap: var(--s-4);
}

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

@media (min-width: 600px) {
    .form-row.two { grid-template-columns: 1fr 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.form-field label .req {
    color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 81, 58, 0.12);
}

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

.form-submit {
    margin-top: var(--s-2);
}

.form-consent {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.form-consent a {
    color: var(--ink);
    text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--dark);
    color: var(--on-dark);
    padding: var(--s-8) 0 var(--s-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding-bottom: var(--s-7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: var(--s-3);
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--on-dark-muted);
    max-width: 30ch;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-dark);
    margin-bottom: var(--s-4);
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.875rem;
    color: var(--on-dark-muted);
    padding: 4px 0;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    padding-top: var(--s-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--on-dark-faint);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--on-dark-faint);
    line-height: 1.6;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--dark);
    color: var(--on-dark);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 200;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    display: grid;
    gap: var(--s-3);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.8125rem;
    color: var(--on-dark-muted);
    line-height: 1.5;
    max-width: none;
}

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

.cookie-actions {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.cookie-actions button {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.cookie-accept {
    background: var(--on-dark);
    color: var(--dark);
}

.cookie-reject {
    background: transparent;
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- FAQ accordion (for service pages / homepage optional) ---------- */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    padding: var(--s-5) 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding-bottom: var(--s-5);
    color: var(--ink-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 62ch;
}

/* ---------- Utility ---------- */

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

/* Breadcrumbs (for service pages) */
.breadcrumbs {
    padding: var(--s-4) 0;
    font-size: 0.8125rem;
    color: var(--ink-faint);
}

.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs-sep { margin: 0 6px; color: var(--ink-faint); }

/* ---------- Legal pages (privacy, terms, cookie) ---------- */

.legal-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ink);
}

.legal-body p {
    margin-bottom: var(--s-4);
    max-width: none;
}

.legal-body h2 {
    font-size: 1.5rem;
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    color: var(--ink);
}

.legal-body h3 {
    font-size: 1.125rem;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-top: var(--s-5);
    margin-bottom: var(--s-3);
    color: var(--ink);
    letter-spacing: -0.005em;
}

.legal-body ul {
    margin: 0 0 var(--s-4) 0;
    padding-left: var(--s-5);
}

.legal-body ul li {
    margin-bottom: var(--s-2);
}

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.legal-body strong {
    font-weight: 600;
}

/* ---------- Thank you page ---------- */

.thank-you-icon {
    display: inline-flex;
    color: var(--accent);
    margin: 0 auto;
}

.thank-you-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
    max-width: 500px;
    margin: 0 auto;
}

.thank-you-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--s-3) var(--s-5);
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.thank-you-contact-item:hover {
    background: var(--bg-soft);
}

.thank-you-contact-item .contact-detail-value {
    color: var(--accent);
    font-weight: 500;
}
