/*==========================================================================
    Reset
  ========================================================================== */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
}

article, aside, details, figcaption, figure, footer,
header, hgroup, main, menu, nav, section,
summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

a {
    background-color: transparent;
}

a:active, a:hover {
    outline: 0;
}

menu, ol, ul {
    padding-left: 0;
}

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


/*==========================================================================
    Variables
  ========================================================================== */

:root {
    --primary: #77B729;
    --secondary: #2F3E46;
    --tertiary: #51796F;
    --quarter: #364F52;
    --white: #ffffff;
    --grey: #F4F4F4;
}


/*==========================================================================
    Global
  ========================================================================== */

* {
    transition: all .3s ease-out;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: none; /* for iOS Safari */
    text-size-adjust: none;         /* for other mobile browsers */
}

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    /*background: #f5f5f5;*/
    background-image: url(../img/bg.jpg);
    background-attachment: fixed;
}

a, a:hover, a:visited {
    text-decoration: none;
}

ul {
    list-style: none;
}

.btn-main, .btn-second {
    color: var(--white);
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 700;
    display: inline;
}

.btn-main {
    background: var(--primary);
}

.btn-second {
    background: var(--tertiary);
}


/*==========================================================================
    Layout
  ========================================================================== */

.page-wrapper {
    background: var(--white);
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

section, footer {
    width: 100%;
    display: block;
    padding: 10px;
}

section {
    margin-bottom: 20px;
}

.container {
    display: grid;
    gap: 10px;
    padding: 10px;
    margin-inline: auto;
}

.col-1 { grid-template-columns: 1fr; }
.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }


/*==========================================================================
    Typography
  ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1;
    margin: 0 0 0.5em 0;
    text-transform: uppercase;
}

h1 { font-size: clamp(3.5rem, 7vw, 6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }

p {
    font-size: 14px;
    line-height: 1.3rem;
    margin-bottom: 40px;
}

mark {
    color: var(--primary);
    background: none;
}


/*==========================================================================
    Header & Navigation
  ========================================================================== */

header {
    width: 100%;
    position: fixed;
    display: block;
    z-index: 99999;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    background: var(--white);
    padding: 0 30px;
}

.logo {
    background: url(../img/logo.svg) no-repeat;
    background-size: 100%;
    width: 137px;
    height: 67px;
    display: block;
    text-indent: -99999px;
    float: left;
    margin: 25px 0;
}

nav {
    display: block;
    padding: 35px;
    margin: auto;
}

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

nav ul li a {
    color: var(--secondary);
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

nav ul li a.active {
    color: var(--primary);
}

header .btn-main {
    margin: auto 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: auto 0 auto 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--secondary);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/*==========================================================================
    Hero / Banner
  ========================================================================== */

#hero {
    padding-top: 100px;
    color: var(--white);
}

#hero .container {
    background: var(--secondary);
    background-image: var(--hero-bg, url(../img/banner.png));
    background-repeat: no-repeat;
    background-size: 98%;
    background-position: center bottom;
    border-radius: 20px;
    padding: 80px;
    min-height: 576px;
}

.banner-text h1 {
    font-weight: 700;
    line-height: 0.6;
    margin: 0 0 1.5rem 0;
}

.banner-text small  {
    line-height: 0.7;
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.banner-text em {
    color: var(--primary);
    font-size: clamp(2.5rem, 3.5vw, 3rem);
    text-transform: uppercase;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 40px;
    display: block;
}

.banner-text p {
    display: block;
    max-width: 600px;
}

/* ── Service hero (centered, photo background) ── */
#hero.service-hero .container {
    background-image:
        linear-gradient(rgba(47, 62, 70, 0.72), rgba(47, 62, 70, 0.72)),
        var(--hero-bg, url(../img/placeholder-after.jpg));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 460px;
}

.service-hero .banner-text {
    max-width: 820px;
}

.service-hero .banner-text h1 {
    line-height: 1;
    margin: 0 0 1rem 0;
}

.service-hero .banner-text p {
    max-width: 620px;
    margin: 0 auto 30px;
}


/*==========================================================================
    Services — Carousel & Cards
  ========================================================================== */

#services .container {
    align-items: center;
    position: relative;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

/* ── Cards ── */
.card {
    flex: 0 0 calc(25% - 7.5px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card h3 {
    color: var(--primary);
}

.card a {
    align-self: flex-start;
}

/* ── Arrows ── */
.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: box-shadow 0.2s ease;
    position: absolute;
}

.carousel-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-prev {
    top: 15%;
}

.carousel-next {
    top: 15%;
    right: 0;
}

.carousel-prev::after,
.carousel-next::after {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2.5px solid var(--primary);
    border-right: 2.5px solid var(--primary);
}

.carousel-prev::after {
    transform: rotate(-135deg) translate(-2px, 2px);
}

.carousel-next::after {
    transform: rotate(45deg) translate(-2px, 2px);
}


/*==========================================================================
    Statement
  ========================================================================== */

#statement .container {
    background: var(--secondary);
    border-radius: 20px;
    color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    padding: 0;
}

