/*
 * Golden Claim AI — goldenclaimai.com
 * Dark "card" design: every section of the page is a full-width card, some with
 * an image on the left / right / behind the text.
 *
 * Quick edits:
 *   - Colours and fonts ........ the :root block right below.
 *   - Page background image .... body.g-page::before (assets/images/background.jpg).
 *   - Spacing of the sections .. --g-pad-y / --g-pad-x (and the @media blocks under :root).
 */

/* ---------- Colours, fonts and sizes (edit here) ---------- */
:root {
    /* Fonts: loaded from Google Fonts in the <head> of index.html and 404.html */
    --g-font-heading: 'Sora', ui-sans-serif, system-ui, sans-serif;
    --g-font-body: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    --g-heading-weight: 500;

    /* Colours */
    --g-text: #e0d6de; /* body text */
    --g-heading-gradient: linear-gradient(134deg, #b380ff 10%, #7af0ff 90%); /* section headings */
    --g-accent: #b380ff; /* icons, links, focus ring */
    --g-accent-gradient: linear-gradient(143deg, #b380ff 10%, #7af0ff 90%); /* buttons, icons */
    --g-button-text: #000000; /* text on the gradient buttons */
    --g-shape: #26262b; /* boxes, arrows, pyramid */
    --g-shape-border: #26262b; /* outline of boxes and arrows */
    --g-bg: #13131a; /* behind the background image */
    --g-card: #07070c; /* section (card) background */
    --g-line: color-mix(in srgb, var(--g-text) 28%, transparent); /* thin divider lines */
    --g-radius: 2px; /* corner rounding */

    /* Layout */
    --g-fs: 18px; /* base text size */
    --g-pad-y: 85.5px; /* space above / below the content of each section */
    --g-pad-x: 63px; /* space left / right of the content */
    --g-max: 1161px; /* maximum width of the content */
    --g-nav-h: 76px; /* height of the top bar */
}

@media (max-width: 1023px) {
    :root {
        --g-fs: 17px;
    }
}

@media (max-width: 767px) {
    :root {
        --g-fs: 16px;
        --g-pad-y: 44px;
        --g-pad-x: 20px;
        --g-nav-h: 64px;
    }
}

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

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

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

body.g-page {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    background-color: var(--g-bg);
    color: var(--g-text);
    font-family: var(--g-font-body);
    font-size: var(--g-fs);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Fixed page background (works on iOS, unlike background-attachment: fixed). */
body.g-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        url('../images/background.jpg') center / cover no-repeat,
        var(--g-bg);
    pointer-events: none;
}

/* Short pages (404): the last section grows so the footer sits at the bottom. */
body.g-page > main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}
body.g-page > main > :last-child {
    flex-grow: 1;
}

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

a {
    color: inherit;
}

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

.g-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--g-card);
    color: var(--g-text);
    border-radius: var(--g-radius);
}

.g-skip:focus {
    top: 12px;
}

/* ---------- Navigation (scrolls away with the page, like the original) ---------- */
.g-nav {
    position: relative;
    z-index: 50;
    background: var(--g-card);
}

.g-nav__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--g-max);
    min-height: var(--g-nav-h);
    margin: 0 auto;
    padding: 8px 0;
}

@media (max-width: 1199px) {
    .g-nav__inner {
        padding-inline: 20px;
    }
}

.g-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 44px;
    color: var(--g-text);
    text-decoration: none;
}

.g-nav__logo {
    display: block;
    width: auto;
    height: 55px;
    object-fit: contain;
}

.g-nav__menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 24px;
    min-width: 0;
}

