/* ==========================================================================
   Green MFC landing page (/green-mfc)
   Only this page loads this file. Rules are scoped to .gmfc; the few that are
   not (the html tap highlight, the keyframes) only ever apply on this page.
   ========================================================================== */

.gmfc {
    --gm-ink: #1b252e;
    --gm-ink-2: #33404b;
    --gm-muted: #5b6670;
    --gm-copper: #cf7539;
    --gm-copper-ink: #a65423;
    --gm-copper-light: #f0a46f;
    --gm-green: #24493a;
    --gm-green-2: #2f6b50;
    --gm-green-3: #3f8a66;
    --gm-sage: #e8efe9;
    --gm-sage-2: #d3e2d7;
    --gm-cream: #f7f4ef;
    --gm-line: #e7e1d7;
    --gm-dark: #131d19;
    --gm-radius: 28px;
    --gm-shadow: 0 30px 60px -30px rgba(27, 37, 46, 0.35);
    --gm-ease: cubic-bezier(0.22, 0.8, 0.24, 1);

    color: var(--gm-ink);
    font-family: 'Epilogue', sans-serif;
}

/* The theme leaves a white 90px gap under the content; the last section here
   has its own background and spacing, so the gap would show as a white band. */
.footer--fixed .wrapper.gmfc {
    padding-bottom: 0;
}

/* No grey flash when tapping links on phones. This was the only effect
   jquery.pagepiling.css had here; this page no longer loads that file. */
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ---------- Resets against the theme's global element styles ---------- */

.gmfc .container {
    padding-left: 20px;
    padding-right: 20px;
}

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

.gmfc p {
    margin: 0 0 16px;
    line-height: 1.7;
}

.gmfc h1,
.gmfc h2,
.gmfc h3,
.gmfc h4 {
    font-family: 'Poppins', sans-serif;
    color: inherit;
}

.gmfc img {
    max-width: 100%;
}

/* ---------- Scroll reveal (only once JS has run) ---------- */

:where(.gm-js) :where([data-gm-reveal]) {
    opacity: 0;
    translate: 0 32px;
    transition: opacity 0.9s var(--gm-ease), translate 0.9s var(--gm-ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

:where(.gm-js) :where([data-gm-reveal].is-visible) {
    opacity: 1;
    translate: none;
}

/* ---------- Shared building blocks ---------- */

.gm-section {
    position: relative;
    padding: clamp(72px, 9vw, 130px) 0;
    scroll-margin-top: 70px;
}

.gmfc .gm-h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
@media only screen and (max-width: 1399px) {
    .gmfc .gm-h2 {
        font-size: 45px;
    }
}
.gmfc .gm-h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* The document's bold line under each section heading */
.gmfc .gm-sub {
    margin: 0 0 18px;
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--gm-green);
}

.gmfc .gm-sub--lg {
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.3;
}
@media only screen and (max-width: 1399px) {
    .gmfc .gm-sub--lg {
        font-size: 22px;
    }
}
.gmfc .gm-sub--light {
    color: var(--gm-copper-light);
}

.gm-head {
    /* max-width: 760px; */
    margin-bottom: clamp(40px, 5vw, 64px);
}

.gm-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gm-head p {
    color: var(--gm-muted);
    font-size: 17px;
}

.gmfc .gm-note {
    font-size: 14px;
    font-style: italic;
    color: var(--gm-muted);
}

.gm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Buttons */
.gmfc .gm-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 15px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--gm-ease), box-shadow 0.35s;
}

.gmfc .gm-btn i {
    font-size: 13px;
    transition: transform 0.35s var(--gm-ease);
}

.gmfc .gm-btn:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.gmfc .gm-btn:hover i.fa-arrow-down {
    transform: translateY(3px);
}

.gmfc .gm-btn:hover {
    transform: translateY(-2px);
}

.gmfc .gm-btn:focus-visible,
.gmfc .gm-layers__link:focus-visible,
.gmfc summary:focus-visible {
    outline: 3px solid var(--gm-copper);
    outline-offset: 3px;
}

.gmfc .gm-btn--green {
    background: var(--gm-green);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(36, 73, 58, 0.8);
}

.gmfc .gm-btn--green:hover {
    background: var(--gm-green-2);
    color: #fff;
}

.gmfc .gm-btn--dark {
    background: var(--gm-ink);
    color: #fff;
}

.gmfc .gm-btn--dark:hover {
    background: var(--gm-green);
    color: #fff;
}

.gmfc .gm-btn--copper {
    background: var(--gm-copper);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(207, 117, 57, 0.9);
}

.gmfc .gm-btn--copper:hover {
    background: #b9632b;
    color: #fff;
}

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

.gmfc .gm-btn--outline:hover {
    background: var(--gm-ink);
    color: #fff;
}

.gmfc .gm-btn--light {
    background: #fff;
    color: var(--gm-ink);
}

.gmfc .gm-btn--light:hover {
    background: var(--gm-copper);
    color: #fff;
}

.gmfc .gm-btn--block {
    width: 100%;
}

/* Metallic decor drawn in CSS (used by the hero fan and the request sheets) */
.gm-swatch--metallic {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(0, 0, 0, 0.05) 1px 3px),
        linear-gradient(125deg, #6f747a 0%, #d9dde1 22%, #8a8f95 40%, #f2f4f6 55%, #8d9298 72%, #c7cbcf 88%, #6c7177 100%);
}

/* ==========================================================================
   Meet Green MFC (hero)
   ========================================================================== */

.gm-hero {
    position: relative;
    padding: 130px 0 70px;
    background: var(--gm-cream);
    overflow: hidden;
}

.gm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(36, 73, 58, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 73, 58, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}

.gm-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(63, 138, 102, 0.22), transparent 38%),
        radial-gradient(circle at 5% 95%, rgba(207, 117, 57, 0.16), transparent 35%);
}

.gm-hero .container {
    position: relative;
}

.gm-hero__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.gmfc .gm-hero__title {
    margin: 0 0 18px;
    font-size: clamp(46px, 7.6vw, 96px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--gm-ink);
}

.gm-hero__brand {
    position: relative;
    display: inline-block;
    color: var(--gm-green);
}

.gm-hero__brand::after {
    content: '';
    position: absolute;
    left: 2%;
    right: 4%;
    bottom: 0.02em;
    height: 0.14em;
    border-radius: 99px;
    background: var(--gm-copper);
    opacity: 0.85;
    transform-origin: left;
    transition: transform 1.1s var(--gm-ease) 0.4s;
}