.statement-text {
    padding: 60px;
    flex: 1 1 0;
    width: 0;
}

.statement-img {
    flex: 1 1 0;
    width: 0;
}

.statement-img img {
    height: 100%;
}


/*==========================================================================
    Intro
  ========================================================================== */

#intro .container { padding-block: 10px 0; }
#intro p:last-child { margin-bottom: 0; }


/*==========================================================================
    Feature: split text card + media
  ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.feature-grid .text-card {
    background: var(--secondary);
    color: var(--white);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-grid .text-card h2 { color: var(--white); }

.feature-grid .text-card .btn-main { align-self: flex-start; }

.feature-grid .media {
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
}

.feature-grid .media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/*==========================================================================
    Before / After comparison slider
  ========================================================================== */

.before-after {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.before-after .ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Before image is clipped from the right by --pos */
.before-after .ba-before {
    clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
    transition: none; /* override global transition so dragging is smooth */
}

.before-after .ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 3px;
    background: var(--white);
    transform: translateX(-50%);
    pointer-events: none;
    transition: none;
}

.before-after .ba-handle {
    position: absolute;
    top: 50%;
    left: var(--pos, 50%);
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: var(--primary);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: none;
}

.before-after .ba-handle::before,
.before-after .ba-handle::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.before-after .ba-handle::before { border-right: 7px solid #fff; margin-right: 2px; }
.before-after .ba-handle::after  { border-left: 7px solid #fff;  margin-left: 2px; }


/*==========================================================================
    Callout
  ========================================================================== */

.callout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: center;
    border: solid 1px #D4D4D4;
    border-radius: 20px;
    padding: 20px;
}

.callout-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
}

.callout-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.callout-text p { margin-bottom: 20px; }
.callout-text .btn-main { align-self: flex-start; }


/*==========================================================================
    Why / USPs
  ========================================================================== */

#why h2 {
    text-align: center;
}

.usps {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-grow: 1;
}

.usp {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 0;
    border: solid 1px #D4D4D4;
    border-radius: 20px;
    padding: 10px;
}

.usp img {
    padding: 20px;
    width: 80px;
    flex-shrink: 0;
}

.usp h4 {
    font-size: 16px;
    margin: 0;
}


/*==========================================================================
    Reviews (placeholder until Google reviews are wired up)
  ========================================================================== */

#reviews h2 { text-align: center; }

.reviews-summary {
    border: 1px solid #E3E3E3;
    background: var(--grey);
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
}

.reviews-summary p { margin-bottom: 6px; }
.reviews-summary .stars { color: #FBBC04; font-size: 22px; letter-spacing: 3px; }
.reviews-summary .reviews-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }


/*==========================================================================
    Tick lists (service feature bullet points)
  ========================================================================== */

.ticks { margin: 0 0 25px; }

.ticks li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.3rem;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 13px;
    height: 7px;
    border-left: 2.5px solid var(--primary);
    border-bottom: 2.5px solid var(--primary);
    transform: rotate(-45deg);
}


/*==========================================================================
    Footer
  ========================================================================== */

footer {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--secondary);
    padding: 20px 40px;
}

footer .logo {
    background: url(../img/logo-white.svg) no-repeat;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-info a {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-info .btn-main {
    align-self: flex-start;
}

.map {
    font-weight: 300;
}

.social-container {
    width: 100%;
    display: flex;
    margin: 20px 0;
}

.social {
    width: 56px;
    height: 56px;
    margin-right: 20px;
    margin-bottom: 34px;
    display: block;
    float: left;
    background-size: cover;
    text-indent: -999999px;
}

.social:hover {
    transform: scale(0.9);
}

.facebook  { background-image: url(../img/fb.svg); }
.instagram { background-image: url(../img/insta.svg); }
.linkedin  { background-image: url(../img/linked.svg); }

.sitemap {
    display: flex;
    flex-direction: row;
    margin-top: 60px;
}

.sitemap div {
    width: 33.333%;
}

.sitemap h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 20px;
}

.sitemap ul li a {
    display: block;
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--white);
}


/*==========================================================================
    Scroll / Load Reveal Animations
    Active only when <html> has the .anim class (set by main.js unless the
    visitor prefers reduced motion). Elements start hidden, then fade + rise
    into place via the .is-visible class added on scroll.
  ========================================================================== */

