/* ==========================================================================
   A HEALERS PLAYGROUND LLC — style.css
   1. Design tokens      6. About             11. Legal dialogs
   2. Base               7. Services          12. Responsive
   3. Utilities          8. Why us            13. Reduced motion
   4. Header             9. Contact
   5. Hero              10. Footer
   ========================================================================== */

/* 1. Design tokens
   ------------------------------------------------------------------------ */
:root {
  /* Color */
  --ink: #12302A;          /* headings, logo */
  --text: #2E4640;         /* body copy */
  --muted: #566B64;        /* secondary copy */
  --paper: #F5F8F4;        /* page background */
  --surface: #FFFFFF;
  --line: #D9E3DD;
  --mint: #E3F1EA;
  --green: #17855F;        /* primary action */
  --green-strong: #0F6B4B;
  --green-bright: #3CC48F; /* accents on dark backgrounds */
  --gold: #E8B547;
  --night: #0F2A24;        /* dark section */
  --night-deep: #0B221D;   /* footer */
  --on-night: #B4CAC1;     /* body copy on dark */
  --danger: #B42318;

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 72px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(18, 48, 42, 0.05), 0 14px 32px -12px rgba(18, 48, 42, 0.16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body:has(dialog[open]) {
  overflow: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-strong);
}

address {
  font-style: normal;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Utilities
   ------------------------------------------------------------------------ */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(23, 133, 95, 0.9);
}

.btn-primary:hover {
  background: var(--green-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -12px rgba(15, 107, 75, 0.9);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #B6C9BF;
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-title {
  font-size: clamp(2rem, 1.45rem + 2vw, 2.875rem);
  max-width: 18ch;
}

.section-lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 46ch;
}

/* 4. Header
   ------------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 248, 244, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(18, 48, 42, 0.45);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: var(--mint);
}

.nav-cta {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
}

.nav-toggle {
  display: none;
}

/* 5. Hero
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-title {
  font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero-lede {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.9875rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 1rem;
}

/* Soft "plus" texture behind the phone */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -6% -14%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%2317855F' stroke-opacity='.22' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #D3EBDF 0%, rgba(211, 235, 223, 0) 70%);
}

.phone {
  position: relative;
  z-index: 1;
  width: clamp(250px, 24vw, 296px);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 46px;
  background: #0D211C;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 44px 80px -32px rgba(15, 42, 36, 0.6),
    0 18px 36px -20px rgba(15, 42, 36, 0.45);
}

.phone::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 3;
  width: 82px;
  height: 22px;
  border-radius: 12px;
  background: #0D211C;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #12394A;
}

