@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

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

/* Jump links land below the fixed 7rem header instead of under it */
section[id] {
    scroll-margin-top: 7rem;
}

:root {
  --white-color: #ffffff;

  /* Colors from the VitalitásOtthon logo and frekvencia.net */
  --primary-color: #287a37;        /* fresh green: buttons, links, accents */
  --primary-color-hover: #1f6430;
  --heading-color: #1d4d2b;        /* the logo's deep green */
  --copper-color: #a0612e;         /* the logo's copper, used sparingly */
  --text-color: #3a4540;
  --text-color-light: #66726b;
  --section-bg: #f1f4ef;           /* frekvencia.net's sage background */
  --tint-color: #e3eee2;           /* icon circles, soft fills */
  --border-color: #dfe7dc;
  --frame-color: #287a37;         /* soft green frame around the About photo and quote */
  --overlay-color: 14, 38, 22;     /* deep green used for image overlays (rgb) */

  --body-font: 'Google Sans', sans-serif;

  --big-font: 4rem;
  --h1-font: 3.6rem;
  --h2-font: 2.4rem;
  --h3-font: 2rem;
  --h4-font: 1.8rem;
  --normal-font: 1.6rem;
  --small-font: 1.4rem;
  --smaller-font: 1.3rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  --z-overlay: 10;
  --z-fixed: 100;

  --tran-0-2: 0.25s;
  --tran-0-3: 0.35s;
  --tran-0-5: 0.55s;
}

