/* ==========================================================================
   Ariel Systems – style.css
   Figma: Ctfbu9FthUOKCSSvKLeYKG / node 122:353 (desktop 1920) – WordPress theme version
   Breakpoint: 1024px
   ========================================================================== */

/* ---------- Fonts (local woff2 – put the files in /fonts) ---------- */
@font-face {
    font-family: "Open Sans Hebrew";
    src: url("../fonts/OpenSansHebrew-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans Hebrew";
    src: url("../fonts/OpenSansHebrew-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans Hebrew";
    src: url("../fonts/OpenSansHebrew-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans Hebrew";
    src: url("../fonts/OpenSansHebrew-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --color-accent: #2acfda;
    --color-accent-glow: rgba(42, 207, 218, 0.6);
    --color-dark: #0a0a0a;
    --color-hero: #060a0e;
    --color-white: #fff;
    --color-text: #4b5563;
    --color-muted: #6b7280;
    --color-gray: #9ca3af;
    --color-icon-bg: #ebf6fd;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.2);

    --font-main: "Open Sans Hebrew", Arial, Helvetica, sans-serif;

    --container: 1600px; /* 1560 content + 2 x 20 gutter */
    --gutter: 20px;
    --radius: 18px;
    --radius-input: 23px;
    --section-pad: 129px;
    --header-h: 113px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sr,
.sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    direction: rtl;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 19px;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-white);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
}

button {
    cursor: pointer;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--section-pad) 0;
}

/* ---------- Shared: section head ---------- */
.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-label::before,
.section-label::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--color-accent);
}

/* label aligned to start (about) – line only after the text */
.section-label--start {
    font-size: 19px;
}

.section-label--start::before {
    display: none;
}

.section-title {
    padding-top: 16px;
    font-size: 55px;
    line-height: 55px;
    color: var(--color-dark);
}

.section-head--light .section-title {
    color: var(--color-white);
}

.section-sub {
    max-width: 665px;
    padding-top: 18px;
    font-size: 21px;
    line-height: 32px;
    color: var(--color-muted);
}

