/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --border: #e5e1d8;
  --border-strong: #d2ccbe;
  --ink: #1c1a17;
  --ink-dim: #6b665c;
  --ink-faint: #a39d90;
  --accent: #b5591d;
  --accent-hover: #984917;
  --accent-ink: #fff8ee;
  --ring: rgba(181, 89, 29, 0.25);
  --radius: 10px;
  --max-w: 1120px;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --panel: #17140f;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --ink: #f3efe9;
    --ink-dim: #a9a294;
    --ink-faint: #6e675c;
    --accent: #e2894a;
    --accent-hover: #ec9c62;
    --accent-ink: #1d1006;
    --ring: rgba(226, 137, 74, 0.25);
  }
}
:root[data-theme="dark"] {
  --bg: #131110; --panel: #17140f;
  --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #f3efe9; --ink-dim: #a9a294; --ink-faint: #6e675c;
  --accent: #e2894a; --accent-hover: #ec9c62; --accent-ink: #1d1006;
  --ring: rgba(226, 137, 74, 0.25);
}
:root[data-theme="light"] {
  --bg: #fbfaf8; --panel: #ffffff;
  --border: #e5e1d8; --border-strong: #d2ccbe;
  --ink: #1c1a17; --ink-dim: #6b665c; --ink-faint: #a39d90;
  --accent: #b5591d; --accent-hover: #984917; --accent-ink: #fff8ee;
  --ring: rgba(181, 89, 29, 0.25);
}

html { scroll-behavior: smooth; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 116px 32px;
}
.section-head { max-width: 560px; margin-bottom: 56px; }
.label {
  color: var(--ink-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-dim); font-size: 1.02rem; max-width: 460px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-text { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.92rem; color: var(--ink-dim); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-small { padding: 8px 15px; font-size: 0.86rem; }
.btn-large { padding: 14px 24px; font-size: 0.96rem; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 0 0 4px var(--ring); }

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

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 108px 32px 96px;
}
.hero-copy { max-width: 700px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 22px; }
.accent-text { color: var(--accent); }
.hero-sub { color: var(--ink-dim); font-size: 1.1rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-icon { color: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--ink-dim); font-size: 0.93rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-sub { color: var(--ink-dim); margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.86rem; font-weight: 500; color: var(--ink-dim); }
.form-row input, .form-row textarea {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
.form-note { font-size: 0.86rem; color: var(--accent); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 32px 34px; text-align: center; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand { justify-content: center; margin-bottom: 14px; }
.footer-tag { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 16px; }
.footer-copy { color: var(--ink-faint); font-size: 0.82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 20px 32px; gap: 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .btn-small { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 88px 22px; }
  .hero { padding: 130px 22px 70px; gap: 44px; }
  .nav-inner { padding: 16px 22px; }
}