@media screen and (max-width: 990px) {
    :root {
        --big-font: 3.5rem;
        --h1-font: 2.4rem;
        --h2-font: 2rem;
        --h3-font: 1.8rem;
        --h4-font: 1.6rem;
        --normal-font: 1.5rem;
        --small-font: 1.3rem;
        --smaller-font: 1.2rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, button, input {
    font-family: var(--body-font);
    font-size: var(--normal-font);
    font-weight: var(--font-regular);
    color: var(--text-color);
}

body {
    overflow-x: hidden;
    background-color: var(--white-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

.section {
    padding: 7rem 2rem;
}

.container {
    max-width: 1030px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.flex {
    display: flex;
    align-items: center;
    column-gap: 0.6rem;
}

.button {
    display: inline-block;
    text-align: center;
    border: none;
    outline: none;
    color: white;
    padding: 1.4rem 4rem;
    border-radius: 3rem;
    background-color: var(--primary-color);
    transition: var(--tran-0-3);
    cursor: pointer;
}

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

.button:focus-visible,
.about-link:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* On the hero photos a green ring would vanish, so use white there */
.home .button:focus-visible {
    outline-color: var(--white-color);
}

.section-subtitle,
.content-subtitle {
    color: var(--primary-color);
    font-size: var(--normal-font);
    letter-spacing: 1px;
    font-weight: var(--font-medium);
    text-align: center;
}

.section-title,
.content-title {
    text-align: center;
    font-size: var(--h2-font);
    font-weight: var(--font-medium);
    margin: 1rem 0;
    color: var(--heading-color);
}

.section-description,
.content-description {
    text-align: center;
    margin-bottom: 2rem;
}

.section-description {
    padding: 0;
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    height: 7rem;
    width: 100%;
    z-index: var(--z-fixed);
    background-color: var(--white-color);
    box-shadow: 0 2px 12px rgba(var(--overlay-color), 0.12);
}

.nav {
    position: relative;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Desktop: equal side columns keep the menu exactly centred on the page,
   whatever the widths of the logo and the phone number */
@media screen and (min-width: 769px) {
    .nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        max-width: 1240px;
    }

    .contact-content {
        justify-self: end;
    }
}

.logo-icon, .logo-text, .nav-link, .phone-icon, .phone-number {
    color: var(--text-color);
}

.logo-icon, .phone-icon {
    font-size: 2rem;
}

.phone-icon {
    color: var(--primary-color);
}

.nav-link {
    transition: color var(--tran-0-2);
}

.nav-link:hover,
.active-navlink {
    color: var(--primary-color);
}

/* Overrides the global img rule (100% width/height) so the logo keeps its proportions */
.logo-icon {
    display: block;
    height: 4.4rem;
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 990px) {
    .logo-icon {
        height: 3.6rem;
    }
}

.menu-list {
    column-gap: 2rem;
}

.nav-link {
    position: relative;
    text-transform: capitalize;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
    transform: translateX(-50%) scale(0);
    transition: opacity var(--tran-0-3), transform var(--tran-0-3);
}

.active-navlink::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.navOpen-btn, .navClose-btn, .menu-footer, .menu-backdrop {
    display: none;
}

/* Phone menu: deep green panel sliding in over a dimmed page */
@media screen and (max-width: 768px) {
    .contact-content {
        display: none;
    }

    .navOpen-btn {
        display: block;
        font-size: 2.2rem;
        cursor: pointer;
        color: var(--heading-color);
    }

    .menu-content {
        position: fixed;
        top: 0;
        right: 0;
        max-width: 320px;
        width: 85%;
        height: 100%;
        z-index: 200;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        row-gap: 4rem;
        padding: 9rem 2.4rem 3.2rem;
        overflow-y: auto;
        border-radius: 2.4rem 0 0 2.4rem;
        background:
            radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 45%),
            radial-gradient(circle at 0% 100%, rgba(160, 97, 46, 0.25), transparent 50%),
            linear-gradient(165deg, var(--heading-color) 0%, #133a20 100%);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
        transform: translateX(110%);
        /* visibility switches off only after the slide-out, so closed links can't be tabbed to */
        visibility: hidden;
        transition: transform var(--tran-0-5) cubic-bezier(0.22, 1, 0.36, 1), visibility 0s var(--tran-0-5);
    }

    .menu-content.open {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 150;
        background-color: rgba(var(--overlay-color), 0.45);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--tran-0-5), visibility var(--tran-0-5);
    }

    .menu-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .navClose-btn {
        display: grid;
        place-items: center;
        position: absolute;
        top: 2rem;
        right: 2rem;
        height: 4.2rem;
        width: 4.2rem;
        border-radius: 50%;
        font-size: 1.8rem;
        color: var(--white-color);
        background-color: rgba(255, 255, 255, 0.1);
        cursor: pointer;
        transition: background-color var(--tran-0-2), transform var(--tran-0-3);
    }

    .navClose-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .menu-list {
        flex-direction: column;
        align-items: stretch;
        row-gap: 0.6rem;
        font-size: var(--h3-font);
    }

    .menu-list .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.4rem 1.8rem;
        border-radius: 1.4rem;
        color: rgba(255, 255, 255, 0.85);
        transition: color var(--tran-0-2), background-color var(--tran-0-2);
    }

    /* Arrow that appears on the current page's row */
    .menu-list .nav-link::after {
        content: '\f061';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.4rem;
        color: var(--copper-color);
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity var(--tran-0-3), transform var(--tran-0-3);
    }

    .menu-list .nav-link::before {
        display: none;
    }

    .menu-list .nav-link:hover {
        color: var(--white-color);
        background-color: rgba(255, 255, 255, 0.06);
    }

    .menu-list .active-navlink {
        color: var(--white-color);
        background-color: rgba(255, 255, 255, 0.12);
    }

    .menu-list .active-navlink::after {
        opacity: 1;
        transform: translateX(0);
    }

    .menu-list .nav-link:focus-visible {
        outline-color: var(--white-color);
    }

    /* Links slide in one after another as the panel opens */
    .menu-list li {
        opacity: 0;
        transform: translateX(2rem);
        transition: opacity var(--tran-0-3), transform var(--tran-0-3);
    }

    .menu-content.open .menu-list li {
        opacity: 1;
        transform: translateX(0);
    }

    .menu-content.open .menu-list li:nth-child(1) { transition-delay: 0.12s; }
    .menu-content.open .menu-list li:nth-child(2) { transition-delay: 0.17s; }
    .menu-content.open .menu-list li:nth-child(3) { transition-delay: 0.22s; }
    .menu-content.open .menu-list li:nth-child(4) { transition-delay: 0.27s; }
    .menu-content.open .menu-list li:nth-child(5) { transition-delay: 0.32s; }

    .menu-footer {
        display: grid;
        row-gap: 2.4rem;
        padding-top: 2.4rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .menu-call {
        display: flex;
        align-items: center;
        column-gap: 1.4rem;
        padding: 1.2rem 1.6rem;
        border-radius: 1.6rem;
        font-weight: var(--font-semi-bold);
        color: var(--heading-color);
        background-color: var(--white-color);
        transition: transform var(--tran-0-2);
    }

    .menu-call:hover {
        transform: translateY(-2px);
    }

    .menu-call i {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        height: 4rem;
        width: 4rem;
        border-radius: 50%;
        color: var(--white-color);
        background-color: var(--primary-color);
    }

    .menu-call span {
        display: flex;
        flex-direction: column;
    }

    .menu-call small {
        font-size: 1.2rem;
        font-weight: var(--font-regular);
        color: var(--text-color-light);
    }

    .media-icons {
        justify-content: center;
        column-gap: 1rem;
    }

    .media-icons a {
        display: grid;
        place-items: center;
        height: 4rem;
        width: 4rem;
        border-radius: 50%;
        color: var(--white-color);
        background-color: rgba(255, 255, 255, 0.1);
        transition: background-color var(--tran-0-2), color var(--tran-0-2);
    }

    .media-icons a:hover {
        color: var(--heading-color);
        background-color: var(--white-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-content,
    .menu-list li,
    .menu-backdrop {
        transition: none;
    }
}

/* Home */

.home {
    height: 100vh;
    width: 100%;
    background-color: white;
}

.swiper-slide {
    height: 100vh;
    width: 100%;
    position: relative;
}

.home .swiper-slide::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: var(--z-overlay);
}

.home-img {
    height: 100%;
    width: 100%;
}

.swiper-navBtn {
    height: 5rem;
    width: 5rem;
    color: var(--white-color);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--tran-0-2);
    opacity: 0;
    visibility: visible;
}

.home:hover .swiper-navBtn {
    opacity: 1;
}

.swiper-navBtn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.swiper-navBtn svg {
    width: 2rem;
    height: 2rem;
}

.swiper-button-next {
    right: 2rem;
}

.swiper-button-prev {
    left: 2rem;
}

.swiper-pagination-bullet {
    background-color: white;
    opacity: 1;
    height: 1.5rem;
    width: 1.5rem;
    margin-bottom: 2rem;
    visibility: hidden;
}

.swiper-pagination-bullet-active {
    border: 3px solid white;
    background-color: var(--primary-color);
}

.home-details {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: var(--z-fixed);
    transform: translate(-50%, -50%);
    display: grid;
    justify-items: center;
    width: 100%;
    row-gap: 4rem;
}

.homeSubtitle {
    text-align: center;
    font-size: clamp(1.7rem, 1.2rem + 0.6vw, 2.2rem);
    font-weight: var(--font-medium);
    color: var(--white-color);
}

/* Scales from ~32px on phones to 56px on large screens */
.homeTitle {
    max-width: 22ch;
    margin: 0.8rem auto 0;
    text-align: center;
    font-size: clamp(3.2rem, 1.8rem + 2.8vw, 5.6rem);
    line-height: 1.15;
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
}

/* Slides whose image has its subject on the right: text sits left, aligned with
   the logo, and the overlay fades out so the subject stays bright */
.home-details--left {
    left: 0;
    transform: translateY(-50%);
    justify-items: start;
    /* 8rem left of the logo; never closer to the edge than the prev arrow allows */
    padding-left: max(9rem, calc((100% - 1030px) / 2 - 5rem));
    padding-right: 3rem;
}

/* Wide images with empty space on their left: crop from the right instead of the centre */
.home-img--left {
    object-position: left center;
}

/* Tall images with the subject high up: crop from the bottom instead of the centre */
.home-img--top {
    object-position: center top;
}

.home-details--left .homeSubtitle,
.home-details--left .homeTitle {
    text-align: left;
}

.home-details--left .homeTitle {
    max-width: 16ch;
    margin-left: 0;
}

.home .swiper-slide:has(.home-details--left)::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.05) 80%);
}

@media screen and (max-width: 768px) {
    .home-details--left {
        padding-left: 3rem;
    }

    .home .swiper-slide:has(.home-details--left)::before {
        background: rgba(0, 0, 0, 0.45);
    }
}

/* About content */

.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about .content-subtitle, .about .content-title, .about .content-description {
    text-align: left;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 8rem;
    align-items: stretch;
    max-width: 1200px;
    padding: 0 5rem;
}

/* Photo stretches to the height of the text column */
.about-imageContent {
    position: relative;
    min-height: 520px;
    border: 6px solid var(--frame-color);
}

.about .content-title {
    font-size: var(--h1-font);
    line-height: 1.2;
}

.about-text .content-description {
    max-width: 60ch;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

@media screen and (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        row-gap: 6rem;
        padding: 0 3rem;
    }

    .about-imageContent {
        min-height: 380px;
        margin-right: 4rem;
    }

    .aboutImg-textbox {
        right: -4rem;
    }

    .about-buttons {
        flex-wrap: wrap;
        row-gap: 2rem;
    }

    .about-buttons .button {
        white-space: nowrap;
    }
}

.aboutImg-textbox {
    position: absolute;
    bottom: 2rem;
    right: -5rem;
    padding: 2rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    border: 6px solid var(--frame-color);
    background-color: white;
}

.aboutImg-textbox .content-description {
    text-align: center;
    margin-bottom: 0;
}

.heart-icon {
    position: absolute;
    left: -1.9rem;
    top: 50%;
    height: 3rem;
    width: 3rem;
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%);
    justify-content: center;
    border-radius: 50%;
}

