/* ==========================================================================
   SemaglutideStPete

   GLOBAL
   1. Fonts
   2. Variables (colors, typography, spacing, radius)
   3. Base and typography
   4. Layout (container, section spacing)
   5. Buttons and section label
   6. Utilities

   SECTIONS
   7. Header        header_section
   8. Banner        banner_section
   9. About         about_section
   10. Services     services_section
   11. Gallery      gallery_section
   12. Process      process_section
   13. Why us       why_section
   14. Safety       safety_section
   15. Testimonials testimonials_section
   16. FAQs         faq_section
   17. Consultation consultation_section
   18. Footer       footer_section
   19. 404 page     error_section
   20. Thank you    thankyou_section

   Breakpoints: tablet <= 1080px, mobile <= 700px
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: "Source Serif 4";
    src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

/* 2. Variables ------------------------------------------------------------ */

:root {
    /* Colors */
    --primary-color: #1c2a30;        /* deep slate: dark sections, headings */
    --primary-dark-color: #131d22;   /* darker slate: panels on dark sections */
    --secondary-color: #2f5d62;      /* muted teal */
    --accent-color: #c9a54c;         /* gold: buttons, highlights */
    --accent-hover-color: #d9b965;
    --accent-dark-color: #8f7025;    /* gold for text on light backgrounds */
    --text-color: #46555b;
    --heading-color: #1c2a30;
    --background-color: #f7f3ea;     /* warm cream page background */
    --white-color: #ffffff;
    --border-color: #ddd6c6;
    --text-on-dark-color: rgba(255, 255, 255, 0.82);
    --border-on-dark-color: rgba(255, 255, 255, 0.22);

    /* Typography */
    --heading-font: "Source Serif 4", Georgia, "Times New Roman", serif;
    --body-font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    --h1-size: clamp(2.1rem, 4.1vw, 3.5rem);
    --h2-size: clamp(1.75rem, 3vw, 2.5rem);
    --h3-size: clamp(1.15rem, 1.6vw, 1.35rem);
    --body-size: 1.0625rem;
    --small-size: 0.9375rem;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --section-padding: clamp(64px, 9vw, 120px);
    --container-width: 1280px;
    --container-padding: clamp(20px, 4vw, 40px);

    /* Shape and motion */
    --radius-small: 3px;
    --radius-medium: 10px;
    --radius-large: 18px;
    --transition: 0.2s ease;
}

/* 3. Base and typography -------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--body-size);
    line-height: 1.65;
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.15;
    color: var(--heading-color);
}

h1 {
    font-size: var(--h1-size);
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
    line-height: 1.3;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

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

/* 4. Layout --------------------------------------------------------------- */

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

/* Default vertical rhythm for content sections */
.section {
    padding-block: var(--section-padding);
}

/* 5. Buttons and section label -------------------------------------------------------------- */

