﻿/* Shared brand values. System fonts keep the site fast and self-contained. */
:root {
    --color-ink: #202428;
    --color-muted: #626970;
    --color-orange: #ec721b;
    --color-orange-dark: #a94308;
    --color-paper: #ffffff;
    --color-warm: #f6f5f2;
    --color-line: #dedfda;
    --site-width: 1280px;
    --header-height: 100px;
    --section-space: clamp(4rem, 8vw, 7.5rem);
}

/* Base document and predictable element sizing. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-underline-offset: 0.25em;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 5px;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

p {
    overflow-wrap: break-word;
}

    p + p {
        margin-top: 1.25rem;
    }

sup {
    font-size: 0.55em;
    line-height: 0;
    vertical-align: super;
}

.site-container {
    width: min(var(--site-width), calc(100% - 80px));
    margin-inline: auto;
}

/* Keyboard users can bypass the header and reach the page content. */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 12px 20px;
    transform: translateY(-160%);
    background: var(--color-paper);
    color: var(--color-ink);
    font-weight: 600;
}

    .skip-link:focus {
        transform: translateY(0);
    }

/* Fixed header overlays the hero without consuming its viewport height. */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: var(--color-paper);
    color: var(--color-ink);
    border-bottom: 1px solid transparent;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header-height);
}

.site-header--overlay:not(.is-scrolled):not(.is-menu-open) {
    background: transparent;
    color: #ffffff;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    background: var(--color-paper);
    color: var(--color-ink);
    border-bottom-color: var(--color-line);
    box-shadow: 0 4px 24px rgb(0 0 0 / 5%);
}

/* Light means light lettering for the hero; dark means dark lettering for white. */
.site-brand {
    display: grid;
    flex: 0 1 310px;
    width: 310px;
    min-width: 0;
    text-decoration: none;
}

.site-brand__logo {
    grid-area: 1 / 1;
    width: 100%;
    height: 68px;
    object-fit: contain;
    object-position: left center;
}

/* Default white header: show the logo designed for light backgrounds. */
.site-brand__logo--light {
    visibility: visible;
}

.site-brand__logo--dark {
    visibility: hidden;
}

/* Transparent header over the dark hero: show the dark-background logo. */
.site-header--overlay:not(.is-scrolled):not(.is-menu-open) .site-brand__logo--light {
    visibility: hidden;
}

.site-header--overlay:not(.is-scrolled):not(.is-menu-open) .site-brand__logo--dark {
    visibility: visible;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 0.45em;
}

    .site-nav a:hover {
        text-decoration: underline;
        text-decoration-color: var(--color-orange);
        text-decoration-thickness: 2px;
    }

.site-nav .site-nav__contact {
    justify-content: center;
    min-width: 112px;
    padding: 8px 22px;
    border: 1px solid currentColor;
}

    .site-nav .site-nav__contact:hover {
        background: var(--color-orange);
        border-color: var(--color-orange);
        color: var(--color-ink);
        text-decoration: none;
    }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
}

.nav-toggle__line {
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Pages without a hero need room beneath the fixed header. */
.no-hero main {
    padding-top: var(--header-height);
}

/* Hero uses an actual image element so its alt text lives in the page markup.
   A minimum height fills the viewport while allowing enlarged text to fit. */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--header-height) + 80px) 110px;
    background: #192328;
    color: #ffffff;
}

.hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(12 20 25 / 88%) 0%, rgb(12 20 25 / 68%) 55%, rgb(12 20 25 / 40%) 100%);
    content: "";
}

.hero__content {
    max-width: 900px;
}

.eyebrow {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--color-orange-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffb675;
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(2.75rem, 5.8vw, 5.5rem);
    line-height: 1.06;
}

.hero__description {
    max-width: 620px;
    margin-top: 1.75rem;
    color: #edf0f1;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

    .hero__scroll::after {
        width: 8px;
        height: 8px;
        transform: rotate(45deg);
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        content: "";
    }

/* Shared actions: warm orange with dark lettering provides strong contrast. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.button--primary {
    background: var(--color-orange);
    color: var(--color-ink);
}

    .button--primary:hover {
        background: #ff9343;
    }

.button--outline {
    border-color: currentColor;
    background: transparent;
    color: inherit;
}

    .button--outline:hover {
        background: rgb(255 255 255 / 12%);
    }

.button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--color-orange-dark);
    font-weight: 600;
    text-decoration-thickness: 1px;
}

    .text-link::after {
        content: "\2192";
    }

    .text-link:hover {
        text-decoration-thickness: 2px;
    }

/* Corporate introduction: restrained typography and generous spacing. */
.section {
    padding-block: var(--section-space);
}

.section--warm {
    background: var(--color-warm);
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

    .section-heading h2,
    .about__heading,
    .contact__heading {
        font-size: clamp(2rem, 3.5vw, 3.25rem);
    }

    .section-heading p {
        max-width: 640px;
        margin-top: 1.25rem;
        color: var(--color-muted);
        font-size: 1.1rem;
    }

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(2rem, 7vw, 7rem);
}

.about__copy {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.about__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--color-line);
    list-style: none;
    color: var(--color-ink);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Keep every company row as a direct child of company-list.
   Each row contains its figure first, followed by its copy.
   Even rows reverse visually on desktop; mobile keeps a consistent order. */
.company-list {
    display: grid;
    gap: clamp(3.5rem, 7vw, 6rem);
}

.company-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "media copy";
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

    .company-row:nth-child(even) {
        grid-template-areas: "copy media";
    }

    .company-row + .company-row {
        padding-top: clamp(3.5rem, 7vw, 6rem);
        border-top: 1px solid var(--color-line);
    }

.company-row__media {
    grid-area: media;
    min-width: 0;
}

.company-row__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    background: #e5e7e5;
}

