/* ============================================================
   EIZO — Hero section
   Brand: #99CC33 (green) · #0B1A2E (ink) · #163058 (navy)
          · #8AA4C9 (slate) · #FFFFFF
   Fonts: Outfit (display) + Inter (body)
   ============================================================ */

:root {
    --green: #99cc33;
    --green-2: #aad94a;
    --body: #000f22;
    --strip: #042558;
    --card: #042558;
    --testimonial-card: #0b1a2e;
    --ink: #0b1a2e;
    --navy: #163058;
    --slate: #8aa4c9;
    --white: #ffffff;
    --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --container: 1280px;
    --gutter: clamp(24px, 5vw, 80px);
    --contact-form-width: min( calc((min(var(--container), 100vw) - (2 * var(--gutter)) - clamp(32px, 5vw, 64px)) * 1.1 / 2.1), calc(100vw - 48px));
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
}
[id] {
    scroll-margin-top: 24px;
}
body {
    font-family: var(--font-body);
    color: var(--white);
    background: var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-size: 16px;
}
img, svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px) var(--gutter) 0;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("assets/Bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient( 90deg, rgba(4, 34, 84, 1) 0%, rgba(4, 34, 84, 0) 100%);
}

/* Logo (top-left) */

.hero__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: clamp(40px, 7vh, 72px);
}
.hero__logo img {
    height: clamp(34px, 3.4vw, 42px);
    width: auto;
}

/* Main content block — top-left anchored, NOT vertically centered */

.hero__content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: clamp(80px, 12vh, 140px);
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
    color: var(--white);
    text-align: left;
    max-width: 820px;
}
.hero__title strong {
    font-weight: 700;
    display: inline;
}
.hero__lede {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 32px;
    max-width: 760px;
    font-weight: 400;
    text-align: left;
}
.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn--primary {
    background: var(--green);
    color: var(--ink);
    border-color: var(--green);
}
.btn--primary:hover {
    background: var(--green-2);
    border-color: var(--green-2);
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
    transform: translateY(-1px);
}
.btn--ghost svg {
    margin-top: 1px;
}

/* ============================================================
   INDUSTRIES STRIP (bottom)
   ============================================================ */

.industries {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--strip);
    color: var(--white);
    padding: 14px 0;
    overflow: hidden;
    z-index: 1;
}
.industries__track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.industries__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0 13px;
    white-space: nowrap;
}
.industries__list li {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--green);
}
.industries__dot {
    font-size: 10px !important;
    font-weight: 400 !important;
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .hero__title {
        font-size: 44px;
    }
    /* Below desktop, let the title wrap naturally — drop the forced line breaks */
    .hero__title br {
        display: none;
    }
}
@media (max-width: 760px) {
    .hero {
        padding-top: 24px;
    }
    .hero__logo {
        margin-bottom: 48px;
    }
    .hero__content {
        padding-bottom: 100px;
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__actions {
        width: 100%;
    }
    .btn {
        padding: 12px 22px;
        font-size: 13px;
    }
    .industries__list {
        gap: 18px;
        padding: 0 9px;
    }
    .industries__list li {
        font-size: 11px;
        letter-spacing: 0.1em;
    }
}
@media (prefers-reduced-motion: reduce) {
    .industries__track {
        animation: none;
    }
}

/* ============================================================
   SERVICES SECTION  (Your long term partner)
   ============================================================ */

.services {
    background: var(--body);
    color: var(--white);
    padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.services__head {
    text-align: center;
    margin: 0 auto clamp(48px, 6vw, 80px);
    max-width: 900px;
}
.services__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--green);
}
.services__sub {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.85);
}
.services__grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

/* Accordion */