.button {
    display: inline-block;
    padding: 13px 24px;
    font-family: var(--body-font);
    font-size: var(--small-size);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    color: var(--primary-dark-color);
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.button:hover {
    background: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
}

/* Secondary variant: outlined, for light backgrounds */
.button-outline {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

.button-outline:hover {
    color: var(--white-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Larger variant for a page's main action */
.button-large {
    padding: 17px 34px;
    font-size: var(--body-size);
}

/* Section label: the brand leaf, the section name in italic serif and a quiet aside.
   Sections adjust alignment and colors through the --label-* variables. */
.section-label {
    --label-name-color: var(--heading-color);
    --label-detail-color: var(--text-color);
    --label-vein-color: var(--background-color);

    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    margin-bottom: var(--space-sm);
}

.section-label-leaf {
    align-self: center;
    width: 26px;
    height: 26px;
    margin-left: -4px; /* the leaf has empty space inside its box */
}

.section-label-leaf-shape {
    fill: var(--accent-color);
}

.section-label-leaf-vein {
    fill: none;
    stroke: var(--label-vein-color);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.section-label-name {
    font-family: var(--heading-font);
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-style: italic;
    line-height: 1.2;
    color: var(--label-name-color);
}

.section-label-detail {
    font-size: var(--small-size);
    color: var(--label-detail-color);
}

/* 6. Utilities ------------------------------------------------------------ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 100;
    padding: 10px 16px;
    background: var(--white-color);
    color: var(--primary-color);
    border-radius: var(--radius-small);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   7. Header (header_section)
   ========================================================================== */

.header_section {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    padding-block: 22px;
}

/* Three areas: logo | centred menu | button.
   Equal 1fr side columns keep the menu centred on the header itself. */
.header_section-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: var(--space-md);
}

.header_section-logo {
    justify-self: start;
}

.header_section-logo img {
    width: auto;
    height: 36px;
}

/* On desktop the nav box is ignored for layout, so the menu and the
   button sit directly in the header grid (columns 2 and 3). */
.header_section-nav {
    display: contents;
}

.header_section-menu {
    display: flex;
    gap: clamp(18px, 2.2vw, 34px);
}

.header_section-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

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

.header_section-button {
    justify-self: end;
    white-space: nowrap;
}

.header_section-toggle {
    display: none;
}

/* Tablet and mobile: collapsible menu */
@media (max-width: 1080px) {
    .header_section {
        padding-block: var(--space-sm);
    }

    .header_section-container {
        grid-template-columns: 1fr auto;
    }

    .header_section-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 1px solid var(--border-on-dark-color);
        border-radius: var(--radius-small);
        cursor: pointer;
    }

    .header_section-toggle-bars,
    .header_section-toggle-bars::before,
    .header_section-toggle-bars::after {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--white-color);
        transition: transform var(--transition), background-color var(--transition);
    }

    .header_section-toggle-bars {
        position: relative;
    }

    .header_section-toggle-bars::before,
    .header_section-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .header_section-toggle-bars::before {
        top: -6px;
    }

    .header_section-toggle-bars::after {
        top: 6px;
    }

    .header_section-toggle[aria-expanded="true"] .header_section-toggle-bars {
        background: transparent;
    }

    .header_section-toggle[aria-expanded="true"] .header_section-toggle-bars::before {
        transform: translateY(6px) rotate(45deg);
    }

    .header_section-toggle[aria-expanded="true"] .header_section-toggle-bars::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .header_section-nav {
        position: absolute;
        top: calc(100% + var(--space-sm));
        left: var(--container-padding);
        right: var(--container-padding);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: var(--space-md);
        background: var(--primary-dark-color);
        border: 1px solid var(--border-on-dark-color);
        border-radius: var(--radius-medium);
    }

    .header_section-nav.is-open {
        display: flex;
    }

    .header_section-menu {
        flex-direction: column;
        gap: 4px;
    }

    .header_section-button {
        justify-self: auto;
    }

    .header_section-link {
        display: block;
        padding: 10px 0;
        font-size: 1.125rem;
    }
}

@media (max-width: 420px) {
    .header_section-logo img {
        height: 30px;
    }
}

/* ==========================================================================
   8. Banner (banner_section)
   ========================================================================== */

.banner_section {
    position: relative;
    display: flex;
    min-height: max(100svh, 620px);
    padding-block: 130px 56px;
    background: var(--primary-color);
    color: var(--white-color);
    overflow: hidden;
}

/* Background carousel */
.banner_section-carousel,
.banner_section-slide,
.banner_section-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner_section-slide {
    opacity: 0;
    transition: opacity 1.4s ease;
}

.banner_section-slide.is-active {
    opacity: 1;
}

.banner_section-image {
    object-fit: cover;
    object-position: 70% center;
}

/* Slate overlay keeps the copy readable over every slide */
.banner_section-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 42, 48, 0.95) 0%, rgba(28, 42, 48, 0.88) 38%, rgba(28, 42, 48, 0.62) 62%, rgba(28, 42, 48, 0.3) 100%),
        linear-gradient(180deg, rgba(19, 29, 34, 0.45) 0%, rgba(19, 29, 34, 0) 26%, rgba(19, 29, 34, 0) 68%, rgba(19, 29, 34, 0.6) 100%);
}

/* Grid: narrow left column for the dots, wide column for the copy.
   The dots line up with the header logo; the copy is indented as in the reference. */
.banner_section-container {
    position: relative;
    display: grid;
    grid-template-columns: clamp(64px, 12vw, 170px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    row-gap: var(--space-lg);
}

.banner_section-content {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    max-width: 560px;
}

.banner_section-title {
    color: var(--white-color);
}

.banner_section-description {
    max-width: 470px;
    margin-top: 20px;
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    color: var(--text-on-dark-color);
}

.banner_section-buttons {
    margin-top: 32px;
}

.banner_section-dots {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: -7px; /* centres the 10px dot on the container edge despite its 24px hit area */
}

/* 24px hit area around a 10px visible dot */
.banner_section-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.banner_section-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.banner_section-dot:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

.banner_section-dot.is-active::before {
    background: var(--accent-color);
    transform: scale(1.3);
}

.banner_section-notes {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px clamp(24px, 3.4vw, 52px);
    font-size: var(--small-size);
    font-weight: 500;
    color: var(--text-on-dark-color);
}

.banner_section-note {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner_section-note::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--accent-color);
}

/* Mobile: single column, dots in a row under the button */
@media (max-width: 700px) {
    .banner_section {
        padding-block: 120px 40px;
    }

    .banner_section-carousel::after {
        background: linear-gradient(180deg, rgba(19, 29, 34, 0.72) 0%, rgba(28, 42, 48, 0.74) 55%, rgba(19, 29, 34, 0.88) 100%);
    }

    .banner_section-image {
        object-position: 62% center;
    }

    .banner_section-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 1fr auto auto;
        row-gap: 0;
    }

    .banner_section-content,
    .banner_section-dots,
    .banner_section-notes {
        grid-column: 1;
    }

    .banner_section-dots {
        grid-row: 2;
        flex-direction: row;
        margin-block: var(--space-lg) 12px;
    }

    .banner_section-notes {
        grid-row: 3;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner_section-slide {
        transition: none;
    }
}

/* ==========================================================================
   9. About (about_section)
   ========================================================================== */

.about_section {
    padding-block: var(--section-padding);
    background: var(--background-color);
    overflow: hidden;
}

/* Full-width grid: the two images run to the screen edges, as in the reference,
   and sit at different heights (left lower, right higher). */
.about_section-container {
    display: grid;
    grid-template-columns: minmax(0, 22%) minmax(0, 1fr) minmax(0, 22%);
    align-items: center;
    column-gap: var(--container-padding);
}