.g-nav__links {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.g-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px;
    border-radius: var(--g-radius);
    font-size: 16px;
    line-height: 1.6;
    color: var(--g-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.g-nav__link:hover {
    background: color-mix(in srgb, var(--g-text) 10%, transparent);
}

.g-nav__buttons {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Menu button (hamburger), shown below 1100px */
.g-nav__toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: var(--g-radius);
    background: transparent;
    color: var(--g-text);
    cursor: pointer;
}

.g-nav__burger,
.g-nav__burger::before,
.g-nav__burger::after {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        transform 0.25s,
        opacity 0.2s,
        top 0.25s;
}

.g-nav__burger {
    top: 21px;
}
.g-nav__burger::before,
.g-nav__burger::after {
    content: '';
    left: 0;
}
.g-nav__burger::before {
    top: -6px;
}
.g-nav__burger::after {
    top: 6px;
}

.g-nav.is-open .g-nav__burger {
    background: transparent;
}
.g-nav.is-open .g-nav__burger::before {
    top: 0;
    transform: rotate(45deg);
}
.g-nav.is-open .g-nav__burger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 1099px) {
    .js .g-nav__toggle {
        display: block;
    }

    .js .g-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        max-height: calc(100vh - var(--g-nav-h));
        max-height: calc(100dvh - var(--g-nav-h));
        overflow-y: auto;
        padding: 8px 20px 24px;
        background: var(--g-card);
        border-top: 1px solid color-mix(in srgb, var(--g-text) 12%, transparent);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    }

    .js .g-nav.is-open .g-nav__menu {
        display: flex;
    }

    .js .g-nav__links {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }

    .js .g-nav__link {
        display: flex;
        width: 100%;
        min-height: 48px;
        padding: 12px 4px;
        border-bottom: 1px solid color-mix(in srgb, var(--g-text) 10%, transparent);
        border-radius: 0;
        white-space: normal;
    }

    .js .g-nav__buttons {
        margin-left: 0;
    }
    .js .g-nav__buttons .g-btn {
        width: 100%;
    }

    /* Without JavaScript the links simply wrap under the logo. */
    html:not(.js) .g-nav__inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .g-nav__logo {
        height: 46px;
    }
}

/* ---------- Buttons ---------- */
.g-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.g-btns--center {
    justify-content: center;
}

.g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--g-radius);
    background-color: var(--g-accent);
    background-image: var(--g-accent-gradient);
    color: var(--g-button-text);
    font-family: var(--g-font-body);
    font-size: 1em;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        filter 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.g-btn:hover {
    filter: brightness(1.08) saturate(1.05);
    transform: translateY(-1px);
}
.g-btn:active {
    transform: none;
}

.g-btns--sm .g-btn {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 16px;
}

/* ---------- Cards (sections) ---------- */
.g-card {
    position: relative;
    background: var(--g-card);
}

.g-card__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--g-max);
    margin: 0 auto;
}

.g-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: var(--g-pad-y) var(--g-pad-x);
}

.g-card__content {
    min-width: 0;
}

.g-card__content > * {
    margin-top: 0;
    margin-bottom: 0;
}
.g-card__content > * + * {
    margin-top: 1.1em;
}
.g-card__content > .g-gallery + .g-items {
    margin-top: 1.6em;
}

/* Image left / right of the text */
.g-card--left .g-card__layout {
    grid-template-columns: minmax(0, 37.5fr) minmax(0, 62.5fr);
}
.g-card--right .g-card__layout {
    grid-template-columns: minmax(0, 62.5fr) minmax(0, 37.5fr);
}
.g-card--right .g-card__accent {
    order: 2;
}

.g-card--left .g-card__content,
.g-card--right .g-card__content {
    max-width: 600px;
}

.g-card__accent {
    position: relative;
    min-height: 300px;
    margin: 18px 0;
    overflow: hidden;
    border-radius: var(--g-radius);
}

.g-card__accent img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image behind the text (darkened) */
.g-card--behind {
    overflow: hidden;
    background: #000;
}

.g-card__bg {
    position: absolute;
    inset: 0;
}

.g-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g-card__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