.company-row__media figcaption {
    margin-top: 0.85rem;
    color: var(--color-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.company-row__copy {
    grid-area: copy;
    min-width: 0;
}

.company-row__logo {
    width: auto;
    max-width: min(100%, 280px);
    max-height: 72px;
    margin-bottom: 1.75rem;
    object-fit: contain;
    object-position: left;
}

.company-row__copy h3 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
}

.company-row__copy p {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.company-row__copy .text-link {
    margin-top: 1.5rem;
}

/* Corporate inquiry section and accessible form controls. */
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(2.5rem, 7vw, 7rem);
}

.contact__intro > p {
    margin-top: 1.5rem;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.contact__details {
    margin-top: 2rem;
    font-style: normal;
}

    .contact__details a {
        overflow-wrap: anywhere;
    }

.contact-form {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.form-field {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    min-width: 0;
}

    .form-field label {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 12px 14px;
        border: 1px solid #a5abb0;
        border-radius: 2px;
        background: var(--color-paper);
        color: var(--color-ink);
        font-size: 1rem;
    }

    .form-field textarea {
        min-height: 160px;
        resize: vertical;
    }

        .form-field input:focus,
        .form-field select:focus,
        .form-field textarea:focus {
            border-color: var(--color-orange-dark);
        }

    .form-field .input-validation-error {
        border-color: #a12622;
    }

.field-validation-error,
.validation-summary-errors {
    color: #a12622;
    font-size: 0.875rem;
}

.field-validation-valid,
.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.form-note {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.form-status {
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-line);
    border-left-width: 3px;
}

.form-status--success {
    border-left-color: #2e7046;
    background: #f0f7f2;
    color: #245736;
}

.form-status--error {
    border-left-color: #a12622;
    background: #fff3f2;
    color: #8b211e;
}

.contact-form > .button {
    justify-self: start;
}

/* Quiet corporate footer. */
.site-footer {
    padding-block: 3.5rem 1.5rem;
    background: var(--color-ink);
    color: #ffffff;
}

.site-footer__main {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 3rem;
    padding-bottom: 3rem;
}

.site-footer__identity {
    max-width: 460px;
}

.site-footer__brand {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.site-footer__identity p {
    margin-top: 0.75rem;
    color: #c0c5c9;
    font-size: 0.9rem;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

    .site-footer__nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 0.85rem;
        text-decoration: none;
    }

        .site-footer__nav a:hover,
        .site-footer__brand:hover {
            text-decoration: underline;
            text-decoration-color: var(--color-orange);
        }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 16%);
    color: #c0c5c9;
    font-size: 0.75rem;
}

    .site-footer__bottom p + p {
        margin-top: 0;
    }

/* Tablet and mobile navigation.
   site.js will add is-navigation-ready only after binding the menu controls.
   Without JavaScript, navigation remains visible in normal document flow. */
@media (max-width: 900px) {
    :root {
        --header-height: 84px;
    }

    .site-container {
        width: calc(100% - 40px);
    }

    .site-header__inner {
        flex-wrap: wrap;
        gap: 0;
        padding-block: 10px;
    }

    .site-brand {
        flex-basis: 250px;
        width: 250px;
        max-width: calc(100% - 68px);
    }

    .site-brand__logo {
        height: 60px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav__list {
        flex-wrap: wrap;
        gap: 8px 20px;
        padding-block: 12px;
    }

    .site-header:not(.is-navigation-ready) {
        position: relative;
        background: var(--color-paper);
        color: var(--color-ink);
    }

        /* Without JavaScript, the mobile header has a white background. */
        .site-header:not(.is-navigation-ready) .site-brand__logo--light {
            visibility: visible;
        }

        .site-header:not(.is-navigation-ready) .site-brand__logo--dark {
            visibility: hidden;
        }

    body.no-hero:has(.site-header:not(.is-navigation-ready)) main {
        padding-top: 0;
    }

    .is-navigation-ready .nav-toggle:not([hidden]) {
        display: inline-flex;
    }

    .is-navigation-ready .site-nav {
        position: absolute;
        inset: 100% 0 auto;
        display: none;
        max-height: calc(100vh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        padding: 12px 20px 24px;
        border-bottom: 1px solid var(--color-line);
        background: var(--color-paper);
        color: var(--color-ink);
        box-shadow: 0 16px 24px rgb(0 0 0 / 8%);
    }

    .is-navigation-ready.is-menu-open .site-nav {
        display: block;
    }

    .is-navigation-ready .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: min(100%, var(--site-width));
        margin-inline: auto;
    }

    .is-navigation-ready .site-nav a {
        width: 100%;
        padding: 10px 12px;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .company-row,
    .company-row:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "media" "copy";
        gap: 2rem;
    }

    .company-row__image {
        aspect-ratio: 16 / 10;
    }

    .site-footer__main {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Small screens retain comfortable targets and readable form fields. */
@media (max-width: 540px) {
    .hero {
        padding-block: calc(var(--header-height) + 50px) 100px;
    }

        .hero h1 {
            font-size: clamp(2.25rem, 10vw, 3.25rem);
        }

    .hero__description {
        font-size: 1rem;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

        .hero__actions .button {
            width: 100%;
        }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form > .button {
        width: 100%;
    }

    .site-footer__nav {
        flex-direction: column;
        gap: 4px;
    }
}

/* Respect visitor preferences without hiding any content. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
