/* Theme for small trade-business sites.
   Brand colors are defined once below — adjust per customer. */

:root {
    --brand: #d21f1f;          /* logo red */
    --brand-dark: #a91414;
    --ink: #17130f;            /* near-black */
    --paper: #ffffff;
    --paper-alt: #f5f3f0;
    --muted: #5d574f;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 1.05rem;
}

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.8em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

a { color: var(--brand); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 780px; }
.section { padding: 3rem 0; }

/* Header */
.site-header {
    background: var(--paper);
    border-bottom: 3px solid var(--brand);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.1; display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; max-width: 66vw; display: block; }

/* Guarantee badge */
.guarantee-badge { width: 132px; flex: 0 0 auto; }
.guarantee-badge svg { width: 100%; height: auto; display: block; }
.page-head-inner, .intro-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.intro-text { flex: 1 1 320px; }
.brand-tagline {
    display: block;
    color: var(--brand);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.brand-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}
.site-nav { margin-left: auto; }
.site-nav ul {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.nav-toggle, .nav-toggle-box { display: none; }
.header-phone {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
}
.header-phone:hover { background: var(--brand-dark); }

/* Hero */
.hero { position: relative; color: #fff; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(15,10,8,0.82) 0%, rgba(15,10,8,0.55) 55%, rgba(15,10,8,0.25) 100%);
}
.hero-plain { background: var(--ink); }
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
    max-width: 1100px;
}
.hero-content h1 { max-width: 17ch; }
.hero-sub { font-size: 1.25rem; max-width: 44ch; margin: 0 0 1.6rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-dark { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: rgba(0,0,0,0.06); }

/* Intro */
.intro-section { padding-bottom: 1rem; }
.intro-section p { font-size: 1.15rem; }

/* Service cards */
.services-section { background: var(--paper-alt); }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--paper);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-top: 4px solid var(--brand);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.14); }
.card-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body p { color: var(--muted); margin: 0 0 0.8rem; font-size: 0.98rem; }
.card-link { color: var(--brand); font-weight: 700; }

/* USPs */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.usp { border-left: 4px solid var(--brand); padding-left: 1.1rem; }
.usp p { color: var(--muted); margin: 0; }

