/* ---------- Design tokens ---------- */
:root {
  --ink: #241429;
  --ink-soft: #3a2340;
  --paper: #faf7f6;
  --paper-dim: #f2eae8;
  --text: #201319;
  --text-muted: #6c5c65;
  --text-on-dark: #f5eeed;
  --text-on-dark-muted: #c9bccc;
  --accent: #ff5a4e;
  --accent-strong: #e14539;
  --accent-soft: #ff8a7c;
  --border: #e8dcda;
  --border-dark: #3a2340;

  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --max: 1160px;
  --radius: 14px;
  --shadow-md: 0 12px 30px -12px rgba(36, 20, 41, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(36, 20, 41, 0.32);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(245, 238, 237, 0.35);
}
.btn-ghost:hover { border-color: rgba(245, 238, 237, 0.7); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-dark);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself, because
   backdrop-filter on an ancestor turns it into the containing block for any
   position:fixed descendant — which broke the fixed mobile nav panel below. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(36, 20, 41, 0.92);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
}
.brand-mark { color: var(--accent); display: flex; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-suffix { color: var(--text-on-dark-muted); font-weight: 500; margin-left: 4px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--text-on-dark-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text-on-dark); }
.main-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--accent-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-on-dark); margin: 0 auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 15% 0%, #3d2445 0%, var(--ink) 55%, var(--ink) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 90, 78, 0.32), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: #fff;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.trust-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}
.trust-bar li {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  position: relative;
  padding-left: 18px;
}
.trust-bar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-dim); }
.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 700px;
  margin-bottom: 18px;
}
.section-lede { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 24px; margin-top: 56px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 90, 78, 0.13), rgba(255, 138, 124, 0.16));
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Process ---------- */
.process-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-list li { border-top: 3px solid var(--accent); padding-top: 22px; }
.process-index {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.process-list h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-list p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.why-list { display: grid; gap: 28px; }
.why-list h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-list p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; color: var(--text-on-dark); }
.cta-band p { color: var(--text-on-dark-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-row .optional { font-weight: 400; color: var(--text-muted); }
.form-row input, .form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 78, 0.18);
}
.form-row-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-state="success"] { color: #128a63; }
.form-status[data-state="error"] { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--border-dark); padding: 28px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}
.footer-inner a:hover { color: var(--text-on-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 72px; }
  .section { padding: 72px 0; }
  .services-grid, .process-list { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
