/* ─────────────────────────────────────────────────────────────────────────────
   Mirka Haller — Familienbegleitung
   Design System: "Linen & Sage"
   ────────────────────────────────────────────────────────────────────────── */

/* ── Fonts ──────────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/static/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/static/fonts/PlusJakartaSans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design Tokens ───────────────────────────────────────────────────────────── */

:root {
    /* Brand Palette */
    --color-linen:          #F5F0E8;
    --color-linen-dark:     #EDE7D9;
    --color-linen-mid:      #E6DFD1;
    --color-sage:           #7d8a77;
    --color-sage-light:     #a8b5a2;
    --color-sage-pale:      #e8ede6;
    --color-sage-dark:      #5a6655;
    --color-terracotta:     #c57d67;
    --color-terracotta-dark:#a85c45;
    --color-charcoal:       #2C2C2C;
    --color-warm-gray:      #615e58;
    --color-warm-gray-light:#9b9790;
    --color-white:          #ffffff;

    /* Semantic Aliases */
    --bg-primary:           var(--color-linen);
    --bg-secondary:         var(--color-white);
    --bg-tertiary:          var(--color-linen-dark);
    --bg-nav:               rgba(245, 240, 232, 0.92);
    --text-primary:         var(--color-charcoal);
    --text-secondary:       var(--color-warm-gray);
    --text-muted:           var(--color-warm-gray-light);
    --border-color:         rgba(125, 138, 119, 0.2);
    --border-color-light:   rgba(125, 138, 119, 0.12);
    --card-shadow:          rgba(44, 44, 44, 0.06);
    --card-hover-shadow:    rgba(44, 44, 44, 0.12);

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Border Radius */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 50px;
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-sage-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-terracotta);
}

/* ── Nav offset — pushes legal page content below fixed navbar ──────────────── */

.nav-offset {
    height: calc(5rem + 2rem);
}

/* ── Navigation ──────────────────────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-color);
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.875rem var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    line-height: 1;
}

.logo picture {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    vertical-align: middle;
    mix-blend-mode: multiply;
}

.footer .logo-img {
    display: none;
}

.footer-section .logo-text {
    display: block;
    color: rgba(255,255,255,0.9) !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    -webkit-text-fill-color: unset;
}

.logo-text {
    color: var(--color-sage-dark);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    background: none;
    -webkit-text-fill-color: unset;
    text-fill-color: unset;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
}

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

.nav-links a.active {
    position: relative;
}

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

/* Dropdown */
.nav-links li {
    position: relative;
}

.nav-links .dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links .dropdown > a::after {
    content: '▾';
    font-size: 0.8rem;
    color: var(--color-warm-gray-light);
}

.nav-links .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.375rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--card-shadow);
    z-index: 200;
}

.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu li {
    list-style: none;
}

.nav-links .dropdown-menu a {
    display: block;
    padding: 0.5rem var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links .dropdown-menu a:hover {
    background: var(--color-linen);
    color: var(--color-sage-dark);
}

/* Nav CTA */
.nav-cta {
    background: var(--color-sage) !important;
    color: var(--color-white) !important;
    padding: 0.5rem 1.125rem !important;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--color-sage-dark) !important;
    transform: translateY(-1px);
    color: var(--color-white) !important;
}

/* Theme toggle — hidden (no dark mode) */
.theme-toggle {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-sage);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ── Hero ─────────────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--color-linen);
}

