/* FaHa design system. Single stylesheet shared by the static prototype and the WordPress theme.
   Budget: under 12 KB uncompressed, no web fonts, no framework. */

:root {
  --ink: #17242b;
  --ink-soft: #46565e;
  --paper: #ffffff;
  --paper-2: #f3f6f4;
  --line: #d5ddd9;
  --brand: #0f4c5c;        /* deep teal: headings, primary buttons */
  --brand-dark: #0a3540;
  --accent: #c2410c;       /* burnt orange: links, focus, second CTA */
  --accent-soft: #fdebe0;
  --ok: #2b6a3a;
  --measure: 70ch;
  --wrap: 72rem;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--brand-dark); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); margin-top: 2.25rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; }
p, ul, ol, blockquote { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--brand-dark); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-dark); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.prose > p, .prose > h2, .prose > h3, .prose > h4, .prose > ul, .prose > ol:not(.steps), .prose > blockquote, .prose > .notice, .prose > .faq, .prose > .embed, .prose > .toc { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.utility { background: var(--brand-dark); color: #fff; font-size: .9rem; }
.utility .wrap { display: flex; gap: 1.25rem; justify-content: flex-end; padding: .35rem 0; flex-wrap: wrap; }
.utility a { color: #fff; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: .9rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--brand-dark); font-weight: 700; line-height: 1.15; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.nav { margin: 0; padding: 0; list-style: none; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--brand-dark); text-decoration: none; padding: .5rem 0; display: inline-block; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle { display: none; }
@media (max-width: 47.9rem) {
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle .nav { flex-direction: column; gap: 0; padding: .5rem 0 1rem; width: 100%; }
  .nav-toggle .nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .masthead .nav-desktop { display: none; }
  .nav-toggle { width: 100%; }
}
@media (min-width: 48rem) { .nav-toggle { display: none; } }

/* Hero */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem) 0; }
.hero .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: .75rem; }
.hero h1 { max-width: 24ch; }
.hero .lede { font-size: 1.2rem; max-width: var(--measure); color: var(--ink-soft); }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero--home { background: var(--brand); color: #fff; border-bottom: 0; }
.hero--home .kicker { color: #ffd6b8; }
.hero--home h1, .hero--home .lede { color: #fff; }
.hero--home .lede { color: #dbe7ea; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--brand); background: var(--brand); color: #fff; line-height: 1.2; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-dark); }
.btn--ghost:hover { background: var(--paper-2); }
.hero--home .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.hero--home .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.hero--home .btn:hover { background: #ffd6b8; border-color: #ffd6b8; color: var(--brand-dark); }

/* Content sections */
.content { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.content > h2:first-child { margin-top: 0; }
.section-title { display: flex; align-items: baseline; gap: 1rem; }
.toc { border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1rem; margin: 0 0 2rem; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 40rem) { .toc ol { columns: 1; } }

/* Grids */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 1rem 0 2rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--paper); }
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p { font-size: .98rem; }
.card .meta { color: var(--ok); font-weight: 600; font-size: .92rem; margin-top: .5rem; }
.card .meta::before { content: "Price: "; color: var(--ink-soft); font-weight: 400; }
.card dl { margin: 0; font-size: .95rem; }
.card dt { font-weight: 700; color: var(--brand-dark); margin-top: .5rem; }
.card dd { margin: 0; }

.paths .card { border-top: 4px solid var(--brand); }
.paths .card h3 a { text-decoration: none; color: var(--brand-dark); }
.paths .card h3 a::after { content: " →"; color: var(--accent); }
.paths .card h3 a:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 2rem; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: .35rem 0 .35rem; font-size: 1.05rem; }
.steps p { font-size: .98rem; }

/* Board */
.board { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1rem 0 2rem; }
.person img, .person .placeholder-img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); width: 100%; }
.person h3 { margin: .75rem 0 0; font-size: 1.1rem; }
.person .role { color: var(--accent); font-weight: 700; font-size: .9rem; margin: 0 0 .5rem; }
.person p { font-size: .95rem; }

/* FAQ */
.faq h3 { margin-top: 1.75rem; }
.faq h3::before { content: "Q. "; color: var(--accent); }

/* Quote, notice, placeholder */
blockquote.quote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; font-size: 1.1rem; color: var(--ink-soft); }
blockquote.quote cite { display: block; font-style: normal; font-size: .9rem; margin-top: .5rem; color: var(--ink); }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.is-placeholder { color: var(--ink-soft); background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(0,0,0,.035) 8px 16px); border: 1px dashed var(--line); padding: .6rem .8rem; border-radius: var(--radius); }
.is-placeholder::before { content: "Placeholder copy"; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: .25rem; }

/* Lazy embed and click-to-play video */
.embed { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; background: var(--paper-2); }
.embed iframe { width: 100%; min-height: 34rem; border: 0; background: #fff; }
.embed .embed-open { margin: 0; }
.embed .embed-note { font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; max-width: 56rem; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 700; display: grid; place-items: center; }
.video button span { background: var(--brand); padding: .7rem 1.2rem; border-radius: 999px; }
.video button:hover span { background: var(--accent); }

/* Footer */
.site-footer { background: var(--brand-dark); color: #dbe7ea; margin-top: 3rem; padding: 2.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer address { font-style: normal; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; color: #b8cad0; }

/* Elementor compatibility: let Elementor containers span the theme wrapper. */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed > .e-con-inner { max-width: var(--wrap); }
@media print {
  .site-header, .site-footer, .hero .actions, .nav-toggle, .video button { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
