/* ========================================================================
   Munday Repairs — Apple-inspired design system
   ====================================================================== */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&f[]=instrument-serif@400&f[]=jetbrains-mono@400,500&display=swap');

:root {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --bg-dim: #f5f5f7;
  --bg-contrast: #1d1d1f;
  --text: #1d1d1f;
  --text-soft: #424246;
  --text-muted: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #1d1d1f;
  --accent-ink: #ffffff;
  --link: #0066cc;
  --ring: rgba(29, 29, 31, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 44px;

  --max: 1200px;
  --nav-h: 56px;
  --step: clamp(1rem, 1.2vw, 1.1rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-elevated: #121215;
    --bg-dim: #17171a;
    --bg-contrast: #f5f5f7;
    --text: #f5f5f7;
    --text-soft: #c7c7cc;
    --text-muted: #8e8e93;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent: #f5f5f7;
    --accent-ink: #1d1d1f;
    --link: #2997ff;
    --ring: rgba(245, 245, 247, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--step);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss03', 'cv11';
}

img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.nav-inner {
  max-width: var(--max);
  width: 100%;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-brand svg { width: 22px; height: 22px; }
.nav-brand .brand-glyph { fill: #ffffff !important; }
@media (prefers-color-scheme: dark) {
  .nav-brand .brand-glyph { fill: #1d1d1f !important; }
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
  font-weight: 450;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  top: 40%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(29, 29, 31, 0.06), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 auto 24px;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-family: 'Instrument Serif', 'Satoshi', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 auto 40px;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-dim); }
.btn-link { color: var(--link); gap: 4px; padding: 13px 0; }
.btn-link::after { content: "›"; transition: transform 0.2s var(--ease); }
.btn-link:hover::after { transform: translateX(4px); }

/* ================================================================
   SECTIONS + TILES
   ================================================================ */
section { padding: clamp(60px, 10vh, 120px) 0; }

.section-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 54px);
  max-width: 20ch;
  margin-bottom: 18px;
  letter-spacing: -0.035em;
}
.section-sub {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 48px;
}
.section-head { margin-bottom: 56px; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tile {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  isolation: isolate;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tile-title {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  max-width: 16ch;
}
.tile-summary {
  color: var(--text-soft);
  max-width: 42ch;
  margin: 0 0 28px;
  font-size: 16px;
}
.tile-price {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--link);
  margin-top: auto;
  align-self: flex-start;
}
.tile-cta::after { content: "›"; transition: transform 0.2s var(--ease); }
.tile:hover .tile-cta::after { transform: translateX(3px); }

/* iconography */
.tile-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-dim);
  color: var(--text);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.tile-icon svg { width: 22px; height: 22px; }

/* Variant: hero tile takes 8 cols */
.tile.wide { grid-column: span 8; min-height: 420px; }
.tile.third { grid-column: span 4; }
.tile.half { grid-column: span 6; }
.tile.full { grid-column: span 12; min-height: 300px; }

@media (max-width: 920px) {
  .tile.wide, .tile.third, .tile.half, .tile.full {
    grid-column: span 12;
  }
}

/* Dark tile variant for emphasis */
.tile-dark {
  background: var(--bg-contrast);
  color: var(--accent-ink);
  border-color: transparent;
}
.tile-dark .tile-title,
.tile-dark .tile-summary { color: var(--accent-ink); }
.tile-dark .tile-summary { opacity: 0.82; }
.tile-dark .tile-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-ink);
  border-color: rgba(255, 255, 255, 0.14);
}
.tile-dark .tile-cta { color: var(--accent-ink); opacity: 0.92; }

/* ================================================================
   PROCESS STRIP
   ================================================================ */
.process {
  background: var(--bg-dim);
  padding: clamp(60px, 8vh, 100px) 0;
  border-radius: var(--radius-xl);
  margin: 0 clamp(10px, 2vw, 20px);
}
.process-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.process-step { position: relative; }
.process-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 18px;
  display: block;
  letter-spacing: -0.01em;
}
.process-step h4 {
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.process-step p { font-size: 15px; color: var(--text-soft); }
@media (max-width: 820px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FAQ
   ================================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  cursor: pointer;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-top: 14px; color: var(--text-soft); max-width: 70ch; font-size: 16px; }

/* ================================================================
   CONTACT / CTA
   ================================================================ */
.cta-big {
  text-align: center;
  padding: clamp(80px, 12vh, 140px) 0;
}
.cta-big h2 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 auto 18px;
}
.cta-big p { max-width: 48ch; margin: 0 auto 36px; font-size: 19px; }

/* ================================================================
   FORMS
   ================================================================ */
.form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.field input, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--text);
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.form-note { color: var(--text-muted); font-size: 14px; }
.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.flash-ok { background: color-mix(in srgb, #2fb344 18%, var(--bg-dim)); color: var(--text); }
.flash-err { background: color-mix(in srgb, #d93b3b 18%, var(--bg-dim)); color: var(--text); }

.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

/* ================================================================
   LEGAL / LONG-FORM
   ================================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.75;
}
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; letter-spacing: -0.035em; color: var(--text); }
.prose h2 { font-size: 26px; margin: 52px 0 12px; letter-spacing: -0.02em; color: var(--text); }
.prose h3 { font-size: 20px; margin: 32px 0 10px; color: var(--text); }
.prose p, .prose ul { margin: 0 0 18px; }
.prose ul { padding-left: 1.2em; }
.prose ul li { margin: 6px 0; }
.prose a { color: var(--link); }
.prose code {
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-dim);
  border-radius: 6px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-muted);
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-col h5 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--text); }
.foot-brand { max-width: 36ch; }
.foot-brand p { color: var(--text-muted); }
.foot-bot {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
}

/* ================================================================
   REVEAL ANIMATION
   ================================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