.about_section-image {
    width: 100%;
    object-fit: cover;
}

.about_section-image-left {
    align-self: end;
    aspect-ratio: 23 / 41;
    margin-top: clamp(80px, 13vw, 190px);
}

.about_section-image-right {
    align-self: start;
    aspect-ratio: 23 / 47;
    margin-bottom: clamp(60px, 9vw, 130px);
}

.about_section-content {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}

/* Label centred above the heading, with a little more room than in Services */
.about_section-label {
    justify-content: center;
    margin-bottom: 20px;
}

.about_section-description {
    margin-top: var(--space-md);
}

.about_section-buttons {
    margin-top: 32px;
}

/* Tablet: narrower images, less stagger */
@media (max-width: 1080px) {
    .about_section-container {
        grid-template-columns: minmax(0, 19%) minmax(0, 1fr) minmax(0, 19%);
    }
}

/* Mobile: copy first, then the two images side by side */
@media (max-width: 700px) {
    .about_section-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--space-sm);
        row-gap: var(--space-lg);
        padding-inline: var(--container-padding);
    }

    .about_section-content {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .about_section-image-left,
    .about_section-image-right {
        grid-row: 2;
        aspect-ratio: 3 / 4;
    }

    .about_section-image-left {
        margin-top: var(--space-lg);
    }

    .about_section-image-right {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   10. Services (services_section)
   ========================================================================== */

.services_section {
    padding-block: var(--section-padding);
    background: var(--primary-color);
    color: var(--text-on-dark-color);
}

/* Left: intro and image, kept in view while the list scrolls. Right: numbered list. */
.services_section-container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.services_section-intro {
    position: sticky;
    top: var(--space-lg);
}

/* Label on the dark background */
.services_section-label {
    --label-name-color: var(--accent-hover-color);
    --label-detail-color: rgba(255, 255, 255, 0.62);
    --label-vein-color: var(--primary-color);
}

.services_section-heading {
    color: var(--white-color);
}

.services_section-description {
    max-width: 440px;
    margin-top: var(--space-md);
}

.services_section-buttons {
    margin-top: 32px;
}

.services_section-image {
    width: 100%;
    margin-top: var(--space-xl);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 28%;
    border-radius: var(--radius-medium);
}

.services_section-grid {
    border-bottom: 1px solid var(--border-on-dark-color);
}

.services_section-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    column-gap: var(--space-md);
    align-items: start;
    padding-block: 30px;
    border-top: 1px solid var(--border-on-dark-color);
    transition: border-color var(--transition);
}

.services_section-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--accent-color);
    border: 1px solid var(--border-on-dark-color);
    border-radius: 50%;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.services_section-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.services_section-title {
    color: var(--white-color);
    transition: color var(--transition);
}

.services_section-text {
    max-width: 460px;
    margin-top: var(--space-xs);
}

.services_section-number {
    font-family: var(--heading-font);
    font-size: var(--h3-size);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.38);
    transition: color var(--transition);
}

.services_section-card:hover {
    border-top-color: var(--accent-color);
}

.services_section-card:hover .services_section-icon {
    color: var(--primary-dark-color);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.services_section-card:hover .services_section-title,
.services_section-card:hover .services_section-number {
    color: var(--accent-hover-color);
}

.services_section-note {
    grid-column: 2;
    margin-top: var(--space-md);
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.62);
}

/* Tablet: stacked, image beside nothing, intro no longer sticky */
@media (max-width: 1080px) {
    .services_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-lg);
    }

    .services_section-intro {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: var(--space-lg);
        align-items: center;
    }

    .services_section-label,
    .services_section-heading,
    .services_section-description,
    .services_section-buttons {
        grid-column: 1;
    }

    .services_section-image {
        grid-column: 2;
        grid-row: 1 / span 4;
        margin-top: 0;
        aspect-ratio: 4 / 3;
    }

    .services_section-note {
        grid-column: 1;
        margin-top: 0;
    }
}

/* Mobile: single column */
@media (max-width: 700px) {
    .services_section-intro {
        display: block;
    }

    .services_section-image {
        margin-top: var(--space-lg);
        aspect-ratio: 16 / 10;
    }

    .services_section-card {
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: var(--space-sm);
        padding-block: var(--space-md);
    }

    .services_section-icon {
        width: 44px;
        height: 44px;
    }

    .services_section-number {
        display: none;
    }
}

/* ==========================================================================
   11. Gallery (gallery_section)
   ========================================================================== */

.gallery_section {
    --gallery-card-width: 23.500vw;
    --gallery-gap: clamp(12px, 1.6vw, 24px);
    --gallery-stagger: clamp(14px, 2vw, 28px);

    padding-block: var(--section-padding);
    background: var(--white-color);
    overflow: hidden;
}

/* Label on the left, heading and intro in a wider column to its right */
.gallery_section-container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--space-lg);
    align-items: start;
}

.gallery_section-label {
    --label-vein-color: var(--white-color);
    margin-top: 10px;
    margin-bottom: 0;
}

.gallery_section-heading {
    max-width: 620px;
}

.gallery_section-title-accent {
    color: var(--accent-dark-color);
}

.gallery_section-description {
    max-width: 520px;
    margin-top: var(--space-md);
}

