/* ═══════════════════════════════════════════════════════
   Von Bibra Heizungstechnik – Main CSS
   Font: Inter (self-hosted)
   Colors: Navy #192535, Gold #B8820A
═══════════════════════════════════════════════════════ */

/* ── @font-face ─────────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700.woff2') format('woff2');
}

/* ── Custom Properties ─────────────────────────────── */
:root {
    --navy:       #192535;
    --navy-mid:   #243548;
    --navy-dark:  #101c28;
    --gold:       #B8820A;
    --gold-light: #D4A030;
    --gold-pale:  rgba(184,130,10,0.12);
    --bg:         #F4F1EC;
    --bg-2:       #EAE6DF;
    --text:       #1a2535;
    --muted:      #697585;
    --white:      #fff;
    --border:     rgba(25,37,53,0.1);
    --radius:     10px;
    --radius-sm:  6px;
    --shadow:     0 2px 12px rgba(25,37,53,0.08);
    --shadow-md:  0 4px 24px rgba(25,37,53,0.12);
    --container:  1160px;
    --transition: 0.22s ease;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

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

/* ── Section ────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-bg2  { background: var(--bg-2); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.section-navy .section-subtitle { color: rgba(255,255,255,0.65); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform 0.12s, box-shadow var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: #9e6f09;
    border-color: #9e6f09;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-gold:hover { background: #9e6f09; border-color: #9e6f09; }

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.btn-nav {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    padding: 8px 18px;
    font-size: 0.85rem;
}
.btn-nav:hover { background: #9e6f09; border-color: #9e6f09; }

.btn-secondary {
    background: var(--navy-mid);
    color: var(--white);
    border-color: var(--navy-mid);
}
.btn-secondary:hover { background: var(--navy); }

.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ── Navigation ─────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(25,37,53,0.98);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 16px rgba(0,0,0,0.25);
    transition:
        box-shadow     0.45s cubic-bezier(0.4,0,0.2,1),
        backdrop-filter 0.45s cubic-bezier(0.4,0,0.2,1),
        -webkit-backdrop-filter 0.45s cubic-bezier(0.4,0,0.2,1);
}
/* Scrolled state: kompakterer Header mit Blur + feinem Schatten */
.site-header.is-scrolled {
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05),
        0 4px 32px rgba(0,0,0,0.38),
        0 1px 8px rgba(0,0,0,0.18);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.site-header.is-scrolled .nav-container {
    height: 52px;
}

.nav-logo {
    flex-shrink: 0;
    text-decoration: none;
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.site-header.is-scrolled .nav-logo {
    transform: scale(0.94);
}
.nav-logo-img {
    height: var(--logo-h, 52px);
    width: auto;
    transition: height 0.45s cubic-bezier(0.4,0,0.2,1);
}
.site-header.is-scrolled .nav-logo-img {
    height: var(--logo-h-scrolled, 40px);
}
.nav-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}
.nav-logo-sub {
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}
.nav-link {
    padding: 8px 14px;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}

.nav-menu-cta { display: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-phone:hover { color: var(--white); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
    background: var(--navy);
    color: var(--white);
    min-height: clamp(520px, 75vh, 780px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 60% 50%, rgba(184,130,10,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-pale);
    border: 1px solid rgba(184,130,10,0.3);
    color: var(--gold-light);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 8px 40px rgba(184,130,10,0.18));
    animation: boiler-float 5s ease-in-out infinite;
}

/* ── SVG Animation Keyframes ─────────────────────────── */
@keyframes boiler-float {
    0%,100% { transform: translateY(0);    }
    50%      { transform: translateY(-9px); }
}

@keyframes flame-flicker {
    0%,100% { opacity: 0.88; transform: scaleY(1)    scaleX(1);    }
    20%      { opacity: 0.95; transform: scaleY(1.04) scaleX(0.97); }
    40%      { opacity: 0.80; transform: scaleY(0.96) scaleX(1.02); }
    60%      { opacity: 1;    transform: scaleY(1.06) scaleX(0.96); }
    80%      { opacity: 0.85; transform: scaleY(0.98) scaleX(1.01); }
}

@keyframes flame-core {
    0%,100% { opacity: 0.9;  transform: scaleY(1)    }
    30%      { opacity: 1;    transform: scaleY(1.08) }
    70%      { opacity: 0.75; transform: scaleY(0.93) }
}

@keyframes gauge-tick {
    0%,100% { transform: rotate(0deg);    }
    30%      { transform: rotate(12deg);  }
    60%      { transform: rotate(-6deg);  }
    80%      { transform: rotate(8deg);   }
}

@keyframes ring-pulse {
    0%,100% { opacity: 1;    }
    50%      { opacity: 0.55; }
}

@keyframes sparkle {
    0%,100% { opacity: 0.15; transform: scale(1);    }
    50%      { opacity: 0.6;  transform: scale(1.4);  }
}

/* Apply animations to SVG child elements via CSS */
.hero-svg .svg-flame-outer {
    transform-origin: 240px 270px;
    animation: flame-flicker 2.4s ease-in-out infinite;
}
.hero-svg .svg-flame-mid {
    transform-origin: 240px 265px;
    animation: flame-flicker 1.9s ease-in-out infinite 0.3s;
}
.hero-svg .svg-flame-core {
    transform-origin: 240px 260px;
    animation: flame-core 1.6s ease-in-out infinite 0.1s;
}
.hero-svg .svg-gauge-needle {
    transform-origin: 300px 195px;
    animation: gauge-tick 4s ease-in-out infinite 1s;
}
.hero-svg .svg-ring-outer {
    animation: ring-pulse 3.5s ease-in-out infinite;
}
.hero-svg .svg-ring-inner {
    animation: ring-pulse 3.5s ease-in-out infinite 0.8s;
}
.hero-svg .svg-sparkle-1 { animation: sparkle 2.8s ease-in-out infinite; }
.hero-svg .svg-sparkle-2 { animation: sparkle 3.2s ease-in-out infinite 0.6s; }
.hero-svg .svg-sparkle-3 { animation: sparkle 2.5s ease-in-out infinite 1.2s; }
.hero-svg .svg-sparkle-4 { animation: sparkle 3.8s ease-in-out infinite 0.3s; }
.hero-svg .svg-sparkle-5 { animation: sparkle 2.2s ease-in-out infinite 1.8s; }
.hero-svg .svg-sparkle-6 { animation: sparkle 3.5s ease-in-out infinite 0.9s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-svg,
    .hero-svg * { animation: none !important; }
}

/* ── Trust Bar ──────────────────────────────────────── */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.trust-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
}
.trust-icon {
    color: var(--gold);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.trust-text { color: var(--navy); }

/* ── Services ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--gold-pale);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; }
.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
}
.service-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── About ──────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 72px;
    align-items: center;
}

.about-photo-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 480px;
}
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 480px;
    background: var(--navy-mid);
    border-radius: var(--radius);
    border: 2px dashed rgba(184,130,10,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-initials {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--gold-light);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.about-badge {
    display: inline-block;
    background: rgba(184,130,10,0.15);
    border: 1px solid rgba(184,130,10,0.35);
    color: var(--gold-light);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.about-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.about-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    line-height: 1.6;
}
.about-text {
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 28px;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-cred-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}
.about-cred-item svg { flex-shrink: 0; margin-top: 2px; }

/* ── Service Area ───────────────────────────────────── */
.area-content { max-width: 900px; margin: 0 auto; }

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.leaflet-map { height: 360px; width: 100%; }

.area-cities {
    margin-bottom: 20px;
}
.area-cities-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.city-chip:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(184,130,10,0.15);
}

.area-note {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ── Contact ────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gold-pale);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 3px;
}
.contact-detail-value {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.5;
}
a.contact-detail-value:hover { color: var(--gold); }