.hero.hero-small {
    min-height: 36vh;
    padding-top: 100px;
    padding-bottom: var(--space-xl);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(125, 138, 119, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(197, 125, 103, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(168, 181, 162, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.gradient-text {
    color: var(--color-terracotta);
    background: none;
    -webkit-text-fill-color: unset;
    text-fill-color: unset;
    display: block;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.75;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* ── Buttons ──────────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
    min-height: 44px;
}

.btn-gradient {
    background: var(--color-sage);
    color: var(--color-white);
    border-color: var(--color-sage);
}

.btn-gradient:hover {
    background: var(--color-sage-dark);
    border-color: var(--color-sage-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(125, 138, 119, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-sage-dark);
    border-color: var(--color-sage);
}

.btn-outline:hover {
    background: var(--color-sage);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 2px solid var(--color-sage);
}

.btn-primary:hover {
    background: var(--color-sage-dark);
    border-color: var(--color-sage-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-sage-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.2s ease;
}

.link-arrow:hover {
    color: var(--color-terracotta);
    gap: 0.5rem;
}

/* ── Content Sections (typed markers) ──────────────────────────────────────────── */

.content-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.content-section.alt-bg {
    background: var(--color-linen-dark);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Block section: wraps content in a single column */
.content-block {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
}

.content-block p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.content-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Grid section: multi-column cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Services section */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-linen-dark);
}

.services.alt-bg {
    background: var(--color-linen-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* ── Pillar Cards (grid section content) ────────────────────────────────────── */

.pillar-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--card-hover-shadow);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    background: var(--color-sage-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    color: var(--color-sage-dark);
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
}

.pillar-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ── Quote Block ────────────────────────────────────────────────────────────── */

.quote-block {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.quote-block p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.quote-block p:first-child {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    font-style: italic;
}

.quote-tagline {
    font-weight: 700;
    color: var(--color-sage-dark) !important;
    font-style: normal !important;
    font-size: 1.0625rem !important;
}

/* ── About Preview (home block) ─────────────────────────────────────────────── */

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-preview-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.about-preview-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
}

.about-logo-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--card-shadow);
    border: 2px solid var(--border-color);
    padding: 0.75rem;
}

.about-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.about-preview-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 0.25rem;
}

.about-preview-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 0;
}

.about-preview-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ── Service Cards (services section) ──────────────────────────────────────── */

.service-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--card-hover-shadow);
}

.service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-sage-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage-dark);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

/* ── CTA Section (frontmatter ctaTitle) ─────────────────────────────────────── */

.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--color-sage);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(197,125,103,0.15) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: var(--space-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-gradient {
    background: var(--color-white);
    color: var(--color-sage-dark);
    border-color: var(--color-white);
}

.cta-buttons .btn-gradient:hover {
    background: var(--color-linen);
    border-color: var(--color-linen);
    color: var(--color-sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.cta-buttons .btn-outline {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
    background: transparent;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */

.footer {
    background: var(--color-charcoal);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-column h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--space-sm);
}

.footer-section p,
.footer-column p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.375rem;
}

.footer-section .logo-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    background: none;
    -webkit-text-fill-color: unset;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: rgba(255,255,255,0.8);
}

/* ── Contact Form (contact template) ────────────────────────────────────────── */

.contact-form-section {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.contact-form-inner {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.contact-form-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

/* Honeypot — visually hidden and inaccessible */
.form-honeypot {
    display: none !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-required {
    color: var(--color-terracotta);
    margin-left: 0.125rem;
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(125,138,119,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-warm-gray-light);
}

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

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23615e58' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-actions {
    margin-top: var(--space-xs);
}

.form-submit {
    width: 100%;
    padding: 0.875rem var(--space-lg);
    background: var(--color-sage);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
    background: var(--color-sage-dark);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.form-success {
    background: var(--color-sage-pale);
    color: var(--color-sage-dark);
    border: 1px solid rgba(125,138,119,0.25);
}

.form-error {
    background: rgba(197,125,103,0.1);
    color: var(--color-terracotta-dark);
    border: 1px solid rgba(197,125,103,0.25);
}

/* ── Content Page (legal template) ──────────────────────────────────────────── */

.content-page {
    padding: var(--space-3xl) 0;
}

.content-page .container {
    max-width: 760px;
}

.content-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.content-page h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.content-page h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: 0.5rem;
}

.content-page p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.content-page ul,
.content-page ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
}

.content-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.content-page a {
    color: var(--color-sage-dark);
    text-decoration: underline;
    text-decoration-color: rgba(90,102,85,0.35);
    text-underline-offset: 2px;
}

.content-page a:hover {
    color: var(--color-terracotta);
    text-decoration-color: var(--color-terracotta);
}

.content-page address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}

.content-page .last-updated {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ── About Page ─────────────────────────────────────────────────────────────── */

.about-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    max-height: 560px;
}

.about-bio h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.about-subtitle {
    color: var(--color-sage);
    font-weight: 500;
    font-size: 1.0625rem;
    margin-bottom: var(--space-md) !important;
}

.about-bio p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.location-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--color-sage-pale);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
    border: 1px solid var(--border-color);
}

