/* Nordcrest Projects — B2B landing */

@import url("tokens.css");

:root {
  /* Palette mirrored from PontMeyer (pontmeyer.nl) */
  --font-display: "Syne", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --ink: #001f33;
  --ink-soft: #414849;
  --steel: #164194;
  --steel-deep: #001121;
  --steel-mid: #008088;
  --mist: #ebeeee;
  --paper: #fafafa;
  --white: #ffffff;
  --line: rgba(0, 31, 51, 0.12);
  --accent: #00bdc7;
  --accent-hot: #cc1c3f;
  --accent-soft: #e0f4f5;
  --footer: #2c2c2c;
  --hero-overlay: linear-gradient(
    105deg,
    rgba(0, 17, 33, 0.9) 0%,
    rgba(0, 31, 51, 0.75) 48%,
    rgba(22, 65, 148, 0.45) 100%
  );
  --radius: 2px;
  --container: min(1120px, calc(100% - 2.5rem));
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--steel-mid);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: block;
}

.brand__mark--dark {
  display: none;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__text em {
  font-style: normal;
  font-weight: 600;
  opacity: 0.85;
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.site-header.is-scrolled .brand__mark--light {
  display: none;
}

.site-header.is-scrolled .brand__mark--dark {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s var(--ease);
}

.site-header.is-scrolled .nav a {
  color: var(--ink-soft);
}

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

.nav__cta {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white) !important;
}

.site-header.is-scrolled .nav__cta {
  border-color: var(--steel);
  color: var(--ink) !important;
  background: transparent;
}

.nav__cta:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: currentColor;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 4.25rem 1.25rem auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 0.5rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    color: var(--ink) !important;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav__cta {
    border: 0 !important;
    background: var(--steel);
    color: var(--white) !important;
    text-align: center;
    margin-top: 0.35rem;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent-hot);
  color: var(--white);
}

.btn--primary:hover {
  background: #a81633;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

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

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--accent:hover {
  background: #00a8b2;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--steel-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    url("../assets/hero/warehouse-aisle.jpg") center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(0, 189, 199, 0.12), transparent 50%),
    linear-gradient(105deg, rgba(0, 17, 33, 0.88) 0%, rgba(0, 31, 51, 0.62) 48%, rgba(0, 17, 33, 0.28) 100%);
  pointer-events: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 17, 33, 0.78) 0%, transparent 45%);
  pointer-events: none;
}

.hero.is-ready .hero__media {
  transform: scale(1);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero__brand em {
  font-style: normal;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero__lead {
  max-width: 38ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero__meta {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Sections */

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

.section--mist {
  background: var(--mist);
}

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

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-bottom: 0.85rem;
}

.section--ink .section__eyebrow {
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  max-width: 18ch;
}

.section__intro {
  max-width: 42ch;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.section__intro + .section__intro {
  margin-top: 0.85rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: -0.03em;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.05em;
}

.section--ink .section__intro {
  color: rgba(255, 255, 255, 0.78);
}

.section__head {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-panel {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.about-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.about-panel p {
  color: var(--ink-soft);
  font-size: 1rem;
}

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

/* Materials — BayWa-like category grid, informational only */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.category-grid--12 {
  grid-template-columns: repeat(4, 1fr);
}

.category {
  background: var(--white);
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease);
}

.category:hover {
  background: #fbfcfc;
}

.category__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.category__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.category:hover .category__media img {
  transform: scale(1.04);
}

.category__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.category__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-bottom: 0.55rem;
}

.category h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.category p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 1000px) {
  .category-grid,
  .category-grid--12 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .category-grid,
  .category-grid--12 {
    grid-template-columns: 1fr;
  }

  .category {
    min-height: 0;
  }
}

.note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Services mosaic */

.service-mosaic {
  display: grid;
  gap: 1.25rem;
}

.service-mosaic__row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: clamp(16rem, 32vw, 22rem);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.service-mosaic__row--flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.service-mosaic__row--flip .service-mosaic__media {
  order: 2;
}

.service-mosaic__row--flip .service-mosaic__copy {
  order: 1;
}

.service-mosaic__media {
  position: relative;
  min-height: 14rem;
  background:
    linear-gradient(135deg, rgba(0, 189, 199, 0.14), transparent 55%),
    linear-gradient(160deg, #001f33 0%, #001121 100%);
  overflow: hidden;
}

.service-mosaic__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 17, 33, 0.28);
}

.service-mosaic__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.service-mosaic__row:hover .service-mosaic__media img {
  transform: scale(1.03);
}

.service-mosaic__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.service-mosaic__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.service-mosaic__copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.65rem;
}

.service-mosaic__copy p:last-child {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
  margin: 0;
  font-size: 1.02rem;
}

@media (max-width: 800px) {
  .service-mosaic__row,
  .service-mosaic__row--flip {
    grid-template-columns: 1fr;
  }

  .service-mosaic__row--flip .service-mosaic__media,
  .service-mosaic__row--flip .service-mosaic__copy {
    order: unset;
  }

  .service-mosaic__media {
    min-height: 12rem;
    aspect-ratio: 16 / 10;
  }
}

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

/* Contact band (between process and coverage) */

.newsletter {
  background: var(--ink);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.newsletter__title {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  color: var(--white);
  margin-bottom: 0.65rem;
  max-width: 22ch;
}

.newsletter__text {
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
  margin: 0;
  font-size: 1.02rem;
}

.newsletter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.newsletter__btn {
  flex-shrink: 0;
  text-align: center;
  padding-inline: 1.5rem;
  border-radius: var(--radius);
}

.newsletter__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

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

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

  .newsletter__actions {
    justify-content: flex-start;
  }

  .newsletter__btn {
    width: 100%;
  }
}

/* Process */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process__step {
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--steel);
}

