/* ==========================================================================
   SiteCrafts — styles
   ========================================================================== */

:root {
  --bg: #f6f4ef;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --ink: #141414;
  --ink-soft: #4a4a46;
  --ink-mute: #85837c;
  --line: #dedad0;
  --accent: #2f5d46;
  --accent-ink: #ffffff;
  --accent-soft: #e3ebe5;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 12vw, 152px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.display {
  font-size: clamp(44px, 8.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
  text-wrap: pretty;
}

.muted { color: var(--ink-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { color: var(--bg); }
.nav-links .btn:hover { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-links a { display: block; padding: 16px 0; font-size: 18px; color: var(--ink); }
  .nav-links .btn { display: flex; width: 100%; padding: 0 20px; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head .lead { margin-top: 24px; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(72px, 13vw, 168px) 0 clamp(80px, 12vw, 152px);
}
.hero .display { max-width: 11.5em; }
.hero .lead { margin-top: 32px; max-width: 34em; }
.hero .actions { margin-top: 44px; }

.hero-note {
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-size: 14px;
  color: var(--ink-mute);
}
.hero-note strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
}
@media (max-width: 760px) {
  .hero-note { grid-template-columns: 1fr 1fr; row-gap: 20px; }
}

/* ---------- System flow ---------- */

.system {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 8vw, 112px);
  align-items: start;
}
.system .section-head { margin-bottom: 0; position: sticky; top: 120px; }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding-bottom: 40px;
}
.flow li:last-child { padding-bottom: 0; }

/* connector line */
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 52px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.flow-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.flow li.is-visible .flow-node {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.flow li:last-child.is-visible .flow-node {
  background: var(--accent);
  border-color: var(--accent);
}

.flow-body { padding-top: 10px; }
.flow-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.flow-body p { color: var(--ink-soft); max-width: 30em; }

@media (max-width: 900px) {
  .system { grid-template-columns: 1fr; }
  .system .section-head { position: static; }
}

/* ---------- Who we help ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 8vw, 112px);
  align-items: end;
}
.split .lead { margin-top: 24px; }

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.tags li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.tags li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-mute);
}
.tags-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; align-items: start; }
}

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

.cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 93, 70, 0.75), rgba(47, 93, 70, 0) 70%);
  pointer-events: none;
}
.cta .h2 { max-width: 13em; position: relative; }
.cta .lead { color: rgba(246, 244, 239, 0.72); margin-top: 24px; position: relative; }
.cta .actions { margin-top: 40px; position: relative; }
.cta .eyebrow { color: rgba(246, 244, 239, 0.6); }
.cta .eyebrow::before { background: #7fb596; }

.cta-wrap { padding: 0 0 var(--section); }
.section-alt + .cta-wrap { padding-top: var(--section); }

/* ---------- Info page: journey ---------- */

.page-hero {
  padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 8vw, 96px);
}
.page-hero .h2 { font-size: clamp(38px, 6.4vw, 80px); max-width: 14em; line-height: 1; }
.page-hero .lead { margin-top: 28px; }

.prose {
  max-width: 40em;
  display: grid;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}
.prose strong { color: var(--ink); font-weight: 500; }

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.journey li {
  background: var(--bg);
  padding: 28px 24px 32px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.journey-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
}
.journey-text { font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; }

@media (max-width: 900px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .journey { grid-template-columns: 1fr; }
  .journey li { min-height: 0; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 20px; padding: 22px 20px; }
  .journey-num { font-size: 28px; min-width: 24px; }
}

.callout {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
.callout .h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.15; }
@media (max-width: 760px) {
  .callout { grid-template-columns: 1fr; }
}

/* ---------- Work ---------- */

.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-mute);
  box-shadow: 0 18px 40px -24px rgba(20, 20, 20, 0.25);
}
.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.badge-demo { background: #f4ead6; color: #7a5a1c; }
.work-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-card:hover .work-arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-card .h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; }
.work-card p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.work-disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14px !important;
  color: #7a5a1c !important;
}

@media (max-width: 760px) {
  .work { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 8vw, 112px);
}
.about-sig {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-mute);
}
.about-sig strong { display: block; color: var(--ink); font-weight: 500; font-size: 17px; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
}

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

.faq {
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6.5px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer {
  padding: 0 48px 28px 0;
  color: var(--ink-soft);
  max-width: 40em;
}

/* ---------- Booking page ---------- */

.book {
  padding: clamp(56px, 9vw, 112px) 0 var(--section);
}
.book-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.book-head .eyebrow { justify-content: center; }
.book-head .lead { margin: 20px auto 0; }

.calendar-embed {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 22px);
  padding: clamp(12px, 2vw, 24px);
  min-height: 640px;
}
.calendar-embed iframe { width: 100%; border: 0; display: block; }

/* Visible only while the placeholder is in place — safe to delete once embedded */
.calendar-placeholder {
  min-height: 600px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  color: var(--ink-mute);
  font-size: 15px;
}
.calendar-placeholder code {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 13px;
}
@media (max-width: 600px) {
  .calendar-embed { min-height: 0; }
  .calendar-placeholder { min-height: 360px; }
}

.book-meta {
  max-width: 900px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--ink-soft);
}
.book-meta span { display: inline-flex; align-items: center; gap: 8px; }
.book-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.book-fallback {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-mute);
}
.book-fallback a { color: var(--ink); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 14px;
  color: var(--ink-mute);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 480px) {
  .actions .btn { width: 100%; }
}