.about-details {
    display: grid;
    row-gap: 4rem;
}

.about-lists {
    column-gap: 1rem;
    align-items: baseline;
}

.about-list {
    font-weight: var(--font-medium);
    font-size: 1.8rem;
    color: var(--heading-color);
}

.about-list.dot {
    color: var(--copper-color);
}

.about-list:nth-child(1) {
    color: var(--primary-color);
}

.about-list .dot {
    font-size: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    column-gap: 1.2rem;
}

.feature-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--primary-color);
    background-color: var(--tint-color);
}

.feature-title {
    font-size: var(--normal-font);
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

.feature-text {
    margin-top: 0.3rem;
    font-size: var(--small-font);
    line-height: 1.5;
    color: var(--text-color-light);
}

@media screen and (max-width: 560px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.about-buttons {
    column-gap: 2rem;
}

.about-link .link-text, .about-arrowIcon {
    color: var(--heading-color);
    text-transform: uppercase;
    transition: var(--tran-0-3);
}

.about-link:hover .link-text,
.about-link:hover .about-arrowIcon {
    color: var(--primary-color);
}

.about-link:hover .about-arrowIcon {
    margin-left: 4px;
}

/* Everyday use: photo cards with the icon overlapping the photo */

.everyday {
    background-color: var(--white-color);
}

.everyday-container {
    max-width: 1200px;
}

.everyday-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    margin-top: 4rem;
}

.everyday-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 3rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
    background-color: var(--section-bg);
}

