/* ==========================================================================
   High Definition Logistics — site stylesheet
   Hand-authored replacement for the WordPress/Elementor build.
   Tokens mirror the original Elementor global kit.
   ========================================================================== */

@import url("/assets/fonts/fonts.css");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (from Elementor global kit) */
  --c-accent:      #28aeed;
  --c-accent-dark: #1b93cc;
  --c-black:       #000000;
  --c-white:       #ffffff;
  --c-text:        #1b1a1a;
  --c-muted:       #626262;
  --c-hairline:    #ededed;

  /* Type */
  --font-head: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero:  clamp(2.25rem, 1.30rem + 4.20vw, 4.25rem);
  --fs-sub:   clamp(1.25rem, 0.95rem + 1.30vw, 1.75rem);
  --fs-h2:    clamp(1.5rem,  1.20rem + 1.30vw, 2.00rem);
  --fs-h3:    clamp(1.0rem,  0.90rem + 0.45vw, 1.20rem);
  --fs-body:  1rem;
  --fs-small: 0.8125rem;

  /* Spacing */
  --sp-section: clamp(3.5rem, 2.0rem + 6vw, 7rem);
  --gutter:     clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  --wrap:       1140px;

  --header-h: 96px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-accent); color: var(--c-white);
  font-family: var(--font-head); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

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

.section { padding-block: var(--sp-section); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.15em;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--accent { background: var(--c-accent); color: var(--c-white); }
.btn--accent:hover { background: var(--c-accent-dark); color: var(--c-white); }

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.btn--ghost:hover { background: var(--c-white); color: var(--c-black); }

.btn--dark { background: var(--c-black); color: var(--c-white); }
.btn--dark:hover { background: var(--c-muted); color: var(--c-white); }
.btn--dark svg { width: 1em; height: 1em; fill: currentColor; }

.btn__arrow { flex: none; width: 1em; height: 1em; fill: currentColor; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1rem;
  color: var(--c-white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__logo { flex: none; }
.header__logo img { width: clamp(150px, 14vw, 190px); }

/* Utility row — Tracking / Login */
.utility {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.utility__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-white);
}
.utility__link:hover { color: var(--c-accent); text-decoration: none; }
.utility__link svg { width: 0.9em; height: 0.9em; fill: currentColor; }

/* Primary nav — utility row stacked above the menu row */
.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.nav__row { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; align-items: center; gap: 1.25rem; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35rem 0;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-white);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--c-accent); text-decoration: none; }

.nav__caret {
  width: 0.5em; height: 0.5em;
  fill: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  translate: -50% 0;
  min-width: 220px;
  padding: 0.5rem 0;
  background: var(--c-white);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
              visibility 0.18s var(--ease);
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel,
.nav__panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__panel a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c-text);
  white-space: nowrap;
}
.nav__panel a:hover { background: var(--c-hairline); color: var(--c-accent); text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Mobile nav
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6rem 1.75rem 2rem;
    background: var(--c-black);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav[data-open="true"] { transform: translateX(0); }

  .nav__row { flex-direction: column; align-items: stretch; gap: 0; }
  .utility {
    order: -1;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
  }
  .utility__link { font-size: 0.9375rem; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgb(255 255 255 / 0.12); }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0;
    font-size: 1rem;
  }

  .nav__panel {
    position: static;
    translate: none;
    min-width: 0;
    padding: 0 0 0.5rem 1rem;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__panel[data-open="true"] { display: block; }
  .nav__item:hover .nav__panel,
  .nav__item:focus-within .nav__panel { display: none; }
  .nav__item:hover .nav__panel[data-open="true"],
  .nav__item:focus-within .nav__panel[data-open="true"] { display: block; }

  .nav__panel a { color: rgb(255 255 255 / 0.75); padding: 0.6rem 0; }
  .nav__panel a:hover { background: none; color: var(--c-accent); }

  .nav__actions { margin-top: 1.5rem; }
  .nav__actions .btn { flex: 1; justify-content: center; }

  .nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav__backdrop[data-open="true"] { opacity: 1; visibility: visible; }

  body[data-nav-open="true"] { overflow: hidden; }
}

@media (min-width: 1025px) {
  .nav__backdrop { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 44vw, 560px);
  padding-block: calc(var(--header-h) + 2rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--c-black) center / cover no-repeat;
  color: var(--c-white);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgb(0 0 0 / 0.62) 0%,
    rgb(0 0 0 / 0.42) 45%,
    rgb(0 0 0 / 0.22) 100%
  );
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-white);
}
.hero__sub {
  margin: 0.5rem 0 0;
  font-family: var(--font-head);
  font-size: var(--fs-sub);
  font-weight: 400;
  line-height: 1.35;
  color: var(--c-white);
}
.hero__sub em { font-style: italic; }