.gm-js .gm-hero__title:not(.is-visible) .gm-hero__brand::after {
    transform: scaleX(0);
}

.gmfc .gm-hero__lead {
    max-width: 30ch;
    margin: 0 0 18px;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--gm-ink-2);
}

.gmfc .gm-hero__text p {
    max-width: 58ch;
    margin-bottom: 10px;
    color: var(--gm-muted);
}

.gm-hero__text strong {
    color: var(--gm-green);
}

.gm-hero .gm-actions {
    margin-top: 28px;
}

/* Swatch fan, like a laminate sample book */
.gm-hero__visual {
    position: relative;
    height: 400px;
}

.gm-fan {
    --w: 190px;
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: var(--w);
    height: calc(var(--w) * 1.5);
    margin-left: calc(var(--w) / -2);
}

.gm-fan__card {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 50px -22px rgba(27, 37, 46, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transform-origin: 50% 88%;
    transform: rotate(calc((var(--i) - 2) * 14deg));
    transition: transform 1s var(--gm-ease), opacity 0.8s;
    transition-delay: calc(var(--i) * 70ms);
}

.gm-fan__card::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 88%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: var(--gm-cream);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* The two front sheets are plain solid colours */
.gm-fan__card--sage {
    background: #8fae98;
}

.gm-fan__card--green {
    background: #c27a52;
}

.gm-fan__pin {
    position: absolute;
    left: 50%;
    top: 88%;
    z-index: 6;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #c9ccd0 35%, #7d8187 75%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 0 0 5px rgba(255, 255, 255, 0.15);
}

.gm-js .gm-fan:not(.is-open) .gm-fan__card {
    opacity: 0;
    transform: rotate(0deg) translateY(40px);
}

.gm-hero__visual:hover .gm-fan__card {
    transform: rotate(calc((var(--i) - 2) * 19deg));
    transition-delay: 0s;
}

.gm-hero__scroll {
    display: none;
}

/* ==========================================================================
   What Is Green MFC?
   ========================================================================== */

.gm-what {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #1d3a2e;
}
.gm-what::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 92% 0%, rgba(63, 138, 102, 0.4), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(207, 117, 57, 0.12), transparent 38%);
}
/* Dark green panel that sets this section apart from the light ones around it */
.gm-what__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
}
.gm-what__grid {
    display: grid;
    gap: 24px;
}

.gmfc .gm-what .gm-h2 {
    color: #fff;
}

.gm-what__body p {
    color: rgba(255, 255, 255, 0.72);
}

.gmfc .gm-what__first {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 1.8vw, 21px);
    font-weight: 500;
    line-height: 1.55;
    color: #fff;
}

/* Choose -> Explore -> Discover, joined by a line that draws in */
.gmfc .gm-journey {
    --jt: clamp(32px, 3.4vw, 48px);
    position: relative;
    display: grid;
    gap: 28px;
    margin-top: clamp(36px, 3.6vw, 56px);
    padding-top: var(--jt);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gm-journey::before {
    content: '';
    position: absolute;
    left: 31px;
    top: calc(var(--jt) + 32px);
    bottom: 32px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), var(--gm-copper));
    transform-origin: top;
    transition: transform 1.2s var(--gm-ease) 0.3s;
}

.gm-js .gm-journey:not(.is-visible)::before {
    transform: scaleY(0);
}

.gm-journey__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: opacity 0.7s var(--gm-ease), translate 0.7s var(--gm-ease);
}

.gm-journey__step:nth-child(2) {
    transition-delay: 0.25s;
}

.gm-journey__step:nth-child(3) {
    transition-delay: 0.5s;
}

.gm-js .gm-journey:not(.is-visible) .gm-journey__step {
    opacity: 0;
    translate: 0 16px;
}

.gm-journey__icon {
    display: grid;
    flex: 0 0 64px;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: var(--gm-green-2);
    color: #fff;
    font-size: 22px;
    transition: transform 0.5s var(--gm-ease), border-color 0.4s;
}

.gm-journey__step:hover .gm-journey__icon {
    transform: translateY(-4px);
    border-color: #fff;
}

.gm-journey__step--last .gm-journey__icon {
    border-color: var(--gm-copper);
    background: var(--gm-copper);
    box-shadow: 0 0 0 8px rgba(207, 117, 57, 0.2);
}

.gm-journey__step strong {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 1.7vw, 21px);
    font-weight: 600;
    line-height: 1.3;
}

.gm-journey__step--last strong {
    color: var(--gm-copper-light);
}

/* ==========================================================================
   Explore Green MFC Board Options
   ========================================================================== */

.gm-boards {
    background: var(--gm-cream);
}

.gm-boards__grid {
    display: grid;
    gap: 24px;
}

.gmfc .gm-board {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius);
    background: #fff;
    box-shadow: 0 20px 50px -35px rgba(27, 37, 46, 0.4);
    transition: opacity 0.9s var(--gm-ease), translate 0.9s var(--gm-ease), transform 0.5s var(--gm-ease), box-shadow 0.5s;
}

.gmfc .gm-boards .gm-board:hover {
    transform: translateY(-6px);
    box-shadow: var(--gm-shadow);
}

.gm-board__visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 280px;
    overflow: hidden;
    perspective: 1400px;
    /* background: radial-gradient(circle at 50% 65%, #fff 0, transparent 60%), linear-gradient(160deg, #eef3ee, #dfe9e1); */
    background: radial-gradient(circle at 50% 65%, #fff 0, transparent 60%), linear-gradient(160deg, #f6efe6, #ecdfcf);
}

/* .gm-board--mdf .gm-board__visual {
    background: radial-gradient(circle at 50% 65%, #fff 0, transparent 60%), linear-gradient(160deg, #f6efe6, #ecdfcf);
} */

/* 3D exploded board: decor on top, core in the middle, base below */
.gm-stack {
    --s: 170px;
    position: relative;
    width: var(--s);
    height: var(--s);
    margin-top: 40px;
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(-40deg);
}

.gm-stack__layer {
    --t: 6px;
    --z: 0px;
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: translateZ(var(--z));
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--gm-ease);
}

.gm-stack__layer::before,
.gm-stack__layer::after {
    content: '';
    position: absolute;
    background: inherit;
}