/* The tint shows while a photo loads */
.everyday-img {
    display: block;
    height: auto;
    aspect-ratio: 3 / 2;
    background-color: var(--tint-color);
}

.everyday-icon {
    position: relative;
    display: grid;
    place-items: center;
    height: 6.4rem;
    width: 6.4rem;
    margin-top: -3.2rem;
    border-radius: 50%;
    border: 4px solid var(--white-color);
    font-size: 2.2rem;
    color: var(--primary-color);
    background-color: var(--tint-color);
    box-shadow: 0 6px 16px rgba(var(--overlay-color), 0.12);
}

.everyday-title {
    margin-top: 1.6rem;
    font-size: var(--h4-font);
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

.everyday-title::after {
    content: '';
    display: block;
    width: 3.6rem;
    height: 2px;
    margin: 1rem auto 0;
    border-radius: 2px;
    background-color: var(--primary-color);
}

.everyday-text {
    max-width: 32ch;
    margin-top: 1.2rem;
    padding: 0 2.4rem;
    font-size: var(--small-font);
    line-height: 1.6;
    color: var(--text-color-light);
}

/* Closing line reuses the eyebrow rules and leaves, in sentence case
   (two classes so it wins over .eyebrow-decorated, which comes later) */
.everyday .everyday-tagline {
    margin-top: 4.4rem;
    font-size: var(--h4-font);
    font-style: italic;
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--heading-color);
}

@media screen and (max-width: 990px) {
    .everyday-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 560px) {
    .everyday-grid {
        grid-template-columns: 1fr;
    }
}

/* Menu */

.menu {
    /* Soft white glow at the top lifts the heading off the sage background */
    background:
        radial-gradient(ellipse 60% 40rem at 50% 0%, rgba(255, 255, 255, 0.55), transparent),
        #dfe8d9;
}

/* Eyebrow line: leaves and thin rules either side, as on frekvencia.net */
.eyebrow-decorated {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
    font-size: var(--small-font);
    font-weight: var(--font-semi-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow-decorated::before,
.eyebrow-decorated::after {
    content: '';
    /* Shrinks on phones so the line still fits beside the word */
    width: clamp(3rem, 16vw, 20rem);
    height: 1px;
    background-color: currentColor;
    opacity: 0.45;
}

.eyebrow-decorated .fa-leaf {
    font-size: 1.2rem;
    color: var(--copper-color);
}

/* The darker sage behind Készülékek needs the deeper green for small text (5.7:1) */
.menu .section-subtitle {
    color: var(--primary-color-hover);
}

.products-title {
    max-width: 20ch;
    margin: 1.4rem auto 0;
    font-size: clamp(2.8rem, 1.9rem + 1.9vw, 4.4rem);
    font-weight: var(--font-semi-bold);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Darkest stop to lightest still keeps 3:1 contrast on sage for large text */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color-hover), var(--primary-color) 45%, #3f8f2c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wave-divider {
    display: block;
    width: min(36rem, 80%);
    height: 1.6rem;
    margin: 1.8rem auto 2.2rem;
    color: var(--primary-color);
}

.products-description {
    font-size: 1.7rem;
    color: var(--text-color);
}

.menu-products {
    margin-top: 6rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    border-radius: 2rem;
    box-shadow: 0 4px 14px rgba(var(--overlay-color), 0.08);
    transition: transform var(--tran-0-3);
    outline: none;
}

/* Hover shadow is pre-rendered and only faded in — cheaper than animating box-shadow */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 18px 36px rgba(var(--overlay-color), 0.18);
    opacity: 0;
    transition: opacity var(--tran-0-3);
}

/* Fills the gap the card lifts away from, so the cursor near the bottom edge
   doesn't fall off the card and make it bounce between hover and non-hover */
