/* ==========================================================================
   True Dental — design tokens
   ========================================================================== */

:root {
  --ink: oklch(18% 0.02 195);
  --ink-soft: oklch(38% 0.01 195);
  --ink-mute: oklch(50% 0.01 195);
  --paper: oklch(98% 0.006 195);
  --mist: oklch(95% 0.015 195);
  --line: oklch(90% 0.01 195);
  --brand: oklch(45% 0.09 195);
  --brand-hover: oklch(38% 0.09 195);
  --signal: oklch(68% 0.14 195);
  --signal-ink: oklch(30% 0.09 195);

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1280px;
  --header-h: 84px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brand-hover); color: var(--paper); }

.btn-secondary {
  background: transparent;
  border-color: oklch(75% 0.02 195);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.btn-sm { padding: 14px 28px; font-size: 16px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 56px;
  border-bottom: 1px solid var(--line);
  background: oklch(98% 0.006 195 / 0.92);
  backdrop-filter: blur(8px);
  min-height: var(--header-h);
}

.site-logo img { height: 104px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 6px 2px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand); }
.nav-link[aria-current="page"],
.nav-link.is-active { color: var(--brand); }

.nav-item { position: relative; }

.nav-caret { font-size: 12px; margin-left: 2px; opacity: 0.7; }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px oklch(0% 0 0 / 0.1);
  padding: 8px 0;
  min-width: 220px;
  z-index: 20;
  display: none;
}
.nav-menu.is-open { display: block; }

.nav-menu a, .nav-menu .nav-menu-item {
  display: block;
  padding: 11px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.nav-menu a:hover, .nav-menu .nav-menu-item:hover {
  color: var(--brand);
  background: var(--mist);
}

.nav-book { margin-left: 4px; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* ==========================================================================
   Viewfinder / instrument framing (signature motif)
   ========================================================================== */

.viewfinder {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.viewfinder::before,
.viewfinder::after,
.viewfinder .vf-corner {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--signal);
  z-index: 2;
  pointer-events: none;
}
.viewfinder::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.viewfinder::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.vf-corner.vf-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.vf-corner.vf-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }

.viewfinder img { border-radius: 0; }

.vf-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: oklch(18% 0.02 195 / 0.72);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 88px 56px 96px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Sections / generic
   ========================================================================== */

.section { padding: 80px 56px; }
.section-tint { background: var(--mist); }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-inner.narrow { max-width: 900px; }
.section-inner.medium { max-width: 1100px; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 12px;
}
.section-head p {
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 560px;
  margin: 0 auto;
}

h1.page-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 16px;
}
.page-title.center { text-align: center; }

.page-intro {
  font-size: 16px;
  color: var(--ink-mute);
  text-align: center;
  margin: 0 auto 56px;
  max-width: 640px;
}

/* ==========================================================================
   Card grids
   ========================================================================== */

.grid { display: grid; gap: 32px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  padding: 32px;
  border-radius: var(--radius-md);
}
.card.bordered { border: 1px solid var(--line); background: transparent; padding: 28px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: 0;
}

/* Instrument (technology) cards */
.instrument-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.instrument-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.instrument-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--signal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
}
.instrument-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0;
}
.instrument-spec {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: -8px 0 0;
}
.instrument-card p.desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial {
  padding: 80px 56px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: oklch(30% 0.01 195);
}
.testimonial cite {
  font-size: 14px;
  color: var(--ink-mute);
  font-style: normal;
}

/* ==========================================================================
   About tabs
   ========================================================================== */

.tabbar {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.tab {
  padding-bottom: 14px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-mute);
}
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.about-panel { display: none; }
.about-panel.is-active { display: block; }

.doctor-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.doctor-media { aspect-ratio: 3/4; }
.doctor-media img { width: 100%; height: 100%; object-fit: cover; }
.doctor-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.team-member .team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.team-member .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 500;
}
.team-member p.bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: 0;
}

.why-list {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
  padding-left: 20px;
}

/* ==========================================================================
   New patient steps
   ========================================================================== */

.step { text-align: center; }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--brand);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); margin: 0; }

.info-box {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 40px;
}
.info-box h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
}
.info-box p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-details p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.contact-details h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 24px 0 12px;
}
.contact-details h2:first-child { margin-top: 0; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; }
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ==========================================================================
   Cherry feature grid
   ========================================================================== */

.feature-grid { text-align: left; }
.feature-grid .card.bordered { padding: 24px; }
.feature-grid h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.feature-grid p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 40px 56px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer img { height: 30px; }

.footer-social { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--signal-ink);
  text-decoration: none;
}
.social-icon:hover { background: var(--brand); color: var(--paper); }

.footer-portal { font-size: 13px; margin-left: 4px; }
.footer-address { font-size: 13px; color: var(--ink-mute); text-decoration: none; }
.footer-address:hover { color: var(--brand); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-inline { gap: 14px; }
  .nav-link { font-size: 15.5px; }
}

@media (max-width: 960px) {
  .site-header { padding: 16px 24px; }
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }

  .nav-item, .nav-link, .nav-book { width: 100%; }
  .nav-link {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--mist);
    min-width: 0;
    margin-bottom: 4px;
  }
  .nav-book { margin: 16px 0 0; text-align: center; }

  .hero { grid-template-columns: 1fr; padding: 48px 24px 64px; gap: 40px; }
  .hero-media { order: -1; }
  .hero h1 { font-size: 38px; }
  .hero p.lede { max-width: none; }

  .section { padding: 56px 24px; }
  .container { padding-left: 24px; padding-right: 24px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  .doctor-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .tabbar { gap: 20px; overflow-x: auto; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  h1.page-title { font-size: 32px; }
  .site-footer { justify-content: center; text-align: center; }
  .info-box { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .instrument-card, .nav { transition: none; }
}