.anim .banner-text,
.anim #intro p,
.anim #services .card,
.anim #statement .statement-text,
.anim #statement .statement-img,
.anim #usp-bar .usp,
.anim #why .usp,
.anim .feature .feature-grid > *,
.anim #callout .callout,
.anim #reviews .reviews-summary {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
}

/* Revealed state — !important so it wins over the id-scoped hidden rules above */
.anim .is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ── Staggered cascades ── */
.anim #usp-bar .usp:nth-child(2),
.anim #why .usp:nth-child(2)      { transition-delay: .10s; }
.anim #usp-bar .usp:nth-child(3),
.anim #why .usp:nth-child(3)      { transition-delay: .20s; }
.anim #usp-bar .usp:nth-child(4),
.anim #why .usp:nth-child(4)      { transition-delay: .30s; }

.anim #services .card:nth-child(2) { transition-delay: .08s; }
.anim #services .card:nth-child(3) { transition-delay: .16s; }
.anim #services .card:nth-child(4) { transition-delay: .24s; }
.anim #services .card:nth-child(5) { transition-delay: .32s; }

.anim #intro p:nth-child(2)                   { transition-delay: .10s; }
.anim #statement .statement-img               { transition-delay: .12s; }
.anim .feature .feature-grid > *:nth-child(2) { transition-delay: .12s; }


/*==========================================================================
    Responsive — Media Queries
  ========================================================================== */

/* ── Desktop / large tablet: hamburger header + carousel reflow ──
   Centred logo, burger pinned right, CTA hidden, dropdown nav. */
@media (max-width: 1290px) {
    header { padding: 0; }

    .header-container {
        position: relative;
        align-items: center;
        min-height: 90px;
    }

    .logo {
        float: none;
        margin: 12px auto; /* truly centred */
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 0;
        bottom: 0;
        margin: auto 0;
    }

    header .btn-main { display: none; } /* no CTA button in the mobile bar */

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    nav.open { max-height: 600px; }

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

    nav ul li { border-bottom: 1px solid #ededed; }
    nav ul li:last-child { border-bottom: none; }

    nav ul li a {
        display: block;
        padding: 15px 2px;
        font-size: 16px;
    }

    nav ul li a:hover {
        border-bottom: none;
        color: var(--primary);
    }

    .card { flex: 0 0 calc(33.333% - 14px); }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .col-1, .col-4 { grid-template-columns: 1fr; }
    .col-2, .col-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

    .card { flex: 0 0 calc(50% - 5px); }

    #hero .container { padding: 50px; min-height: 420px; }
    .statement-text  { padding: 40px; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid .text-card { padding: 40px; }
}

/* ── Phone: pull padding in everywhere, stack blocks ── */
@media (max-width: 768px) {
    .col-1, .col-2, .col-3, .col-4 { grid-template-columns: 1fr; }

    .page-wrapper { padding: 10px; }

    section { margin-bottom: 36px; padding: 8px; }

    .container { padding: 8px; gap: 16px; }

    #hero .container {
        padding: 32px 24px;
        min-height: 520px;
    }

    #hero.service-hero .container { min-height: 320px; }

    .banner-text { text-align: center; }

    .banner-text p { margin-bottom: 24px; }

    .card { flex: 0 0 100%; }

    /* Statement: stack text over image (was squashed side-by-side) */
    #statement .container { flex-direction: column; }
    .statement-text,
    .statement-img { width: 100%; }
    .statement-img img { width: 100%; height: auto; display: block; }

    .usps { flex-direction: column; }

    .feature-grid { gap: 16px; }
    .feature-grid .text-card { padding: 28px; }

    .callout { grid-template-columns: 1fr; padding: 16px; gap: 20px; }

    .usp { padding: 8px; }
    .usp img { padding: 14px; width: 64px; }

    .reviews-summary { padding: 36px 16px; }

    /* Footer: stack the sitemap columns */
    footer {text-align: center;}
    .sitemap { flex-direction: column; margin-top: 30px; }
    .sitemap div { width: 100%; margin-bottom: 24px; }
    .social-container {justify-content: center;}
    .social { margin-left: 10px; margin-right: 10px; }
    .footer-info .btn-main { align-self: auto;}
    .footer-bottom { flex-direction: column; gap: 14px; }
}

/* ── Small phones: final squeeze ── */
@media (max-width: 480px) {
    #hero .container { padding: 26px 18px; }
    .feature-grid .text-card { padding: 22px; }
    .statement-text { padding: 24px; }
}

/* ── Reduced motion: never hide content ── */
@media (prefers-reduced-motion: reduce) {
    .anim .banner-text,
    .anim #intro p,
    .anim #services .card,
    .anim #statement .statement-text,
    .anim #statement .statement-img,
    .anim #usp-bar .usp,
    .anim #why .usp,
    .anim .feature .feature-grid > *,
    .anim #callout .callout,
    .anim #reviews .reviews-summary {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ══════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════ */

/* ── Contact layout ── */
#contact-main {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

/* ── Contact info panel ── */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: var(--secondary);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-detail strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tertiary);
    font-weight: 600;
}