/* front edge */
.gm-stack__layer::before {
    left: 0;
    top: 100%;
    width: 100%;
    height: var(--t);
    transform-origin: top;
    transform: rotateX(-90deg);
    filter: brightness(0.7);
}

/* left edge */
.gm-stack__layer::after {
    right: 100%;
    top: 0;
    width: var(--t);
    height: 100%;
    transform-origin: right;
    transform: rotateY(-90deg);
    filter: brightness(0.85);
}

.gm-stack__layer--base {
    --t: 6px;
    --z: 6px;
    background: #d8d0c3;
    box-shadow: 26px 26px 40px rgba(27, 37, 46, 0.3);
}

.gm-stack__layer--core {
    --t: 30px;
    --z: 36px;
}

.gm-board--pb .gm-stack__layer--core {
    background:
        radial-gradient(circle at 30% 40%, #8e6439 1px, transparent 1.6px) 0 0 / 7px 7px,
        radial-gradient(circle at 70% 70%, #e6cb9c 1px, transparent 1.8px) 0 0 / 9px 9px,
        radial-gradient(circle at 50% 20%, #a8794a 1.2px, transparent 2px) 0 0 / 11px 11px,
        #c99e68;
}

.gm-board--mdf .gm-stack__layer--core {
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 3px),
        linear-gradient(135deg, #c39463, #b4834f);
}

.gm-stack__layer--decor {
    --t: 4px;
    --z: 40px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gm-stack__layer--decor::before,
.gm-stack__layer--decor::after {
    background: #4f3423;
    filter: none;
}

.gm-board--mdf .gm-stack__layer--decor::before,
.gm-board--mdf .gm-stack__layer--decor::after {
    background: #bdb5a8;
}

/* Layers separate once the card is on screen, and more on hover */
html:not(.gm-js) .gm-stack__layer--base,
.gm-board.is-visible .gm-stack__layer--base {
    transform: translateZ(-14px);
}

html:not(.gm-js) .gm-stack__layer--decor,
.gm-board.is-visible .gm-stack__layer--decor {
    transform: translateZ(80px);
}

.gm-board:hover .gm-stack__layer--base {
    transform: translateZ(-34px);
}

.gm-board:hover .gm-stack__layer--decor {
    transform: translateZ(118px);
}

.gm-board__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px 30px;
}

.gm-board__body p {
    color: var(--gm-muted);
}

.gm-board__body .gm-btn {
    margin-top: auto;
}

/* ==========================================================================
   Your Style. Your Design.
   ========================================================================== */

.gm-designs {
    position: relative;
    background: #1d3a2e;
    color: #fff;
}
.gm-designs::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 92% 0%, rgba(63, 138, 102, 0.4), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(207, 117, 57, 0.12), transparent 38%);
}
.gm-designs__head {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.gm-designs__intro p {
    color: rgba(255, 255, 255, 0.72);
}

/* One row per category: number, name, text and a decor strip.
   Phones stack the strip on top; wider screens line everything up in one row. */
.gmfc .gm-rows {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gm-row {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "strip strip"
        "num title"
        "body body";
    align-items: center;
    gap: 14px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Soft highlight that fades in behind the row on hover */
/* .gm-row::before {
    content: '';
    position: absolute;
    inset: 0 -20px;
    z-index: -1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.5s var(--gm-ease);
}

.gm-row:hover::before {
    opacity: 1;
} */

.gm-row__num {
    grid-area: num;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gm-copper-light);
}

.gmfc .gm-row__title {
    grid-area: title;
    margin: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    transition: translate 0.5s var(--gm-ease);
}

.gm-row:hover .gm-row__title {
    translate: 8px 0;
}

.gm-row__body {
    grid-area: body;
}

.gm-row__body p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.gmfc .gm-row__body .gm-row__tag {
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.gm-row__strip {
    grid-area: strip;
    width: 100%;
    height: 96px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: width 0.6s var(--gm-ease);
}

.gm-row--solid .gm-row__strip {
    background-color: #e4d9c6;
}

.gm-designs__foot {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* ==========================================================================
   Find Your Perfect Finish
   ========================================================================== */

.gm-finishes {
    background: var(--gm-cream);
}

/* Finish wheel: a disc split into the four finishes, each quarter showing its
   own finish photo. Phones and tablets show the wheel above the descriptions;
   from 992px the descriptions sit either side of the wheel, each beside its
   own quarter. */
.gm-wheel {
    --gm-wheel: min(340px, 82vw);
    display: grid;
    gap: 28px;
}

.gm-wheel__disc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    justify-self: center;
    width: var(--gm-wheel);
    height: var(--gm-wheel);
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px var(--gm-line), 0 40px 70px -40px rgba(27, 37, 46, 0.55);
    transition: opacity 0.9s var(--gm-ease), translate 0.9s var(--gm-ease), rotate 1.4s var(--gm-ease);
}

/* The wheel turns into place as it first appears */
.gm-js .gm-wheel__disc:not(.is-visible) {
    rotate: -45deg;
}

.gm-wheel__q {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--gm-ease), opacity 0.5s var(--gm-ease);
}

.gm-wheel__q--matte {
    border-top-left-radius: 100%;
}

.gm-wheel__q--glossy {
    border-top-right-radius: 100%;
}

.gm-wheel__q--suede {
    border-bottom-left-radius: 100%;
}

.gm-wheel__q--texture {
    border-bottom-right-radius: 100%;
}

/* Each finish's own photo (the URLs are set on .gm-wheel in the page) */
.gm-wheel__q,
.gm-wheel__mini {
    background-color: #d9cfc4;
    background-size: cover;
    background-position: center;
}

.gm-finish--matte {
    background-image: var(--gm-img-matte);
}

.gm-finish--glossy {
    background-image: var(--gm-img-glossy);
}

.gm-finish--suede {
    background-image: var(--gm-img-suede);
}

.gm-finish--texture {
    background-image: var(--gm-img-texture);
}

.gm-wheel__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Small quarter beside each name on phones and tablets, matching its place on the wheel */
.gm-wheel__mini {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gm-line);
}

.gm-wheel__item--matte .gm-wheel__mini {
    border-top-left-radius: 100%;
}

.gm-wheel__item--glossy .gm-wheel__mini {
    border-top-right-radius: 100%;
}

.gm-wheel__item--suede .gm-wheel__mini {
    border-bottom-left-radius: 100%;
}

.gm-wheel__item--texture .gm-wheel__mini {
    border-bottom-right-radius: 100%;
}

.gmfc .gm-wheel__item h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--gm-ink);
    transition: color 0.4s;
}