.product-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0;
}

.product-card:hover::after {
    height: 8px;
}

/* :focus-visible (not :focus-within) so a mouse click doesn't leave the card stuck open */
.product-card:hover,
.product-card:focus-visible,
.product-card:has(:focus-visible) {
    transform: translateY(-8px);
}

.product-card:hover::before,
.product-card:focus-visible::before,
.product-card:has(:focus-visible)::before {
    opacity: 1;
}

.product-card:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-color);
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #f7f9f6;
    border-radius: 2rem 2rem 0 0;
    overflow: hidden;
}

/* multiply lets white photo backgrounds take on the card colour, so every
   product sits on the same background whatever its source image looks like */
.product-img {
    object-fit: contain;
    padding: 2rem;
    mix-blend-mode: multiply;
    transition: transform var(--tran-0-5);
}

.product-card:hover .product-img,
.product-card:focus-visible .product-img,
.product-card:has(:focus-visible) .product-img {
    transform: scale(1.08);
}

/* Status pill on the right of the product name row */
.product-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: var(--smaller-font);
    font-weight: var(--font-medium);
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
    color: var(--white-color);
    background-color: var(--primary-color);
}

/* Description panel that slides up over the image on hover */
.product-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.6rem;
    padding: 2.4rem;
    color: var(--white-color);
    background: linear-gradient(to top, rgba(var(--overlay-color), 0.92) 0%, rgba(var(--overlay-color), 0.7) 60%, rgba(var(--overlay-color), 0.4) 100%);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity var(--tran-0-3), transform var(--tran-0-5);
}

.product-card:hover .product-overlay,
.product-card:focus-visible .product-overlay,
.product-card:has(:focus-visible) .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-des {
    font-size: var(--small-font);
    line-height: 1.55;
}

.product-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    border-radius: 3rem;
    font-size: var(--small-font);
    font-weight: var(--font-medium);
    color: var(--heading-color);
    background-color: var(--white-color);
    transition: gap var(--tran-0-3);
}

.product-link:hover {
    gap: 1.2rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 2rem 2.2rem 2.4rem;
}

.product-brand {
    font-size: var(--smaller-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

/* Name on the left, badge on the right; a long name wraps instead of the badge moving */
.product-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.product-title {
    font-size: var(--h4-font);
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

.product-price {
    margin-top: 0.6rem;
    font-size: var(--h3-font);
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

/* Technology */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tech {
    background-color: var(--white-color);
}

.tech-container {
    max-width: 1200px;
}

/* Lead paragraph: larger and darker than a normal section description */
.tech-lead {
    max-width: 52ch;
    font-size: clamp(1.7rem, 1.4rem + 0.5vw, 2.1rem);
    line-height: 1.65;
    color: var(--heading-color);
}

/* Key phrases: bold only (background cleared so <mark> isn't yellow) */
.highlight {
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
    background: none;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    border-radius: 3rem;
    border: 1px solid var(--border-color);
    font-size: var(--small-font);
    font-weight: var(--font-medium);
    color: var(--heading-color);
    background-color: var(--section-bg);
    transition: color var(--tran-0-2), background-color var(--tran-0-2), border-color var(--tran-0-2), transform var(--tran-0-2);
}

.tech-chip i {
    font-size: 1.3rem;
    color: var(--copper-color);
    transition: color var(--tran-0-2);
}

.tech-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--white-color);
    background-color: var(--primary-color);
}

.tech-chip:hover i {
    color: var(--white-color);
}

.tech-chip:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Chip links land below the fixed header */
.tech-card {
    scroll-margin-top: 9rem;
}

.tech-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 6rem;
    align-items: center;
    margin-top: 5rem;
}

.tech-introTitle {
    margin-bottom: 1.6rem;
    font-size: var(--h2-font);
    font-weight: var(--font-semi-bold);
    line-height: 1.25;
    color: var(--heading-color);
}

.tech-introText p {
    max-width: 60ch;
    margin-bottom: 1.4rem;
    line-height: 1.7;
}

.tech-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}

.tech-pillar {
    padding: 2rem;
    border-radius: 1.6rem;
    border: 1px solid var(--border-color);
    background-color: var(--section-bg);
}

.tech-pillar p {
    margin-top: 0.6rem;
    font-size: var(--small-font);
    line-height: 1.55;
    color: var(--text-color-light);
}

.tech-pillarName {
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
}

.tech-pillar--stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: transparent;
    background-color: var(--heading-color);
}

.tech-pillar--stat p {
    margin-top: 0;
    font-size: var(--normal-font);
    color: rgba(255, 255, 255, 0.85);
}

.tech-stat {
    font-size: 4.4rem;
    font-weight: var(--font-semi-bold);
    line-height: 1;
    color: var(--white-color);
}