.accordion {
    display: flex;
    flex-direction: column;
}
.acc {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.acc:first-child {
    border-top: 1px solid transparent;
}
.acc__head {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 22px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--white);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(15px, 1.25vw, 18px);
    letter-spacing: -0.005em;
    transition: color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.acc__head:focus-visible {
    color: var(--green);
}
.acc__head * {
    pointer-events: none;
}
.acc__head:hover {
    color: var(--green);
}
.acc__icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.acc__icon svg {
    display: block;
}

/* Rotate the vertical bar to morph + → × when open */

.acc__icon-v {
    transform-origin: 12px 12px;
    transition: transform 0.3s ease;
}
.acc.is-open .acc__icon-v {
    transform: rotate(90deg);
}
.acc.is-open .acc__head {
    padding-bottom: 12px;
}
.acc__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.acc.is-open .acc__body {
    max-height: 400px;
}
.acc__list {
    list-style: none;
    margin: 0;
    padding: 0 4px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.acc__list li {
    padding-left: 18px;
    position: relative;
}
.acc__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-size: 16px;
    line-height: 1.4;
}

/* Image — fully rectangular, with a thin navy outline AROUND the whole frame
   PLUS one diagonal stroke cutting across the top-right corner.
   Matches the reference design exactly. */

.services__media {
    --cut: 100px;
    /* length of the diagonal stroke (along each axis) */
    --line: 12px;
    /* thickness of the navy outline / diagonal */
    --line-color: #0B1A2E;
    /* same navy as the page body */
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 5;
    border: 0px solid var(--line-color);
    /* full rectangular outline */
    overflow: hidden;
}
.services__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Diagonal stroke across the top-right corner only.
   ::after is a square pinned to the top-right; clip-path turns it into a thin
   diagonal LINE (two parallel triangles forming a thin strip). */

.services__media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: var(--cut);
    height: var(--cut);
    background: var(--line-color);
    pointer-events: none;
    /* Thin diagonal line: a sliver running from top-left to bottom-right of this square. */
    clip-path: polygon( 0 0, calc(var(--line) * 1.42) 0, 100% calc(100% - (var(--line) * 1.42)), 100% 100%);
    -webkit-clip-path: polygon( 0 0, calc(var(--line) * 1.42) 0, 100% calc(100% - (var(--line) * 1.42)), 100% 100%);
}
@media (max-width: 860px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
    .services__media {
        aspect-ratio: 4 / 3;
        order: -1;
    }
}

/* ============================================================
   TRUSTED BY BRANDS
   ============================================================ */

.trusted {
    background: var(--body);
    padding: clamp(56px, 8vw, 96px) 0 0;
    text-align: center;
}
.trusted__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 auto clamp(40px, 5vw, 64px);
    padding: 0 var(--gutter);
    color: rgba(255, 255, 255, 0.88);
}
.trusted__title span {
    color: var(--green);
    font-weight: 700;
}
.trusted__bar {
    background: var(--strip);
    padding: clamp(14px, 2vw, 20px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.trusted__track {
    display: flex;
    width: max-content;
    animation: trusted-carousel 40s linear infinite;
}
.trusted__logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(48px, 8vw, 96px);
    flex-shrink: 0;
}
.trusted__logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trusted__logo {
    display: block;
    height: clamp(24px, 3vw, 36px);
    width: auto;
    max-width: none;
    object-fit: contain;
    opacity: 0.95;
}
.trusted__logo--lt {
    height: clamp(40px, 5vw, 56px);
}
@keyframes trusted-carousel {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .trusted__track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }
    .trusted__logos[aria-hidden="true"] {
        display: none;
    }
    .trusted__logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px 48px;
    }
}

/* ============================================================
   WHY CHOOSE EIZO
   ============================================================ */

.why {
    padding: clamp(56px, 8vw, 88px) var(--gutter);
    text-align: center;
}
.why__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 auto clamp(48px, 6vw, 72px);
    color: var(--white);
}
.why__title span {
    color: var(--green);
    font-weight: 700;
}
.why__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.why__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.why__icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #112B5A;
    /* solid mid-navy circle (matches reference) */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.why__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}