/* Full-width carousel: the active card is centred and the outer cards run off both edges */
.gallery_section-carousel {
    position: relative;
    margin-top: clamp(40px, 5vw, 72px);
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.gallery_section-carousel.is-dragging {
    cursor: grabbing;
}

/* Soft fade on the cards that leave the screen */
.gallery_section-carousel::before,
.gallery_section-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 13vw;
    pointer-events: none;
}

.gallery_section-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.gallery_section-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.gallery_section-track {
    display: flex;
    align-items: flex-start;
    gap: var(--gallery-gap);
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.gallery_section-track.is-instant {
    transition: none;
}

.gallery_section-card {
    flex: 0 0 var(--gallery-card-width);
}

/* Alternate cards sit lower, as in the reference */
.gallery_section-card:nth-child(even) {
    margin-top: var(--gallery-stagger);
}

.gallery_section-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--background-color);
}

.gallery_section-image {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    transition: transform 0.6s ease;
    -webkit-user-drag: none;
}

.gallery_section-card:hover .gallery_section-image {
    transform: scale(1.04);
}

.gallery_section-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--white-color);
    background: rgba(28, 42, 48, 0.55);
    border-radius: 999px;
}

.gallery_section-card-title {
    margin-top: 18px;
}

.gallery_section-card-text {
    margin-top: 6px;
    font-size: var(--small-size);
    line-height: 1.5;
}

.gallery_section-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-lg);
}

/* 24px hit area around a 10px visible dot */
.gallery_section-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.gallery_section-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery_section-dot:hover::before {
    background: var(--text-color);
}

.gallery_section-dot.is-active::before {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Tablet: one centred card with a large part of each neighbour */
@media (max-width: 1080px) {
    .gallery_section {
        --gallery-card-width: 38vw;
    }

    .gallery_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-sm);
    }

    .gallery_section-label {
        margin-top: 0;
    }
}

/* Mobile: one card with a peek of the next on each side */
@media (max-width: 700px) {
    .gallery_section {
        --gallery-card-width: 72vw;
        --gallery-stagger: 0px;
    }

    .gallery_section-carousel::before,
    .gallery_section-carousel::after {
        width: 8vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery_section-track,
    .gallery_section-image {
        transition: none;
    }
}

/* ==========================================================================
   12. Process (process_section)
   ========================================================================== */

.process_section {
    --process-marker-size: 52px;
    --process-wave-height: 80px;

    padding-block: var(--section-padding);
    background: var(--background-color);
}

.process_section-heading {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.process_section-label {
    justify-content: center;
    margin-bottom: 20px;
}

.process_section-description {
    margin-top: var(--space-md);
}

/* Desktop: five steps along one flowing line. The markers sit on the
   crests and dips of the wave, and each step's copy follows its marker. */
.process_section-flow {
    position: relative;
    margin-top: var(--space-xl);
}

.process_section-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--process-wave-height);
    overflow: visible;
}

.process_section-path-line {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

/* The line carries on past the last step: support is ongoing */
.process_section-path-line-ongoing {
    stroke-dasharray: 5 6;
}

/* Starting point of the line */
.process_section-flow::before {
    content: "";
    position: absolute;
    top: calc(var(--process-wave-height) / 2 - 4px);
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.process_section-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process_section-step {
    position: relative;
    padding: 68px 14px 0;
    text-align: center;
}

.process_section-step:nth-child(even) {
    padding-top: 120px;
}

.process_section-marker {
    position: absolute;
    top: -12px; /* wave crest (14px) minus half the marker */
    left: 50%;
    display: grid;
    place-items: center;
    width: var(--process-marker-size);
    height: var(--process-marker-size);
    color: var(--primary-color);
    background: var(--background-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.process_section-step:nth-child(even) .process_section-marker {
    top: 40px; /* wave dip (66px) minus half the marker */
}

/* The journey starts on a solid marker and ends on a gold one */
.process_section-step:first-child .process_section-marker {
    color: var(--white-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.process_section-step:last-child .process_section-marker {
    background: var(--accent-color);
}

.process_section-marker svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process_section-step-label {
    font-family: var(--heading-font);
    font-style: italic;
    color: var(--accent-dark-color);
}

.process_section-step-title {
    margin-top: 2px;
}

.process_section-step-text {
    margin-top: var(--space-xs);
    font-size: var(--small-size);
    line-height: 1.55;
}

/* Tablet: heading on the left, steps on a vertical line on the right */
@media (max-width: 1080px) {
    .process_section-container {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
        column-gap: var(--space-lg);
        align-items: start;
    }

    .process_section-heading {
        margin-inline: 0;
        text-align: left;
    }

    .process_section-label {
        justify-content: flex-start;
    }

    .process_section-flow {
        margin-top: 0;
    }

    .process_section-path,
    .process_section-flow::before {
        display: none;
    }

    .process_section-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .process_section-step,
    .process_section-step:nth-child(even) {
        display: grid;
        grid-template-columns: var(--process-marker-size) minmax(0, 1fr);
        column-gap: 20px;
        padding: 0 0 28px;
        text-align: left;
    }

    .process_section-step:last-child {
        padding-bottom: 0;
    }

    /* Vertical connector behind the markers */
    .process_section-step::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(var(--process-marker-size) / 2);
        border-left: 1px solid var(--accent-color);
    }

    .process_section-step:last-child::before {
        bottom: -28px;
        border-left-style: dashed;
    }

    .process_section-marker,
    .process_section-step:nth-child(even) .process_section-marker {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .process_section-content {
        padding-top: 2px;
    }
}

/* Mobile: heading above, compact vertical line below */
@media (max-width: 700px) {
    .process_section {
        --process-marker-size: 44px;
    }

    .process_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-lg);
    }

    .process_section-step,
    .process_section-step:nth-child(even) {
        column-gap: var(--space-sm);
        padding-bottom: var(--space-md);
    }

    .process_section-marker svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   13. Why choose us (why_section)
   ========================================================================== */

.why_section {
    padding-block: var(--section-padding);
    background: var(--white-color);
}

.why_section-container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 7vw, 104px);
    align-items: center;
}

/* Image with the lead point set into its lower corner */
.why_section-visual {
    position: relative;
    padding: 0 clamp(24px, 3vw, 44px) 64px 0;
}

.why_section-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-large);
}

.why_section-feature {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(82%, 360px);
    padding: 28px 30px 30px;
    color: var(--text-on-dark-color);
    background: var(--primary-color);
    border-radius: var(--radius-medium);
}

/* Small gold corner mark */
.why_section-feature::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: 18px;
    background: var(--accent-color);
}

