/* ============================================================
   Lumen Dental Studio - styles.css
   Family: Clean-Tech (A) | Accent: deep teal | Cool slate neutrals
   ============================================================ */

:root {
  /* Deep teal primary scale (reseeded from #0F766E) */
  --teal-50:  #E8FCFB;
  --teal-100: #C9F8F4;
  --teal-200: #97F2EB;
  --teal-300: #65EBE1;
  --teal-400: #38E6D8;
  --teal-500: #1CD9CA;
  --teal-600: #17B5A9;
  --teal-700: #129187;
  --teal-800: #0D6861;
  --teal-900: #083F3B;

  /* Cool slate neutrals */
  --n-50:  #F1F2F3;
  --n-100: #DEE0E3;
  --n-200: #C9CDD2;
  --n-300: #A0A7B0;
  --n-400: #848D99;
  --n-500: #6F7886;
  --n-600: #5D646F;
  --n-700: #4A5059;
  --n-800: #353940;
  --n-900: #202327;

  --bg:      #F5F7F8;
  --surface: #FFFFFF;
  --border:  #E2E6EA;
  --ink:     var(--n-900);
  --muted:   var(--n-600);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(32, 35, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(32, 35, 39, 0.08);
  --shadow-lg: 0 20px 40px -20px rgba(32, 35, 39, 0.18);

  --container: 1160px;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* Background architecture: faint architectural grid + soft radial spotlight */
  background-image:
    radial-gradient(ellipse 90% 55% at 78% -8%, rgba(23, 181, 169, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgba(23, 181, 169, 0.05), transparent 55%),
    repeating-linear-gradient(0deg,  rgba(32, 35, 39, 0.025) 0, rgba(32, 35, 39, 0.025) 1px, transparent 1px, transparent 96px),
    repeating-linear-gradient(90deg, rgba(32, 35, 39, 0.025) 0, rgba(32, 35, 39, 0.025) 1px, transparent 1px, transparent 96px);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.025em;
}

h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
h4 { font-size: 0.95rem; letter-spacing: -0.01em; }

p { color: var(--muted); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 1rem;
}

.section-lead {
  margin-top: 0.9rem;
  max-width: 52ch;
}

.credit {
  font-size: 0.72rem;
  color: var(--n-400);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

.credit-dark { color: rgba(255, 255, 255, 0.55); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-700);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--n-200);
}
.btn-ghost:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

.btn-light {
  background: #FFFFFF;
  color: var(--teal-800);
  box-shadow: var(--shadow-md);
}
.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 248, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-700);
  color: #fff;
}
.brand-mark img { filter: brightness(0) invert(1); }

.brand-light .brand-mark { background: #fff; }
.brand-light .brand-mark img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--n-700);
}
.nav-links a { transition: color 0.15s var(--ease-out); }
.nav-links a:hover { color: var(--teal-700); }

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 5rem;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual { position: relative; }

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.hero-figure .credit {
  position: absolute;
  bottom: 0.7rem;
  left: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(20, 24, 26, 0.45);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin: 0;
}

.hero-card {
  position: absolute;
  bottom: -2.4rem;
  left: -2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  min-width: 220px;
}
.hero-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n-400);
}
.hero-card-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-800);
}
.hero-card-note {
  font-size: 0.82rem;
  color: var(--n-500);
}

/* ---------- Stats band ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 2.2rem 1.5rem;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--teal-800);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--n-600);
  font-weight: 500;
}

/* ---------- Services bento ---------- */
.services { padding: 6.5rem 0; }

.bento {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 1.25rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}

.bento-card p { font-size: 0.94rem; }

.bento-tall {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--teal-900);
  border: none;
  box-shadow: var(--shadow-md);
}
.bento-tall:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border: none; }

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.bento-body {
  position: relative;
  margin-top: auto;
  padding: 1.6rem;
  color: #fff;
}
.bento-body h3 { color: #fff; }
.bento-body p { color: rgba(255, 255, 255, 0.82); }

.bento-tall .bento-icon {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.bento-tall .bento-icon img { filter: brightness(0) invert(1); }

.bento-tall .credit {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  margin: 0;
}

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}

/* ---------- Approach split ---------- */
.approach { padding: 2rem 0 6.5rem; }

.approach-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.approach-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.approach-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}
.approach-figure .credit { padding: 0.6rem 0.9rem 0.7rem; margin: 0; background: var(--surface); }

.feature-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.feature-list li {
  display: flex;
  gap: 1.2rem;
  padding: 1.25rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-600);
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.feature-list span { font-size: 0.92rem; color: var(--muted); max-width: 52ch; }

/* ---------- Stories ---------- */
.stories {
  padding: 0 0 6.5rem;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-600);
  border-radius: var(--radius-md);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 52ch;
}

.quote-attr {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-700);
}

/* ---------- Booking + contact ---------- */
.booking {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.contact-list span, .contact-list a {
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-list a:hover { color: var(--teal-700); }

.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.4rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--n-300);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--n-400); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}

.form-note {
  font-size: 0.82rem;
  color: var(--n-500);
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem 0.5rem;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  margin-bottom: 0.4rem;
}

.form-success p { max-width: 34ch; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%, rgba(56, 230, 216, 0.22), transparent 55%),
    var(--teal-900);
  color: #fff;
  padding: 5.5rem 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.cta-inner h2 { color: #fff; max-width: 20ch; }
.cta-inner p { color: rgba(255, 255, 255, 0.78); max-width: 48ch; }
.cta-inner .btn { margin-top: 0.6rem; }

/* ---------- Footer ---------- */
.footer {
  background: #14191B;
  color: #C7CDD1;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer .brand-name { color: #fff; }
.footer-brand p { color: #9AA2A9; margin-top: 1rem; font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8E959B;
  margin-bottom: 0.9rem;
}

.footer-col p {
  color: #C7CDD1;
  font-size: 0.93rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #8E959B;
}

.footer-note { color: #6E767C; font-size: 0.78rem; }

/* ---------- Scroll reveal (CSS-only, progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bento-card, .quote, .booking-card, .approach-figure, .stats-row, .cta-inner {
      animation: rise 0.7s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .approach-grid, .booking-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 4rem 0 6rem; min-height: auto; }
  .hero-card { left: 1rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tall { grid-row: span 1; min-height: 300px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
  .stat { padding: 1.4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .booking-card { padding: 1.6rem; }
  .hero-card { position: static; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}