/* ============================================================
   Lumen Dental — static styles
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --background: oklch(0.99 0.006 95);
  --foreground: oklch(0.27 0.03 200);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.27 0.03 200);
  --primary: oklch(0.58 0.09 195);
  --primary-foreground: oklch(0.99 0.006 95);
  --secondary: oklch(0.96 0.015 95);
  --secondary-foreground: oklch(0.32 0.03 200);
  --muted: oklch(0.96 0.012 110);
  --muted-foreground: oklch(0.52 0.02 200);
  --accent: oklch(0.92 0.04 75);
  --accent-foreground: oklch(0.32 0.03 200);
  --border: oklch(0.91 0.012 110);
  --input: oklch(0.91 0.012 110);
  --ring: oklch(0.58 0.09 195);
  --radius: 0.75rem;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
    sans-serif;
  --font-serif: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;

  --maxw: 72rem; /* max-w-6xl */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}
html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--background);
}
body {
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-primary {
  color: var(--primary);
}
.icon-fill {
  fill: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-rounded {
  border-radius: 9999px;
}
.btn-lg {
  height: 2.75rem;
  padding-inline: 2rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background-color: color-mix(in oklab, var(--primary) 90%, black);
}
.btn-outline {
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: var(--secondary);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.brand-mark .icon {
  width: 16px;
  height: 16px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.nav-desktop a:hover {
  color: var(--foreground);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  color: var(--foreground);
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.mobile-menu {
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background-color: var(--background);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}
.mobile-nav a {
  border-radius: 0.375rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.mobile-nav a:hover {
  background-color: var(--muted);
  color: var(--foreground);
}
.mobile-book {
  margin-top: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}
.hero-text {
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-media {
  position: relative;
}
.hero-image-frame {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-card {
  display: none;
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}
.hero-float-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}
.hero-float-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.section-title {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}
.section-title.left {
  margin-top: 0;
}
.section-sub {
  margin-top: 1rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.section-sub.left {
  margin-top: 0;
}

/* ---------- Services ---------- */
.services {
  background-color: color-mix(in oklab, var(--secondary) 50%, var(--background));
  padding-block: 5rem;
}
.services-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
}
.service-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.75rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.service-title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}
.service-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- About ---------- */
.about {
  padding-block: 5rem;
}
.about-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
.about-image-frame {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.about-points {
  display: grid;
  gap: 0.75rem;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.about-points .check {
  margin-top: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--primary) 15%, transparent);
  color: var(--primary);
}
.about-points .check .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Stats ---------- */
.stats {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding-block: 3.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.stat {
  text-align: center;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}

/* ---------- Team ---------- */
.team {
  background-color: color-mix(in oklab, var(--secondary) 50%, var(--background));
  padding-block: 5rem;
}
.team-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
.team-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
}
.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-info {
  padding: 1.25rem;
}
.team-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}
.team-role {
  font-size: 0.875rem;
  color: var(--primary);
}

/* ---------- Testimonials carousel ---------- */
.reviews {
  padding-block: 5rem;
}
.carousel {
  position: relative;
  margin-top: 3.5rem;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
  flex-shrink: 0;
  padding-inline: 0.75rem;
  flex-basis: 100%;
}
.review-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.75rem;
}
.review-quote-icon {
  color: color-mix(in oklab, var(--primary) 30%, transparent);
}
.review-quote-icon .icon {
  width: 28px;
  height: 28px;
}
.review-stars {
  display: flex;
  gap: 0.125rem;
  color: var(--primary);
}
.review-stars .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.review-text {
  line-height: 1.65;
  color: var(--foreground);
  text-wrap: pretty;
}
.review-foot {
  margin-top: auto;
}
.review-name {
  font-weight: 600;
  color: var(--foreground);
}
.review-detail {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.carousel-controls {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  transition: background-color 0.2s ease;
}
.carousel-arrow:hover {
  background-color: var(--secondary);
}
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.carousel-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background-color: var(--border);
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}
.carousel-dot:hover {
  background-color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
}
.carousel-dot.is-active {
  width: 1.5rem;
  background-color: var(--primary);
}

/* ---------- Booking ---------- */
.book {
  background-color: color-mix(in oklab, var(--secondary) 50%, var(--background));
  padding-block: 5rem;
}
.book-card {
  display: grid;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
}
.book-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem;
}
.book-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.book-lead {
  margin-top: 0.75rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--primary-foreground) 85%, transparent);
  text-wrap: pretty;
}
.book-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}
.book-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.book-details .icon {
  width: 20px;
  height: 20px;
}

.book-form-wrap {
  padding: 2rem;
}
.book-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.field input,
.field select {
  height: 2.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: box-shadow 0.15s ease;
}
.field input::placeholder {
  color: var(--muted-foreground);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}
.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.book-success {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}
.success-mark .icon {
  width: 28px;
  height: 28px;
}
.success-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}
.success-text {
  max-width: 24rem;
  color: var(--muted-foreground);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--background);
}
.site-footer .container {
  padding-block: 3.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-brand .brand {
  margin-bottom: 0;
}
.footer-blurb {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.footer-col ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-col a {
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--foreground);
}
.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a:hover {
  color: var(--foreground);
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 15px -3px color-mix(in oklab, var(--primary) 25%, transparent);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 25px -5px color-mix(in oklab, var(--primary) 30%, transparent);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .hero-float-card {
    display: block;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-bottom {
    flex-direction: row;
  }
  .hero-title {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .book-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .header-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
  .hero-grid,
  .services,
  .about,
  .team,
  .reviews,
  .book {
    /* spacing handled below */
  }
  .hero-grid {
    padding-block: 6rem;
  }
  .services,
  .about,
  .team,
  .reviews,
  .book {
    padding-block: 7rem;
  }
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .book-info,
  .book-form-wrap {
    padding: 3rem;
  }
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-media {
    order: 1;
  }
  .about-copy {
    order: 2;
  }
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .book-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .carousel-track {
    transition: none;
  }
  .scroll-top {
    transition: opacity 0.2s ease;
  }
}