/* Two core technologies on the first row, three supporting ones below */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.4rem;
    margin-top: 7rem;
}

.tech-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding: 3rem 2.8rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    transition: transform var(--tran-0-3), box-shadow var(--tran-0-3);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(var(--overlay-color), 0.1);
}

.tech-card--core {
    grid-column: span 3;
    flex-direction: row;
    column-gap: 2.4rem;
    border-top: 4px solid var(--primary-color);
    background-color: var(--section-bg);
}

.tech-badge {
    flex-shrink: 0;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px rgba(var(--overlay-color), 0.18);
}

.tech-card--core .tech-badge {
    width: 11rem;
    height: 11rem;
}

/* A shade deeper than --copper-color so the small tag reads at 4.5:1 on sage */
.tech-card--core .tech-tag {
    color: #9a5c2a;
}

.tech-cardBody {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-tag {
    font-size: var(--smaller-font);
    font-weight: var(--font-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--copper-color);
}

.tech-name {
    margin-top: 0.4rem;
    font-size: var(--h3-font);
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

.tech-card--core .tech-name {
    font-size: var(--h2-font);
}

.tech-full {
    margin-bottom: 1.4rem;
    font-size: var(--small-font);
    color: var(--primary-color);
}

.tech-des {
    margin-bottom: 1.2rem;
    font-size: var(--small-font);
    line-height: 1.65;
}

/* margin-top: auto pins the link to the card bottom so links line up across a row */
.tech-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 0.8rem;
    font-size: var(--small-font);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    transition: gap var(--tran-0-3), color var(--tran-0-3);
}

.tech-link:hover {
    gap: 1.2rem;
    color: var(--primary-color-hover);
}

.tech-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

@media screen and (max-width: 990px) {
    .tech-intro {
        grid-template-columns: 1fr;
        row-gap: 4rem;
    }

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

    .tech-card,
    .tech-card--core {
        grid-column: span 1;
        flex-direction: column;
    }

    /* The odd card out takes the full last row */
    .tech-card:last-child {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 640px) {
    .tech-grid,
    .tech-pillars {
        grid-template-columns: 1fr;
    }
}

/* Quote band */

.tech-quote {
    padding: 8rem 2rem;
    text-align: center;
    color: var(--white-color);
    background:
        radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent),
        var(--heading-color);
}

.tech-quoteIcon {
    font-size: 3.6rem;
    color: var(--copper-color);
}

.tech-quote blockquote p {
    max-width: 34ch;
    margin: 2.4rem auto;
    font-size: clamp(2.2rem, 1.6rem + 1.2vw, 3.2rem);
    font-weight: var(--font-medium);
    line-height: 1.4;
}

.tech-quote figcaption {
    font-size: var(--small-font);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Comparison */

.compare {
    background-color: var(--section-bg);
}

/* minmax(0, 1fr): without it the 820px device table widens the whole column on phones */
.compare-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 9rem;
    max-width: 1100px;
}

.compare-text {
    margin-bottom: 3rem;
}

.vs-table-wrap,
.matrix-wrap {
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    box-shadow: 0 4px 14px rgba(var(--overlay-color), 0.06);
}

.vs-table,
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--small-font);
}

/* Clips the shaded row headers to the rounded corners */
.vs-table-wrap {
    overflow: hidden;
}

.vs-table th,
.vs-table td {
    padding: 1.6rem 2.2rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
    border-bottom: 1px solid var(--border-color);
}

.vs-table tbody tr:last-child > * {
    border-bottom: none;
}

.vs-table thead th {
    font-size: var(--h4-font);
    font-weight: var(--font-semi-bold);
    color: var(--white-color);
    background-color: var(--heading-color);
}

.vs-table thead th:first-child {
    border-top-left-radius: 2rem;
}

.vs-table thead th:last-child {
    border-top-right-radius: 2rem;
}

.vs-table thead th span {
    display: block;
    font-size: var(--smaller-font);
    font-weight: var(--font-regular);
    color: rgba(255, 255, 255, 0.75);
}

.vs-table tbody th {
    width: 22%;
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
    background-color: #f7f9f6;
}

.vs-table td {
    width: 39%;
}

