/* =========================================================
   Tanah Grabag — premium light editorial design system
   Cream / near-black / forest-green CTA only
   ========================================================= */

:root {
  --bg: #f7f4ef;
  --bg-soft: #efeae2;
  --surface: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #3d3a35;
  --muted: #6b6560;
  --line: #e4ddd3;
  --line-soft: #ebe5db;
  --forest: #2c5a3d;
  --forest-hover: #234a32;
  --forest-soft: rgba(44, 90, 61, 0.08);
  --shadow-photo: 0 20px 50px rgba(26, 26, 24, 0.12), 0 4px 12px rgba(26, 26, 24, 0.06);
  --shadow-soft: 0 8px 24px rgba(26, 26, 24, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --max: 1100px;
  --measure: 65ch;
  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

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

/* ——— Typography ——— */

h1, h2, h3, .logo {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 550;
  margin: 0 0 1rem;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  font-weight: 550;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.section p,
.page-intro p {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.section p + p { margin-top: 0.85rem; }

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

/* ——— Nav ——— */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1.15rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

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

.menu a {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-panel {
  display: none;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
a.btn-primary,
.nav-cta.btn-primary,
.nav-panel a.btn-primary,
.sticky-cta a.btn-primary {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.btn-primary:hover,
a.btn-primary:hover,
.nav-cta.btn-primary:hover,
.nav-panel a.btn-primary:hover,
.sticky-cta a.btn-primary:hover {
  background: var(--forest-hover);
  border-color: var(--forest-hover);
  color: #fff;
}

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

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

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ——— Hero ——— */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-copy {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Facts strip ——— */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 2.75rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--line);
}

.fact:last-child { border-right: 0; }

.fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.fact span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ——— Sections ——— */

.section {
  padding: 4.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head .kicker { margin-bottom: 0.6rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-copy p:first-of-type { margin-top: 0; }

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Potential cards ——— */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.4rem;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: none;
  flex: 1;
}

/* ——— Distance row ——— */

.distances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.distance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
}

.distance strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.distance span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ——— Condition callout ——— */

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  max-width: 42rem;
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
}

/* ——— Map ——— */

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.map {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map-actions {
  margin-top: 1.25rem;
}

/* ——— CTA band ——— */

.cta-band {
  padding: 4.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.cta-inner {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.cta-inner h2 {
  max-width: none;
}

.cta-inner .lead {
  margin-inline: auto;
  margin-top: 0.5rem;
}

.cta-inner .actions {
  justify-content: center;
}

.cta-meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ——— Page hero (inner pages) ——— */

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-body {
  padding: 0 0 4rem;
}

/* ——— FAQ ——— */

.faq-list {
  max-width: 40rem;
  margin-top: 1.5rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0.85rem 0 0.25rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.faq-list details a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Footer ——— */

.site-footer {
  padding: 2.5rem 0 6.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p { margin: 0 0 0.4rem; max-width: none; }
.site-footer p:last-child { margin-bottom: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--ink);
}

/* ——— Sticky mobile CTA ——— */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(247, 244, 239, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  gap: 0.55rem;
}

.sticky-cta .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.72rem 0.65rem;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta .sticky-alt {
  /* legacy class kept; styled as secondary pill via .btn-secondary in HTML */
  color: var(--ink);
}

/* ——— Utilities ——— */

.text-link {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--forest-hover); }

/* ——— Responsive ——— */

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

  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3),
  .fact:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .fact:nth-child(3) { border-right: 1px solid var(--line); }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .distances {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav.is-open .nav-panel {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-soft);
  }

  .nav-panel a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    font-size: 1rem;
  }

  .nav-panel a.btn {
    text-align: center;
    margin-top: 0.75rem;
    border-bottom: 0;
    padding: 0.85rem 1.35rem;
  }

  .nav-panel a.btn-primary {
    color: #fff;
  }

  .nav-panel a.btn-secondary {
    color: var(--ink);
  }

  .nav-panel a:last-child {
    border-bottom: 0;
  }

  .hero { padding-top: 2.25rem; }

  .cards {
    grid-template-columns: 1fr;
  }

  .card { min-height: 0; }

  .sticky-cta { display: flex; }

  .site-footer { padding-bottom: 7rem; }

  .cta-band { padding-bottom: 5rem; }

  h1 { max-width: none; }
}

@media (max-width: 480px) {
  .sticky-cta .btn {
    font-size: 0.8rem;
    padding: 0.7rem 0.45rem;
  }

  .wrap {
    width: min(var(--max), calc(100% - 1.75rem));
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0.25rem;
  }

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

  .fact:nth-child(2),
  .fact:nth-child(3),
  .fact:nth-child(4) {
    border-top: 0;
    border-right: 0;
  }

  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }

  .cta-inner .actions { align-items: stretch; }

  .map { height: 280px; }

  .section { padding: 3.25rem 0; }
  .cta-band { padding: 3.25rem 0; }
}

@media (min-width: 761px) {
  .sticky-cta { display: none !important; }
}