.why__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.45;
    letter-spacing: -0.005em;
    margin: 0;
    color: var(--white);
    text-align: center;
}
@media (max-width: 760px) {
    .why__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why__icon {
        width: 68px;
        height: 68px;
    }
    .why__icon img {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */

.testimonials {
    padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(48px, 6vw, 72px);
    text-align: center;
}
.testimonials__title {
    margin: 0 auto clamp(40px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.15;
}
.testimonials__title-green {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 40px);
    letter-spacing: -0.01em;
    color: var(--green);
}
.testimonials__title-white {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: -0.005em;
    color: rgba(255, 255, 255, 0.9);
}
.testimonials__slider {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}
.testimonials__viewport {
    flex: 1;
    overflow: hidden;
}
.testimonials__track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.testimonial-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    background: var(--testimonial-card);
    padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px) clamp(28px, 3vw, 36px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-card__quote {
    font-family: var(--font-body);
    font-size: clamp(12px, 0.95vw, 14px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 20px;
    flex: 1;
}
.testimonial-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--white);
    margin: 0 0 16px;
}
.testimonial-card__stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.testimonial-card__stars span {
    width: 14px;
    height: 14px;
    background-color: var(--green);
    clip-path: polygon( 50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.testimonials__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.testimonials__arrow svg {
    width: 18px;
    height: 18px;
}
.testimonials__arrow:hover:not(:disabled) {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}
.testimonials__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.testimonials__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(28px, 4vw, 40px);
}
.testimonials__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(138, 164, 201, 0.45);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.testimonials__dots button.is-active {
    background: var(--white);
}
.testimonials__dots button:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.5);
}
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}
@media (max-width: 640px) {
    /* Hide arrows; one card centered with neighbors peeking in from both sides */
    .testimonials__arrow {
        display: none;
    }
    .testimonials__slider {
        gap: 0;
    }
    .testimonials__viewport {
        overflow: hidden;
        padding: 0;
    }
    .testimonials__track {
        gap: 16px;
    }
    .testimonial-card {
        flex: 0 0 76%;
        opacity: 0.4;
        transform: scale(0.95);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .testimonial-card.is-current {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.contact__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("assets/contact-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Flat dark navy overlay — uniform tint, photo still visible behind */

.contact__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(15, 28, 56, 0.72);
}
.contact__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.contact__copy {
    color: var(--white);
    padding-top: clamp(8px, 1.5vw, 24px);
}
.contact__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.contact__title-line {
    display: block;
}
.contact__sub {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.3;
    margin: 0 0 clamp(40px, 5vw, 60px);
    color: rgba(255, 255, 255, 0.95);
}
.contact__phone {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--white);
}
.contact__phone a {
    color: var(--white);
    text-decoration: none;
}
.contact__phone a:hover {
    color: var(--green);
}

/* Form panel — #000F22 at 58% opacity, photo visible through the panel */

.contact__form-wrap {
    background: rgba(0, 15, 34, 0.58);
}
.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px clamp(20px, 2.5vw, 28px);
    padding: clamp(28px, 3vw, 36px) clamp(24px, 3vw, 32px) clamp(28px, 3vw, 36px);
}
.contact__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.contact__field--full {
    grid-column: 1 / -1;
}
.contact__label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.01em;
}
.contact__field input, .contact__field textarea, .contact__field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 13px;
    color: #2b2b2b;
    background: var(--white);
    border: none;
    border-radius: 2px;
    padding: 12px 14px;
    min-height: 42px;
    outline: none;
    transition: box-shadow 0.2s ease;
}
.contact__field input::placeholder, .contact__field textarea::placeholder {
    color: #b8b8b8;
}
.contact__field input:focus, .contact__field textarea:focus, .contact__field select:focus {
    box-shadow: 0 0 0 1px var(--green);
}

/* Tall textarea matching the screenshot proportions */

.contact__field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

/* Native dropdown with solid black filled triangle on the right */

.contact__select-wrap {
    position: relative;
    display: block;
}
.contact__select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M0 0 L10 0 L5 6 Z' fill='%23000'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 6px;
}

/* Green button — spans both columns inside the form padding, matching the
   width of the input fields above (no negative margins / full-bleed). */