.vs-table strong {
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

.vs-joint {
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

/* Phones: each row becomes a block, the criterion on top and the two values side by side */
@media screen and (max-width: 640px) {
    /* Block layout lets the grid rows fill the card instead of sizing to the longest word */
    .vs-table,
    .vs-table thead,
    .vs-table tbody {
        display: block;
    }

    .vs-table th,
    .vs-table td {
        overflow-wrap: anywhere;
    }

    .vs-table thead th:first-child {
        display: none;
    }

    .vs-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .vs-table thead th:nth-child(2) {
        border-top-left-radius: 2rem;
    }

    .vs-table th,
    .vs-table td {
        width: auto;
        padding: 1.2rem 1.4rem;
    }

    .vs-table tbody th {
        width: auto;
        grid-column: 1 / -1;
        padding-bottom: 0.6rem;
        border-bottom: none;
    }

    .vs-table td + td {
        border-left: 1px solid var(--border-color);
    }

    .vs-joint {
        grid-column: 1 / -1;
    }
}

/* Wide table scrolls inside its card, never the page */
.matrix-wrap {
    overflow-x: auto;
}

.matrix-wrap:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.matrix-table {
    min-width: 820px;
}

.matrix-table th,
.matrix-table td {
    padding: 1.4rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.matrix-table tbody tr:last-child > * {
    border-bottom: none;
}

.matrix-table thead th {
    font-size: var(--smaller-font);
    font-weight: var(--font-semi-bold);
    line-height: 1.3;
    color: var(--heading-color);
    background-color: var(--tint-color);
}

/* Device names stay visible while the columns scroll */
.matrix-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    background-color: var(--white-color);
    box-shadow: inset -1px 0 0 var(--border-color);
}

.matrix-table thead tr > :first-child {
    background-color: var(--tint-color);
}

.matrix-table tbody th {
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
    white-space: nowrap;
}

.matrix-table tbody th span {
    display: block;
    font-size: 1.2rem;
    font-weight: var(--font-regular);
    color: var(--text-color-light);
}

.matrix-table tbody tr:hover > * {
    background-color: #f7f9f6;
}

.matrix-table .yes i {
    display: inline-grid;
    place-items: center;
    height: 2.6rem;
    width: 2.6rem;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--white-color);
    background-color: var(--primary-color);
}

.matrix-table .yes small {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.2rem;
    color: var(--text-color-light);
    white-space: nowrap;
}

.matrix-table .no {
    color: #b9c4b5;
}

.matrix-hint {
    display: none;
    margin-top: 1.2rem;
    text-align: center;
    font-size: var(--smaller-font);
    color: var(--text-color-light);
}

@media screen and (max-width: 900px) {
    .matrix-hint {
        display: block;
    }
}

.compare-cta {
    display: grid;
    justify-items: center;
    row-gap: 2rem;
    text-align: center;
}

.compare-cta p {
    font-size: var(--h3-font);
    font-weight: var(--font-medium);
    color: var(--heading-color);
}

/* Review */

.review {
    background-color: var(--white-color);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    margin-top: 2rem;
    align-items: stretch;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3.2rem 2.8rem 2.8rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    background-color: var(--section-bg);
    transition: transform var(--tran-0-3), box-shadow var(--tran-0-3);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(var(--overlay-color), 0.1);
}

.review-quoteIcon {
    position: absolute;
    top: 2.4rem;
    right: 2.8rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.12;
}

.review-stars {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.6rem;
    font-size: var(--small-font);
    color: var(--copper-color);
}

.review-quote {
    flex-grow: 1;
    margin-bottom: 2.4rem;
    font-size: var(--normal-font);
    line-height: 1.7;
    color: var(--text-color);
}

.review-person {
    column-gap: 1.4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.review-img {
    flex-shrink: 0;
    height: 52px;
    width: 52px;
    border-radius: 50%;
    border: 3px solid var(--white-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.review-personDetails {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-size: var(--normal-font);
    font-weight: var(--font-semi-bold);
    color: var(--heading-color);
}

.review-role {
    font-size: var(--smaller-font);
    color: var(--text-color-light);
}

.review-product {
    margin-top: 1.4rem;
    font-size: var(--smaller-font);
    color: var(--primary-color);
}

.review-product i {
    margin-right: 0.4rem;
}

@media screen and (max-width: 900px) {
    .review-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 2rem auto 0;
    }
}

@media screen and (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* Contact */

.contact {
    background:
        radial-gradient(ellipse 60% 40rem at 50% 0%, rgba(255, 255, 255, 0.55), transparent),
        var(--section-bg);
}

.contact-container {
    max-width: 1140px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 3rem;
    margin-top: 5rem;
    align-items: stretch;
}

/* Info card uses the same deep green treatment as the phone menu */
.contact-info {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
    padding: 4rem 3.2rem;
    border-radius: 2.4rem;
    color: var(--white-color);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(160, 97, 46, 0.25), transparent 50%),
        linear-gradient(165deg, var(--heading-color) 0%, #133a20 100%);
    box-shadow: 0 18px 40px rgba(var(--overlay-color), 0.18);
}

.contact-profile {
    display: flex;
    align-items: center;
    column-gap: 1.8rem;
}

/* Round photo slot; an <img> dropped inside fills and crops to the circle */
.contact-avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    height: 8.4rem;
    width: 8.4rem;
    border-radius: 50%;
    overflow: hidden;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.contact-avatar img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.contact-infoTitle {
    font-size: var(--h3-font);
    font-weight: var(--font-semi-bold);
}

.contact-list {
    display: grid;
    row-gap: 2.4rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    column-gap: 1.6rem;
}

.contact-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    height: 4.6rem;
    width: 4.6rem;
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.12);
}

.contact-label {
    display: block;
    font-size: var(--smaller-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.contact-value {
    font-size: var(--normal-font);
    font-weight: var(--font-medium);
    color: var(--white-color);
    overflow-wrap: anywhere;
}

a.contact-value:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    column-gap: 1rem;
    padding: 1.6rem;
    border-radius: 1.4rem;
    font-size: var(--small-font);
    line-height: 1.55;
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-note i {
    margin-top: 0.3rem;
    color: #e0a774;
}

/* margin-top: auto keeps the icons at the card bottom when the form is taller */
.contact-social {
    display: flex;
    column-gap: 1rem;
    margin-top: auto;
}

.contact-social a {
    display: grid;
    place-items: center;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color var(--tran-0-2), color var(--tran-0-2);
}

.contact-social a:hover {
    color: var(--heading-color);
    background-color: var(--white-color);
}

.contact-info a:focus-visible {
    outline: 3px solid var(--white-color);
    outline-offset: 3px;
}

/* Form */

.contact-form {
    display: grid;
    row-gap: 2rem;
    padding: 4rem 3.6rem;
    border-radius: 2.4rem;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    box-shadow: 0 4px 14px rgba(var(--overlay-color), 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.form-field {
    display: grid;
    row-gap: 0.8rem;
    align-content: start;
}

.form-field > label {
    font-size: var(--small-font);
    font-weight: var(--font-medium);
    color: var(--heading-color);
}

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

.form-optional {
    font-weight: var(--font-regular);
    color: var(--text-color-light);
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.3rem 1.6rem;
    border-radius: 1.2rem;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: var(--normal-font);
    color: var(--text-color);
    background-color: #f7f9f6;
    transition: border-color var(--tran-0-2), box-shadow var(--tran-0-2), background-color var(--tran-0-2);
}

.contact-form textarea {
    min-height: 14rem;
    resize: vertical;
    line-height: 1.6;
}

/* Custom arrow so the select matches the other fields */
.contact-form select {
    appearance: none;
    padding-right: 4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23287a37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.6rem center;
    cursor: pointer;
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white-color);
    box-shadow: 0 0 0 4px rgba(40, 122, 55, 0.15);
}

.form-check {
    display: flex;
    align-items: flex-start;
    column-gap: 1.2rem;
    font-size: var(--small-font);
    line-height: 1.55;
    cursor: pointer;
}

.form-check input {
    flex-shrink: 0;
    height: 2rem;
    width: 2rem;
    margin-top: 0.1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-check span[aria-hidden] {
    color: var(--copper-color);
}

/* Errors appear only after a submit attempt (the script adds .was-validated) */
.form-error {
    display: none;
    font-size: var(--smaller-font);
    color: #b3261e;
}

.was-validated .form-field:has(:invalid) .form-error {
    display: block;
}

.was-validated .form-field :invalid:not([type="checkbox"]) {
    border-color: #b3261e;
    background-color: #fdf5f4;
}

.form-submit {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.form-submit i {
    transition: transform var(--tran-0-3);
}

.form-submit:hover i {
    transform: translate(3px, -3px);
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-status {
    font-size: var(--small-font);
    font-weight: var(--font-medium);
}

.form-status:empty {
    display: none;
}

.form-status.is-success,
.form-status.is-error {
    display: flex;
    align-items: flex-start;
    column-gap: 1rem;
    padding: 1.4rem 1.6rem;
    border-radius: 1.2rem;
    line-height: 1.5;
}

.form-status.is-success {
    color: var(--heading-color);
    background-color: var(--tint-color);
}

.form-status.is-error {
    color: #8c1d18;
    background-color: #fdf0ef;
}

/* Quiet link to karrier.html below the contact cards */
.contact-career {
    margin-top: 3.6rem;
    font-size: var(--small-font);
    text-align: center;
    color: var(--text-color-light);
}

.contact-career a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.4rem;
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
}

.contact-career a:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-career a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

@media screen and (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

    .contact-form,
    .contact-info {
        padding: 3rem 2.2rem;
    }

    .form-submit {
        justify-self: stretch;
        justify-content: center;
        padding-left: 2rem;
        padding-right: 2rem;
        white-space: nowrap;
    }
}

/* Responsive media */

@media screen and (max-width: 768px) {
    .swiper-navBtn {
        visibility: hidden;
    }
    
    .swiper-pagination-bullet {
        visibility: visible;
    }
}