/* Contact form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-hp { display: none !important; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0ccc5;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #faf9f7;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,130,10,0.12);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23697585' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}
.checkbox-label input[type=checkbox] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--gold);
    cursor: pointer;
}
.checkbox-label a { color: var(--gold); text-decoration: underline; }
.required { color: var(--gold); }

.btn-submit { width: 100%; justify-content: center; margin-top: 4px; }

/* Flash messages */
.flash-messages { margin-bottom: 24px; }
.flash {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}
.flash-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}
.flash-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}
.flash-warning {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    color: #92400e;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}
.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {}
.footer-logo-img {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.9;
}
.footer-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    display: block;
}
.footer-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.footer-phone {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-light);
    transition: color var(--transition);
}
.footer-phone:hover { color: var(--gold); }

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-list li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
    line-height: 1.5;
}
.footer-contact-list a { transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-legal-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal-nav a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.footer-legal-nav a:hover { color: var(--white); }

/* ── Page (page.php) ────────────────────────────────── */
.page-body { background: var(--bg); }
.page-main { padding: 72px 0 96px; min-height: 60vh; }
.page-article { max-width: 800px; margin: 0 auto; }

.prose { line-height: 1.75; color: var(--text); }
.prose h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 16px; margin-top: 0; color: var(--navy); }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 36px; margin-bottom: 12px; color: var(--navy); }
.prose p  { margin-bottom: 14px; }
.prose a  { color: var(--gold); text-decoration: underline; }
.prose strong { font-weight: 600; }
.prose br + br { display: none; }

