/* Cedar Core — modern minimalist, white ground, restrained palette */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --line: #e4e2dc;
  --accent: #1a2f24;
  --accent-soft: #2d4a3a;
  --warm: #c4a574;
  --warm-deep: #8b6914;
  --error: #8b2e2e;
  --success: #1a2f24;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;
  --radius: 2px;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--warm-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }

p { margin: 0 0 var(--space-sm); }

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  max-width: 14rem;
  line-height: 1.25;
}

.brand:hover { color: var(--accent); }

.brand-mark {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 35%, var(--warm) 0 28%, transparent 29%),
    linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-bars {
  width: 1rem;
  height: 1px;
  background: var(--ink);
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-soft);
  color: #fff !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 14, 0.25) 0%, rgba(10, 18, 14, 0.72) 70%, rgba(10, 18, 14, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 var(--space-lg);
  max-width: 38rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: var(--space-sm);
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-sm);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero .btn-primary {
  background: var(--warm);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: #d4b888;
  color: var(--ink);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: var(--space-lg);
}

.section-intro p {
  color: var(--ink-muted);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-deep);
  margin-bottom: var(--space-xs);
}

/* Offer list — no cards in hero; list style elsewhere */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s var(--ease);
}

.offer-row:hover {
  padding-left: 0.5rem;
}

.offer-row h3 {
  margin-bottom: 0.35rem;
}

.offer-row p {
  color: var(--ink-muted);
  margin: 0;
  max-width: 42rem;
}

.offer-meta {
  font-size: 0.85rem;
  color: var(--warm-deep);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 0.35rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split img {
  width: 100%;
  height: min(520px, 70vw);
  object-fit: cover;
  animation: fadeUp 1s var(--ease) both;
}

.prose-block h2 { margin-bottom: var(--space-sm); }
.prose-block p { color: var(--ink-muted); }

/* Quote strip */
.quote-strip {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-strip blockquote {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.4;
}

.quote-strip cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Page hero (interior) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.page-hero-visual {
  margin-top: var(--space-lg);
  overflow: hidden;
}

.page-hero-visual img {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
}

/* Service grid detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: var(--space-lg);
}

.aside-panel {
  background: var(--bg-soft);
  padding: var(--space-md);
  border: 1px solid var(--line);
}

.aside-panel h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.aside-panel dl {
  margin: 0;
}

.aside-panel dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 0.85rem;
}

.aside-panel dd {
  margin: 0.2rem 0 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--warm);
  border-radius: 50%;
}

/* Pricing */
.fee-block {
  display: grid;
  gap: var(--space-md);
  max-width: 48rem;
}

.fee-item {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.fee-item h3 { margin-bottom: 0.35rem; }

.fee-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0.35rem 0;
}

.fee-note {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Reviews */
.review-list {
  display: grid;
  gap: var(--space-lg);
}

.review-item {
  max-width: 42rem;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.review-item.extended {
  max-width: 52rem;
  background: var(--bg-soft);
  padding: var(--space-md);
  border: 1px solid var(--line);
}

.review-item blockquote {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
}

.review-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.review-service {
  display: block;
  margin-top: 0.25rem;
  color: var(--warm-deep);
  font-weight: 500;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 0;
}

.blog-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.blog-row img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.blog-row time {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.blog-row h2 {
  font-size: 1.45rem;
  margin: 0.25rem 0 0.5rem;
}

.blog-row p {
  color: var(--ink-muted);
  margin: 0;
}

.article-body {
  max-width: 40rem;
  padding: var(--space-lg) 0 var(--space-xl);
}

.article-body p {
  font-size: 1.08rem;
  margin-bottom: 1.15rem;
}

.article-cover {
  margin-top: var(--space-md);
}

.article-cover img {
  width: 100%;
  height: clamp(240px, 42vw, 440px);
  object-fit: cover;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-lg);
}

.contact-details p {
  color: var(--ink-muted);
}

.form-stack {
  display: grid;
  gap: var(--space-sm);
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-field.has-error .field-error { display: block; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  margin-top: var(--space-sm);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  border-color: var(--accent);
  background: var(--bg-soft);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  border-color: var(--error);
  color: var(--error);
  background: #faf5f5;
}

/* Legal */
.legal-content {
  max-width: 42rem;
  padding: var(--space-lg) 0 var(--space-xl);
}

.legal-content h2 {
  margin-top: var(--space-lg);
  font-size: 1.55rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-md) 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* Process / engagement steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 var(--space-lg) 3.5rem;
  border-left: 1px solid var(--line);
  margin-left: 0.85rem;
}

.steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -1.15rem;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-muted); margin: 0; }

/* CTA band */
.cta-band {
  padding: var(--space-xl) 0;
  background: var(--accent);
  color: #fff;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 32rem; }

.cta-band .btn-primary {
  background: var(--warm);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: #d4b888;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-md);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-contact p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer-links h2,
.footer-contact h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
  padding: var(--space-md) 0;
  animation: riseIn 0.45s var(--ease);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cookie-inner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 42rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner[hidden] { display: none !important; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.error-page p {
  color: var(--ink-muted);
  max-width: 28rem;
  margin-inline: auto;
}

/* Team portraits */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.person img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-bottom: var(--space-sm);
}

.person h3 { margin-bottom: 0.25rem; }
.person .role {
  color: var(--warm-deep);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.person p { color: var(--ink-muted); font-size: 0.95rem; }

/* Factors list for pricing */
.factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.factor h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.factor p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split-reverse,
  .detail-grid,
  .contact-grid,
  .footer-grid,
  .blog-row,
  .people-grid,
  .factors {
    grid-template-columns: 1fr;
  }

  .offer-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm) 1.25rem var(--space-md);
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand { max-width: 11rem; font-size: 0.82rem; }
}

@media (max-width: 600px) {
  .blog-row img { height: 160px; }
  .shell { width: min(100% - 1.5rem, var(--max)); }
  .hero { min-height: 78vh; }
}