.why_section-feature-title {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--white-color);
}

.why_section-feature-text {
    margin-top: 10px;
    font-size: var(--small-size);
}

.why_section-label {
    --label-vein-color: var(--white-color);
}

.why_section-description {
    max-width: 520px;
    margin-top: var(--space-md);
}

/* Supporting points: plain text with a fine gold rule, not boxes */
.why_section-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px var(--space-lg);
    margin-top: var(--space-lg);
}

.why_section-item {
    padding-left: 20px;
    border-left: 1px solid var(--accent-color);
}

.why_section-item-text {
    margin-top: 6px;
    font-size: var(--small-size);
    line-height: 1.55;
}

.why_section-buttons {
    margin-top: var(--space-lg);
}

/* Tablet: supporting points in one column, lead point sits under the image */
@media (max-width: 1080px) {
    .why_section-container {
        align-items: start;
    }

    .why_section-visual {
        padding: 0;
    }

    .why_section-feature {
        position: relative;
        width: auto;
        margin: -48px var(--space-sm) 0;
    }

    .why_section-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-md);
    }
}

/* Mobile: copy first, then the image with the lead point overlapping it */
@media (max-width: 700px) {
    .why_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-xl);
    }

    .why_section-content {
        grid-row: 1;
    }

    .why_section-image {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   14. Safety (safety_section)
   ========================================================================== */

.safety_section {
    padding-block: var(--section-padding);
    background: var(--background-color);
    overflow: hidden;
}

.safety_section-container {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(48px, 8vw, 120px);
    align-items: center;
}

.safety_section-description {
    max-width: 540px;
    margin-top: var(--space-md);
}

.safety_section-note {
    max-width: 540px;
    margin-top: var(--space-md);
    font-size: var(--small-size);
    font-style: italic;
}

/* Tall main image with a fine gold frame behind it and a smaller image overlapping its corner */
.safety_section-visual {
    position: relative;
    margin: 0 18px 56px 0;
}

.safety_section-visual::before {
    content: "";
    position: absolute;
    inset: -18px -18px 18px 18px;
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-large);
}

.safety_section-image {
    object-fit: cover;
    border-radius: var(--radius-large);
}

.safety_section-image-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.safety_section-image-detail {
    position: absolute;
    bottom: -56px;
    left: -14%;
    width: 44%;
    aspect-ratio: 1;
    border: 8px solid var(--background-color);
}

/* Two cards under the intro: one light (before), one dark (during) */
.safety_section-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.safety_section-card {
    position: relative;
    padding: clamp(28px, 3.4vw, 48px);
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    box-shadow: 0 24px 48px -38px rgba(28, 42, 48, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safety_section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 56px -36px rgba(28, 42, 48, 0.6);
}

.safety_section-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
}

.safety_section-card-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--accent-dark-color);
    background: var(--background-color);
    border-radius: 50%;
}

.safety_section-card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.safety_section-group-title {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.safety_section-list {
    position: relative;
    z-index: 1;
    margin: 0;
}

.safety_section-row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: var(--space-md);
    padding-block: 16px;
    border-top: 1px solid var(--border-color);
}

.safety_section-row:first-child {
    border-top-color: var(--accent-color);
}

.safety_section-row:last-child {
    padding-bottom: 0;
}

.safety_section-term {
    font-weight: 600;
    line-height: 1.4;
    color: var(--heading-color);
}

.safety_section-detail {
    margin: 0;
    font-size: var(--small-size);
    line-height: 1.55;
}

/* Faint brand leaf in the corner of each card */
.safety_section-card-leaf {
    position: absolute;
    right: -46px;
    bottom: -58px;
    width: 210px;
    height: 210px;
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 0.5;
    opacity: 0.4;
    pointer-events: none;
}