/* Phones: the image goes above the text, shown almost uncropped (the pictures contain text). */
@media (max-width: 767px) {
    .g-card--left .g-card__layout,
    .g-card--right .g-card__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .g-card--left .g-card__accent,
    .g-card--right .g-card__accent {
        order: 0;
        min-height: 0;
        aspect-ratio: 4 / 5;
        max-height: 70vh;
        margin: 24px var(--g-pad-x) 0;
    }

    /* Hero picture: square, keeping its top part (the title written in the picture). */
    .g-card--right .g-card__accent--top {
        aspect-ratio: 1 / 1;
    }

    .g-card__accent--top img {
        object-position: top;
    }

    .g-card--left .g-card__body,
    .g-card--right .g-card__body {
        padding-top: 32px;
    }

    .g-card--left .g-card__content,
    .g-card--right .g-card__content {
        max-width: none;
    }
}

/* ---------- Typography ---------- */
.g-h {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: -0.25em 0 0;
    padding-block: 0.25em;
    font-family: var(--g-font-heading);
    font-weight: var(--g-heading-weight);
    font-size: clamp(1.875rem, 1.25rem + 2.4vw, 2.8125rem);
    line-height: 1.25;
    overflow-wrap: break-word;
    /* gradient text */
    background-image: var(--g-heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.g-card__content > .g-h + * {
    margin-top: 0.9em;
}
.g-card__content > .g-h + .g-items {
    margin-top: 1.1em;
}
.g-card__content > .g-h + .g-gallery {
    margin-top: 2.05em;
}
.g-card__content > .g-h + .g-items--stats {
    margin-top: 1.4em;
}

.g-prose {
    overflow-wrap: break-word;
}
.g-prose > * {
    margin: 0;
}
.g-prose > * + * {
    margin-top: 1.1em;
}
.g-prose p:empty {
    display: none;
}
.g-prose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--g-accent);
    text-underline-offset: 3px;
}
.g-prose a:hover {
    color: var(--g-accent);
}
.g-prose ul,
.g-prose ol {
    padding-left: 1.3em;
}
.g-prose li + li {
    margin-top: 0.35em;
}
.g-prose strong,
.g-prose b {
    font-weight: 700;
}

.g-item__title {
    margin: 0;
    font-family: var(--g-font-heading);
    font-weight: var(--g-heading-weight);
    font-size: 1.25em;
    line-height: 1.25;
    color: var(--g-text);
    overflow-wrap: break-word;
}

.g-item__title + .g-item__text {
    margin-top: 0.6em;
}

.g-item__text {
    margin: 0;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .g-item__title {
        font-size: 1.15em;
    }
}

/* ---------- Items: shared ---------- */
.g-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.g-items > li {
    min-width: 0;
}

.g-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    font-size: 36px;
    line-height: 1;
}

/* Icon + text list ("Meet Our Visionary Team") */
.g-items--icons_left {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px 32px;
}

.g-items--icons_left .g-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
}

.g-items--icons_left .g-item__icon i {
    background-image: var(--g-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--g-accent);
}

.g-items--icons_left .g-item__body {
    padding-top: 4px;
}

/* Small icons in columns ("Strategic Leadership Team") */
.g-items--bullets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 22px;
}

.g-items--bullets .g-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
}

.g-items--bullets .g-item__body {
    padding-top: 6px;
}

.g-items--bullets .g-item__icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
    border-radius: var(--g-radius);
    background: var(--g-shape);
    color: var(--g-text);
}

/* Text boxes ("Regulatory Compliance Adaptation") */
.g-items--boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.g-items--boxes .g-item {
    flex: 1 1 calc((100% - 18px) / 2);
    min-width: min(100%, 220px);
    padding: 18px;
    border-radius: var(--g-radius);
    background: var(--g-shape);
    box-shadow: inset 0 0 0 1px var(--g-shape-border);
}

/* Big numbers ("Transforming Claims Processing") */
.g-items--stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 44px 22px;
    text-align: center;
}

.g-items--stats .g-item {
    flex: 0 1 calc((100% - 22px) / 2);
    min-width: min(100%, 200px);
}

.g-stat__value {
    margin: 0 0 0.38em;
    font-family: var(--g-font-heading);
    font-weight: var(--g-heading-weight);
    font-size: 3.3em;
    line-height: 1;
    color: var(--g-text);
}