/* Interior hero — taller, copy sits low-left like the original */
.hero--interior { min-height: clamp(380px, 52vw, 620px); }
.hero--interior .hero__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); }
.hero--interior .hero__sub { font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.5rem); font-weight: 600; }

/* Plain hero — no imagery (Legal, Shipping Terms) */
.hero--plain {
  min-height: 0;
  padding-block: calc(var(--header-h) + 2.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--c-black);
}
.hero--plain::after { display: none; }

/* Hero copy indent, matching the original's left padding */
.hero--indent .wrap { padding-left: clamp(var(--gutter), 5vw, 5rem); }

/* --------------------------------------------------------------------------
   7b. Background video
   -------------------------------------------------------------------------- */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7c. Ken Burns slideshow
   Mirrors Elementor: 5s per slide, 0.5s cross-fade, slow zoom in.
   -------------------------------------------------------------------------- */
.kb {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.kb__slide {
  position: absolute;
  inset: 0;
  background: center center / cover no-repeat;
  opacity: 0;
  will-change: opacity, transform;
}

/* 1 image — nothing to cross-fade, just hold it */
.kb--1 .kb__slide { opacity: 1; }

/* 2 slides — 10s cycle */
.kb--2 .kb__slide { animation: kb-2 10s linear infinite; }
.kb--2 .kb__slide:nth-child(2) { animation-delay: 5s; }

/* 3 slides — 15s cycle */
.kb--3 .kb__slide { animation: kb-3 15s linear infinite; }
.kb--3 .kb__slide:nth-child(2) { animation-delay: 5s; }
.kb--3 .kb__slide:nth-child(3) { animation-delay: 10s; }

@keyframes kb-2 {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes kb-3 {
  0%     { opacity: 0; transform: scale(1); }
  3.33%  { opacity: 1; }
  30%    { opacity: 1; }
  33.33% { opacity: 0; transform: scale(1.12); }
  100%   { opacity: 0; transform: scale(1); }
}

/* Hold the first frame for anyone who'd rather not have motion */
@media (prefers-reduced-motion: reduce) {
  .kb__slide { animation: none; opacity: 0; }
  .kb__slide:first-child { opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. Dot rule (decorative)
   -------------------------------------------------------------------------- */
.dots {
  width: clamp(180px, 22vw, 250px);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   9. Split — alternating image / copy rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split + .split { margin-top: var(--sp-section); }
.split--reverse .split__media { order: 2; }

.split__copy h2 { font-size: var(--fs-h2); }
.split__copy h3 { font-size: var(--fs-h3); font-weight: 600; }
.split__copy > p:first-of-type { margin-top: 0.85rem; }
.split__copy .btn { margin-top: 0.5rem; }

.split__lead { color: var(--c-text); }

/* Layered image pair (large image + offset inset) */
.stack { position: relative; }
.stack__main { width: 88%; }
.stack__inset {
  position: absolute;
  right: 0;
  bottom: -14%;
  width: 46%;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.22);
}
.split--reverse .stack__main { margin-left: auto; }
.split--reverse .stack__inset { right: auto; left: 0; }

/* Photo cropped to a squarer block, as the original's fixed-height columns did */
.media--cover {
  width: 100%;
  aspect-ratio: 11 / 10;
  object-fit: cover;
}

.bullets { margin: 0.85rem 0 1.5rem; padding-left: 1.1rem; list-style: disc; }
.bullets li { margin-bottom: 0.35rem; }
.bullets li::marker { color: var(--c-text); }

/* --------------------------------------------------------------------------
   10. Guarantee row
   -------------------------------------------------------------------------- */
.guarantee__badge { max-width: 400px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   10b. Team grid
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.team__member { text-align: center; }
.team__photo {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 0.9rem;
  aspect-ratio: 1;
  object-fit: cover;
}
.team__name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.team__role {
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--c-muted);
}

@media (max-width: 600px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   10c. Service tiers (Expertise)
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.tier { display: flex; flex-direction: column; align-items: flex-start; }
.tier__icon { width: 100%; max-width: 260px; margin-bottom: 1rem; }
.tier__name { font-size: 1.25rem; }
.tier__list {
  flex: 1;
  margin: 0.6rem 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   10c-ii. Tier pages (HDL1–HDL5)
   -------------------------------------------------------------------------- */
.tier-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Single-column image stack, flush — mirrors the original's 0-gap gallery */
.gallery { display: grid; gap: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tier-page__logo { width: clamp(180px, 22vw, 240px); margin-bottom: 1rem; }
.tier-page__copy h2 { font-size: var(--fs-h2); }
.tier-page__copy > p { margin-top: 0.85rem; }
.tier-page__copy .btn { margin-top: 0.5rem; }

.tier-bullets {
  margin: 1.15em 0;
  color: var(--c-text);
}
.tier-bullets li { margin-bottom: 0.2rem; }
.tier-bullets li::before { content: "• "; }

/* Sub-nav across the tier pages */
.subnav {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
}
.subnav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 2.5vw, 2rem);
}
.subnav a {
  display: inline-block;
  padding: 0.4rem 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--c-accent); text-decoration: none; }
.subnav a[aria-current="page"] {
  color: var(--c-muted);
  border-bottom-color: var(--c-accent);
}

@media (max-width: 860px) {
  .tier-page { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .subnav ul { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   10d. Case studies (Industries & Results)
   -------------------------------------------------------------------------- */
.case {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--c-hairline);
}
.case:first-of-type { border-top: 0; }
.case__title { font-size: var(--fs-h2); margin-bottom: 1.25rem; }

.acc { border-top: 1px solid var(--c-hairline); }
.acc__item { border-bottom: 1px solid var(--c-hairline); }

.acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--c-text);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.acc__trigger:hover { color: var(--c-accent); }
.acc__trigger[aria-expanded="true"] { color: var(--c-accent); }

.acc__icon {
  flex: none;
  width: 0.85rem; height: 0.85rem;
  fill: currentColor;
  transition: transform 0.25s var(--ease);
}
.acc__trigger[aria-expanded="true"] .acc__icon { transform: rotate(45deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { padding: 0 0 1.15rem; }
.acc__panel[data-open="false"] .acc__body { visibility: hidden; }

.quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0 1.25rem;
  border-left: 3px solid var(--c-accent);
}
.quote p { font-style: italic; color: var(--c-text); }
.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--c-muted);
}

.industries {
  margin: 1rem 0 1.15em;
  font-weight: 500;
  color: var(--c-text);
}

.footnote {
  margin-top: 2.5rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   11. Prose (legal / terms pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 76ch; }
.prose h2 { margin: 2.25rem 0 0.75rem; font-size: var(--fs-h2); }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: var(--fs-h3); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.1rem; list-style: disc; }
.prose li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   12. Forms (placeholder — awaiting static form provider)
   -------------------------------------------------------------------------- */
.form-notice {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  background: #fff8e1;
  border-left: 3px solid #f0b429;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.form-notice svg { flex: none; width: 1.1rem; height: 1.1rem; fill: #f0b429; margin-top: 0.15rem; }

.form-wrap { max-width: 720px; }

.contact-list { margin: 1rem 0 1.75rem; line-height: 2; }
.contact-list span { font-weight: 500; color: var(--c-text); }
.contact-list a { color: var(--c-accent); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.form { display: grid; gap: 1rem; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form__group { display: flex; flex-direction: column; gap: 0.35rem; }
.form__group--full { grid-column: 1 / -1; }

.form__label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-text);
}
.form__label .req { color: #d33; }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid #c9c9c9;
  border-radius: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgb(40 174 237 / 0.18);
}
.form__input:disabled,
.form__select:disabled,
.form__textarea:disabled {
  background: #f5f5f5;
  color: #8a8a8a;
  cursor: not-allowed;
}
.form__textarea { min-height: 140px; resize: vertical; }

.form__submit { justify-self: start; }
.form__submit:disabled { opacity: 0.55; cursor: not-allowed; }
.form__submit:disabled:hover { background: var(--c-accent); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--c-black);
  color: var(--c-white);
  overflow: hidden;
}

.footer__watermark {
  position: absolute;
  right: -2%;
  bottom: 22%;
  width: min(52%, 620px);
  opacity: 0.13;
  filter: grayscale(1) brightness(2.4);
  pointer-events: none;
  user-select: none;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__logo img { width: clamp(160px, 16vw, 200px); }

.footer__utility {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  flex-wrap: wrap;
}
.footer__utility a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-white);
}
.footer__utility a:hover { color: var(--c-accent); text-decoration: none; }
.footer__utility svg { width: 0.9em; height: 0.9em; fill: currentColor; }

.footer__nav {
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer__nav a {
  display: inline-block;
  padding: 0.2rem 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--c-white);
}
.footer__nav a:hover { color: var(--c-accent); text-decoration: none; }
.footer__nav .is-child { padding-left: 1rem; }
.footer__nav .is-child::before { content: "– "; color: var(--c-white); }

.footer__bar {
  position: relative;
  z-index: 1;
  padding-block: 1rem;
  background: #0a0a0a;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.7);
}
.footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__legal a { color: rgb(255 255 255 / 0.7); }
.footer__legal a:hover { color: var(--c-accent); text-decoration: none; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .stack__main { width: 100%; }
  .stack__inset { width: 42%; bottom: -10%; }
  .split { margin-bottom: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer__watermark { width: 72%; bottom: 26%; opacity: 0.09; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stack__inset { position: static; width: 68%; margin: 0.75rem 0 0 auto; }
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fade-in-down 0.7s var(--ease) both; }

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer__nav, .footer__utility, .nav__toggle, .form-notice { display: none; }
  body { color: #000; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero::after { display: none; }
}
