/* Orbitbarn — static site. Palette and type from the brand kit. */
:root {
  --dusk: #1A1625;
  --ridge: #2A2438;
  --horizon: #3E3038;
  --meadow: #2F4A3C;
  --meadow-lit: #3C5B48;
  --gold: #D4A017;
  --gold-soft: #E0B84A;
  --ember: #F3C56B;
  --lichen: #5E6F5E;
  --lichen-bright: #9AAF9A;
  --cream: #F6F1E8;
  --ivory: #FBF8F2;
  --white: #F7F3EB;
  --barn: #3A342C;
  --text: #1A1625;
  --muted: #3E3A48;
  --line: rgba(26, 22, 37, 0.12);
  --line-strong: rgba(26, 22, 37, 0.2);
  --focus: #D4A017;
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --shadow: 0 1.25rem 2.75rem rgba(26, 22, 37, 0.12);
  --header-h: 4.5rem;
  --wrap: 72rem;
  --narrow: 42rem;
  --font-serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: Outfit, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: Fraunces;
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { 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;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
img[hidden] { display: none; }
a { color: var(--meadow); text-underline-offset: 0.18em; }
a:hover { color: var(--dusk); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--dusk);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(calc(100% - 2rem), var(--narrow)); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.7em;
  color: var(--dusk);
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}
.kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lichen);
  margin-bottom: 0.7rem;
}
.section { padding: 4.5rem 0; }
.section-dark {
  background: var(--dusk);
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .kicker { color: var(--gold-soft); }
.section-dark .lead, .section-dark p { color: rgba(247, 243, 235, 0.88); }
.section-meadow { background: var(--meadow); color: var(--white); }
.section-ivory { background: var(--ivory); }
.section-intro { max-width: 40rem; margin-bottom: 2.25rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.logo img { width: auto; height: 2.55rem; }
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--ivory);
  border-radius: 0.55rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--dusk);
  border-radius: 1px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
}
.site-nav a {
  color: var(--dusk);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--meadow); }
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}
.site-nav .btn {
  margin-left: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--white);
}
.site-nav .btn:hover { color: var(--white); }
.help-card picture, .hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.help-card picture img, .hero-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split picture { display: block; width: 100%; }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--dusk);
  color: var(--white);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--dusk);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ridge); color: var(--white); border-color: var(--ridge); }
.btn-sm { padding: 0.62rem 0.95rem; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(247, 243, 235, 0.45);
}
.btn-ghost:hover { background: var(--white); color: var(--dusk); border-color: var(--white); }
.btn-gold {
  background: var(--dusk);
  color: var(--white);
  border-color: var(--dusk);
}
.btn-light {
  background: var(--white);
  color: var(--dusk);
  border-color: var(--white);
}
.btn-light:hover { background: var(--cream); color: var(--dusk); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 42rem);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--dusk);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img, .hero-media picture, .hero-media source {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img { height: 100%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 22, 37, 0.82) 0%, rgba(26, 22, 37, 0.45) 48%, rgba(26, 22, 37, 0.18) 100%),
    linear-gradient(180deg, rgba(26, 22, 37, 0.15) 0%, rgba(26, 22, 37, 0.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 38rem;
}
.hero h1 { color: var(--white); margin-bottom: 0.6em; }
.hero .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.7em;
}
.hero .tagline em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero-copy p { color: rgba(247, 243, 235, 0.92); font-size: 1.15rem; max-width: 34rem; }
.disclaimer-line {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(247, 243, 235, 0.78);
  max-width: 32rem;
}