/* Dark variation for the second card */
.safety_section-card-during {
    color: var(--text-on-dark-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.safety_section-card-during .safety_section-card-icon {
    color: var(--accent-hover-color);
    background: transparent;
    border: 1px solid var(--border-on-dark-color);
}

.safety_section-card-during .safety_section-group-title,
.safety_section-card-during .safety_section-term {
    color: var(--white-color);
}

.safety_section-card-during .safety_section-row {
    border-top-color: var(--border-on-dark-color);
}

.safety_section-card-during .safety_section-row:first-child {
    border-top-color: var(--accent-color);
}

/* Tablet: images above the copy; inside the cards each term sits above its detail */
@media (max-width: 1080px) {
    .safety_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-xl);
    }

    .safety_section-visual {
        grid-row: 1;
        width: min(100% - 60px, 460px);
        margin: 18px 18px 56px auto;
    }

    .safety_section-image-main {
        aspect-ratio: 1;
    }

    .safety_section-description,
    .safety_section-note {
        max-width: none;
    }

    .safety_section-cards {
        margin-top: 0;
    }

    .safety_section-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
    }
}

/* Mobile: cards stacked */
@media (max-width: 700px) {
    .safety_section-visual {
        width: auto;
        margin: 14px 14px 44px 36px;
    }

    .safety_section-visual::before {
        inset: -14px -14px 14px 14px;
    }

    .safety_section-image-detail {
        bottom: -44px;
        left: -36px;
        width: 42%;
        border-width: 6px;
    }

    .safety_section-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .safety_section-card {
        transition: none;
    }

    .safety_section-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   15. Testimonials (testimonials_section)
   ========================================================================== */

.testimonials_section {
    --testimonial-slide-width: 62%;
    --testimonial-gap: clamp(32px, 5vw, 72px);

    padding-block: var(--section-padding);
    color: var(--text-on-dark-color);
    background: var(--primary-color);
}

/* Heading on the left, short note on the right */
.testimonials_section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    column-gap: var(--space-lg);
    align-items: end;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-on-dark-color);
}

.testimonials_section-label {
    --label-name-color: var(--accent-hover-color);
    --label-detail-color: rgba(255, 255, 255, 0.62);
    --label-vein-color: var(--primary-color);
}

.testimonials_section-title {
    color: var(--white-color);
}

.testimonials_section-description {
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.7);
}

/* One review in focus, with the next one waiting, dimmed, beside it */
.testimonials_section-carousel {
    margin-top: var(--space-xl);
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.testimonials_section-carousel.is-dragging {
    cursor: grabbing;
}

.testimonials_section-track {
    display: flex;
    align-items: flex-start;
    gap: var(--testimonial-gap);
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.testimonials_section-track.is-instant {
    transition: none;
}

.testimonials_section-slide {
    flex: 0 0 var(--testimonial-slide-width);
    opacity: 0.28;
    transition: opacity 0.6s ease;
}

.testimonials_section-slide.is-current {
    opacity: 1;
}

.testimonials_section-quote {
    margin: 0;
}

.testimonials_section-mark {
    width: clamp(40px, 4.4vw, 60px);
    fill: var(--accent-color);
}

.testimonials_section-text {
    margin: var(--space-md) 0 0;
    font-family: var(--heading-font);
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    line-height: 1.32;
    color: var(--white-color);
}

.testimonials_section-author {
    margin-top: var(--space-md);
    font-size: var(--small-size);
    font-weight: 600;
    color: var(--accent-hover-color);
}

.testimonials_section-author-detail {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.62);
}

.testimonials_section-author-detail::before {
    content: "\00B7";
    margin-inline: 8px;
}

.testimonials_section-dots {
    display: flex;
    gap: 6px;
    margin: var(--space-lg) 0 0 -7px;
}

/* 24px hit area around a 10px visible dot */
.testimonials_section-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.testimonials_section-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials_section-dot:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

.testimonials_section-dot.is-active::before {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Tablet: a little more of the review in focus */
@media (max-width: 1080px) {
    .testimonials_section {
        --testimonial-slide-width: 74%;
    }
}

/* Mobile: one review at a time */
@media (max-width: 700px) {
    .testimonials_section {
        --testimonial-slide-width: 100%;
    }

    .testimonials_section-heading {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-sm);
        padding-bottom: var(--space-md);
    }

    .testimonials_section-carousel {
        margin-top: var(--space-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials_section-track,
    .testimonials_section-slide {
        transition: none;
    }
}

/* ==========================================================================
   16. FAQs (faq_section)
   ========================================================================== */

.faq_section {
    padding-block: var(--section-padding);
    background: var(--background-color);
}

.faq_section-container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.faq_section-description {
    max-width: 460px;
    margin-top: var(--space-md);
}

/* Image with a dark note overlapping its lower edge */
.faq_section-visual {
    position: relative;
    margin-top: var(--space-lg);
}

.faq_section-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-large);
}

.faq_section-aside {
    position: relative;
    margin: -36px 0 0 clamp(20px, 3vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 20px 24px;
    color: var(--white-color);
    background: var(--primary-color);
    border-radius: var(--radius-medium) 0 var(--radius-medium) var(--radius-medium);
}

.faq_section-aside-text {
    flex: 1 1 160px;
    font-family: var(--heading-font);
    font-size: var(--h3-size);
    line-height: 1.3;
}

/* The questions sit on a white sheet */
.faq_section-list {
    padding: clamp(8px, 1.4vw, 16px) clamp(20px, 3.2vw, 44px);
    background: var(--white-color);
    border-radius: var(--radius-large);
}

.faq_section-item + .faq_section-item {
    border-top: 1px solid var(--border-color);
}

.faq_section-button {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    padding: 22px 0;
    font: inherit;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color var(--transition);
}

.faq_section-button:hover {
    color: var(--accent-dark-color);
}

/* Plus that turns into a minus when the answer is open */
.faq_section-icon {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: background-color var(--transition), border-color var(--transition);
}

.faq_section-icon::before,
.faq_section-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq_section-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq_section-item.is-open .faq_section-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.faq_section-item.is-open .faq_section-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* The panel animates between zero and its natural height using grid rows.
   Answers are only collapsed once the script has run (is-ready), so they
   stay readable if JavaScript is unavailable. */
.faq_section-panel {
    display: grid;
    grid-template-rows: 1fr;
}

.faq_section-list.is-ready .faq_section-panel {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.35s ease, visibility 0s linear 0.35s;
}

.faq_section-list.is-ready .faq_section-item.is-open .faq_section-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.35s ease, visibility 0s;
}

.faq_section-answer {
    min-height: 0;
    overflow: hidden;
}

.faq_section-answer p {
    max-width: 620px;
    padding-bottom: var(--space-md);
}

/* Tablet: intro beside the image, questions below */
@media (max-width: 1080px) {
    .faq_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-lg);
    }

    .faq_section-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        column-gap: var(--space-lg);
        align-items: start;
    }

    .faq_section-label,
    .faq_section-title,
    .faq_section-description {
        grid-column: 1;
    }

    .faq_section-visual {
        grid-column: 2;
        grid-row: 1 / span 3;
        margin-top: 0;
    }
}

