/* =====================================================================
   Best Movers & Packers Perth – site styles

   1.  Design tokens (colours, fonts, sizes)
   2.  Base
   3.  Layout helpers
   4.  Buttons
   5.  Header + menu
   6.  Hero + quote form
   7.  Sections and blocks
   8.  Reviews, FAQs, cards, steps, gallery, videos
   9.  Blog
   10. Footer
   11. Cookie banner, mobile bar
   12. Calculators (old HTML blocks)
   ===================================================================== */


/* 1. Design tokens --------------------------------------------------- */

:root {
    --blue:        #0592cd;   /* brand colour */
    --blue-dark:   #04729f;
    --blue-deep:   #0e668b;   /* quote form background */
    --red:         #f01e28;   /* stars, step numbers */
    --ink:         #000000;
    --ink-soft:    #3a3a3a;
    --grey-bg:     #f2f8fc;   /* "limestone" section background */
    --line:        #dce7ee;
    --white:       #ffffff;

    --font-heading: 'Archivo', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --radius:      6px;
    --max-width:   1180px;
    --header-height: 122px;  /* used to offset "#quote" jumps under the sticky header */
}


/* 2. Base ------------------------------------------------------------ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    hyphens: none;            /* audit #9: no "re-movals" word breaks */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p {
    margin: 0 0 1em;
}

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

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

.icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

.stars {
    color: #fbbc04;
    letter-spacing: 2px;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--white);
    padding: 8px 16px;
}


/* 3. Layout helpers -------------------------------------------------- */

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

.container--narrow {
    max-width: 860px;
}

.section {
    padding: 72px 0;
}

.section--grey  { background: var(--grey-bg); }
.section--blue  { background: var(--grey-bg); border-top: 4px solid var(--blue); }

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

.section-head {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-head h2 {
    margin: 0;
}

.section-head__intro {
    margin-top: 14px;
    color: var(--ink-soft);
}

.section-head__intro p:last-child {
    margin-bottom: 0;
}

.eyebrow {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 12px;
}


/* 4. Buttons --------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover       { transform: translateY(-1px); }
.btn-block       { width: 100%; }
.btn-small       { padding: 8px 16px; font-size: 0.85rem; }

.btn-primary     { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-dark        { background: var(--ink); color: var(--white); }
.btn-dark:hover  { background: #222; }

.btn-outline     { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-white       { background: var(--white); color: var(--blue-dark); }
.btn-outline-white { border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--blue-dark); }


/* 5. Header + menu --------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo img {
    width: auto;
    height: 58px;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
}

.rating-badge__g {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #4285f4;
}

.rating-badge__text {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: var(--blue-deep);
    color: var(--white);
    border: 0;
    border-radius: var(--radius);
    padding: 8px 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-toggle__close { display: none; }

/* Blue menu bar */
.main-nav {
    background: var(--blue);
}

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu__item {
    position: relative;
}

.menu__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 13px;
    background: none;
    border: 0;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;           /* audit #7: menu never wraps */
    text-decoration: none;
    cursor: pointer;
}