/* Before / after */
.block-before-after { background: var(--ink); color: #fff; }
.block-before-after h2 { color: #fff; }
.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.ba-item { margin: 0; position: relative; }
.ba-item img { border-radius: 6px; width: 100%; }
.ba-label {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.25rem 0.9rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}
.ba-before { background: #fff; color: var(--ink); }
.ba-after { background: var(--brand); color: #fff; }
.ba-description { color: #d9d4cf; max-width: 65ch; }

/* Feature panel (image + text, e.g. meet the craftsman) */
.feature-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}
.feature-panel-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.feature-panel-body h2 { margin-top: 0; }
.feature-panel-body p { color: var(--muted); max-width: 52ch; }
@media (max-width: 720px) { .feature-panel { grid-template-columns: 1fr; gap: 1.3rem; } }

/* Video block (portrait 9:16 clips — contained, never full-width on desktop) */
.block-video .video-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.site-video {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    background: var(--ink);
    display: block;
    object-fit: cover;
}
.block-video figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* Steps */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}
.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 4rem;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
}
.steps p { color: var(--muted); margin: 0; }

/* CTA */
.block-cta { background: var(--paper-alt); text-align: center; }
.cta-inner .hero-actions { justify-content: center; }

/* Page head */
.page-head { padding: 3rem 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.page-main-image { border-radius: 8px; margin: 1rem 0; }

/* Guarantee seal overlapping the service-page image (top-right corner):
   badge midline on the image top edge, circle inset within the right edge,
   inner white partly transparent so the photo shows through. */
.main-image-wrap { position: relative; margin: 3.2rem 0 1rem; }
.main-image-wrap .page-main-image { margin: 0; display: block; }
.main-image-wrap .guarantee-badge {
    position: absolute; top: 0; right: 22px;
    /* align the TOP of the badge's red midline dash with the image top edge.
       The dash sits at ~46.1% of the seal height from the top (SVG y≈808.5 in
       a 594.2..1058.6 viewBox), so lift the badge by that fraction. */
    transform: translateY(-46.1%);
    width: 120px; margin: 0; z-index: 2;
    /* Inner stays opaque WHITE (the seal's white discs sit on a solid red
       disc, so making them translucent would bleed red -> pink, not show the
       photo). Instead fade the whole seal a touch: notable white with only a
       faint impression of the photo, and a softer edge over the image. */
    opacity: 0.85;
}
@media (max-width: 560px) {
    .main-image-wrap { margin-top: 2.6rem; }
    .main-image-wrap .guarantee-badge { width: 92px; right: 12px; }
}

/* Figures */
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.9rem; padding-top: 0.4rem; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.contact-item { min-width: 0; }
.contact-item h2 { font-size: 1.2rem; margin: 0 0 0.4em; }
.contact-big { font-size: 1.2rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-big:hover { text-decoration: underline; }
/* E-mail: prefer breaking at the @ (via <wbr>), not mid-word. */
.contact-email { overflow-wrap: break-word; }

/* Footer */
.site-footer {
    background: var(--ink);
    color: #d9d4cf;
    margin-top: 4rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    padding-bottom: 1.2rem;
    font-size: 0.9rem;
}

/* Quote form */
.quote-form { display: grid; gap: 1rem; max-width: 560px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #c9c4bd;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.quote-lead { font-size: 1.1rem; color: var(--muted); margin: -0.4rem 0 1.6rem; }
.photo-guide {
    background: #fff;
    border: 1px solid #e2ddd6;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    margin: 0 0 1.8rem;
}
.photo-guide h3 { margin-top: 0; }
.photo-guide p { color: var(--muted); margin: 0.3rem 0 0.7rem; }
.photo-guide ul { margin: 0; padding-left: 1.2rem; }
.photo-guide li { margin-bottom: 0.35rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: var(--brand);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--brand); }
.field-error { color: var(--brand-dark); font-size: 0.9rem; margin: 0.3rem 0 0; }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-success, .form-error-banner {
    border-radius: 8px;
    padding: 1rem 1.3rem;
}
.form-success { background: #e8f4e5; border: 1px solid #9ec78f; }
.form-error-banner { background: #fbeaea; border: 1px solid #e0a0a0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.quote-section { background: var(--paper-alt); }

/* Subpage listing (area pages) */
.subpage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.subpage-list a { font-weight: 700; font-size: 1.1rem; }
.subpage-list p { color: var(--muted); margin: 0.2rem 0 0; }

/* Floating WhatsApp button */
.whatsapp-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 61;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.28);
    transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* Sticky call bar (mobile) */
.sticky-call { display: none; }

/* Search results & misc content pages reuse .section spacing */

/* Mobile nav */
@media (max-width: 860px) {
    .header-inner { position: relative; flex-wrap: wrap; gap: 0.8rem; padding-right: 3rem; }
    .site-nav { order: 3; width: 100%; margin-left: 0; }
    .nav-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.6rem;
        position: absolute;
        top: 0.7rem;
        right: 1.25rem;
    }
    .site-nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #eee;
    }
    .site-nav .nav-toggle-box:checked ~ ul { display: flex; }
    .site-nav li a { display: block; padding: 0.7rem 0; border-bottom: 1px solid #eee; }
    .hero-content { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (max-width: 640px) {
    body { padding-bottom: 3.4rem; }
    /* Sticky call bar covers calling on mobile — drop the header phone so the
       logo has room and never crowds. */
    .header-phone { display: none; }
    .brand-logo { height: 40px; }
    .sticky-call {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }
    .sticky-call a {
        flex: 1;
        text-align: center;
        padding: 0.85rem 0.4rem;
        font-weight: 800;
        text-decoration: none;
        font-size: 0.92rem;
        white-space: nowrap;
    }
    .sticky-call-phone { background: var(--brand); color: #fff; flex: 2; }
    .sticky-call-quote { background: var(--ink); color: #fff; }
    /* Lift the WhatsApp button above the sticky call bar */
    .whatsapp-fab { bottom: 4.2rem; }
}
