/* ============================================================
   Parkmerdok — shared design system
   Botanical studio · deep pine + warm paper + sunrise amber
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* darks */
  --ink:      #0e2018;
  --ink-2:    #13291d;
  --ink-3:    #0a1711;
  /* lights */
  --paper:    #f6f0e4;
  --paper-2:  #efe6d5;
  --cream:    #f7f2e8;
  --cream-dim:#cfccbf;
  /* greens + text */
  --sage:     #93ac97;
  --moss:     #3c6b4d;
  --text:     #243a2e;
  --text-dim: #56675c;
  /* accents */
  --amber:      #dc9b52;
  --amber-deep: #b9762f;
  --clay:       #b8623f;
  /* lines */
  --line-dark:  rgba(247,242,232,.14);
  --line-light: rgba(36,58,46,.14);
  /* system */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --r:    14px;
  --r-lg: 24px;
  --shadow: 0 24px 60px -28px rgba(10,23,17,.55);
  --container: 1140px;
  --edge: clamp(1.25rem, 5vw, 3.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--edge); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.eyebrow {
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--amber-deep); font-weight: 600;
}
.section-dark .eyebrow { color: var(--amber); }

/* headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 380; font-optical-sizing: auto; letter-spacing: -.015em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
em { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; padding: .85rem 1.5rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #2a1a06; box-shadow: 0 12px 30px -12px rgba(220,155,82,.6); }
.btn-primary:hover { background: var(--amber-deep); color: #fff5e6; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(247,242,232,.08); }
.section-light .btn-ghost:hover { background: rgba(36,58,46,.06); }
.btn-arrow::after { content: "→"; font-size: 1.05em; transition: transform .25s; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

.link-more {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  font-weight: 600; font-size: .9rem; color: var(--moss);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .2s, border-color .2s, gap .2s;
}
.link-more::after { content: "→"; transition: transform .2s; }
.link-more:hover { color: var(--amber-deep); border-color: var(--amber-deep); }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Kept reliably dark so the light wordmark + nav always meet contrast,
     even where the bright hero orb sits directly behind the bar. */
  background: rgba(10,21,15,.92);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  border-bottom: 1px solid rgba(247,242,232,.1);
  color: var(--cream);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(7,16,11,.97); border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); }
.brand-mark { color: var(--amber); font-size: 1.15rem; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
/* :not(.btn) so this light link colour never overrides a button's own text
   colour (the Enquire button is an <a> and must keep .btn-primary's dark ink). */
.nav a:not(.btn) { text-decoration: none; color: var(--cream-dim); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--cream); }
.nav .btn { padding: .55rem 1.15rem; font-size: .88rem; }
@media (max-width: 680px) { .nav .nav-link { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--cream);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(220,155,82,.30), transparent 55%),
    radial-gradient(90% 70% at 8% 4%, rgba(60,107,77,.30), transparent 60%),
    linear-gradient(180deg, #10251a 0%, var(--ink) 52%, var(--ink-3) 100%);
  overflow: hidden;
}
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-orb {
  position: absolute; z-index: 0; top: -18%; right: -12%; width: min(58vw, 620px); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(240,201,143,.55), rgba(220,155,82,.18) 45%, transparent 68%);
  filter: blur(8px);
  animation: float 22s ease-in-out infinite alternate;
}
.hero-leaf { position: absolute; z-index: 0; opacity: .16; color: var(--sage); pointer-events: none; }
.hero-leaf.l1 { width: 220px; bottom: -30px; right: 8%; transform: rotate(12deg); animation: sway 14s ease-in-out infinite alternate; }
.hero-leaf.l2 { width: 150px; top: 22%; right: 30%; transform: rotate(-24deg); opacity: .1; animation: sway 18s ease-in-out infinite alternate-reverse; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%,4%,0) scale(1.06); } }
@keyframes sway { from { transform: rotate(8deg) translateY(0); } to { transform: rotate(16deg) translateY(-10px); } }

.hero-inner { position: relative; z-index: 2; display: grid; gap: 1.6rem; padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem); max-width: 44rem; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6rem); font-weight: 340; }
.hero h1 em { color: var(--amber); font-weight: 400; }
.hero-lede { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: var(--cream-dim); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: clamp(1.6rem, 4vw, 2.6rem); padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.hero-trust .stat { display: grid; gap: .1rem; }
.hero-trust .stat b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--cream); }
.hero-trust .stat span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }

/* ---------- section themes ---------- */
.section-light { background: var(--paper); color: var(--text); }
.section-alt   { background: var(--paper-2); color: var(--text); }
.section-dark  { background: var(--ink); color: var(--cream); }
.section-dark p { color: var(--cream-dim); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); display: grid; gap: 1rem; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--cream-dim); }