/* ---------- Shared: buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 18px 23px;
    border-radius: var(--radius-input);
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 19px;
    font-weight: 700;
    line-height: 28px;
    white-space: nowrap;
    transition:
        background 0.2s,
        box-shadow 0.2s;
}

.btn:hover {
    background: #1fb9c4;
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.btn--pill {
    padding: 12px 23px;
    border-radius: 999px;
    line-height: 23px;
}

/* ---------- Shared: accent text ---------- */
.accent {
    color: var(--color-accent);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid var(--color-border-light);
    background: transparent;
    transition:
        background 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

/* after scrolling (class added by main.js) */
.header.is-scrolled {
    background: var(--color-white);
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header.is-scrolled .nav__link {
    color: var(--color-dark);
}

.header.is-scrolled .nav__link:hover {
    color: var(--color-accent);
}

.header.is-scrolled .burger span {
    background: var(--color-dark);
}

/* open mobile panel is dark – keep the burger white there */
.header .burger.is-open span {
    background: var(--color-white);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    height: 100%;
    margin: 0 auto;
    padding: 0 180px;
}

.header__logo img {
    width: 89px;
    height: auto;
}

/* two logos: default on the transparent header, "scrolled" on the white one */
.header__logo .logo--scrolled,
.header.is-scrolled .header__logo .logo--default {
    display: none;
}

.header.is-scrolled .header__logo .logo--scrolled {
    display: block;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 37px;
}

.nav__link {
    font-size: 19px;
    font-weight: 400;
    line-height: 23px;
    color: var(--color-white);
    transition: color 0.2s;
}

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

/* CTA inside the nav is used only in the mobile panel */
.nav__cta {
    display: none;
}

.burger {
    display: none;
    position: relative;
    z-index: 110;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition:
        transform 0.25s,
        opacity 0.25s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    height: 991px;
    overflow: hidden;
    background: var(--color-white);
    color: var(--color-white);
}

.hero__media {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* shared by <img> and <video> */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*opacity: 0.4;*/
}

.hero__grid {
    position: absolute;
    top: -180px;
    left: 0;
    width: 1902px;
    height: 1173px;
    max-width: none;
    opacity: 0.06;
}

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

.hero__overlay {
    opacity: 0.6;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(6, 10, 14, 0.6) 0%,
            rgba(6, 10, 14, 0.36) 50%,
            rgba(6, 10, 14, 0.33) 100%
        ),
        linear-gradient(
            to top,
            var(--color-hero) 0%,
            rgba(6, 10, 14, 0.4) 50%,
            rgba(6, 10, 14, 0.55) 100%
        );
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding-top: 659px;
}

.hero__tagline {
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 4.445px;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* decorative line under the tagline (assets/hero-line.svg, 260x4) */
.hero__tagline::after {
    content: "";
    display: block;
    width: 260px;
    height: 4px;
    margin-top: 27px;
    background: url("../images/hero-line.svg") center / 260px 4px no-repeat;
}

.hero__title {
    position: relative;
    margin-top: 15px;
    font-size: 87px;
    font-weight: 400;
    line-height: 94px;
    letter-spacing: -2px;
    color: var(--color-white);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
    background: url("../images/services-bg.png") center / cover no-repeat;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 22px;
    padding-top: 74px;
}

/* --- shared card (white, accent top bar) --- */
.card {
    display: flex;
    flex-direction: column;
    min-height: 332px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.card::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--color-accent);
}

.card:hover {
    box-shadow: 0 11px 17px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    margin: 37px 37px 0;
    border-radius: 50%;
    background: var(--color-icon-bg);
    transition: background 0.25s;
}

.card__icon img {
    width: 21px;
    height: 21px;
    transition:
        transform 0.25s,
        filter 0.25s;
}

/* hover: accent circle, white icon tilted -20deg */
.card:hover .card__icon {
    background: var(--color-accent);
}

.card:hover .card__icon img {
    transform: rotate(-20deg);
    filter: brightness(0) invert(1);
}

.card__title {
    padding: 28px 37px 0;
    font-size: 21px;
    line-height: 29px;
    color: var(--color-dark);
}

.card__list {
    padding: 18px 37px 37px;
}

.card__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 19px;
    line-height: 23px;
    color: var(--color-muted);
}

.card__list li + li {
    padding-top: 12px;
}

.card__list li::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* ==========================================================================
   ADVANTAGES
   ========================================================================== */
.advantages {
    position: relative;
    min-height: 992px;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-white);
}

.advantages__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.advantages__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.4),
        rgba(0, 0, 0, 0)
    );
}

.advantages__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 992px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(6, 216px);
    gap: 18px;
    padding-top: 65px;
}

/* --- shared glass card with accent icon box --- */
.adv {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 205px;
    padding-top: 46px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.15);
    transition:
        background 0.25s,
        box-shadow 0.25s;
}

.adv:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.adv__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: var(--radius);
    background: var(--color-accent);
    box-shadow: 0 0 4px var(--color-accent-glow);
}

.adv__icon img {
    width: 28px;
    height: 28px;
}

.adv__title {
    padding-top: 23px;
    font-size: 19px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: var(--color-white);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
    position: relative;
    min-height: 907px;
    overflow: hidden;
    background: var(--color-white);
}

.about__bg {
    position: absolute;
    top: 71px;
    right: 0;
    width: 960px;
    height: 770px;
    object-fit: cover;
    object-position: bottom;
    pointer-events: none;
}

.about__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding-top: 137px;
    padding-bottom: 137px;
}

/* text column sits on the LEFT in the design (second in RTL flow) */
.about__text {
    order: 2;
    width: 686px;
    flex: 0 0 686px;
}

.about__image {
    order: 1;
    width: 656px;
    flex: 0 0 656px;
    margin-top: 48px;
    margin-right: 69px;
}