/* Mobile: everything in one column */
@media (max-width: 700px) {
    .faq_section-heading {
        display: block;
    }

    .faq_section-visual {
        margin-top: var(--space-md);
    }

    .faq_section-button {
        gap: var(--space-sm);
        padding: 18px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq_section-list.is-ready .faq_section-panel,
    .faq_section-list.is-ready .faq_section-item.is-open .faq_section-panel,
    .faq_section-icon::before,
    .faq_section-icon::after {
        transition: none;
    }
}

/* ==========================================================================
   17. Consultation (consultation_section)
   ========================================================================== */

.consultation_section {
    padding-block: var(--section-padding);
    background: var(--white-color);
}

/* One large rounded panel: image on the left, form on the right */
.consultation_section-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    overflow: hidden;
}

.consultation_section-visual {
    position: relative;
    min-height: 320px;
}

.consultation_section-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

/* Darkens the lower part of the image so the caption stays readable */
.consultation_section-visual::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, rgba(19, 29, 34, 0), rgba(19, 29, 34, 0.82));
}

.consultation_section-caption {
    position: absolute;
    right: clamp(20px, 3vw, 40px);
    bottom: clamp(24px, 3vw, 40px);
    left: clamp(20px, 3vw, 40px);
    z-index: 1;
    padding-top: var(--space-sm);
    font-family: var(--heading-font);
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
    font-style: italic;
    line-height: 1.3;
    color: var(--white-color);
    border-top: 1px solid var(--accent-color);
}

.consultation_section-content {
    padding: clamp(28px, 4.5vw, 64px);
}

.consultation_section-description {
    max-width: 540px;
    margin-top: var(--space-md);
}

/* Embedded request form. Its script sets the frame height; the minimum
   keeps the space reserved while it loads. */
.consultation_section-embed {
    margin-top: var(--space-lg);
}

.consultation_section-embed iframe {
    display: block;
    min-height: 640px;
}

/* Tablet: narrower image column */
@media (max-width: 1080px) {
    .consultation_section-panel {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    }
}

/* Mobile: image above the form */
@media (max-width: 700px) {
    .consultation_section-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .consultation_section-visual {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   18. Footer (footer_section)
   ========================================================================== */

.footer_section {
    position: relative;
    padding-block: clamp(56px, 7vw, 96px) var(--space-lg);
    color: var(--text-on-dark-color);
    background: var(--primary-dark-color);
    overflow: hidden;
}

.footer_section-container {
    position: relative;
    z-index: 1;
}

/* Brand statement: logo, a large serif line and the call to action */
.footer_section-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--space-lg);
    align-items: end;
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--border-on-dark-color);
}

.footer_section-logo {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: var(--space-lg);
}

.footer_section-logo img {
    width: auto;
    height: 46px;
}

.footer_section-tagline {
    max-width: 720px;
    font-family: var(--heading-font);
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    line-height: 1.15;
    color: var(--white-color);
}

.footer_section-tagline em {
    color: var(--accent-hover-color);
}

.footer_section-main {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 8vw, 120px);
    padding-block: clamp(40px, 5vw, 64px);
}

.footer_section-description {
    max-width: 400px;
}

.footer_section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-lg);
}

.footer_section-heading {
    margin-bottom: var(--space-sm);
    font-size: var(--h3-size);
    font-style: italic;
    color: var(--accent-hover-color);
}

.footer_section-menu li + li {
    margin-top: 10px;
}

.footer_section-link {
    color: var(--white-color);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer_section-bottom {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 8vw, 120px);
    padding-top: var(--space-md);
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid var(--border-on-dark-color);
}

