/* Cherry Lab — shared stylesheet */

:root {
  --paper: #f7f4ee;
  --paper-2: #efebe2;
  --ink: #1c1916;
  --ink-2: #55504a;
  --ink-3: #8b847a;
  --accent: #8a2232;
  --accent-deep: #6e1a27;
  --rule: #ddd6c9;
  --rule-strong: #c9c1b1;
  --serif: 'Newsreader', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Noto Sans SC', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; }
a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Typography ─────────────────────────────── */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::after {
  content: '';
  height: 1px;
  width: 48px;
  background: var(--rule-strong);
}

.section-h {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 21em;
  margin-bottom: 18px;
}

.section-p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ── Navigation ─────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo .wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 22px; }

.lang-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  padding: 6px 13px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-link:hover { color: var(--accent); border-color: var(--accent); }

.btn-nav {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 11px 22px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

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

.text-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ── Hero ───────────────────────────────────── */

.hero {
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 40px 96px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 400;
  max-width: 15.5em;
  margin-bottom: 30px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede { max-width: 620px; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

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

.page-hero { border-bottom: 1px solid var(--rule); }
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 40px 70px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 400;
  margin-bottom: 24px;
  max-width: 16em;
}
.page-hero .lede { max-width: 640px; }

/* ── Fact strip ─────────────────────────────── */

.facts {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.facts-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 34px 28px 34px 0;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}
.fact:first-child { border-left: none; padding-left: 0; }
.fact-n {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 4px;
}
.fact-l {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Sections ───────────────────────────────── */

section { padding: 96px 0; }
section.tight { padding: 76px 0; }
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ── Numbered practice rows ─────────────────── */

.practice-list { margin-top: 56px; border-top: 1px solid var(--rule-strong); }
.practice-row {
  display: grid;
  grid-template-columns: 110px 1fr 200px;
  gap: 36px;
  padding: 46px 0;
  border-bottom: 1px solid var(--rule-strong);
  align-items: start;
}
.practice-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-3);
  padding-top: 4px;
}
.practice-body h3 {
  font-size: 26px;
  margin-bottom: 14px;
}
.practice-body p { color: var(--ink-2); max-width: 560px; }
.practice-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 6px;
}
.practice-side .icon { color: var(--accent); }

/* ── Why grid ───────────────────────────────── */

.why-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.why-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 38px;
}
.why-cell .icon { color: var(--accent); margin-bottom: 20px; }
.why-cell h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}
.why-cell p { font-size: 15px; color: var(--ink-2); }

/* ── Steps ──────────────────────────────────── */

.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step { border-top: 2px solid var(--ink); padding-top: 26px; }
.step-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h4 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--ink-2); }
.step .receive {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.step .receive strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

/* ── Service detail (services page) ─────────── */

.svc { border-bottom: 1px solid var(--rule-strong); }
.svc:last-of-type { border-bottom: none; }
.svc-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 18px; }
.svc-head .icon { color: var(--accent); align-self: center; }
.svc-num { font-family: var(--serif); font-size: 19px; color: var(--ink-3); }
.svc h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 44px;
}
.svc-block h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.svc-block p { font-size: 15.5px; color: var(--ink-2); }
.svc-block p + p { margin-top: 14px; }

.deliverables { list-style: none; }
.deliverables li {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
}
.deliverables li:last-child { border-bottom: none; }
.deliverables .d-name { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ── Case evidence block ────────────────────── */

.case {
  margin-top: 56px;
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 36px;
  max-width: 760px;
}
.case .case-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.case p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}
.case .case-note { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ── Principles (about) ─────────────────────── */

.principles { margin-top: 56px; border-top: 1px solid var(--rule-strong); }
.principle {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.principle-num { font-family: var(--serif); font-size: 19px; color: var(--ink-3); }
.principle h4 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.principle p { font-size: 15.5px; color: var(--ink-2); max-width: 640px; }

.prose { max-width: 680px; }
.prose p { font-size: 16.5px; color: var(--ink-2); }
.prose p + p { margin-top: 18px; }

/* ── FAQ ────────────────────────────────────── */

.faq { margin-top: 52px; border-top: 1px solid var(--rule-strong); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
}
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 0 24px; font-size: 15.5px; color: var(--ink-2); max-width: 660px; }

/* ── CTA ────────────────────────────────────── */

.cta { border-top: 1px solid var(--rule); text-align: center; }
.cta h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400;
  max-width: 18em;
  margin: 0 auto 18px;
}
.cta p { color: var(--ink-2); max-width: 520px; margin: 0 auto 36px; }

/* ── Contact page ───────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-group { margin-bottom: 22px; }
.f-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.f-group input, .f-group select, .f-group textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 2px;
  border-radius: 0;
  transition: border-color 0.2s;
}
.f-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355504a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.f-group textarea { min-height: 130px; resize: vertical; }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.f-group ::placeholder { color: var(--ink-3); }

.form-success {
  display: none;
  border: 1px solid var(--rule-strong);
  padding: 48px 40px;
  text-align: center;
}
.form-success h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); font-size: 15px; }
.form-success .icon { color: var(--accent); margin: 0 auto 18px; }

.contact-side { border-left: 1px solid var(--rule-strong); padding-left: 48px; }
.contact-side h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.contact-side .c-item { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.contact-side .c-item .icon { color: var(--accent); flex-shrink: 0; }
.contact-side .c-item a {
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.2s;
}
.contact-side .c-item a:hover { border-bottom-color: var(--accent); }

.next-steps { margin-top: 44px; }
.next-steps ol { list-style: none; counter-reset: ns; }
.next-steps li {
  counter-increment: ns;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--ink-2);
}
.next-steps li::before {
  content: counter(ns, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-2);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 40px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); max-width: 300px; }
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}

/* ── Reveal ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 404 ────────────────────────────────────── */

.nf { text-align: center; padding: 140px 24px; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; margin-bottom: 18px; }
.nf p { color: var(--ink-2); margin-bottom: 36px; }

/* ── Responsive ─────────────────────────────── */

@media (max-width: 900px) {
  .container, .nav-inner, .hero-inner, .page-hero-inner, .footer-inner { padding-left: 28px; padding-right: 28px; }
  section { padding: 72px 0; }
  .hero-inner { padding-top: 76px; padding-bottom: 68px; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 28px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 16px; border-bottom: none; }
  .hamburger { display: flex; }
  .btn-nav { display: none; }

  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 20px 24px 20px; border-top: 1px solid var(--rule); }
  .fact:first-child { padding-left: 20px; }
  .fact:nth-child(-n+2) { border-top: none; }
  .fact:nth-child(odd) { border-left: none; padding-left: 0; }

  .practice-row { grid-template-columns: 56px 1fr; }
  .practice-side { grid-column: 2; flex-direction: row; align-items: center; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule-strong); padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .principle { grid-template-columns: 56px 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .container, .nav-inner, .hero-inner, .page-hero-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .nav-links { padding-left: 20px; padding-right: 20px; }
  .facts-inner { grid-template-columns: 1fr; padding: 8px 20px; }
  .fact, .fact:first-child, .fact:nth-child(-n+2) { border: none; border-top: 1px solid var(--rule); padding: 18px 0; }
  .fact:first-child { border-top: none; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .case { padding-left: 22px; }
  .practice-row { grid-template-columns: 1fr; gap: 14px; }
  .principle { grid-template-columns: 1fr; gap: 8px; }
}