@media (max-width: 767px) {
    .g-items--stats {
        gap: 34px 22px;
    }

    .g-stat__value {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

@media (max-width: 1023px) {
    .g-items--bullets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .g-items--bullets {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .g-items--icons_left {
        gap: 26px;
    }
    .g-items--icons_left .g-item {
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 16px;
    }
    .g-items--icons_left .g-item__icon {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    .g-items--icons_left .g-item__body {
        padding-top: 2px;
    }
}

/* ---------- Items: vertical arrow steps ("How GoldenClaim AI Works") ---------- */
.g-step {
    position: relative;
}

.g-step__shape {
    position: relative;
    color: var(--g-text);
}

.g-step__shape::before,
.g-step__shape::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--g-shape-border);
    -webkit-clip-path: var(--clip);
    clip-path: var(--clip);
}

.g-step__shape::after {
    inset: 1px;
    background: var(--g-shape);
}

.g-step__icon {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    line-height: 1;
}

.g-items--steps_vertical {
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
}

.g-items--steps_vertical .g-step {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 22px;
    min-height: 108px;
}

.g-items--steps_vertical .g-step__shape {
    margin-bottom: -16px;
    --clip: polygon(0 0, 50% 16px, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px));
}

.g-items--steps_vertical .g-item__body {
    align-self: center;
    padding-block: 10px;
}

@media (max-width: 767px) {
    .g-items--steps_vertical .g-step {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 18px;
        min-height: 96px;
    }
    .g-step__icon {
        font-size: 19px;
    }
}

/* ---------- Items: pyramid ("Our Competitive Edge") ----------
 * Each level sets --t / --b (half-width of its top / bottom edge, in %) and --f (text indent factor). */
.g-items--pyramid {
    --pw: min(512px, 49%);
    display: grid;
    gap: 5px;
}

.g-pyr {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 104px;
    padding-left: calc(var(--pw) * var(--f) + 18px);
}

.g-pyr__shape {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--pw);
    color: var(--g-text);
}

.g-pyr__shape::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--g-shape);
    -webkit-clip-path: polygon(
        calc(50% - var(--t)) 0,
        calc(50% + var(--t)) 0,
        calc(50% + var(--b)) 100%,
        calc(50% - var(--b)) 100%
    );
    clip-path: polygon(
        calc(50% - var(--t)) 0,
        calc(50% + var(--t)) 0,
        calc(50% + var(--b)) 100%,
        calc(50% - var(--b)) 100%
    );
}

.g-pyr__icon {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 21px;
    line-height: 1;
}

.g-pyr.is-top .g-pyr__icon {
    top: 64%;
}

.g-pyr__text {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
    border-bottom: 1px solid var(--g-line);
}

.g-pyr:last-child .g-pyr__text {
    border-bottom: 0;
}

@media (max-width: 767px) {
    .g-items--pyramid {
        --pw: 38%;
    }
    .g-pyr {
        min-height: 92px;
        padding-left: calc(var(--pw) * var(--f) + 12px);
    }
    .g-pyr__icon {
        font-size: 17px;
    }
}

/* ---------- Items: timeline ("Implementation & Integration") ----------
 * --n on the list = number of steps, --c on each step = its column. */
@media (min-width: 768px) {
    .g-items--timeline {
        display: grid;
        grid-template-columns: repeat(var(--n), minmax(0, 1fr));
        grid-template-rows: auto 36px 40px 36px auto;
        padding-inline: calc(100% / (2 * (var(--n) + 1)));
        text-align: center;
    }

    .g-items--timeline::before {
        content: '';
        grid-row: 3;
        grid-column: 1 / -1;
        align-self: center;
        height: 1px;
        margin-inline: calc(-100% / (2 * var(--n)));
        background: var(--g-line);
    }

    .g-tl {
        display: grid;
        grid-column: var(--c);
        grid-row: 1 / -1;
        grid-template-rows: subgrid;
        justify-items: center;
    }

    .g-tl__dot {
        grid-row: 3;
    }
    .g-tl.is-above .g-tl__stem {
        grid-row: 2;
    }
    .g-tl.is-below .g-tl__stem {
        grid-row: 4;
    }

    .g-tl__stem {
        width: 1px;
        height: 100%;
        background: var(--g-line);
    }

    .g-tl__text {
        width: 180%;
    }
    .g-tl.is-above .g-tl__text {
        grid-row: 1;
        align-self: end;
        padding-bottom: 12px;
    }
    .g-tl.is-below .g-tl__text {
        grid-row: 5;
        align-self: start;
        padding-top: 12px;
    }
}

