/* Willow Wood Projects – Fencing ads landing page
   Brand values taken from the live site's Elementor kit (post-5.css). */
:root {
  --title: #031410;      /* headings, dark text */
  --text: #7B7B78;       /* body copy */
  --bg: #FFFFFF;
  --bg-2: #F6F7F1;       /* off-white sections */
  --border: #E5E7DE;
  --dark: #041914;       /* dark sections */
  --dark-2: #0F231F;
  --dark-border: #1D2F2B;
  --alt-title: #F5FFFC;  /* text on dark */
  --alt-text: #B3BAB8;
  --lime: #DFFC8E;       /* primary buttons */
  --lime-hover: #C8E27F;
  --orange: #FF845B;     /* eyebrows / links */
  --star: #E3A008;
  --font-head: 'Figtree', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-card: 30px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.625; color: var(--title); background: var(--bg-2); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; color: var(--title); }
p { margin: 0; }
a { color: var(--orange); }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.field { position: relative; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--title); }
.btn-primary:hover { background: var(--lime-hover); color: var(--title); }
.btn-outline { border-color: var(--title); color: var(--title); background: transparent; }
.btn-outline:hover { background: var(--title); color: var(--alt-title); }
.btn-outline-light { border-color: var(--alt-title); color: var(--alt-title); }
.btn-outline-light:hover { background: var(--alt-title); color: var(--title); }
.btn-dark { background: var(--title); color: var(--alt-title); }
.btn-dark:hover { background: var(--dark-2); color: var(--alt-title); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { height: 56px; width: auto; }
.header-right { display: flex; align-items: center; gap: 24px; }
.header-licence { font-size: 14px; color: var(--text); }

/* ---------- Hero ---------- */
.hero { background-image: linear-gradient(90deg, rgba(4,25,20,.92) 0%, rgba(4,25,20,.78) 45%, rgba(4,25,20,.35) 100%), url('../images/carpentry-banner.jpeg'); background-size: cover; background-position: center; padding: 72px 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: start; }
.hero-copy { padding-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow { margin: 0; }
.hero h1 { font-size: 57px; line-height: 1.11; letter-spacing: -1.7px; color: var(--alt-title); }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--alt-text); max-width: 600px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.check-list li { color: var(--alt-title); font-weight: 500; padding-left: 28px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.rating { display: flex; align-items: center; gap: 12px; color: var(--alt-text); font-size: 14px; }
.rating strong { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--alt-title); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 16px; }

/* ---------- Quote form ---------- */
.quote-form { background: #fff; border-radius: var(--radius-card); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 32px rgba(3,20,16,.12); }
.quote-form h2 { font-size: 24px; }
.form-intro, .form-note { font-size: 14px; color: var(--text); }
.form-note { font-size: 12px; text-align: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.optional { font-weight: 400; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #D9DCD0; border-radius: 10px; font-family: inherit; font-size: 16px; color: var(--title); background: #fff; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--title); outline-offset: 1px; }
.upload { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px dashed #D9DCD0; border-radius: 10px; font-size: 14px !important; font-weight: 400 !important; color: var(--text); cursor: pointer; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--border); }
.trust-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item div { display: flex; flex-direction: column; line-height: 1.35; }
.trust-item strong { font-size: 15px; }
.trust-item span:not(.tick) { font-size: 13px; color: var(--text); }
.tick { width: 40px; height: 40px; border-radius: 999px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-ground { background: var(--bg-2); }
.section-white { background: #fff; }
.section-dark { background: var(--dark); }
.section-head { margin-bottom: 40px; }
.section h2 { font-size: 47px; line-height: 1.13; letter-spacing: -1.4px; }
.section-dark h2 { color: var(--alt-title); }
.h2-sm { font-size: 32px !important; letter-spacing: -0.8px !important; margin-bottom: 28px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 280px; object-fit: cover; }
.card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 23px; letter-spacing: -0.5px; line-height: 1.22; }
.card p { font-size: 15px; line-height: 1.6; color: var(--text); }
.card-link { margin-top: 6px; align-self: flex-start; font-weight: 700; font-size: 15px; color: var(--title); text-decoration: none; border-bottom: 2px solid var(--lime); padding: 8px 0 2px; }
.card-dark { background: var(--dark); justify-content: flex-end; }
.card-dark .card-body { padding: 40px 32px; gap: 14px; }
.card-dark h3 { color: var(--alt-title); font-size: 28px; letter-spacing: -0.8px; }
.card-dark p { color: var(--alt-text); }
.card-dark .btn { align-self: flex-start; margin-top: 10px; }
.more-row { display: flex; align-items: center; gap: 20px; margin-top: 40px; color: var(--text); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { background: #fff; border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 18px; flex-shrink: 0; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rating-lg strong { font-size: 32px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { margin: 0; background: var(--dark-2); border: 1px solid var(--dark-border); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--alt-title); }
.review figcaption { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--alt-text); }

/* ---------- Chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border: 1px solid #D9DCD0; border-radius: 999px; font-size: 15px; font-weight: 600; background: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.faq details { border-top: 1px solid var(--border); padding: 24px 0; }
.faq summary { font-family: var(--font-head); font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- CTA + footer ---------- */
.cta { background: var(--lime); padding: 96px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 47px; line-height: 1.13; letter-spacing: -1.4px; }
.cta p { margin-top: 12px; font-size: 18px; color: #31403A; max-width: 640px; }
.site-footer { background: var(--dark); color: var(--alt-text); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 36px; padding-bottom: 36px; }
.site-footer a { color: var(--alt-text); }

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

/* =====================================================
   TABLET  ≤ 1024px
   ===================================================== */
@media (max-width: 1024px) {
  .header-licence { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-top: 0; }
  .quote-form { max-width: 640px; }
  .trust-inner { flex-wrap: wrap; justify-content: flex-start; row-gap: 20px; }
  .trust-item { flex: 0 0 calc(33.333% - 11px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .review { scroll-snap-align: start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section h2, .cta h2 { font-size: 40px; }
}

/* =====================================================
   MOBILE  ≤ 767px
   ===================================================== */
@media (max-width: 767px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: 84px; } /* room for sticky bar */
  .container { padding: 0 20px; }
  .header-inner { height: 64px; }
  .logo { height: 42px; }
  .header-call { width: 44px; height: 44px; min-height: 44px; padding: 0; background: var(--lime); border-color: var(--lime); }
  .header-call-text { display: none; }

  .hero { padding: 32px 0 0; background-image: linear-gradient(180deg, rgba(4,25,20,.88) 0%, rgba(4,25,20,.70) 100%), url('../images/carpentry-banner.jpeg'); }
  .hero-inner { gap: 28px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .check-list { grid-template-columns: 1fr; gap: 10px; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero-copy .btn-row { order: 1; } /* rating sits above the buttons on mobile */

  .quote-form { margin: 0 -4px -12px; border-radius: 20px; padding: 24px 20px; gap: 14px; position: relative; top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-email { display: none; } /* shorter form on mobile – remove this rule to keep email */
  .field input, .field select { min-height: 48px; }

  .trust-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 44px; padding-bottom: 24px; }
  .trust-extra { display: none; }
  .tick { width: 32px; height: 32px; }
  .trust-item strong { font-size: 14px; }
  .trust-item span:not(.tick) { font-size: 12px; }

  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .section h2, .cta h2 { font-size: 30px; letter-spacing: -0.8px; }
  .h2-sm { font-size: 24px !important; margin-bottom: 20px; }
  .eyebrow { font-size: 12px; }

  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { border-radius: 20px; }
  .card img { height: 210px; }
  .card-body { padding: 22px 20px 24px; }
  .card-dark .card-body { padding: 28px 20px; }
  .card-dark .btn { align-self: stretch; }
  .more-row { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .more-row span { display: none; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { background: none; padding: 0; flex-direction: row; gap: 16px; border-radius: 0; }
  .step-num { width: 40px; height: 40px; font-size: 17px; }

  .reviews-head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 20px; }
  .reviews-head .section-head { margin-bottom: 8px; }
  .rating-lg strong { display: none; }
  .reviews { grid-auto-columns: 300px; margin-right: -20px; padding-right: 20px; }
  .review { border-radius: 20px; padding: 22px; }
  .review blockquote { font-size: 15px; }

  .chips li { padding: 8px 14px; font-size: 14px; }

  .faq { grid-template-columns: 1fr; }
  .faq details { padding: 16px 0; }
  .faq summary { font-size: 18px; }

  .cta { padding: 48px 0; }
  .cta p { font-size: 16px; }
  .cta-inner { gap: 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; font-size: 12px; padding-top: 24px; padding-bottom: 24px; }

  .sticky-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(3,20,16,.08); }
  .sticky-bar .btn { flex: 1; min-height: 50px; padding: 0 12px; font-size: 15px; }
}


@media (min-width: 1025px) {
    .willow-fencing-landing .hero-copy #hero-headline {
        margin-top: -15px !important;
    }
}

.willow-fencing-landing .hero-copy .rating > span:last-child {
    font-size: 16px !important;
}

/* Review slider on all screen sizes */
.willow-fencing-landing .reviews {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 16px;
}

.willow-fencing-landing .reviews .review {
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .willow-fencing-landing .reviews {
        grid-auto-columns: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .willow-fencing-landing .reviews {
        grid-auto-columns: 85%;
    }
}

.review-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.review-controls button {
    min-width: 48px;
    min-height: 48px;
    padding: 0 16px;
}


/* Align heading and rating on desktop */
@media (min-width: 1025px) {
    .willow-fencing-landing .reviews-head {
        align-items: flex-end;
        margin-bottom: 40px;
    }

    .willow-fencing-landing .reviews-head .section-head {
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
    }

    .willow-fencing-landing .reviews-head .rating {
        flex-shrink: 0;
        white-space: nowrap;
        margin-bottom: 0;
    }
}

/* Position simple arrows beside the slider */
.willow-fencing-landing .section-dark > .container {
    position: relative;
}

.willow-fencing-landing .review-controls {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    pointer-events: none;
}

.willow-fencing-landing .review-controls button {
    position: absolute;
    top: var(--review-arrow-top, 65%);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

.willow-fencing-landing .review-controls button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.willow-fencing-landing [data-review-direction="-1"] {
    left: 0;
}

.willow-fencing-landing [data-review-direction="1"] {
    right: 0;
}

/* Leave room for arrows */
.willow-fencing-landing .reviews {
    margin-left: 28px;
    margin-right: 28px;
    padding-right: 0;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.willow-fencing-landing .reviews::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1025px) {
    .willow-fencing-landing .reviews-head {
        align-items: baseline !important;
    }

    .willow-fencing-landing .reviews-head .section-head {
        display: contents;
    }

    .willow-fencing-landing .reviews-head .section-head > .eyebrow {
        display: none;
    }

    .willow-fencing-landing .reviews-head .rating {
        align-items: baseline;
    }
}


@media (max-width: 767px) {
    .willow-fencing-landing .review-controls {
        display: none !important;
    }

    .willow-fencing-landing .reviews {
        grid-auto-columns: 300px;
        margin-left: 0;
        margin-right: -20px;
        padding-right: 20px;
    }
}


.willow-fencing-landing .hero-copy .hero-sub {
    margin-bottom: 0 !important;
}

.willow-fencing-landing .hero-copy .check-list {
    margin-top: 0 !important;
}

@media (min-width: 1025px) {
    .willow-fencing-landing .section:has(.more-row) {
        padding-bottom: 0px !important;
    }
}