.menu__link:hover,
.menu__item:focus-within > .menu__link {
    background: var(--blue-dark);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.submenu a {
    display: block;
    padding: 8px 18px;
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
}

.submenu a:hover {
    background: var(--grey-bg);
    color: var(--blue-dark);
}

/* Desktop: open on hover or keyboard focus */
@media (min-width: 1025px) {
    .menu__item:hover > .submenu,
    .menu__item:focus-within > .submenu {
        display: block;
    }
}

/* Tablet + phone header */
@media (max-width: 1024px) {
    :root { --header-height: 80px; }

    .rating-badge,
    .header-actions .btn {
        display: none;
    }

    .header-phone {
        font-size: 1.05rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .menu-open .main-nav                { display: block; }
    .menu-open .menu-toggle__open       { display: none; }
    .menu-open .menu-toggle__close      { display: inline; }

    .menu {
        flex-direction: column;
        padding: 8px 0;
    }

    .menu__link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 4px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: var(--radius);
        margin: 4px 0 8px;
    }

    .has-children.open > .submenu {
        display: block;
    }
}

@media (max-width: 560px) {
    .logo img        { height: 46px; }
    .header-phone span { display: none; }   /* phone icon only; number is in the bottom bar */
    .header-phone {
        background: var(--blue);
        color: var(--white);
        padding: 10px;
        border-radius: var(--radius);
    }
}


/* 6. Hero + quote form ----------------------------------------------- */

.hero {
    position: relative;
    padding: 64px 0;
    background-color: var(--ink-soft);
    background-size: cover;
    background-position: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero__grid--single {
    grid-template-columns: minmax(0, 760px);
}

.hero__card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero__card h1 {
    margin-bottom: 0;
}

.hero__intro {
    margin: 18px 0 0;
    font-size: 1.06rem;
    color: var(--ink-soft);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 28px;
}

.hero__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.trust-row li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-row .icon {
    color: var(--blue);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.breadcrumbs li + li::before {
    content: "›";
    margin-right: 4px;
    color: var(--blue);
}

.breadcrumbs a {
    color: var(--blue);
    text-decoration: none;
}

.post-meta {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Quote form card */
.quote-card {
    background: var(--blue-deep);
    color: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.quote-card__title {
    margin: 0;
    padding: 18px 24px;
    background: var(--blue);
    text-align: center;
    font-size: 1.5rem;
    color: var(--white);
}

.quote-form {
    display: grid;
    gap: 12px;
    padding: 22px 24px 20px;
}

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

.quote-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
}

.quote-form input,
.quote-form textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;              /* 16px stops iPhones zooming in */
    background: var(--white);
}

.quote-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-note {
    margin: 0;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.85;
}

.form-note a {
    color: var(--white);
}

.field {
    min-width: 0;
}

.quote-form .required {
    color: #ffd24d;
}

.field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd24d;          /* readable on the dark blue form */
}

.field-error:empty {
    display: none;
}

.quote-form .is-invalid {
    border: 2px solid #ffd24d;
    background: #fffbea;
}

.form-error[hidden] {
    display: none;
}

.form-error {
    margin: 16px 24px 0;
    padding: 10px 14px;
    background: #fff1f1;
    color: #b00020;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .hero {
        padding: 24px 0 40px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__card {
        padding: 26px 22px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* 7. Sections and blocks --------------------------------------------- */

/* Rich text from the editor */
.prose {
    max-width: 860px;
    margin: 0 auto;
    color: var(--ink-soft);
}

.prose h2 { margin-top: 1.6em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose h4 { margin-top: 1.2em; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }

.prose ul,
.prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose img {
    margin: 1.2em auto;
    border-radius: var(--radius);
}

.prose iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: var(--radius);
}

.prose table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.prose th {
    background: var(--grey-bg);
    color: var(--ink);
}

.prose blockquote {
    margin: 1.2em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--blue);
    background: var(--grey-bg);
}

/* Text with image on the right */
.text-image {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
}

.text-image .prose,
.text-image .section-head {
    max-width: none;
    margin-left: 0;
    text-align: left;
}

.text-image__img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
    .text-image {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Call-to-action band */
.cta {
    background: var(--blue);
    color: var(--white);
    padding: 48px 0;
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
}

.cta h2 {
    color: var(--white);
    margin: 0;
}

.cta p {
    margin: 10px 0 0;
    opacity: 0.95;
}

.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .cta__inner {
        flex-direction: column;
        text-align: center;
    }
}


/* 8. Reviews, FAQs, cards, steps, gallery, videos -------------------- */

.review-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-summary > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.review-summary__score {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue);
}

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

.review-card {
    margin: 0;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
}

.review-card__date {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.review-card blockquote {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }

/* FAQs */
.faq {
    margin-bottom: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq summary {
    position: relative;
    padding: 16px 48px 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--blue);
}

.faq[open] summary::after {
    content: "−";
}

.faq__answer {
    padding: 0 20px 16px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s, transform 0.15s;
}

a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Small icons (e.g. "Competitive Rates") are shown at their own size */
.card__image[src$=".png"] {
    width: 64px;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 22px 22px 0;
}

.card__body {
    padding: 20px 22px 22px;
}

.card__body p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--ink-soft);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue);
}

