/* ============================================================
   RezCom Surface Solutions — Design System
   Brand: architectural blue / white / black
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette — architectural blue on white and black */
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-surface-2: #edf1f6;
  --color-divider: #e3e8ef;
  --color-border: oklch(from #0e141b l c h / 0.12);

  --color-text: #0e141b;
  --color-text-muted: #55616e;
  --color-text-faint: #8b95a1;

  --color-primary: #1757a8;
  --color-primary-hover: #0f3f80;
  --color-primary-deep: #0b2c5c;

  --color-dark: #0b121d;
  --color-dark-2: #101a2a;
  --color-dark-border: oklch(from #ffffff l c h / 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px oklch(0.15 0.02 260 / 0.06);
  --shadow-md: 0 6px 20px oklch(0.15 0.02 260 / 0.1);
  --shadow-lg: 0 18px 44px oklch(0.15 0.02 260 / 0.16);

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --content-default: 1160px;
  --content-wide: 1280px;

  --header-h: 74px;
}

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.container-wide {
  max-width: var(--content-wide);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-dark {
  background: var(--color-dark);
  color: #f2f5f9;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: #b6c0cd;
}

.section-tint {
  background: var(--color-surface);
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-dark .eyebrow {
  color: #6ea6e8;
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.04;
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.08;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.25;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 58ch;
}

.section-dark .lede {
  color: #b6c0cd;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  margin-top: var(--space-10);
}

.prose h3 {
  margin-top: var(--space-8);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: var(--space-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 44px;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-primary-deep);
}

.btn-outline {
  border-color: oklch(from var(--color-text) l c h / 0.25);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.btn-light {
  background: #fff;
  color: var(--color-dark);
}

.btn-light:hover {
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-color: oklch(from #ffffff l c h / 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: oklch(from #ffffff l c h / 0.08);
}

.btn-lg {
  padding: 1em 2em;
  font-size: var(--text-base);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from #ffffff l c h / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  text-decoration: none;
  color: var(--color-text);
  line-height: 1;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.brand-mark span {
  color: var(--color-primary);
}

.brand-sub {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link,
.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.6em 0.8em;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--color-primary);
}

.nav-link[aria-current='page'] {
  font-weight: 700;
}

.has-menu {
  position: relative;
}

.has-menu > .nav-link {
  cursor: pointer;
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity var(--transition-interactive),
    transform var(--transition-interactive),
    visibility var(--transition-interactive);
}

.has-menu:hover .menu,
.has-menu:focus-within .menu,
.has-menu.open .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
}

.menu-link:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.menu-link strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
}

.menu-link span {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-phone {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.header-phone:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* ---------- Mobile nav ---------- */

@media (max-width: 1023px) {
  .nav-toggle-label {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--space-4) var(--space-8);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--transition-interactive),
      transform var(--transition-interactive),
      visibility var(--transition-interactive);
  }

  .nav-toggle:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link,
  .menu-link {
    padding: 0.9em 0.6em;
    font-size: var(--text-base);
    border-radius: var(--radius-sm);
  }

  .has-menu .menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-4);
    min-width: 0;
    background: transparent;
  }

  .nav .btn {
    margin-top: var(--space-4);
  }

  .header-actions .header-phone {
    display: none;
  }
}

/* ---------- Hero (homepage) ---------- */

.hero {
  position: relative;
  height: min(94vh, 920px);
  min-height: 620px;
  background: var(--color-dark);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero .ba-slider {
  position: absolute;
  inset: 0;
  flex: none;
}

.hero .ba-slider-divider {
  z-index: 4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      oklch(from #0b121d l c h / 0.55) 0%,
      oklch(from #0b121d l c h / 0.24) 45%,
      oklch(from #0b121d l c h / 0) 72%
    ),
    linear-gradient(
      to top,
      oklch(from #0b121d l c h / 0.94) 0%,
      oklch(from #0b121d l c h / 0.72) 32%,
      oklch(from #0b121d l c h / 0.34) 60%,
      oklch(from #0b121d l c h / 0.05) 84%
    );
}

.hero-overlay .eyebrow {
  text-shadow: 0 1px 18px oklch(from #0b121d l c h / 0.65);
}

.hero h1 {
  text-shadow: 0 2px 28px oklch(from #0b121d l c h / 0.45);
}

.hero-overlay .container {
  width: 100%;
  padding-block: var(--space-16) clamp(var(--space-8), 6vh, var(--space-12));
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
  text-wrap: balance;
}

.hero .lede {
  color: #d7deea;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-actions .btn {
  pointer-events: auto;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(from #ffffff l c h / 0.22);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #e6ebf3;
}

.hero-points svg {
  flex: none;
  color: #7db3ee;
}

.hero-caption {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: oklch(from #ffffff l c h / 0.62);
  max-width: 72ch;
}

/* Subtle drag cue on the handle */
@keyframes hero-handle-pulse {
  0% { box-shadow: 0 0 0 0 oklch(from #ffffff l c h / 0.4); }
  70%, 100% { box-shadow: 0 0 0 14px oklch(from #ffffff l c h / 0); }
}

.hero .ba-slider-handle {
  top: 30px;
  animation: hero-handle-pulse 3s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero .ba-slider-handle {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 92vh;
  }

  .hero-overlay .container {
    padding-block: var(--space-16) var(--space-8);
  }

  .hero-overlay {
    background:
      linear-gradient(
        to right,
        oklch(from #0b121d l c h / 0.55) 0%,
        oklch(from #0b121d l c h / 0.3) 50%,
        oklch(from #0b121d l c h / 0.08) 78%
      ),
      linear-gradient(
        to top,
        oklch(from #0b121d l c h / 0.94) 0%,
        oklch(from #0b121d l c h / 0.78) 36%,
        oklch(from #0b121d l c h / 0.45) 64%,
        oklch(from #0b121d l c h / 0.08) 86%
      );
  }

  .hero-overlay .eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    margin-top: var(--space-3);
  }

  .hero .lede {
    font-size: var(--text-sm);
    margin-top: var(--space-3);
    max-width: 44ch;
  }

  .hero-actions {
    margin-top: var(--space-5);
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.85em 0.5em;
    font-size: var(--text-sm);
  }

  .hero-points {
    gap: 6px 16px;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
  }

  .hero-points li {
    font-size: 11px;
  }

  .hero-caption {
    font-size: 10.5px;
    margin-top: var(--space-3);
  }

  .hero-caption .caption-extra {
    display: none;
  }
}

/* Extra-compact hero for short small screens (e.g. 320x568) */
@media (max-width: 480px) and (max-height: 620px) {
  .hero-points,
  .hero-caption {
    display: none;
  }

  .hero h1 {
    margin-top: var(--space-2);
  }

  .hero-actions {
    margin-top: var(--space-4);
  }
}

/* ---------- Before/after comparison slider ---------- */

.ba-slider {
  position: relative;
  flex: 1;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--color-dark-2);
}

.ba-slider-base,
.ba-slider-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
}

.ba-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  cursor: ew-resize;
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-dark);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.ba-slider-divider:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ba-slider-tag {
  position: absolute;
  top: var(--space-4);
  z-index: 2;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  color: #fff;
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    oklch(from #0b121d l c h / 0.88) 0%,
    oklch(from #0b121d l c h / 0.62) 100%
  );
}

.page-hero h1 {
  color: #fff;
  max-width: 18ch;
}

.page-hero .lede {
  color: #cfd8e5;
  margin-top: var(--space-5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9fb4d0;
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  color: #c3d4ea;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card-body h3 {
  font-size: var(--text-lg);
}

.card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.card-link {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.section-dark .card {
  background: var(--color-dark-2);
  border-color: var(--color-dark-border);
}

.section-dark .card-body p {
  color: #b6c0cd;
}

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

/* ---------- Split (text + image) ---------- */

.split {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* ---------- Before / After ---------- */

.ba-grid {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.ba-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-dark);
}

.ba-figure img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.ba-tag {
  position: absolute;
  top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-full);
  background: oklch(from #0b121d l c h / 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}

.ba-tag--before {
  left: var(--space-4);
}

.ba-tag--after {
  right: var(--space-4);
  background: var(--color-primary);
}

.ba-caption {
  padding: var(--space-4) var(--space-2) 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.ba-caption strong {
  color: var(--color-text);
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

/* ---------- Feature rows (numbered) ---------- */

.feature-rows {
  display: grid;
  gap: var(--space-8);
}

.feature-row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: auto 1fr;
  align-items: start;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
  padding-top: 2px;
}

.feature-row h3 {
  font-size: var(--text-lg);
}

.feature-row p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Check list ---------- */

.check-list {
  display: grid;
  gap: var(--space-4);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
}

.check-list svg {
  flex: none;
  color: var(--color-primary);
  margin-top: 0.2em;
}

.section-dark .check-list svg {
  color: #6ea6e8;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-6);
}

.stat {
  border-left: 2px solid oklch(from #1757a8 l c h / 0.35);
  padding-left: var(--space-5);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1;
  color: #fff;
}

.stat-label {
  color: #b6c0cd;
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(120deg, var(--color-primary-deep), var(--color-primary));
  color: #fff;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta-band h2 {
  color: #fff;
  max-width: 20ch;
}

.cta-band p {
  color: #d3e2f5;
  margin-top: var(--space-3);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.field .req {
  color: var(--color-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: var(--radius-md);
  border: 1.5px solid oklch(from #0e141b l c h / 0.18);
  background: #fff;
  font-size: var(--text-base);
  min-height: 46px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: oklch(from #0e141b l c h / 0.32);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: 2px solid oklch(from #1757a8 l c h / 0.3);
  outline-offset: 0;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-3);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card {
  position: relative;
  display: block;
  border: 1.5px solid oklch(from #0e141b l c h / 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.radio-card:hover {
  border-color: oklch(from #0e141b l c h / 0.32);
}

.radio-card:has(input:checked) {
  border-color: var(--color-primary);
  background: oklch(from #1757a8 l c h / 0.06);
}

.radio-card:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.radio-card strong {
  display: block;
  font-size: var(--text-sm);
}

.radio-card span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.file-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-status[hidden] {
  display: none;
}

.form-status--ok {
  background: oklch(from #2f7d4f l c h / 0.1);
  border: 1px solid oklch(from #2f7d4f l c h / 0.35);
  color: #245e3b;
}

.form-status--err {
  background: oklch(from #a13333 l c h / 0.08);
  border: 1px solid oklch(from #a13333 l c h / 0.35);
  color: #7c2525;
}

/* ---------- Info cards (contact) ---------- */

.info-card {
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.info-card h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.info-card p,
.info-card a {
  font-size: var(--text-sm);
}

.info-card a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.info-card dl {
  display: grid;
  gap: var(--space-2);
}

.info-card dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.info-card dd {
  font-size: var(--text-sm);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(var(--space-4), 2vw, var(--space-6));
}

.g-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-dark);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.g-item:hover img {
  transform: scale(1.04);
}

.g-item--tall {
  grid-row: span 2;
}

.g-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-10) var(--space-4) var(--space-4);
  background: linear-gradient(180deg, transparent, oklch(from #0b121d l c h / 0.85));
  color: #fff;
  font-size: var(--text-sm);
}

.g-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.g-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-full);
  background: oklch(from #0b121d l c h / 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ---------- Chips / area list ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5em 1.1em;
  border-radius: var(--radius-full);
  background: oklch(from #1757a8 l c h / 0.08);
  color: var(--color-primary-deep);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--color-dark);
  color: #b6c0cd;
  padding-top: clamp(var(--space-12), 5vw, var(--space-20));
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  padding-bottom: var(--space-12);
}

.footer .brand-mark {
  color: #fff;
}

.footer .brand-sub {
  color: #8b95a1;
}

.footer h2 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: grid;
  gap: var(--space-3);
}

.footer-links a {
  color: #b6c0cd;
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--color-dark-border);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: #8b95a1;
}

.footer-bottom a {
  color: #8b95a1;
}

.footer-contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #6ea6e8;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: #fff;
  padding: var(--space-4) var(--space-5);
}

.faq summary {
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq summary::after {
  content: '+';
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Misc ---------- */

.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.text-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.section-head h2 {
  margin-bottom: var(--space-4);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
}

.divider-line {
  border: none;
  border-top: 1px solid var(--color-divider);
}