/* Large, faint outline of the brand leaf */
.footer_section-leaf {
    position: absolute;
    top: -60px;
    right: -90px;
    width: clamp(260px, 34vw, 520px);
    height: clamp(260px, 34vw, 520px);
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 0.3;
    opacity: 0.3;
    pointer-events: none;
}

/* Mobile: single column throughout */
@media (max-width: 700px) {
    .footer_section-brand {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-md);
        justify-items: start;
    }

    .footer_section-logo {
        margin-bottom: var(--space-xs);
    }

    .footer_section-logo img {
        height: 38px;
    }

    .footer_section-main,
    .footer_section-bottom {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-lg);
    }

    .footer_section-bottom {
        row-gap: var(--space-sm);
    }
}

/* ==========================================================================
   19. 404 page (error_section)
   ========================================================================== */

.error_section {
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-block: var(--space-xl);
    text-align: center;
    background: var(--primary-color);
    color: var(--white-color);
}

.error_section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error_section-logo img {
    width: auto;
    height: 40px;
}

.error_section-code {
    margin-top: 56px;
    font-family: var(--heading-font);
    font-size: clamp(4.5rem, 16vw, 9rem);
    line-height: 1;
    color: var(--accent-color);
}

.error_section-title {
    margin-top: 12px;
    font-size: var(--h2-size);
    color: var(--white-color);
}

.error_section-description {
    max-width: 440px;
    margin-top: var(--space-sm);
    color: var(--text-on-dark-color);
}

.error_section-buttons {
    margin-top: 32px;
}

/* ==========================================================================
   20. Thank you page (thankyou_section)
   ========================================================================== */

/* Minimal header for the light page: dark logo and one link */
.header_section-minimal {
    grid-template-columns: 1fr auto;
}

.header_section-minimal .header_section-link {
    color: var(--heading-color);
}

.header_section-minimal .header_section-link:hover {
    color: var(--accent-dark-color);
}

.thankyou_section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100svh, 920px);
    padding-block: clamp(112px, 12vw, 160px) var(--section-padding);
    background: var(--background-color);
    overflow: hidden;
}

/* Copy on the left, image with an overlapping note on the right */
.thankyou_section-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(48px, 8vw, 120px);
    align-items: center;
}

.thankyou_section-title {
    font-size: clamp(2.75rem, 6.4vw, 5rem);
    line-height: 1.05;
}

.thankyou_section-description {
    max-width: 540px;
    margin-top: var(--space-md);
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.thankyou_section-heading {
    margin-top: var(--space-lg);
    font-size: var(--h3-size);
    font-style: italic;
    line-height: 1.3;
    color: var(--accent-dark-color);
}

.thankyou_section-steps {
    max-width: 540px;
    margin-top: 12px;
    border-bottom: 1px solid var(--border-color);
}

.thankyou_section-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: baseline;
    padding-block: 14px;
    border-top: 1px solid var(--border-color);
}

.thankyou_section-step:first-child {
    border-top-color: var(--accent-color);
}

.thankyou_section-number {
    font-family: var(--heading-font);
    color: var(--accent-dark-color);
}

.thankyou_section-text {
    line-height: 1.5;
    color: var(--heading-color);
}

.thankyou_section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--space-lg);
}

.thankyou_section-visual {
    position: relative;
    margin: 0 0 44px 28px;
}

.thankyou_section-image {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: var(--radius-large);
}

/* Dark note set into the lower corner of the image */
.thankyou_section-note {
    position: absolute;
    bottom: -44px;
    left: -28px;
    width: min(84%, 340px);
    padding: 24px 28px 26px;
    font-family: var(--heading-font);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-style: italic;
    line-height: 1.35;
    color: var(--white-color);
    background: var(--primary-color);
    border-radius: var(--radius-medium);
}

.thankyou_section-note::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: 16px;
    background: var(--accent-color);
}

/* Large, faint outline of the brand leaf behind the image */
.thankyou_section-leaf {
    position: absolute;
    right: -110px;
    bottom: -90px;
    width: clamp(280px, 36vw, 540px);
    height: clamp(280px, 36vw, 540px);
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 0.3;
    opacity: 0.45;
    pointer-events: none;
}

/* Tablet: tighter columns */
@media (max-width: 1080px) {
    .thankyou_section {
        min-height: 0;
    }

    .thankyou_section-container {
        grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
        column-gap: var(--space-lg);
    }

    .thankyou_section-visual {
        margin-left: 16px;
    }

    .thankyou_section-image {
        aspect-ratio: 3 / 4;
    }

    .thankyou_section-note {
        left: -16px;
        width: 92%;
        padding: 20px 22px 22px;
    }
}

/* Mobile: copy first, then the image with the note overlapping it */
@media (max-width: 700px) {
    .thankyou_section {
        padding-top: 104px;
    }

    .thankyou_section-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-xl);
    }

    .thankyou_section-buttons .button {
        flex: 1 1 180px;
    }

    .thankyou_section-visual {
        margin: 0;
    }

    .thankyou_section-image {
        aspect-ratio: 4 / 3;
        object-position: center 30%;
    }

    .thankyou_section-note {
        position: relative;
        bottom: auto;
        left: auto;
        width: auto;
        margin: -40px var(--space-sm) 0;
    }
}