/* ---------- offerings cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.4rem; }
.card {
  background: var(--cream); border: 1px solid var(--line-light); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); display: grid; gap: .9rem; align-content: start;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(184,98,63,.35); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(150deg, rgba(220,155,82,.2), rgba(60,107,77,.16));
  color: var(--moss);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--text); }
.card p { color: var(--text-dim); font-size: .98rem; }
.card .price { font-family: var(--serif); font-style: italic; color: var(--amber-deep); font-size: 1.05rem; }

/* ---------- approach / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem 2.4rem; }
.step { display: grid; gap: .7rem; align-content: start; }
.step .num { font-family: var(--serif); font-size: 2.4rem; color: var(--amber); line-height: 1; font-weight: 400; }
.step h3 { color: inherit; }
.step p { font-size: .98rem; }

/* ---------- testimonial ---------- */
.quote-band {
  background:
    radial-gradient(90% 120% at 12% 10%, rgba(184,98,63,.16), transparent 60%),
    var(--ink-2);
  color: var(--cream);
}
.quote { max-width: 52rem; margin-inline: auto; text-align: center; display: grid; gap: 1.6rem; }
.quote blockquote { font-family: var(--serif); font-weight: 350; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.28; letter-spacing: -.01em; }
.quote blockquote em { color: var(--amber); }
.quote .cite { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }

/* ---------- newsletter / cta ---------- */
.cta-band { text-align: center; }
.cta-inner { max-width: 40rem; margin-inline: auto; display: grid; gap: 1.5rem; justify-items: center; }
.newsletter { display: flex; gap: .6rem; width: min(100%, 30rem); flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 12rem; min-width: 0; font-family: var(--sans); font-size: .98rem; color: var(--cream);
  background: rgba(247,242,232,.06); border: 1px solid var(--line-dark); border-radius: 999px; padding: .85rem 1.3rem;
}
.newsletter input::placeholder { color: var(--sage); }
.newsletter input:focus { outline: none; border-color: var(--amber); background: rgba(247,242,232,.1); }
.form-note { font-size: .8rem; color: var(--sage); min-height: 1.1em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-3); color: var(--cream-dim); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.4rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; font-size: .95rem; color: var(--sage); }
.footer-col h4 { font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); margin-bottom: 1rem; }
.footer-col a, .footer-col address { display: block; text-decoration: none; color: var(--cream-dim); font-size: .93rem; font-style: normal; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-legal { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.footer-legal p { font-size: .78rem; color: var(--sage); max-width: 60rem; }
.footer-note .clock { font-variant-numeric: tabular-nums; letter-spacing: .1em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- legal / prose pages ---------- */
.legal-hero { background: linear-gradient(180deg, #10251a, var(--ink)); color: var(--cream); padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.legal-hero .container { max-width: 800px; }
.legal-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.legal-hero .updated { margin-top: 1rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.legal-wrap { max-width: 800px; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal-toc { background: var(--cream); border: 1px solid var(--line-light); border-radius: var(--r); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.legal-toc h2 { font-size: .74rem; font-family: var(--sans); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .9rem; }
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 2rem; }
.legal-toc li { counter-increment: toc; margin-bottom: .5rem; break-inside: avoid; }
.legal-toc a { text-decoration: none; color: var(--moss); font-size: .92rem; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--amber-deep); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--amber-deep); text-decoration: underline; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

.prose { display: grid; gap: 1.05rem; }
.prose section { scroll-margin-top: 5rem; display: grid; gap: 1.05rem; padding-top: 1.4rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text); margin-top: .8rem; }
.prose h2 .idx { color: var(--amber-deep); font-size: .7em; font-variant-numeric: tabular-nums; margin-right: .6rem; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--text); letter-spacing: 0; }
.prose p, .prose li { color: var(--text-dim); font-size: 1rem; }
.prose a { color: var(--moss); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose .callout { background: var(--paper-2); border-left: 3px solid var(--amber); border-radius: 0 var(--r) var(--r) 0; padding: 1.1rem 1.3rem; }
.prose .callout p { color: var(--text); font-size: .95rem; }
.back-home { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.5rem; text-decoration: none; color: var(--moss); font-weight: 600; font-size: .92rem; }
.back-home:hover { color: var(--amber-deep); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding: 3rem var(--edge); }
.nf .big { font-family: var(--serif); font-size: clamp(4rem, 18vw, 9rem); line-height: 1; color: var(--moss); }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .8s cubic-bezier(.16,.84,.32,1), transform .8s cubic-bezier(.16,.84,.32,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orb, .hero-leaf { animation: none; }
}
