/* ============================================================
   OAK CONSULTANCY — style.css
   Aesthetic: Editorial minimalism. Warm off-white, deep slate,
   terracotta red accent. Generous space. Understated confidence.
   Font: DM Sans (body) + DM Serif Display (headings)
   ============================================================ */

/* ── Imports ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ── */
:root {
  --ink:        #1e1e1e;
  --ink-mid:    #4a4a4a;
  --ink-soft:   #767676;
  --bg:         #f7f4f0;
  --bg-warm:    #ede9e4;
  --bg-dark:    #1e1e1e;
  --red:        #b83e2b;
  --red-dark:   #8f2e1f;
  --red-pale:   #f5ebe8;
  --border:     #d9d4ce;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --r:          6px;
  --r-lg:       12px;

  --w:          1100px;
  --gap:        clamp(2rem, 5vw, 4rem);
  --section:    clamp(4rem, 8vw, 7rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
ol { padding-left: 1.4rem; }

/* ── Container ── */
.container {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 60ch;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

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

.btn-ghost {
  background: transparent;
  color: var(--red);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost::after { content: ' →'; }
.btn-ghost:hover { text-decoration: underline; }

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-leaf { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--bg-warm); }
.nav a.active { color: var(--red); }
.nav .nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
}
.nav .nav-cta:hover { background: var(--red-dark); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
  }
  .nav a { padding: 0.6rem 0; }
  .nav .nav-cta { text-align: center; padding: 0.7rem; margin-left: 0; margin-top: 0.5rem; }
  body.nav-open .nav { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Sections ── */
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bg-warm); }
.section-dark {
  background: var(--bg-dark);
  color: #f0ede8;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f0ede8; }
.section-dark .lead, .section-dark p { color: #b0a99f; }
.section-dark a { color: #e8a898; }

/* ── Hero ── */
.hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin-bottom: 1.25rem; max-width: 20ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.card-red {
  background: var(--red-pale);
  border-color: #dbb5ac;
}
.card-dark {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #e0dbd4;
}

/* ── Grid helpers ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 0;
}

/* ── Inline list (pills) ── */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pill {
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  color: var(--ink-mid);
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.stat-cell {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--red);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  display: block;
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* ── Process steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--red);
  padding-top: 0.1rem;
  line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.9375rem; color: var(--ink-mid); }

/* ── Service cards (services page) ── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.service-block + .service-block {
  padding-top: var(--section);
  border-top: 1px solid var(--border);
}
@media (max-width: 680px) { .service-block { grid-template-columns: 1fr; } }

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Package cards ── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pkg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.pkg--featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.pkg-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 var(--r) var(--r);
}
.pkg-tier {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pkg-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1;
}
.pkg-price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-sans); }
.pkg-desc { font-size: 0.9rem; color: var(--ink-mid); }
.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.pkg-list li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  display: flex;
  gap: 0.6rem;
  line-height: 1.45;
}
.pkg-list li::before {
  content: '—';
  color: var(--border);
  flex-shrink: 0;
}
.pkg .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.form input,
.form textarea,
.form select {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); }

.check-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.2rem;
}
.check-group label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}
.check-group input[type="checkbox"] { width: auto; accent-color: var(--red); }
.check-legend { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }

/* ── Testimonials ── */
.testimonials { display: flex; flex-direction: column; gap: 1.5rem; }
.testimonial {
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.testimonial figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ── Team cards ── */
.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 2px solid var(--border);
  margin-bottom: 0.25rem;
}
.team-name { font-family: var(--font-serif); font-size: 1.35rem; }
.team-role { font-size: 0.82rem; color: var(--red); font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; }
.team-bio { font-size: 0.9375rem; color: var(--ink-mid); }
.team-contact { font-size: 0.875rem; }
.team-contact a { color: var(--red); }

/* ── CTA strip ── */
.cta-strip {
  background: var(--ink);
  color: #f0ede8;
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.cta-strip h2 { color: #f0ede8; margin-bottom: 0.75rem; }
.cta-strip p { color: #9a9088; max-width: 50ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-strip .btn-primary { background: var(--red); }
.cta-strip .btn-outline { border-color: #4a4a4a; color: #f0ede8; margin-left: 0.75rem; }
.cta-strip .btn-outline:hover { border-color: #f0ede8; }

/* ── Policy pages ── */
.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 720px) { .policy-layout { grid-template-columns: 1fr; } }
.policy-toc { display: flex; flex-direction: column; gap: 0.4rem; }
.policy-toc a { font-size: 0.875rem; color: var(--ink-mid); }
.policy-toc a:hover { color: var(--red); }
.policy-toc-card {
  position: sticky;
  top: 88px;
}
.policy-section + .policy-section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.policy-section h2 { margin-bottom: 0.75rem; }
.policy-section p + p { margin-top: 0.75rem; }
.policy-section ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; padding-left: 1.2rem; list-style: disc; }
.policy-section ul li { font-size: 0.9375rem; color: var(--ink-mid); }

/* ── 404 ── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h1 { margin-bottom: 0.75rem; }
.error-page p { color: var(--ink-mid); max-width: 40ch; margin-inline: auto; margin-bottom: 2rem; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: #9a9088;
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--gap);
  padding-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo { height: 28px; width: auto; margin-bottom: 1rem; opacity: 0.9; }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; color: #7a736b; max-width: 26ch; }
.footer-sectors { font-size: 0.8rem; color: #5a5450; margin-top: 0.5rem; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6460;
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a {
  font-size: 0.875rem;
  color: #8a8078;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #f0ede8; }
.footer-col p { font-size: 0.875rem; line-height: 1.6; }

.footer-legal {
  border-top: 1px solid #2a2a2a;
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4a4440;
}
.footer-legal a { color: #4a4440; }
.footer-legal a:hover { color: #8a8078; }

/* ── Utilities ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-red { color: var(--red); }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
p + p { margin-top: 0.85rem; }

/* ── Reveal animation (optional, progressive enhancement) ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