.gm-wheel__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gm-muted);
    text-wrap: balance;
}

/* Pointing at a finish, by its text or its quarter, lifts that quarter out of
   the wheel, dims the other three and highlights the finish name */
.gm-wheel:has(.gm-wheel__item:hover, .gm-wheel__q:hover) .gm-wheel__q {
    opacity: 0.5;
}

.gm-wheel:has(.gm-wheel__item--matte:hover, .gm-wheel__q--matte:hover) .gm-wheel__q--matte {
    opacity: 1;
    transform: translate(-8px, -8px);
}

.gm-wheel:has(.gm-wheel__item--glossy:hover, .gm-wheel__q--glossy:hover) .gm-wheel__q--glossy {
    opacity: 1;
    transform: translate(8px, -8px);
}

.gm-wheel:has(.gm-wheel__item--suede:hover, .gm-wheel__q--suede:hover) .gm-wheel__q--suede {
    opacity: 1;
    transform: translate(-8px, 8px);
}

.gm-wheel:has(.gm-wheel__item--texture:hover, .gm-wheel__q--texture:hover) .gm-wheel__q--texture {
    opacity: 1;
    transform: translate(8px, 8px);
}

.gmfc .gm-wheel__item:hover h4,
.gmfc .gm-wheel:has(.gm-wheel__q--matte:hover) .gm-wheel__item--matte h4,
.gmfc .gm-wheel:has(.gm-wheel__q--glossy:hover) .gm-wheel__item--glossy h4,
.gmfc .gm-wheel:has(.gm-wheel__q--suede:hover) .gm-wheel__item--suede h4,
.gmfc .gm-wheel:has(.gm-wheel__q--texture:hover) .gm-wheel__item--texture h4 {
    color: var(--gm-green-2);
}

.gm-finishes__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: clamp(32px, 4vw, 48px);
    text-align: center;
}

.gmfc .gm-finishes__foot .gm-note {
    margin: 0;
    border: 1px solid #e1ddd6;
    padding: 5px 15px;
    border-radius: 50px;
}

/* ==========================================================================
   From Furniture Ideas to Beautiful Spaces
   ========================================================================== */

.gm-apps {
    background: var(--gm-sage);
}

/* Furniture slider: staggered photo cards, three at a time on desktop */
.gm-hslider__head {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.gm-hslider__intro p {
    color: var(--gm-muted);
}

/* Arrows sit centred under the cards */
.gm-hslider__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.gmfc .gm-hslider__arrow {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1.5px solid var(--gm-ink);
    border-radius: 50%;
    background: transparent;
    color: var(--gm-ink);
    cursor: pointer;
    transition: background-color 0.35s, color 0.35s, opacity 0.35s;
}

.gmfc .gm-hslider__arrow:hover {
    background: var(--gm-ink);
    color: #fff;
}

/* Room for the card shadows inside the slider's clipped area */
.gm-hslider__track {
    padding: 6px 0 28px;
}

.gm-hslider__track .swiper-wrapper {
    align-items: flex-start;
}

.gm-hcard {
    height: auto;
}

.gm-hcard__media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 26px 44px -30px rgba(27, 37, 46, 0.5);
}

.gm-hcard__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--gm-ease);
}

.gm-hcard:hover .gm-hcard__media img {
    transform: scale(1.06);
}

.gmfc .gm-hcard h4 {
    margin: 20px 0 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--gm-ink);
}

.gm-hcard p {
    max-width: 34ch;
    margin: 0;
    font-size: 15px;
    color: var(--gm-muted);
}

.gm-apps__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 36px;
}

.gmfc .gm-apps__foot .gm-note {
    max-width: 60ch;
    margin: 0;
}

.gm-apps__foot--center {
    flex-direction: column;
    justify-content: center;
    margin-top: 48px;
    text-align: center;
}

/* Slider: note and button centred below the arrows, under a thin divider */
.gm-hslider__foot {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(27, 37, 46, 0.1);
}

/* ==========================================================================
   Green MFC for Every Furniture Decision-Maker
   ========================================================================== */

/* Four roles in a two-by-two grid divided by cross lines, with a leaf emblem
   where the lines meet (a simple list on phones) */
.gm-quad {
    background: var(--gm-cream);
}

.gm-quad__grid {
    position: relative;
    display: grid;
    /* max-width: 1060px; */
    margin: 0 auto;
}

.gm-quad__item {
    padding: 28px 0;
    border-bottom: 1px solid #ddd6ca;
}

.gm-quad__item--br {
    border-bottom: 0;
}

.gm-quad__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--gm-green);
    color: #fff;
    font-size: 22px;
    transition: background-color 0.4s, transform 0.5s var(--gm-ease);
}

.gm-quad__item:hover .gm-quad__icon {
    background: var(--gm-copper);
    transform: scale(1.08);
}

.gmfc .gm-quad__item h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gm-ink);
}

.gm-quad__item p {
    margin: 0;
    font-size: 16px;
    color: var(--gm-muted);
}

.gm-quad__emblem {
    display: none;
}

/* ==========================================================================
   Looking for High-Gloss Decorative Boards?
   ========================================================================== */

/* The board drawn as separated layers. Phones and tablets show the drawing
   with the layer list beneath it; from 1200px the labels sit beside the
   drawing, joined to their layers by lines. */
.gm-layers {
    background: var(--gm-sage);
}

.gm-layers__head {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.gmfc .gm-layers .gm-sub {
    color: var(--gm-copper-ink);
}

.gm-layers__head p {
    color: var(--gm-muted);
}

.gm-layers__links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.gmfc .gm-layers__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 20px;
    border: 1px solid #d3d7da;
    border-radius: 14px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gm-ink);
    text-decoration: none;
    transition: border-color 0.35s, transform 0.35s var(--gm-ease);
}

.gmfc .gm-layers__link i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gm-copper);
    color: #fff;
    font-size: 13px;
}

.gmfc .gm-layers__link:hover {
    border-color: var(--gm-copper);
    transform: translateX(4px);
    color: var(--gm-ink);
}

.gm-layers__diagram {
    position: relative;
}