.not-found {
    text-align: center;
    padding: 48px 0;
    max-width: 480px;
    margin: 0 auto;
}
.not-found h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--navy);
}
.not-found p { color: var(--muted); }

/* ── Scroll reveal animations ───────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero content: stagger */
.hero-badge.reveal    { transition-delay: 0.05s; }
.hero-title.reveal    { transition-delay: 0.12s; }
.hero-subtitle.reveal { transition-delay: 0.2s;  }
.hero-actions.reveal  { transition-delay: 0.28s; }
.hero-visual.reveal   { transition-delay: 0.15s; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero-visual { order: -1; justify-content: center; }
    .hero-svg { max-width: 220px; }
    .hero-actions { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-photo-wrap, .about-photo-placeholder { max-width: 300px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .contact-detail { flex: 1 1 240px; }

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

@media (max-width: 768px) {
    .section { padding: 64px 0; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 20px;
        gap: 2px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        border-top: 2px solid var(--gold);
    }
    .nav-menu.open { display: flex; }
    .nav-link {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        color: rgba(255,255,255,0.82);
        border-left: 3px solid transparent;
        transition: border-color var(--transition), background var(--transition), color var(--transition);
    }
    .nav-link:hover {
        border-left-color: var(--gold);
        background: rgba(255,255,255,0.06);
        color: var(--white);
    }

    .nav-phone { display: none; }
    .nav-actions .btn-nav { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .site-header { position: sticky; }

    /* CTA inside mobile menu */
    .nav-menu-cta { display: block; padding: 10px 2px 2px; }
    .nav-menu-cta .btn-nav { width: 100%; justify-content: center; font-size: 0.9rem; padding: 11px; }

    .hero-container { padding: 40px 20px 56px; }
    .hero-title { font-size: 1.8rem; }
    .hero-svg { max-width: 180px; }

    .contact-form-wrap { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .trust-container { gap: 12px; }
    .trust-item { font-size: 0.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; justify-content: center; }
    .hero-svg { max-width: 150px; }
}

/* ── Print ──────────────────────────────────────────── */
@media print {
    .site-header, .footer, .btn, .hero-actions, .contact-form-wrap,
    .trust-bar, .nav-actions, .nav-toggle { display: none !important; }
    .hero { min-height: auto; padding: 24px 0; }
    body { font-size: 11pt; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