/* gentle sway: -15deg (left) → 0 → +15deg (right) → back, forever */
.about__image img {
    transform-origin: 50% 50%;
    animation: about-sway 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes about-sway {
    0% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(-15deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about__image img {
        animation: none;
    }
}

.about__title {
    padding-top: 20px;
    line-height: 69px;
}

.about__body {
    max-width: 574px;
    padding-top: 25px;
    font-size: 19px;
    line-height: 32px;
    color: var(--color-text);
}

.about__body p + p {
    margin-top: 32px;
}

.about__founders {
    margin-top: 46px;
    padding-top: 33px;
    border-top: 1px solid var(--color-border);
}

.about__founders-label {
    font-size: 19px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-gray);
}

.about__founders-label + .about__founder {
    padding-top: 9px;
}

.about__founder {
    font-size: 19px;
    line-height: 35px;
    color: var(--color-text);
}

.about__founder strong {
    color: var(--color-dark);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
    position: relative;
    min-height: 606px;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-white);
}

.process__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.process__grid-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
}

.process__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--section-pad);
    padding-bottom: 100px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(6, 208px);
    gap: 28px;
    padding-top: 74px;
    counter-reset: step;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* dashed connector between steps (drawn to the LEFT of each step, i.e. towards the next one) */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    right: 150px; /* starts at the circle's left edge, drawn towards the next step */
    width: 143px;
    border-top: 1px dashed var(--color-border-light);
}

/* accent line drawn on top of the grey one (animated) */
.step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 46px;
    right: 150px;
    width: 0;
    border-top: 1px dashed var(--color-accent);
    transition: width 0.4s linear;
}

.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 23px;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-accent);
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}

/* ---- scroll-triggered animation (main.js adds .is-active to .steps) ---- */
.steps.is-active .step__num {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(42, 207, 218, 0.35);
}

.steps.is-active .step:not(:last-child)::before {
    width: 143px;
}

/* stagger: circle, then its line, then the next circle... (0.7s per step) */
.steps.is-active .step:nth-child(1) .step__num {
    transition-delay: 0s;
}
.steps.is-active .step:nth-child(1)::before {
    transition-delay: 0.3s;
}
.steps.is-active .step:nth-child(2) .step__num {
    transition-delay: 0.7s;
}
.steps.is-active .step:nth-child(2)::before {
    transition-delay: 1s;
}
.steps.is-active .step:nth-child(3) .step__num {
    transition-delay: 1.4s;
}
.steps.is-active .step:nth-child(3)::before {
    transition-delay: 1.7s;
}
.steps.is-active .step:nth-child(4) .step__num {
    transition-delay: 2.1s;
}
.steps.is-active .step:nth-child(4)::before {
    transition-delay: 2.4s;
}
.steps.is-active .step:nth-child(5) .step__num {
    transition-delay: 2.8s;
}
.steps.is-active .step:nth-child(5)::before {
    transition-delay: 3.1s;
}
.steps.is-active .step:nth-child(6) .step__num {
    transition-delay: 3.5s;
}

@media (prefers-reduced-motion: reduce) {
    .step__num,
    .step:not(:last-child)::before {
        transition: none;
    }
}

.step__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 23px;
    color: var(--color-white);
}

.step__text {
    width: 219px;
    max-width: 100%;
    font-size: 15px;
    line-height: 22px;
    color: var(--color-gray);
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 224px 273px 224px;
    gap: 7px 8px;
    padding-top: 58px;
}

.project {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-dark);
}

.project--tall {
    grid-row: span 2;
}

.project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.project:hover .project__img {
    transform: scale(1.04);
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.project--tall::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.project__info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    color: var(--color-white);
}

.project__title,
.project__loc {
    width: 100%;
}

/* category tag – hidden by default, fades in on hover (Figma 63:411) */
.project__tag {
    display: inline-block;
    height: 25px;
    margin-bottom: 12px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 25px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.3s,
        transform 0.3s;
}

.project:hover .project__tag {
    opacity: 1;
    transform: translateY(0);
}

.project__title {
    font-size: 21px;
    line-height: 21px;
}

.project__loc {
    padding-top: 8px;
    font-size: 15px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-white);
}

.contact__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 997px;
    pointer-events: none;
}

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

.contact__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--color-dark) 0%,
        rgba(10, 10, 10, 0.47) 35%,
        rgba(10, 10, 10, 0.47) 100%
    );
}

.contact__inner {
    position: relative;
    z-index: 1;
    max-width: 1426px; /* 1386 content */
    padding-top: var(--section-pad);
    padding-bottom: 64px;
}