.contact__submit {
    grid-column: 1 / -1;
    width: 100%;
    margin: clamp(8px, 1.5vw, 16px) 0 0;
    min-height: 52px;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    background: var(--green);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.25s ease;
}
.contact__submit:hover {
    background: var(--green-2);
}
@media (max-width: 900px) {
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact__copy {
        padding-top: 0;
    }
    .contact__sub {
        margin-bottom: 24px;
    }
    .contact__form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--body);
    color: var(--white);
}
.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(28px, 3vw, 40px) var(--gutter) clamp(20px, 2.5vw, 28px);
}
.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: clamp(20px, 2.5vw, 28px);
}
.footer__logo {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}
.footer__logo:hover {
    opacity: 0.85;
}
.footer__logo img {
    height: clamp(36px, 3.4vw, 44px);
    width: auto;
    display: block;
}
.footer__nav {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}
.footer__nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__nav a:hover {
    color: var(--green);
}
.footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: clamp(18px, 2vw, 24px);
}
.footer__copy {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.01em;
}
.footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 26px);
}
.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--white);
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover {
    color: var(--green);
    transform: translateY(-1px);
}
.footer__social .bx {
    font-size: inherit;
    line-height: 1;
}
.footer__social .footer__icon-x {
    display: block;
    width: 0.8em;
    height: 0.8em;
    /* transform: scale(1.12); */
}
@media (max-width: 720px) {
    /* Top: logo (left) + nav links stacked vertically (right) */
    .footer__top {
        align-items: flex-start;
        gap: 20px;
    }
    .footer__nav {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    /* Bottom: copy and socials both centered, stacked */
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
    .footer__copy {
        font-size: 12.5px;
        text-align: center;
        max-width: 280px;
        line-height: 1.5;
    }
}

/* ---- Contact form flash messages ---- */

.contact__flash {
    grid-column: 1 / -1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact__flash p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.contact__flash--success {
    background: rgba(46, 196, 137, 0.15);
    color: #2EC489;
    border: 1px solid rgba(46, 196, 137, 0.4);
}
.contact__flash--error {
    background: rgba(255, 86, 86, 0.15);
    color: #FF7676;
    border: 1px solid rgba(255, 86, 86, 0.4);
}

/* ---- Contact form popup ---- */

.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.contact-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.contact-popup__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(22, 48, 88, 0.45) 0%, transparent 70%), radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 50%), rgba(2, 8, 20, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.contact-popup__dialog {
    position: relative;
    z-index: 1;
    width: var(--contact-form-width);
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 8px 24px rgba(0, 0, 0, 0.35), 0 32px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s ease;
    scrollbar-width: none;
}
.contact-popup__dialog::-webkit-scrollbar {
    display: none;
}
.contact-popup.is-open .contact-popup__dialog {
    transform: translateY(0) scale(1);
}
.contact-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.contact-popup__close:hover {
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
}
.contact-popup__sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.contact-popup .contact__form-wrap {
    background: rgba(0, 15, 34, 0.58);
    min-width: 0;
}
body.contact-popup-open {
    overflow: hidden;
}
@media (max-width: 900px) {
    .contact-popup__dialog {
        width: min(calc(100vw - 24px), var(--contact-form-width));
        max-height: calc(100dvh - 24px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .contact-popup .contact__form {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 44px 20px 24px;
    }
    .contact-popup .contact__field {
        min-width: 0;
    }
}
@media (max-width: 640px) {
    .contact-popup {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }
    .contact-popup__dialog {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        height: 100dvh;
        height: 100svh;
        min-height: 100dvh;
        min-height: 100svh;
        max-height: none;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
        transform: translateY(100%);
    }
    .contact-popup.is-open .contact-popup__dialog {
        transform: translateY(0);
    }
    .contact-popup__close {
        top: max(12px, env(safe-area-inset-top, 12px));
        right: 12px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.45);
    }
    .contact-popup .contact__form-wrap {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        overflow: hidden;
    }
    .contact-popup .contact__form {
        flex: 1;
        grid-template-columns: 1fr !important;
        gap: 12px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: calc(52px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .contact-popup .contact__field input, .contact-popup .contact__field select, .contact-popup .contact__field textarea {
        font-size: 16px;
        max-width: 100%;
        min-height: 44px;
    }
    .contact-popup .contact__field textarea {
        min-height: 96px;
    }
    .contact-popup .contact__select-wrap, .contact-popup .contact__select-wrap select {
        max-width: 100%;
    }
    .contact-popup .contact__submit {
        min-height: 48px;
        margin-top: 4px;
        font-size: 15px;
    }
}
@media (max-width: 640px) and (max-height: 700px) {
    .contact-popup .contact__form {
        gap: 10px;
        padding-top: calc(40px + env(safe-area-inset-top, 0px));
    }
    .contact-popup .contact__field textarea {
        min-height: 72px;
    }
    .contact-popup .contact__submit {
        min-height: 44px;
        padding: 12px 20px;
    }
}