.gm-layers__svg {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

/* The layers start stacked together and separate once the drawing is in view */
.gm-layer {
    transition: transform 1.2s var(--gm-ease);
}

.gm-layer--decor {
    transition-delay: 0.45s;
}

.gm-layer--pu {
    transition-delay: 0.35s;
}

.gm-layer--base {
    transition-delay: 0.25s;
}

.gm-layer--top {
    transition-delay: 0.15s;
}

.gm-js .gm-layers__diagram:not(.is-visible) .gm-layer--top {
    transform: translateY(189px);
}

.gm-js .gm-layers__diagram:not(.is-visible) .gm-layer--base {
    transform: translateY(139px);
}

.gm-js .gm-layers__diagram:not(.is-visible) .gm-layer--pu {
    transform: translateY(94px);
}

.gm-js .gm-layers__diagram:not(.is-visible) .gm-layer--decor {
    transform: translateY(49px);
}

.gm-layers__lines {
    display: none;
}

.gmfc .gm-layers__callouts {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.gm-layers__callouts li {
    padding-left: 14px;
    border-left: 2px solid var(--gm-copper);
    transition: opacity 0.6s var(--gm-ease), translate 0.6s var(--gm-ease);
    transition-delay: calc(1s + var(--i, 0) * 120ms);
}

.gm-js .gm-layers__diagram:not(.is-visible) .gm-layers__callouts li {
    opacity: 0;
    translate: 12px 0;
}

.gm-layers__callouts strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a5057;
}

.gm-layers__callouts span {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--gm-muted);
}

.gm-layers__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: clamp(28px, 3vw, 40px);
    padding-top: 28px;
    border-top: 1px solid #d3d7da;
}

.gm-layers__foot p {
    max-width: 60ch;
    margin: 0;
    color: var(--gm-muted);
}

/* ==========================================================================
   Your Next Furniture Project Starts with the Right Choice
   ========================================================================== */

.gm-cta {
    background: var(--gm-cream);
}

.gm-cta__grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

/* .gmfc .gm-cta .gm-h2 {
    max-width: 18ch;
} */

.gm-cta__copy p {
    /* max-width: 52ch; */
    margin-bottom: 30px;
    font-size: 17px;
    color: var(--gm-muted);
}

/* The two Lamikon catalogues as 3D books with their real front covers: front
   and back covers, a spine, and the page edges on the right and top.
   --t is the thickness; --spine and --back colour each book's edges. */
.gm-cta__visual {
    position: relative;
    display: grid;
    place-items: center;
    padding: 40px 0 64px;
    perspective: 1600px;
}

.gm-book {
    --bw: clamp(220px, 24vw, 340px);
    --t: 26px;
    --spine: #d9d4cb;
    --back: #ece8e1;
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    width: var(--bw);
    height: calc(var(--bw) * 1.425);
    transform-style: preserve-3d;
    transition: transform 0.8s var(--gm-ease);
}

/* UV catalogue, set back and to the left */
.gm-book--behind {
    --spine: #2c2925;
    --back: #3a3631;
    transform: translateX(-30%) translateY(-6%) rotateX(10deg) rotateY(-30deg) rotateZ(-7deg);
}

/* Prelam catalogue in front */
.gm-book--front {
    transform: translateX(16%) translateY(5%) rotateX(10deg) rotateY(-30deg) rotateZ(-2deg);
}

.gm-book > span {
    position: absolute;
}

.gm-book__back {
    inset: 0;
    border-radius: 3px 8px 8px 3px;
    background: var(--back);
    transform: translateZ(calc(var(--t) / -2));
}

.gm-book__spine {
    top: 0;
    bottom: 0;
    left: calc(var(--t) / -2);
    width: var(--t);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 50%, rgba(0, 0, 0, 0.18)), var(--spine);
    transform: rotateY(-90deg);
}

/* Page edges, set slightly in from the covers */
.gm-book__pages {
    top: 3px;
    bottom: 3px;
    right: calc((var(--t) - 4px) / -2 + 3px);
    width: calc(var(--t) - 4px);
    background: repeating-linear-gradient(90deg, #f7f2e8 0 2px, #ddd5c6 2px 3px);
    transform: rotateY(90deg);
}

.gm-book__top {
    top: calc((var(--t) - 4px) / -2 + 3px);
    left: 4px;
    right: 3px;
    height: calc(var(--t) - 4px);
    background: repeating-linear-gradient(180deg, #f7f2e8 0 2px, #ddd5c6 2px 3px);
    transform: rotateX(90deg);
}

/* First page, seen when the cover lifts on hover: the catalogue's first
   sheet page (plain paper if a book has none set) */
.gm-book__page {
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 0;
    border-radius: 0 6px 6px 0;
    background: var(--gm-book-page, none) center / cover, #fbf8f2;
    transform: translateZ(calc(var(--t) / 2 - 2px));
}

.gm-book__cover {
    inset: 0;
    overflow: hidden;
    border-radius: 3px 8px 8px 3px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 40%), var(--gm-book-cover) center / cover;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    transform-origin: left center;
    transform: translateZ(calc(var(--t) / 2));
    transition: transform 0.9s var(--gm-ease);
}

/* Shading along the spine side of the cover */
.gm-book__cover::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 14px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.06) 70%, transparent);
}

.gm-book__shadow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 80%;
    height: 40px;
    border-radius: 50%;
    background: rgba(27, 37, 46, 0.35);
    filter: blur(20px);
    transform: translateX(-50%);
}

/* On hover the books spread a little, the front one turns towards the
   viewer and its cover lifts open */
.gm-cta__visual:hover .gm-book--behind {
    transform: translateX(-36%) translateY(-8%) rotateX(10deg) rotateY(-26deg) rotateZ(-9deg);
}

.gm-cta__visual:hover .gm-book--front {
    transform: translateX(18%) translateY(3%) rotateX(8deg) rotateY(-20deg) rotateZ(-1deg);
}

.gm-cta__visual:hover .gm-book--front .gm-book__cover {
    transform: translateZ(calc(var(--t) / 2)) rotateY(-34deg);
}

/* ==========================================================================
   Frequently Asked Questions
   ========================================================================== */

.gm-faq {
    background: #fff;
}

/* Heading and a call-to-action card on the left, the questions as a numbered
   timeline on the right. Phones show heading, questions, then the card. */
.gm-faq__grid {
    display: grid;
    gap: 36px;
}

.gmfc .gm-faq .gm-faq__title {
    margin: 0;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.08;
}