.contact__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-top: 74px;
}

/* --- form --- */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 656px;
    flex: 0 0 656px;
}

.form__row {
    display: flex;
    gap: 18px;
}

.form__row .form__field {
    flex: 1 1 0;
    min-width: 0;
}

/* shared input style */
.form__field {
    width: 100%;
    height: 62px;
    padding: 19px;
    border: 1px solid var(--color-white);
    border-radius: var(--radius-input);
    background: var(--color-white);
    font-size: 19px;
    color: #000;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
}

.form__field::placeholder {
    color: #000;
    opacity: 1;
}

.form__field:focus {
    border-color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.form__field[aria-invalid="true"] {
    border-color: #ff6b6b;
}

.form__field--area {
    height: 154px;
    line-height: 23px;
    resize: vertical;
}

.form__submit {
    width: 100%;
    height: 65px;
}

.form__submit img {
    width: 18px;
    height: 18px;
}

/* --- info + map --- */
.contact__aside {
    width: 656px;
    flex: 0 0 656px;
}

.info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
}

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

.info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-input);
    background: rgba(255, 255, 255, 0.2);
}

.info__icon img {
    width: 17px;
    height: 17px;
}

.info__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info__label {
    padding-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.info__value {
    font-size: 19px;
    font-weight: 400;
    line-height: 23px;
    color: var(--color-white);
    transition: color 0.2s;
}

a.info__value:hover {
    color: var(--color-accent);
}

.map {
    position: relative;
    display: block;
    height: 203px;
    margin-top: 70px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.map__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.map__pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(42, 207, 218, 0.35);
    transform: translate(-50%, -50%);
}

.map__pin::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translate(-50%, -50%);
}

.copyright {
    padding-top: 150px;
    font-size: 21px;
    line-height: 37px;
    text-align: center;
    color: var(--color-white);
}

/* ==========================================================================
   RESPONSIVE – between 1560 and 1024 (scale down the fixed grids)
   ========================================================================== */
@media (max-width: 1600px) {
    .header__inner {
        padding: 0 var(--gutter);
    }

    .advantages__grid {
        grid-template-columns: repeat(6, minmax(0, 216px));
        width: 100%;
    }

    .steps {
        grid-template-columns: repeat(6, minmax(0, 208px));
        width: 100%;
    }

    .step:not(:last-child)::after,
    .step:not(:last-child)::before {
        display: none;
    }

    .about__text {
        flex: 1 1 0;
        width: auto;
    }

    .about__image {
        flex: 0 0 45%;
        width: 45%;
        margin-right: 0;
    }

    .form,
    .contact__aside {
        flex: 1 1 0;
        width: auto;
    }
}

@media (max-width: 1280px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__grid {
        grid-template-columns: repeat(3, 216px);
        width: auto;
    }

    .steps {
        grid-template-columns: repeat(3, 208px);
        width: auto;
        row-gap: 40px;
    }
}

