/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: #14213D;
  background-color: #F6F2EA;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.125rem, 5.4vw + 1.2rem, 6.25rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem); }
p { margin: 0 0 16px; max-width: 68ch; }
a { color: #9A4F14; text-underline-offset: 3px; }
a:hover { color: #7A3D0F; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid #9A4F14; outline-offset: 2px; }

/* Layout */
.l-wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.l-section { padding-block: clamp(64px, 9vw, 128px); position: relative; overflow: hidden; }
.l-section:nth-of-type(even) { background-color: #FFFFFF; }
.l-grid { display: grid; gap: 24px; align-items: stretch; }
.l-grid-cards { grid-template-columns: 1fr; grid-auto-rows: 1fr; align-content: start; }
.l-two-col { display: grid; gap: 32px; align-items: center; }
.l-col-text { max-width: 640px; }
.l-col-media img { border-radius: 8px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.u-muted { color: #4D5870; }
.u-small { font-size: 14px; color: #4D5870; }
.u-accent {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw + 0.7rem, 2.6rem);
  line-height: 1.25;
  color: #9A4F14;
  max-width: 30ch;
}
.u-prose { color: #4D5870; }

/* Background layer */
.l-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 280px at 0% 30%, rgb(154 79 20 / 0.07), transparent 70%),
    radial-gradient(circle 360px at 100% 70%, rgb(20 33 61 / 0.06), transparent 70%);
}
.l-section > .l-wrap { position: relative; }

/* Skip link */
.c-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: #14213D;
  color: #F6F2EA;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.c-skip:focus { top: 12px; }

/* Header */
.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #F6F2EA;
  border-bottom: 1px solid #E2DACB;
  transition: padding 0.25s ease;
}
.l-header-inner { display: flex; flex-direction: column; align-items: center; padding-block: 20px; }
.l-header.is-compact .l-header-inner { padding-block: 6px; }
.c-logo-wrap { margin: 0 0 8px; }
.c-logo {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  font-weight: 700;
  color: #14213D;
  text-decoration: none;
  transition: font-size 0.25s ease;
}
.l-header.is-compact .c-logo { font-size: 1.2rem; }
.c-nav { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.c-nav-list { display: none; list-style: none; gap: 28px; margin: 0; }
.c-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #14213D;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding-block: 4px;
}
.c-nav-num { color: #9A4F14; font-size: 13px; font-variant-numeric: tabular-nums; }
.c-nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9A4F14;
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s ease;
}
.c-nav-link:hover::after,
.c-nav-link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.c-nav.is-open .c-nav-list { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 12px; }
.c-nav-toggle {
  background: none;
  border: 1px solid #14213D;
  border-radius: 999px;
  color: #14213D;
  font: 600 15px/1 system-ui, sans-serif;
  padding: 10px 20px;
  cursor: pointer;
}

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 2px solid #14213D;
  border-radius: 999px;
  background-image: linear-gradient(120deg, #14213D 0%, #14213D 50%, #9A4F14 50%, #9A4F14 100%);
  background-color: #14213D;
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: #F6F2EA;
  font: 600 16px/1 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.3s ease, transform 0.15s ease;
}
.c-btn:hover { background-position: 100% 0%; color: #F6F2EA; }
.c-btn:focus-visible { outline: 3px solid #9A4F14; outline-offset: 3px; }
.c-btn:active { transform: scale(0.96); }

/* Hero */
.c-hero { padding-top: clamp(48px, 6vw, 80px); }
.c-hero-title { max-width: none; text-wrap: balance; }
.c-hero-lead { margin-bottom: 24px; }
.c-hero-media { margin: 32px 0 0; }
.c-hero-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Cards */
.c-card {
  background-color: #FFFFFF;
  border: 1px solid #E2DACB;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px rgb(0 0 0 / 0.08); }
.c-card-media { margin: -24px -24px 0; order: -1; overflow: hidden; border-radius: 12px 12px 0 0; }
.c-card-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.5s ease; }
.c-card:hover .c-card-media img { transform: scale(1.05); }
.c-card p { color: #4D5870; margin: 0; }

/* Tabs */
.c-tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 20px; }
.c-tab {
  border: 1px solid #E2DACB;
  border-radius: 999px;
  background: #FFFFFF;
  color: #4D5870;
  padding: 10px 20px;
  font: 600 15px/1 system-ui, sans-serif;
  cursor: pointer;
}
.c-tab.is-active { background: #14213D; border-color: #14213D; color: #F6F2EA; }
.c-tab:focus-visible { outline: 3px solid #9A4F14; outline-offset: 2px; }

/* Pricing */
.c-price-list { list-style: none; display: grid; gap: 0; border-top: 1px solid #E2DACB; }
.c-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #E2DACB;
}
.c-price { font-weight: 700; color: #9A4F14; white-space: nowrap; }

/* Form */
.c-form-wrap { max-width: 640px; }
.c-form { display: grid; gap: 20px; }
.c-field { display: grid; gap: 6px; }
.c-label { font-weight: 600; font-size: 15px; }
.c-input {
  font: inherit;
  color: #14213D;
  background: #FFFFFF;
  border: 1px solid #C9C0AF;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 48px;
}
.c-input::placeholder { color: #4D5870; opacity: 1; }
.c-textarea { min-height: 120px; resize: vertical; }
.c-field .is-invalid, .c-input.is-invalid { border-color: #9A4F14; border-width: 2px; }
.c-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #4D5870; }
.c-check input { width: 20px; height: 20px; accent-color: #9A4F14; margin-top: 2px; flex: none; }
.c-form-note { font-size: 14px; color: #4D5870; }
.c-form-btn { justify-self: start; }
.c-form.is-sending .c-form-btn { opacity: 0.6; pointer-events: none; }

/* Steps */
.c-steps { list-style: none; counter-reset: step; display: grid; gap: 24px; max-width: none; }
.c-steps li { counter-increment: step; position: relative; padding-left: 56px; }
.c-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #9A4F14;
  position: absolute;
  left: 0;
  top: 0;
}
.c-steps p { color: #4D5870; }

/* FAQ */
.c-faq { display: grid; gap: 12px; max-width: 760px; }
.c-faq-item {
  background: #FFFFFF;
  border: 1px solid #E2DACB;
  border-radius: 12px;
  padding: 18px 24px;
}
.c-faq-item summary {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.c-faq-item p { color: #4D5870; margin: 12px 0 0; }

/* Plate */
.c-plate {
  background: #14213D;
  color: #F6F2EA;
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  margin-top: 32px;
}
.c-plate-text {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2.2rem);
  line-height: 1.3;
  color: #F6F2EA;
  max-width: 34ch;
}

/* Reveal */
html.has-js .c-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.has-js .c-reveal.is-visible { opacity: 1; transform: none; }

/* Footer */
.l-footer { background: #14213D; color: #F6F2EA; padding: clamp(48px, 6vw, 80px) 0 24px; }
.l-footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.l-footer .c-logo { color: #F6F2EA; }
.l-footer .u-muted { color: #C6CCDB; }
.l-footer address { font-style: normal; color: #C6CCDB; font-size: 15px; }
.l-footer address p { margin: 0 0 6px; }
.l-footer a { color: #F6F2EA; }
.c-footer-links { list-style: none; display: grid; gap: 10px; }
.c-footer-links a { color: #C6CCDB; text-decoration: none; }
.c-footer-links a:hover { color: #F6F2EA; text-decoration: underline; }
.l-footer-bottom { border-top: 1px solid rgb(246 242 234 / 0.2); margin-top: 32px; padding-top: 20px; }
.l-footer-bottom .u-small { color: #C6CCDB; }

/* Inner pages */
.c-page-head { padding-bottom: 0; }
.c-page-head p { color: #4D5870; }
.u-prose h2 { margin-top: 32px; }
.u-prose ul, .u-prose ol { padding-left: 24px; margin: 0 0 16px; }
.u-prose li { margin-bottom: 8px; }
.u-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.u-prose th, .u-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E2DACB; }
.c-received, .c-lost { max-width: 640px; }

/* Breakpoints */
@media (min-width: 480px) {
  .l-grid-cards { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .l-grid-cards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .c-card { padding: 32px; }
  .c-card-media { margin: -32px -32px 0; }
  .c-card-wide { grid-column: span 2; }
  .l-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .c-nav > .c-btn { display: none; }
  .c-nav.is-open > .c-btn { display: inline-flex; }
}
@media (min-width: 768px) {
  .c-nav { flex-direction: row; gap: 20px; }
  .c-nav-toggle { display: none; }
  .c-nav-list { display: flex; }
  .l-two-col { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .l-grid-cards { grid-template-columns: repeat(3, 1fr); }
  .c-card-wide { grid-column: span 2; }
  .l-footer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .l-section { padding-block: 128px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.has-js .c-reveal { opacity: 1; transform: none; }
}

/* Card balance */
.c-card > h3 { margin: 0; }
.c-card p { margin: 0; }
.c-card-media img { aspect-ratio: 4 / 3; }
@media (max-width: 639px) {
  .c-card { min-height: 0; }
  .c-hero { padding-top: 32px; }
  .l-header .c-btn { max-width: 100%; width: auto; }
  .l-header-inner { gap: 12px; }
  .c-nav { width: 100%; }
  .c-nav.is-open { width: 100%; }
}
@media (min-width: 1024px) {
  .l-grid-cards .c-card p { margin: 0; }
}
/* Motion */
@media (prefers-reduced-motion: reduce) {
  .c-hero-title, .u-accent { text-wrap: normal; }
}