.gm-faq__card {
    padding: clamp(24px, 3vw, 32px);
    border-radius: 22px;
    background: #ece5da;
}

.gm-faq__card-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--gm-green);
    color: var(--gm-copper-light);
    font-size: 20px;
}

.gmfc .gm-faq__card-title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.gmfc .gm-faq__card p {
    font-size: 15px;
    margin-bottom: 22px;
    color: var(--gm-muted);
}

/* The timeline: a line down the left with a numbered dot for each question */
.gm-faq__list {
    position: relative;
}

.gm-faq__list::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 21px;
    width: 2px;
    background: #ddd6ca;
}

.gm-faq__item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 66px;
}

.gm-faq__item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 4px 0;
    list-style: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

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

/* The ring around each dot hides the line behind it */
.gm-faq__num {
    position: absolute;
    top: 2px;
    left: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gm-green);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px #fff;
    font-size: 15px;
    color: var(--gm-green);
    transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}

.gm-faq__item summary:hover .gm-faq__num {
    border-color: var(--gm-copper);
    color: var(--gm-copper-ink);
}

.gmfc .gm-faq__item[open]:not(.is-closing) .gm-faq__num {
    border-color: var(--gm-copper);
    background: var(--gm-copper);
    color: #fff;
}

.gm-faq__q {
    flex: 1;
}

.gm-faq__icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6dfd3;
    transition: background-color 0.35s, transform 0.45s var(--gm-ease);
}

.gm-faq__icon::before,
.gm-faq__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 2px;
    background: var(--gm-green);
    transition: transform 0.45s var(--gm-ease), background-color 0.35s;
}

.gm-faq__icon::after {
    transform: rotate(90deg);
}

.gm-faq__item[open]:not(.is-closing) .gm-faq__icon {
    background: var(--gm-green);
    transform: rotate(180deg);
}

.gm-faq__item[open]:not(.is-closing) .gm-faq__icon::before,
.gm-faq__item[open]:not(.is-closing) .gm-faq__icon::after {
    background: #fff;
}

.gm-faq__item[open]:not(.is-closing) .gm-faq__icon::after {
    transform: rotate(0deg);
}

/* The answer opens in a cream box under its question (green-mfc.js slides it) */
.gm-faq__a {
    margin: 6px 0 8px;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--gm-cream);
}

.gm-faq__a p {
    margin: 0;
    color: var(--gm-muted);
}

/* ==========================================================================
   Request Green MFC Catalogue
   ========================================================================== */

.gm-request {
    background: #f5ebe2;
}

.gm-request__grid {
    display: grid;
    gap: 40px;
}

.gm-request__intro p {
    color: #6b5d52;
}

/* Four decor sheets (solid, metallic, wood, marble) fanned from one corner
   like a sample deck; they open a little wider on hover */
.gm-request__sheets {
    --sw: clamp(116px, 12vw, 200px);
    position: relative;
    width: calc(var(--sw) * 2);
    height: calc(var(--sw) * 1.95);
    margin: 40px auto 0;
}

.gm-request__sheet {
    position: absolute;
    bottom: calc(var(--sw) * 0.22);
    left: calc(50% - var(--sw) / 2);
    width: var(--sw);
    height: calc(var(--sw) * 1.55);
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.12), 0 24px 40px -22px rgba(27, 37, 46, 0.6);
    transform: rotate(var(--r));
    transform-origin: 50% 100%;
    transition: transform 0.6s var(--gm-ease);
}

.gm-request__sheet--solid {
    background: var(--gm-green-2);
}

.gm-request__sheet:nth-child(1) { --r: -21deg; }
.gm-request__sheet:nth-child(2) { --r: -7deg; }
.gm-request__sheet:nth-child(3) { --r: 7deg; }
.gm-request__sheet:nth-child(4) { --r: 21deg; }

.gm-request__sheets:hover .gm-request__sheet:nth-child(1) { --r: -28deg; }
.gm-request__sheets:hover .gm-request__sheet:nth-child(2) { --r: -9deg; }
.gm-request__sheets:hover .gm-request__sheet:nth-child(3) { --r: 9deg; }
.gm-request__sheets:hover .gm-request__sheet:nth-child(4) { --r: 28deg; }

.gm-request__card {
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--gm-radius);
    background: #fff;
    box-shadow: var(--gm-shadow);
}

/* Slightly smaller choice boxes than the default form */
.gm-request .gm-choices__list {
    gap: 8px;
}

.gmfc .gm-request .gm-field .gm-choice {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.35;
}

.gm-request .gm-choice__box {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 10px;
}

.gm-form__row {
    display: grid;
    gap: 0 18px;
}

.gm-field {
    margin-bottom: 20px;
}

.gmfc .gm-field label,
.gmfc .gm-field legend {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--gm-ink);
}

.gm-field label > span[aria-hidden],
.gm-field legend > span[aria-hidden] {
    color: var(--gm-copper);
}

.gmfc .gm-input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1.5px solid #ddd6ca;
    border-radius: 14px;
    background: #fbfaf7;
    font-family: 'Epilogue', sans-serif;
    font-size: 16px;
    color: var(--gm-ink);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.gmfc textarea.gm-input {
    height: 130px !important;
    padding: 14px 18px;
    border-radius: 14px;
    resize: vertical;
}

.gmfc .gm-input:hover {
    border-color: #c9c0b1;
}

.gmfc .gm-input:focus {
    border-color: var(--gm-green-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 107, 80, 0.15);
    outline: none;
}

.gmfc fieldset.gm-field {
    min-width: 0;
    padding: 0;
    border: 0;
}

.gm-choices__list {
    display: grid;
    gap: 10px;
}

.gmfc .gm-field .gm-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #e2dcd1;
    border-radius: 14px;
    background: #fbfaf7;
    font-family: 'Epilogue', sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.gmfc .gm-field .gm-choice:hover {
    border-color: #c9c0b1;
}

.gm-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.gm-choice__box {
    display: grid;
    flex: 0 0 22px;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #b9b0a1;
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    color: #fff;
    transition: background-color 0.25s, border-color 0.25s;
}

.gm-choice__box i {
    transform: scale(0);
    transition: transform 0.25s var(--gm-ease);
}

.gm-choice input:checked + .gm-choice__box {
    border-color: var(--gm-green);
    background: var(--gm-green);
}

.gm-choice input:checked + .gm-choice__box i {
    transform: scale(1);
}