.process__step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-bottom: 0.7rem;
}

.process__step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.process__step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

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

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

/* Partnership pillars */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border-top: 3px solid var(--ink);
  min-height: 100%;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.pillar:hover {
  border-top-color: var(--accent);
  transform: translateY(-2px);
}

.pillar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--mist);
}

.pillar__icon svg {
  display: block;
}

.pillar__title {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin: 0 0 0.65rem;
}

.pillar__text {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36ch;
  flex: 1;
}

.pillar__cta {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.pillar__cta:hover {
  color: var(--steel);
  border-bottom-color: var(--steel);
}

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

/* Coverage */

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.coverage-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-left: 3px solid var(--steel);
}

.coverage-card h3 {
  font-size: 1.25rem;
}

.coverage-card p,
.coverage-card ul {
  color: var(--ink-soft);
}

.coverage-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.coverage-card li {
  margin-bottom: 0.35rem;
}

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

/* FAQ */

#faq .section__head {
  text-align: center;
  margin-inline: auto;
}

#faq .section__title {
  margin-inline: auto;
  text-align: center;
  max-width: none;
}

#faq .section__intro {
  margin-inline: auto;
}

.faq {
  max-width: 48rem;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  text-align: left;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.25s var(--ease);
  position: static;
}

.faq__q:hover {
  color: var(--steel);
}

.faq__q > span:first-child {
  max-width: none;
  flex: 1;
}

.faq__icon {
  position: relative;
  right: auto;
  top: auto;
  margin-top: 0;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq__icon::before {
  inset: 50% 0 auto;
  height: 2px;
  transform: translateY(-50%);
}

.faq__icon::after {
  inset: 0 auto 0 50%;
  width: 2px;
  transform: translateX(-50%);
}

.faq__item.is-open .faq__icon::after {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

.faq__a {
  overflow: hidden;
  padding: 0 0 1.35rem;
  max-width: 46ch;
  margin-inline: 0;
  text-align: left;
}

.faq__a[hidden] {
  display: none;
}

.faq__a p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.15rem;
}

.contact-details dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-details a:hover {
  border-color: var(--steel);
}

.form {
  background: var(--white);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__field {
  margin-bottom: 1rem;
}

.form__field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--steel-mid);
  outline-offset: 1px;
}

.form__field input.is-invalid,
.form__field select.is-invalid,
.form__field textarea.is-invalid {
  border-color: #cc1c3f;
  background: rgba(204, 28, 63, 0.04);
}

.form__field input.is-invalid:focus,
.form__field select.is-invalid:focus,
.form__field textarea.is-invalid:focus {
  outline-color: #cc1c3f;
}

.form__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

.form__status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--mist);
  border-left: 3px solid var(--steel);
  font-size: 0.95rem;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-success {
  background: #eef5ef;
  border-left-color: #3d6b4f;
  color: #1e3a2a;
}

@media (max-width: 800px) {
  .contact-grid,
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal--soft {
  transform: translateY(16px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Stagger children when parent enters */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.34s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 0.4s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: 0.46s; }
.reveal-stagger.is-in > *:nth-child(9) { transition-delay: 0.52s; }
.reveal-stagger.is-in > *:nth-child(10) { transition-delay: 0.58s; }
.reveal-stagger.is-in > *:nth-child(11) { transition-delay: 0.64s; }
.reveal-stagger.is-in > *:nth-child(12) { transition-delay: 0.7s; }

.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}

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

  .reveal,
  .reveal-stagger > *,
  .hero__media {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Legal pages */

body.theme-light {
  background: var(--paper);
}

.legal-header {
  position: static;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-header .brand__mark--dark {
  display: block !important;
}

.legal-header .brand__mark--light {
  display: none !important;
}

.legal-header .brand,
.legal-header .nav a {
  color: var(--ink) !important;
}

.legal-header .nav__cta {
  border-color: var(--steel) !important;
  color: var(--ink) !important;
}

.legal {
  padding: 4rem 0 5rem;
}

.legal__inner {
  max-width: 720px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.legal__table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 36%;
  color: var(--ink);
}

.legal-nav {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