.contact-detail a,
.contact-detail p {
    font-size: 1rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
}

.contact-detail a:hover {
    color: var(--primary);
}

/* ── Contact form ── */
.contact-form-wrap {
    background: var(--grey);
    border-radius: 12px;
    padding: 40px;
}

.contact-form-wrap h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 28px;
    color: var(--secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--secondary);
    background: #fff;
    transition: border-color .2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

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

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.form-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.contact-form .btn-main {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form.is-hidden {
    display: none;
}

.form-status {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-status-success {
    background: #eaf6df;
    color: #3d6317;
    border: 1.5px solid var(--primary);
}

.form-status-error {
    background: #fbe9e9;
    color: #a13333;
    border: 1.5px solid #d96b6b;
}

/* Honeypot — kept in the tab/DOM flow for bots, invisible to real visitors */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Reveal animations ── */
.anim .contact-info,
.anim .contact-form-wrap {
    opacity: 0;
    transform: translateY(22px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 36px;
    }
    .contact-form-wrap {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: 24px;
    }
}

/* ══════════════════════════════════════════════
   NAV DROPDOWN  (Flat roofing sub-pages)
   ══════════════════════════════════════════════ */

/* Desktop hover dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: none; /* mobile only */
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--primary);
    border-radius: 0 0 8px 8px;
    padding: 10px 0 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 100000;
    list-style: none;
    margin: 0;
    gap: 0;
    flex-direction: column;
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.dropdown li a {
    display: block;
    padding: 12px 18px;
    color: var(--white) !important;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: none !important;
}

.dropdown li a:hover {
    background: rgba(0,0,0,0.12);
    color: var(--white) !important;
    border-bottom: none !important;
}

/* ── Mobile: dropdown toggle ── */
@media (max-width: 1290px) {
    .has-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #ededed;
    }

    /* the main "Flat roofing" link takes up most of the row */
    .has-dropdown > a {
        flex: 1;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        font-size: 1.1rem;
        color: var(--secondary);
        cursor: pointer;
        transition: transform .2s ease;
        flex-shrink: 0;
    }

    .has-dropdown.dropdown-open .dropdown-toggle {
        transform: rotate(180deg);
    }

    /* sub-menu sits below the row, full width */
    .dropdown {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: var(--primary);
    }

    .has-dropdown.dropdown-open .dropdown {
        display: flex;
    }

    .dropdown li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .dropdown li a {
        padding: 13px 24px;
        font-size: 15px;
    }
}

/* ══════════════════════════════════════════════
   REVIEWS PAGE
   ══════════════════════════════════════════════ */

/* ── Overall rating banner ── */
#rating-banner {
    padding: 50px 0 40px;
    border-bottom: 1px solid #eee;
}

.rating-overall {
    display: flex;
    align-items: center;
    gap: 48px;
    background: var(--secondary);
    border-radius: 16px;
    padding: 40px 48px;
    color: var(--white);
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rating-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.rating-stars {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--primary);
    letter-spacing: 2px;
}

.rating-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.rating-count {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 12px;
}

.rating-overall .btn-main {
    align-self: flex-start;
}

/* ── Review cards grid ── */
#review-cards {
    padding: 60px 0;
}

#review-cards h2 {
    margin-bottom: 40px;
}

.reviews-grid[hidden] {
    display: none;
}

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

.review-card {
    background: var(--grey);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

.review-date {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
}

.review-stars {
    margin-left: auto;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.review-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
    flex: 1;
}

/* ── Reveal animations ── */
.anim .rating-overall,
.anim .review-card {
    opacity: 0;
    transform: translateY(22px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rating-overall {
        padding: 32px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .rating-overall {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px;
    }
    .rating-score {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
    }
}


/*==========================================================================
    Legal content (Privacy Policy, Cookie Policy)
  ========================================================================== */

.legal-content {
    max-width: 820px;
    padding-block: 10px 30px;
}

.legal-content .legal-updated {
    color: var(--tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-top: 2em;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1em;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.4em;
    margin: 0 0 1em 0;
}

.legal-content li {
    margin-bottom: 0.5em;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
}


/*==========================================================================
    Cookie consent banner
  ========================================================================== */

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 26px;
    border-radius: 12px;
    background: var(--secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner p {
    flex: 1 1 320px;
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner p a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-banner-actions button {
        flex: 1;
    }
}