.g-tl__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--g-radius);
    background: var(--g-shape);
    box-shadow: inset 0 0 0 1px var(--g-shape-border);
    color: var(--g-text);
    font-size: 19px;
}

@media (max-width: 767px) {
    .g-items--timeline {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 30px;
    }

    .g-items--timeline::before {
        content: '';
        grid-column: 1;
        grid-row: 1 / span var(--n);
        justify-self: center;
        width: 1px;
        margin-block: 20px;
        background: var(--g-line);
    }

    .g-tl {
        display: grid;
        grid-column: 1 / -1;
        grid-row: var(--c);
        grid-template-columns: subgrid;
        align-items: start;
    }

    .g-tl__dot {
        grid-column: 1;
    }
    .g-tl__stem {
        display: none;
    }
    .g-tl__text {
        grid-column: 2;
        padding-top: 6px;
    }
}

/* ---------- Gallery ("Strategic Leadership Team" pictures) ---------- */
.g-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.g-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: var(--g-radius);
}

.g-gallery__item img {
    display: block;
    width: 100%;
    height: 216px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.g-gallery__item:hover img {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .g-gallery {
        gap: 8px;
    }
    .g-gallery__item img {
        height: auto;
        aspect-ratio: 5 / 3;
    }
}

/* Lightbox: a gallery picture opened in full size */
.g-lightbox {
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--g-radius);
    background: transparent;
    overflow: visible;
}

.g-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.g-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--g-radius);
}

.g-lightbox__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* ---------- Contact (embedded Google Form) ---------- */
/* Bigger tap area for the e-mail link (inline padding does not change the layout). */
.g-contact__details a {
    padding-block: 9px;
}

/* The original has an empty line between the email line and "Or,". */
.g-contact__or {
    margin-top: 3.8em;
}

.g-embed {
    overflow: hidden;
    border: 1px solid #66666b;
    border-radius: var(--g-radius);
    background: rgba(255, 255, 255, 0.08);
}

.g-embed iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.618 / 1;
    min-height: 360px;
    border: 0;
}

/* Phones: tall enough to show the whole form without scrolling inside it. */
@media (max-width: 767px) {
    .g-embed iframe {
        aspect-ratio: auto;
        height: 920px;
        min-height: 0;
    }
}

/* ---------- Footer ---------- */
.g-footer {
    background: var(--g-card);
    border-top: 1px solid color-mix(in srgb, var(--g-text) 10%, transparent);
    font-size: 15px;
}

.g-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: var(--g-max);
    margin: 0 auto;
    padding: 28px var(--g-pad-x);
}

.g-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.g-footer__brand img {
    width: auto;
    height: 38px;
    border-radius: 4px;
}
.g-footer__name {
    margin: 0;
    font-family: var(--g-font-heading);
    font-weight: 600;
}
.g-footer__name a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: inherit;
    text-decoration: none;
}
.g-footer__name a:hover {
    color: var(--g-accent);
}
.g-footer__text {
    margin: -6px 0 0;
    opacity: 0.8;
}

.g-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.g-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    text-decoration: none;
    opacity: 0.85;
}

.g-footer__links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.g-footer__copy {
    flex-basis: 100%;
    margin: 0;
    opacity: 0.65;
    font-size: 14px;
}

/* ---------- Reveal on scroll (assets/js/main.js adds .is-visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .g-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity 0.6s ease,
            transform 0.6s ease;
    }

    .js .g-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}