/* Cards / grids */
.grid-3, .grid-2, .grid-4, .steps, .areas-grid, .help-grid {
  display: grid;
  gap: 1.15rem;
}
.grid-3, .help-grid { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.card h3 { margin: 0; }
.card p { color: var(--muted); }
.card .price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--dusk);
  margin: 0.2rem 0;
}
.card .price small {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.2rem;
}
.card ul { margin: 0.2rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.card ul li { margin: 0.25rem 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card.featured {
  background: var(--dusk);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.card.featured h3, .card.featured .price { color: var(--white); }
.card.featured p, .card.featured ul, .card.featured .price small { color: rgba(247, 243, 235, 0.86); }
.card.featured .btn { background: var(--white); color: var(--dusk); border-color: var(--white); }
.card.featured .btn:hover { background: var(--cream); }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dusk);
  background: var(--ember);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}
.card.featured .badge { background: var(--gold); color: var(--dusk); }

.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.help-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 16.5rem;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  isolation: isolate;
}
.help-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.help-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,22,37,0.05) 20%, rgba(26,22,37,0.82) 100%);
}
.help-card .txt { position: relative; z-index: 2; padding: 1.2rem 1.2rem 1.3rem; }
.help-card strong { display: block; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--white); }
.help-card p { margin: 0.25rem 0 0; color: rgba(247,243,235,0.88); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split img, .split picture { border-radius: var(--radius); overflow: hidden; }
.split picture img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split.rev .copy { order: -1; }

.note, .callout {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
  color: var(--muted);
  margin: 1.25rem 0;
}
.section-dark .note, .section-dark .callout {
  background: var(--ridge);
  color: rgba(247,243,235,0.9);
}
.welsh-box {
  background: var(--meadow);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.4rem 0 1.8rem;
}
.welsh-box h2, .welsh-box h3 { color: var(--white); }
.welsh-box a { color: var(--ember); }
.welsh-box a:hover { color: var(--white); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dusk);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 500; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.65rem 0 0.3rem; color: var(--muted); max-width: 40rem; }

.cta-band {
  background: var(--dusk);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(247,243,235,0.86); max-width: 34rem; margin-inline: auto  auto; margin-bottom: 1.4rem; }
.cta-band .btn-row { justify-content: center; }

.page-hero {
  padding: 3.4rem 0 2.4rem;
  background:
    linear-gradient(180deg, rgba(26,22,37,0.04), transparent 60%),
    var(--cream);
}
.page-hero h1 { margin-bottom: 0.4em; }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--dusk); text-decoration: underline; }

/* Forms */
form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label, .label {
  display: block;
  font-size: 0.88rem;
  font-weight: 550;
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--dusk);
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
}
input:hover, select:hover, textarea:hover { border-color: rgba(26,22,37,0.35); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--dusk);
}
textarea { min-height: 8rem; resize: vertical; }
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}
.consent input { width: auto; margin-top: 0.3rem; }
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #e4efe6; color: #1a3b28; }
.form-status.err { background: #f6e4df; color: #6a2618; }

.areas-grid { grid-template-columns: 1fr 1fr; }
.area-col {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
}
.area-col h3 { margin-bottom: 0.7rem; }
.area-col ul { margin: 0; padding-left: 1.1rem; color: var(--muted); columns: 2; gap: 1.5rem; }
.area-col li { margin: 0.2rem 0; break-inside: avoid; }

/* Footer */
.site-footer {
  background: var(--dusk);
  color: rgba(247, 243, 235, 0.82);
  padding: 3rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-bottom: 2.2rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.footer-brand img { height: 2.4rem; width: auto; margin-bottom: 0.9rem; }
.footer-legal {
  border-top: 1px solid rgba(247,243,235,0.12);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(247,243,235,0.7);
}
.footer-legal a { color: var(--lichen-bright); }

.prose h2 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1em; }
.prose li { margin: 0.28rem 0; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-weight: 600; background: var(--ivory); }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 980px) {
  .grid-3, .help-grid, .steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 1.5rem; }
  .split.rev .copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-col ul { columns: 1; }
}
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1.1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin: 0.85rem 0 0.2rem; align-self: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .help-grid, .steps, .grid-2, .grid-4, .areas-grid { grid-template-columns: 1fr; }
  .hero { min-height: 34rem; }
  .hero-copy { padding: 4.2rem 0 3rem; }
  .section { padding: 3.2rem 0; }
  .logo img { height: 2.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
