/* =========================================================
   B&A Exterieur Reiniging - Homepage
   ========================================================= */

:root {
    --c-primary: #1E5A8C;          /* deep brand blue */
    --c-primary-dark: #163F66;
    --c-primary-light: #4A90B8;
    --c-accent: #F5A623;            /* CTA orange */
    --c-accent-dark: #E08E0E;
    --c-teal: #6FB7C5;
    --c-bg: #E8F1F8;                /* page background */
    --c-bg-soft: #F2F7FB;
    --c-card-border: #F5A623;       /* the orange card stroke */
    --c-text: #1A1A1A;
    --c-text-muted: #4A5560;
    --c-white: #FFFFFF;
    --shadow-card: 0 8px 24px rgba(15, 41, 70, 0.10);
    --shadow-card-hover: 0 14px 32px rgba(15, 41, 70, 0.18);
    --radius: 14px;
    --container: 1200px;
    --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 110px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* ===== HEADER ===== */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: transparent;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 44px;
    color: var(--c-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-sub {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--c-accent);
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.brand-mascot {
    width: 90px;
    height: auto;
    display: block;
}

.footer-logo {
    height: 70px;
    width: auto;
    display: block;
}

.primary-nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0; padding: 0;
}

.primary-nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--c-text);
    position: relative;
    padding: 6px 0;
    transition: color .2s ease;
}

.primary-nav a:hover { color: var(--c-primary); }

.primary-nav a.is-active {
    color: var(--c-primary);
}

.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--c-accent);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

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

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 640px;
    padding: calc(var(--header-h) + 40px) 0 80px;
    isolation: isolate;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.55) 35%, rgba(255,255,255,0) 60%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
    min-height: 480px;
}

.hero-copy {
    max-width: 560px;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.15;
    color: var(--c-primary);
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 18px;
    color: var(--c-text);
    margin: 0 0 32px;
    line-height: 1.5;
    max-width: 460px;
}

.hero-mascot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mascot img {
    width: min(100%, 460px);
    filter: drop-shadow(0 14px 30px rgba(15, 41, 70, 0.25));
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1.2;
}

.btn-primary {
    background: var(--c-accent);
    color: var(--c-white);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
    background: var(--c-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245, 166, 35, 0.45);
}

.btn-primary:active { transform: translateY(0); }

/* ===== SERVICES ===== */
.services {
    padding: 80px 0 60px;
    background: var(--c-bg);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 2.6vw, 36px);
    color: var(--c-primary);
    text-align: center;
    margin: 0 0 48px;
    letter-spacing: -0.3px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--c-white);
    border: 2px solid var(--c-card-border);
    border-radius: var(--radius);
    padding: 28px 22px 0;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.service-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--c-primary);
    margin: 0 0 12px;
    line-height: 1.25;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-size: 14px;
    color: var(--c-text-muted);
    margin: 0 0 22px;
    line-height: 1.5;
    min-height: 60px;
}

.service-photo {
    margin: 0 -22px;
    margin-top: auto;
    height: 130px;
    overflow: hidden;
    border-bottom-left-radius: calc(var(--radius) - 2px);
    border-bottom-right-radius: calc(var(--radius) - 2px);
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.service-card:hover .service-photo img { transform: scale(1.05); }

/* ===== CTA STRIP ===== */
.cta-strip {
    padding: 50px 0 70px;
    background: var(--c-bg);
    text-align: center;
}

.cta-eyebrow {
    font-size: 18px;
    color: var(--c-text);
    margin: 0 0 8px;
    font-weight: 500;
}

.cta-link {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--c-primary);
    margin: 0 auto 28px;
    letter-spacing: -0.3px;
    transition: color .2s ease;
}

.cta-link:hover { color: var(--c-accent); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--c-bg-soft);
    border-top: 1px solid rgba(30, 90, 140, 0.08);
    padding: 36px 0 18px;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-inner .brand {
    align-self: center;
}

.footer-mascot {
    width: 110px;
    height: auto;
}

.footer-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.footer-line {
    margin: 0;
    font-size: 15px;
    color: var(--c-text);
    font-weight: 500;
}

.footer-line a {
    color: var(--c-text);
    transition: color .2s ease;
}

.footer-line a:hover { color: var(--c-primary); }

.socials {
    display: flex;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    gap: 10px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    transition: transform .2s ease;
}

.socials a:hover { transform: scale(1.1); }
.socials svg { width: 100%; height: 100%; }

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid rgba(30, 90, 140, 0.10);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--c-text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-mascot { display: none; }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.85) 100%);
    }
}

@media (max-width: 760px) {
    :root { --header-h: 72px; }

    .brand-name { font-size: 32px; }
    .brand-sub { font-size: 12px; margin-top: 4px; }
    .brand-mascot { width: 60px; }
    .footer-logo { height: 60px; }

    .nav-toggle { display: flex; }

    .primary-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--c-white);
        box-shadow: 0 12px 30px rgba(0,0,0,0.10);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .primary-nav li {
        border-bottom: 1px solid rgba(30, 90, 140, 0.08);
    }

    .primary-nav a {
        display: block;
        padding: 14px 24px;
    }

    .primary-nav a.is-active::after { display: none; }

    .hero { min-height: 540px; padding-top: calc(var(--header-h) + 30px); }
    .hero-copy h1 { font-size: 28px; }
    .hero-sub { font-size: 16px; }

    .services { padding: 56px 0 40px; }
    .service-grid { grid-template-columns: 1fr; gap: 20px; }

    .service-card { max-width: 420px; margin: 0 auto; width: 100%; }
    .service-photo { height: 160px; }

    .cta-strip { padding: 36px 0 50px; }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .footer-inner .brand { justify-content: center; }
    .footer-info { text-align: center; align-items: center; }
    .footer-mascot { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