.gm-choice input:focus-visible + .gm-choice__box {
    outline: 3px solid var(--gm-copper);
    outline-offset: 2px;
}

.gmfc .gm-field .gm-choice:has(input:checked) {
    border-color: var(--gm-green-2);
    background: var(--gm-sage);
}

.gm-field__error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #b42318;
}

.gm-field__error:empty {
    display: none;
}

.gmfc .gm-field.has-error .gm-input,
.gmfc .gm-field.has-error .gm-choice {
    border-color: #d9534f;
}

.gm-form__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.gm-form__alert[hidden] {
    display: none;
}

.gm-form__alert i {
    margin-top: 3px;
}

.gm-form__alert--error {
    background: #fdecea;
    color: #8a1f17;
}

.gm-form__submit {
    margin-top: 6px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 575.98px) {
    .gmfc .gm-actions .gm-btn,
    .gmfc .gm-board__body .gm-btn,
    .gmfc .gm-designs__foot .gm-btn,
    .gmfc .gm-finishes__foot .gm-btn,
    .gmfc .gm-apps__foot .gm-btn,
    .gmfc .gm-layers__foot .gm-btn {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 576px) {
    .gm-fan {
        --w: 220px;
    }

    /* Layered board: layer list in two columns under the drawing */
    .gmfc .gm-layers__callouts {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 28px;
    }

    .gm-hero__visual {
        height: 460px;
    }

    /* Finish wheel: descriptions two by two under the wheel */
    .gm-wheel {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .gm-wheel__disc {
        grid-column: 1 / -1;
    }

    /* Furniture slider: every second card sits lower, so the row is staggered
       (the script marks them, so the pattern holds all the way round the loop) */
    .gm-hcard--low {
        padding-top: 48px;
    }

    .gm-form__row,
    .gm-choices__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .gm-stack {
        --s: 190px;
    }

    .gm-board__visual {
        height: 320px;
    }
}

@media (min-width: 768px) {
    /* Decision-makers two by two. The left items' right edges and the top items'
       bottom edges form the cross; the emblem sits where they meet. */
    .gm-quad__grid {
        grid-template-columns: 1fr 1fr;
    }

    .gm-quad__item {
        padding: 44px 0 70px;
    }

    .gm-quad__item--tl,
    .gm-quad__item--bl {
        padding-right: clamp(60px, 7vw, 90px);
        border-right: 1px solid #ddd6ca;
        text-align: right;
    }

    .gm-quad__item--tl .gm-quad__icon,
    .gm-quad__item--bl .gm-quad__icon {
        margin-left: auto;
    }

    .gm-quad__item--tr,
    .gm-quad__item--br {
        padding-left: clamp(60px, 7vw, 90px);
    }

    .gm-quad__item--bl {
        border-bottom: 0;
    }

    .gm-quad__emblem {
        position: absolute;
        top: 50%;
        left: 50%;
        display: grid;
        place-items: center;
        width: 96px;
        height: 96px;
        margin: -48px 0 0 -48px;
        border-radius: 50%;
        background: var(--gm-copper);
        color: #fff;
        font-size: 36px;
        box-shadow: 0 0 0 12px #fff, 0 24px 40px -18px rgba(207, 117, 57, 0.7);
    }

    /* Design rows: number and text on the left, decor strip on the right */
    .gm-row {
        grid-template-columns: 48px 1fr 220px;
        grid-template-areas:
            "num title strip"
            "num body strip";
        column-gap: 24px;
        row-gap: 8px;
        padding: 28px 0;
    }

    .gm-row__num {
        align-self: start;
        padding-top: 8px;
    }

    .gm-row__strip {
        justify-self: end;
        width: 80%;
        height: 110px;
    }

    .gm-row:hover .gm-row__strip {
        width: 100%;
    }

    /* Journey spans the full width: the first step starts at the left edge,
       the last ends at the right edge, and each step is centred on its icon.
       Steps share one width (--sw) so the line can join the first icon's
       centre to the last icon's centre. */
    .gmfc .gm-journey {
        --sw: clamp(200px, 20vw, 240px);
        display: flex;
        justify-content: space-between;
        gap: 24px;
    }

    .gm-journey::before {
        left: calc(var(--sw) / 2);
        right: calc(var(--sw) / 2);
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), var(--gm-copper));
        transform-origin: left;
    }

    .gm-js .gm-journey:not(.is-visible)::before {
        transform: scaleX(0);
    }

    .gm-journey__step {
        flex: 0 0 var(--sw);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gm-board__body {
        padding: 34px 36px 36px;
    }
}

@media (min-width: 992px) {
    /* Layered board: heading on the left, intro and links on the right */
    .gm-layers__head {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: end;
    }

    /* The hero fills one screen height, with its content centred */
    .gm-hero {
        display: flex;
        align-items: center;
        min-height: 100vh;
        min-height: 100svh;
        padding: 110px 0 84px;
    }

    .gm-hero .container {
        width: 100%;
    }

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

    .gmfc .gm-hero__title {
        font-size: clamp(56px, min(7vw, 10.5vh), 96px);
    }

    .gmfc .gm-hero__text p {
        max-width: 36em;
    }

    .gm-hero__visual {
        align-self: stretch;
        height: auto;
        min-height: 480px;
    }

    .gm-fan {
        --w: clamp(220px, 31vh, 240px);
        top: 50%;
        bottom: auto;
        margin-top: calc(var(--w) * -0.86);
    }

    .gm-hero__scroll {
        position: absolute;
        left: 50%;
        bottom: 26px;
        display: block;
        width: 26px;
        height: 42px;
        margin-left: -13px;
        border: 2px solid rgba(27, 37, 46, 0.35);
        border-radius: 14px;
    }

    .gm-hero__scroll span {
        position: absolute;
        left: 50%;
        top: 8px;
        width: 4px;
        height: 8px;
        margin-left: -2px;
        border-radius: 2px;
        background: var(--gm-green);
        animation: gmScroll 1.8s ease-in-out infinite;
    }

    .gm-what__grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 72px;
    }

    .gm-boards__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .gm-stack {
        --s: 210px;
    }

    .gm-board__visual {
        height: 360px;
    }

    .gm-designs__head,
    .gm-hslider__head {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        /* align-items: end; */
    }

    /* Rows line up in one line: number, name, text, decor strip.
       The strip widens to the full column on hover. */
    .gm-row {
        grid-template-columns: 64px minmax(180px, 0.55fr) 1fr clamp(220px, 24vw, 340px);
        grid-template-areas: "num title body strip";
        column-gap: 32px;
        padding: 30px 0;
    }

    .gm-row__num {
        align-self: center;
        padding-top: 0;
    }

    .gm-row__strip {
        width: 72%;
        height: 120px;
    }

    .gm-row:hover .gm-row__strip {
        width: 100%;
    }

    /* Finish wheel in the middle, two descriptions either side. Each row is half
       the wheel tall, so every description lines up with its own quarter. */
    .gm-wheel {
        --gm-wheel: clamp(320px, 30vw, 420px);
        --gm-wgap: clamp(48px, 5vw, 88px);
        grid-template-columns: 1fr var(--gm-wheel) 1fr;
        grid-template-rows: repeat(2, calc(var(--gm-wheel) / 2));
        grid-template-areas:
            "matte disc glossy"
            "suede disc texture";
        column-gap: var(--gm-wgap);
        row-gap: 0;
        align-items: center;
    }

    .gm-wheel__disc {
        grid-area: disc;
        grid-column: auto;
        margin-bottom: 0;
    }

    .gm-wheel__item--matte {
        grid-area: matte;
    }

    .gm-wheel__item--glossy {
        grid-area: glossy;
    }

    .gm-wheel__item--suede {
        grid-area: suede;
    }

    .gm-wheel__item--texture {
        grid-area: texture;
    }

    .gm-wheel__item {
        max-width: 320px;
    }

    .gm-wheel__item--matte,
    .gm-wheel__item--suede {
        justify-self: end;
        text-align: right;
    }

    .gm-wheel__item--glossy,
    .gm-wheel__item--texture {
        justify-self: start;
    }

    .gm-wheel__mini {
        display: none;
    }

    .gmfc .gm-wheel__item h4 {
        font-size: 22px;
    }

    .gm-wheel__item p {
        font-size: 15px;
    }

    /* Leader line from each description to the rim of the wheel, ending in a dot.
       0.067 × the wheel's width is how far the rim curves in at a quarter's centre. */
    .gm-wheel__item::before,
    .gm-wheel__item::after {
        content: '';
        position: absolute;
        top: 50%;
    }

    .gm-wheel__item::after {
        width: calc(var(--gm-wgap) + var(--gm-wheel) * 0.067 - 22px);
        height: 2px;
        margin-top: -1px;
        background: rgba(207, 117, 57, 0.45);
        transition: background-color 0.4s;
    }

    .gm-wheel__item::before {
        z-index: 1;
        width: 10px;
        height: 10px;
        margin-top: -5px;
        border-radius: 50%;
        background: var(--gm-copper);
        box-shadow: 0 0 0 4px #fff;
        transition: transform 0.4s var(--gm-ease);
    }

    .gm-wheel__item--matte::after,
    .gm-wheel__item--suede::after {
        left: calc(100% + 18px);
    }

    .gm-wheel__item--matte::before,
    .gm-wheel__item--suede::before {
        left: calc(100% + var(--gm-wgap) + var(--gm-wheel) * 0.067 - 1px);
    }

    .gm-wheel__item--glossy::after,
    .gm-wheel__item--texture::after {
        right: calc(100% + 18px);
    }

    .gm-wheel__item--glossy::before,
    .gm-wheel__item--texture::before {
        right: calc(100% + var(--gm-wgap) + var(--gm-wheel) * 0.067 - 1px);
    }

    .gm-wheel__item:hover::after {
        background-color: var(--gm-copper);
    }

    .gm-wheel__item:hover::before {
        transform: scale(1.3);
    }

    /* Catalogue book on the left, text on the right */
    .gm-cta__grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 64px;
    }

    /* FAQ: heading at the top and the card at the bottom of the left column */
    .gm-faq__grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "title list"
            "card list";
        column-gap: clamp(56px, 6vw, 96px);
        row-gap: 40px;
    }

    .gmfc .gm-faq .gm-faq__title {
        grid-area: title;
    }

    .gm-faq__list {
        grid-area: list;
    }

    .gm-faq__card {
        grid-area: card;
        align-self: end;
    }

    /* Catalogue request: intro and sheets on the left, form on the right */
    .gm-request__grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: clamp(48px, 5vw, 80px);
        align-items: center;
    }

    .gm-request__sheets {
        margin-left: 0;
    }
}