/* Steps: numbered cards (How it works, DIY packing tips …) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 22px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.step__number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
}

.step h3 {
    margin: 14px 0 8px;
    font-size: 1.05rem;
}

.step p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Link lists (services, routes, related) */
.link-grid,
.area-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.area-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.link-grid a,
.area-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.link-grid a .icon:first-child,
.area-list .icon {
    color: var(--blue);
}

.link-grid a .icon:last-child {
    margin-left: auto;
    color: var(--blue);
}

.link-grid a:hover,
.area-list a:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.area-list small {
    margin-left: auto;
    color: var(--ink-soft);
    font-weight: 400;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery__item {
    margin: 0;
}

.gallery__item img,
.gallery__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery__placeholder {
    display: grid;
    place-items: center;
    background: var(--grey-bg);
    border: 1px solid var(--line);
    color: var(--blue);
    font-size: 2.5rem;
}

.gallery__item figcaption {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    cursor: pointer;
}

.video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.4rem;
}


/* 9. Blog ------------------------------------------------------------ */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.post-card a {
    display: block;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
}

.post-card a:hover {
    border-color: var(--blue);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card__body {
    padding: 18px 20px 20px;
}

.post-card__body p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
}

.pagination span {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}


/* 10. Footer --------------------------------------------------------- */

.footer-badges {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-badges__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
}

.footer-badges__awards,
.footer-badges__ratings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
}

.footer-badges__awards img {
    height: 70px;
    width: auto;
}

.footer-badges__inner {
    justify-content: space-between;
}

.review-site {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
}

.review-site img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
}

.review-site strong {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.review-site small {
    display: block;
    font-size: 0.85rem;
}

/* Black trust bar under the hero */
.badge-strip {
    background: var(--ink);
    padding: 18px 0;
}

.badge-strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 34px;
    margin: 0 auto;
    list-style: none;
}

.badge-strip li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e5e5;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-strip .icon {
    color: var(--red);
}

/* Stat boxes next to text (About Us) */
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--blue);
}

.stat__label {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.footer-main {
    padding: 56px 0 40px;
    background: #0b1f2a;
    color: #cfd8de;
    font-size: 0.93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
}

.footer-main a {
    color: #cfd8de;
    text-decoration: none;
}

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

.footer-links,
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact .icon {
    color: var(--blue);
    margin-top: 3px;
}

.footer-main .btn {
    margin-top: 8px;
    color: var(--white);
}

.footer-bottom {
    padding: 16px 0;
    background: #06141b;
    color: #9fb0ba;
    font-size: 0.85rem;
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #cfd8de;
}

.social-links {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-badges img { height: 52px; }
}


/* 11. Cookie banner, mobile bar -------------------------------------- */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    max-width: 560px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}

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

.cookie-banner p {
    margin: 0 0 12px;
}

.cookie-banner__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mobile-bar {
    display: none;
}

@media (max-width: 760px) {
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 15px 10px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-bar__call  { background: var(--blue); color: var(--white); }
    .mobile-bar__quote { background: var(--ink);  color: var(--white); }

    body {
        padding-bottom: 56px;        /* room for the bar */
    }

    .cookie-banner {
        bottom: 72px;
    }
}


/* 12. Calculators (old HTML blocks) ----------------------------------
   The calculators were built with Bootstrap class names. These few rules
   give them the same look without loading Bootstrap. */

.html-block .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.html-block [class*="col-"] {
    flex: 1 1 240px;
}

.html-block .form-control,
.html-block .form-select,
.html-block input[type="number"],
.html-block select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.html-block table {
    width: 100%;
    border-collapse: collapse;
}

.html-block th,
.html-block td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.html-block .btn {
    background: var(--blue);
    color: var(--white);
}

.html-block .d-none { display: none; }
.html-block .mt-3   { margin-top: 1rem; }
.html-block .mb-3   { margin-bottom: 1rem; }