.location-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-sage-dark);
    margin-top: 2px;
}

.location-badge strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.location-badge span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.about-values {
    text-align: center;
}

.about-values h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    text-align: left;
}

.value-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--color-sage-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage-dark);
    margin-bottom: var(--space-sm);
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

.value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.certificates-section {
    text-align: center;
}

.certificates-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.cert-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.cert-card img {
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.cert-card.cert-text {
    justify-content: center;
    text-align: center;
}

.cert-icon {
    width: 56px;
    height: 56px;
    background: var(--color-sage-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage-dark);
    margin-bottom: 0.5rem;
}

.cert-icon svg {
    width: 26px;
    height: 26px;
}

.cert-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

/* ── Offers Page ─────────────────────────────────────────────────────────────── */

.offers-page {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.offers-intro {
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.offers-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.offers-intro a {
    color: var(--color-sage-dark);
    text-decoration: underline;
    text-decoration-color: rgba(90,102,85,0.35);
}

.offers-group {
    margin-bottom: var(--space-3xl);
}

.offers-group h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.offer-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
    transition: box-shadow 0.2s ease;
}

.offer-card:hover {
    box-shadow: 0 4px 20px var(--card-hover-shadow);
}

.offer-card--featured {
    border-color: var(--color-sage-light);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-sage-pale) 100%);
}

.offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.offer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.offer-badge {
    background: var(--color-sage-pale);
    color: var(--color-sage-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.offer-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
}

.offer-includes {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0;
}

.offer-includes li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0.375rem 0 0.375rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color-light);
}

.offer-includes li:last-child {
    border-bottom: none;
}

.offer-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: 700;
}

.btn-offer {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: var(--space-md);
    padding: 0.625rem 1.25rem;
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-offer:hover {
    background: var(--color-sage-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.offers-cta {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--color-linen-dark);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.offers-cta p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0625rem;
}

/* ── Consent Banner ──────────────────────────────────────────────────────────── */

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    color: rgba(255,255,255,0.85);
    padding: var(--space-lg);
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.consent-banner-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.consent-banner-text {
    flex: 1;
    min-width: 280px;
}

.consent-banner-text h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.consent-banner-text p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.consent-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.consent-btn-accept {
    padding: 0.625rem 1.25rem;
    background: var(--color-sage);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease;
}

.consent-btn-accept:hover {
    background: var(--color-sage-dark);
}

.consent-btn-reject {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-btn-reject:hover {
    border-color: rgba(255,255,255,0.6);
    color: var(--color-white);
}

/* ── Not Found ───────────────────────────────────────────────────────────────── */

.not-found {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.not-found h1 {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    color: var(--color-sage-pale);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0;
}

.not-found h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: -0.5rem;
    margin-bottom: var(--space-sm);
}

.not-found p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

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

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

    .about-preview {
        grid-template-columns: 1fr;
    }

    .about-preview-image {
        max-width: 440px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--space-md) var(--space-lg);
        gap: 0;
        box-shadow: 0 8px 24px var(--card-shadow);
        z-index: 99;
    }

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

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color-light);
        width: 100%;
    }

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

    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--color-linen);
        border-radius: var(--radius-md);
        margin: 0.25rem 0 0.5rem;
        padding: 0;
    }

    .nav-links .dropdown-menu a {
        padding: 0.5rem var(--space-sm);
        border-bottom: none;
        font-size: 0.875rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: var(--space-lg);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem var(--space-sm);
    }

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

    .hero.hero-small {
        min-height: 28vh;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .service-card {
        flex-direction: column;
    }

    .about-logo-badge {
        width: 60px;
        height: 60px;
        bottom: -0.75rem;
        right: -0.75rem;
    }
}

/* ── 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-width: 0;
}

strong {
    font-weight: 700;
    color: var(--text-primary);
}