/* ==========================================================================
   RESPONSIVE – mobile / tablet (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-pad: 70px;
        --header-h: 80px;
    }

    body {
        font-size: 17px;
    }

    /* --- header + mobile nav --- */
    .header__logo img {
        width: 56px;
    }

    .header__cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 105;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        width: min(320px, 100%);
        padding: 40px;
        background: var(--color-hero);
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: 28px;
    }

    .nav__link,
    .header.is-scrolled .nav__link {
        font-size: 22px;
        color: var(--color-white);
    }

    .nav__cta {
        display: inline-flex;
    }

    .burger.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .burger.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    body.nav-open {
        overflow: hidden;
    }

    /* --- hero --- */
    .hero {
        height: auto;
        min-height: 640px;
    }

    .hero__content {
        justify-content: flex-end;
        min-height: 640px;
        padding-top: 160px;
        padding-bottom: 60px;
    }

    .hero__tagline {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .hero__title {
        margin-top: 18px;
        font-size: 46px;
        line-height: 54px;
        letter-spacing: -1px;
    }

    .hero__grid {
        display: none;
    }

    /* --- shared head --- */
    .section-title {
        font-size: 36px;
        line-height: 40px;
    }

    .section-sub {
        font-size: 17px;
        line-height: 27px;
    }

    .section-label {
        font-size: 13px;
        letter-spacing: 3.556px;
    }

    /* --- services --- */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
        padding-top: 44px;
    }

    .card {
        min-height: 0;
    }

    .card__icon {
        margin: 24px 24px 0;
    }

    .card__title {
        padding: 20px 24px 0;
        font-size: 19px;
        line-height: 26px;
    }

    .card__list {
        padding: 14px 24px 24px;
    }

    .card__list li {
        font-size: 16px;
        line-height: 22px;
    }

    /* --- advantages --- */
    .advantages,
    .advantages__content {
        min-height: 0;
    }

    .advantages__content {
        padding-top: var(--section-pad);
        padding-bottom: var(--section-pad);
    }

    .advantages__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        width: 100%;
        padding-top: 40px;
    }

    .adv {
        height: 170px;
        padding-top: 32px;
    }

    .adv__title {
        padding-top: 16px;
        font-size: 16px;
    }

    /* --- about --- */
    .about {
        min-height: 0;
    }

    .about__bg {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 50%;
    }

    .about__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding-top: var(--section-pad);
        padding-bottom: var(--section-pad);
    }

    .about__text {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
    }

    .about__image {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .about__title {
        line-height: 44px;
    }

    .about__body {
        max-width: none;
        font-size: 17px;
        line-height: 29px;
    }

    .about__founder {
        font-size: 17px;
        line-height: 30px;
    }

    /* --- process --- */
    .process__content {
        padding-bottom: var(--section-pad);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        width: 100%;
        padding-top: 44px;
    }

    .step__num {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .step__text {
        width: auto;
    }

    /* --- projects --- */
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: 240px;
        gap: 10px;
        padding-top: 40px;
    }

    .project--tall {
        grid-row: auto;
    }

    .project__info {
        padding: 18px;
    }

    .project__title {
        font-size: 18px;
    }

    /* --- contact --- */
    .contact__media {
        width: 100%;
    }

    .contact__media::after {
        background: rgba(10, 10, 10, 0.75);
    }

    .contact__body {
        flex-direction: column;
        gap: 44px;
        padding-top: 44px;
    }

    .form,
    .contact__aside {
        flex: 0 0 auto;
        width: 100%;
    }

    .info {
        gap: 24px 16px;
    }

    .copyright {
        padding-top: 44px;
        font-size: 15px;
        line-height: 26px;
    }
}

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

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

    .steps {
        grid-template-columns: 1fr;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .form__row {
        flex-direction: column;
    }

    .info {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 38px;
        line-height: 46px;
    }
}

/* ==========================================================================
   WORDPRESS-ONLY ADDITIONS
   ========================================================================== */

/* CF7 wrappers: div.wpcf7 is transparent to the flex layout,
   span.wpcf7-form-control-wrap is a column (field + validation tip) */
.contact__body > .wpcf7 {
    display: contents;
}

.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form__row .wpcf7-form-control-wrap {
    flex: 1 1 0;
    min-width: 0;
}

.wpcf7-form-control-wrap .form__field {
    width: 100%;
}

.wpcf7-form .form__row {
    display: flex;
    gap: 18px;
}

/* submit is an <input>, so the send icon comes from CSS */
input.form__submit {
    padding: 0;
    background-image: url("../images/icons/send.svg");
    background-repeat: no-repeat;
    background-position: calc(50% - 66px) center;
    background-size: 18px 18px;
    cursor: pointer;
}

input.form__submit:hover {
    background-color: #1fb9c4;
}

input.form__submit:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.wpcf7-not-valid-tip {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding-right: 19px;
    font-size: 14px;
    line-height: 18px;
    color: #ff6b6b;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 12px 19px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--color-white);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #ff6b6b;
}

.wpcf7-spinner {
    display: none;
}

/* WP nav menu output */
.nav__list .current-menu-item > a {
    color: var(--color-white);
}

/* admin bar offset for the fixed header */
body.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* WYSIWYG content inside the about section */
.about__body p:empty {
    display: none;
}

@media (max-width: 640px) {
    .wpcf7-form .form__row {
        flex-direction: column;
    }
}