.game-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Party health bars */
.hud {
  position: absolute;
  top: 50px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(8, 28, 24, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hud-member {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 9px;
}

.hud-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.hud-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.hud-fill {
  display: block;
  height: 100%;
  width: var(--from);
  border-radius: inherit;
  background: #E0675C;
  animation: heal 1.4s cubic-bezier(0.22, 0.9, 0.25, 1) 1s forwards;
}

@keyframes heal {
  0%   { width: var(--from); background: #E0675C; }
  40%  { background: #E8B547; }
  100% { width: var(--to); background: #3CC48F; }
}

.game-toast {
  position: absolute;
  top: 152px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border-radius: 999px;
  background: #F5FFF9;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.96);
  animation: toast-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 2.2s forwards;
}

@keyframes toast-in {
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.abilities {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ability {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(8, 28, 24, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ability svg {
  width: 20px;
  height: 20px;
}

.ability-heal {
  width: 60px;
  height: 60px;
  background: var(--green);
  border-color: #A7F0CF;
  animation: cast 0.9s ease-out 0.7s both;
}

.ability-heal svg {
  width: 26px;
  height: 26px;
}

@keyframes cast {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(60, 196, 143, 0.7); }
  35%  { transform: scale(0.88); }
  100% { transform: scale(1); box-shadow: 0 0 0 20px rgba(60, 196, 143, 0); }
}

.scene-glow,
.scene-aura,
.spark {
  transform-box: fill-box;
  transform-origin: center;
}

.scene-glow {
  opacity: 0;
  animation: glow 1.8s ease-out 0.9s forwards;
}

@keyframes glow {
  0%   { opacity: 0; transform: scale(0.6); }
  40%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.55; transform: scale(1); }
}

.scene-aura {
  opacity: 0;
  animation: aura 1.4s ease-out 1s forwards;
}

@keyframes aura {
  0%   { opacity: 0.9; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.7); }
}

.spark {
  opacity: 0;
  animation: spark 1.6s ease-out forwards;
}

.s1 { animation-delay: 1.05s; }
.s2 { animation-delay: 1.2s; }
.s3 { animation-delay: 1.35s; }
.s4 { animation-delay: 1.15s; }
.s5 { animation-delay: 1.4s; }

@keyframes spark {
  0%   { opacity: 0; transform: translateY(10px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-48px); }
}

/* 6. About
   ------------------------------------------------------------------------ */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-media {
  margin: 0;
}

.about-media svg,
.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.about-media figcaption {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.about-copy > p {
  margin-top: 1.25rem;
  max-width: 60ch;
}

.principles {
  display: grid;
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  padding: 1.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 1rem;
  row-gap: 0.2rem;
}

.principle-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--green-strong);
}

.principle-icon svg {
  width: 20px;
  height: 20px;
}

.principle h3 {
  font-size: 1.125rem;
  align-self: center;
}

.principle p {
  font-size: 1rem;
  color: var(--muted);
}

/* 7. Services
   ------------------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.service {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.service:last-child {
  border-bottom: 0;
}

.service:hover {
  background: #F9FCFA;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-strong);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service:hover .service-icon {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.service h3 {
  margin-top: 1.4rem;
  font-size: 1.25rem;
}

.service p {
  margin-top: 0.55rem;
  font-size: 1rem;
  color: var(--muted);
}

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--mint);
}

.services-note p {
  font-weight: 500;
  color: var(--ink);
}

.services-note .btn-secondary {
  background: var(--surface);
}

/* 8. Why us
   ------------------------------------------------------------------------ */
.why {
  background: var(--night);
  color: var(--on-night);
}

.why .section-title,
.why h3,
.why h4 {
  color: #fff;
}

.why .section-lede {
  color: var(--on-night);
}

.why :focus-visible {
  outline-color: var(--green-bright);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 1.1rem;
  row-gap: 0.35rem;
}

.benefit-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(60, 196, 143, 0.12);
  border: 1px solid rgba(60, 196, 143, 0.28);
  color: var(--green-bright);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit h3 {
  font-size: 1.1875rem;
  align-self: center;
}

.benefit p {
  max-width: 44ch;
}

.process {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.process-title {
  font-size: 1.5rem;
}

.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  padding-top: 3.6rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--green-bright);
  background: var(--night);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 54px;
  right: calc(-1.5rem + 10px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.process-step:last-child::after {
  display: none;
}

.process-step h4 {
  font-size: 1.125rem;
}

.process-step p {
  margin-top: 0.4rem;
  font-size: 0.9875rem;
  max-width: 30ch;
}

/* 9. Contact
   ------------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-info .section-lede {
  margin-top: 1.25rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 1rem;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-strong);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.contact-item a {
  overflow-wrap: anywhere;
}

.contact-map {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #C3D2CA;
  border-radius: var(--radius-sm);
  background: #FBFDFB;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #98B0A5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 133, 95, 0.18);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.field textarea::placeholder {
  color: #66786F;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312302A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  cursor: pointer;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background-color: #FFF8F7;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15);
}

.field-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.char-count {
  margin-top: 0.4rem;
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 0 0.75rem;
}

.field.checkbox-field input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.field.checkbox-field label {
  margin: 0;
  font-weight: 400;
  color: var(--text);
}

.checkbox-field .field-error {
  grid-column: 2;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.form-status.is-success {
  display: block;
  background: #E6F5EE;
  border: 1px solid #BFE3D2;
  color: #0D5C40;
}

.form-status.is-error {
  display: block;
  background: #FDF0EF;
  border: 1px solid #F3C9C5;
  color: #8E1B13;
}

/* 10. Footer
   ------------------------------------------------------------------------ */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--night-deep);
  color: var(--on-night);
  font-size: 0.9375rem;
}

.site-footer :focus-visible {
  outline-color: var(--green-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .brand,
.footer-brand .brand:hover {
  color: #fff;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
}

.footer-heading {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #CFE0D8;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* 11. Legal dialogs
   ------------------------------------------------------------------------ */
.modal {
  width: min(720px, calc(100% - 2rem));
  max-height: min(86vh, 860px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(10, 30, 25, 0.55);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.22s ease-out;
}

.modal::backdrop {
  background: rgba(10, 28, 24, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
}

.modal-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.1rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-size: 1.5rem;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: var(--mint);
}

.modal-body {
  overflow-y: auto;
  padding: 1.5rem 1.75rem 2rem;
  font-size: 1rem;
}

.modal-body h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

.modal-body p + p {
  margin-top: 0.75rem;
}

.modal-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.modal-body li + li {
  margin-top: 0.35rem;
}

.modal-updated {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* 12. Responsive
   ------------------------------------------------------------------------ */
@media (min-width: 640px) and (max-width: 959px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .service:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service:not(:nth-child(3n)) {
    border-right: 1px solid var(--line);
  }
  .service:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet and below: collapsible navigation */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(18, 48, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-link {
    padding: 0.85rem 0.75rem;
    font-size: 1.0625rem;
  }

  .nav-cta {
    width: 100%;
    min-height: 48px;
  }

  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    max-width: 16ch;
  }

  .hero-visual {
    margin-top: 0.5rem;
  }

  .about-media {
    order: 2;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.25rem;
  }

  .process-step:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .benefits,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-note .btn {
    width: 100%;
  }

  /* Vertical timeline */
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .process-step {
    padding: 0 0 0 3.75rem;
    min-height: 42px;
  }

  .process-step::after,
  .process-step:nth-child(2n)::after {
    display: block;
    top: 50px;
    bottom: calc(-1.75rem + 8px);
    left: 21px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-step:last-child::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .form-footer .btn {
    width: 100%;
  }

  .modal {
    width: calc(100% - 1rem);
    max-height: 92vh;
  }

  .modal-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 0.9375rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
}

/* 13. Reduced motion: show the final state of every animation instantly
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