@media (min-width: 1200px) {
    .gm-fan {
        --w: clamp(270px, 39vh, 330px);
    }

    /* Layered board: drawing on the left, labels on the right at the height
       of their layer (the --y values match the line heights in the drawing) */
    .gm-layers__svg {
        width: 63.33%;
        max-width: none;
        margin: 0;
    }

    .gm-layers__lines {
        display: inline;
        opacity: 0;
        transition: opacity 0.6s 1s;
    }

    .gm-layers__diagram.is-visible .gm-layers__lines {
        opacity: 1;
    }

    .gmfc .gm-layers__callouts {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 65%;
        display: block;
        margin: 0;
    }

    .gm-layers__callouts li {
        position: absolute;
        top: var(--y);
        left: 0;
        right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .gm-layers__callouts strong {
        font-size: 16px;
        line-height: 1.25;
    }

    .gm-layers__callouts span {
        font-size: 14px;
        margin-top: 0;
        line-height: 1.35;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Keeps both hero buttons on one row in the narrower copy column */
    .gmfc .gm-hero .gm-btn {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* Laptop screens with little height: keep the whole hero above the fold */
@media (min-width: 992px) and (max-height: 760px) {
    .gm-hero {
        padding: 100px 0 40px;
    }

    .gmfc .gm-hero__lead {
        margin-bottom: 12px;
        font-size: 20px;
    }

    .gmfc .gm-hero__text p {
        margin-bottom: 6px;
        font-size: 15px;
        line-height: 1.6;
    }

    .gm-hero .gm-actions {
        margin-top: 18px;
    }

    .gmfc .gm-hero .gm-btn {
        min-height: 48px;
        padding: 12px 24px;
    }

    .gm-hero__scroll {
        display: none;
    }
}

/* ==========================================================================
   Keyframes & reduced motion
   ========================================================================== */

@keyframes gmScroll {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gmfc *,
    .gmfc *::before,
    .gmfc *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    :where(.gm-js) :where([data-gm-reveal]) {
        opacity: 1;
        translate: none;
    }
}
