/* TDB Dental Lab site styles. Black and white brand, one accent for buttons. */
:root {
  --ink: #17181a;
  --muted: #4a4e57;
  --line: #dcdee3;
  --grey: #f3f4f6;
  --dark: #101114;
  --black: #000000;
  --on-dark: #d5d8de;
  --on-dark-muted: #b9bdc6;
  --accent: #1d5fd6;
  --accent-dark: #174aa8;
  --wrap: 1180px;
  --display: Manrope, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
address { font-style: normal; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center; padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; transition: background-color 0.18s, border-color 0.18s, transform 0.18s var(--ease), box-shadow 0.18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(29, 95, 214, 0.35); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: #7b808a; color: #fff; background: transparent; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-outline { border-color: #7b808a; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 11px 16px; font-size: 15px; border-radius: 8px; }
.btn-block { display: block; width: 100%; padding: 15px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--black); color: #fff; }
@media (min-width: 1280px) { .site-header { position: sticky; top: 0; z-index: 50; } }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; flex: 0 0 auto; }
.logo img { height: 44px; width: auto; max-width: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 420px; font-size: 15px; font-weight: 500; }
.site-nav a { color: #fff; text-decoration: none; padding: 11px 0; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.header-phone { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; padding: 11px 6px; }
.header-phone:hover { color: #fff; text-decoration: underline; }
.nav-toggle { display: none; font: inherit; font-weight: 600; font-size: 15px; color: #fff; background: transparent; border: 1px solid #7b808a; border-radius: 8px; padding: 11px 16px; margin-left: auto; cursor: pointer; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; flex: 1 1 100%; flex-direction: column; gap: 0; font-size: 17px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-top: 1px solid #2a2c31; }
  .header-actions { flex: 1 1 100%; }
}

/* Hero */
.hero { background: var(--black); color: #fff; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-top: 44px; padding-bottom: 64px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-photo { flex: 1 1 460px; min-width: 0; }
.hero-photo img { width: 100%; border-radius: 12px; }
.hero-home .hero-row { padding-top: 56px; padding-bottom: 72px; }
.hero-home h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.03; }
.hero-home .lead { font-size: 20px; }
.hero-show { flex: 1 1 440px; min-width: 0; max-width: 620px; margin: 0 auto; position: relative; aspect-ratio: 1 / 1; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }
.hero-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 14px; color: var(--on-dark-muted); letter-spacing: 0.04em; }
.hero .lead { font-size: 19px; color: var(--on-dark); max-width: 560px; }
.hero .note { font-size: 15px; color: var(--on-dark-muted); }
.hero .note a { color: #fff; font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-page .hero-row { padding-top: 36px; padding-bottom: 52px; }
.hero-page h1 { font-size: clamp(32px, 4.4vw, 50px); }

/* Fact strip */
.facts { background: var(--dark); color: #fff; border-top: 1px solid #2a2c31; }
.facts-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 36px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; font-weight: 500; }
.fact { display: flex; align-items: center; gap: 10px; }

/* Sections */
.band { padding: 96px 0; }
.band-tight { padding: 72px 0; }
.band-grey { background: var(--grey); }
.band-dark { background: var(--dark); color: #fff; }
.band-black { background: var(--black); color: #fff; }
.band-dark p, .band-black p { color: var(--on-dark); }
.band-dark address { color: var(--on-dark-muted); font-size: 15px; margin-top: 8px; }
.band-dark a.strong, .band-black a { color: #fff; font-weight: 600; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 18px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent) !important; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head p { color: var(--muted); }
.band-black .section-head p, .band-dark .section-head p { color: var(--on-dark); }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 300px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease); }
.card p { color: var(--muted); font-size: 16px; }
.card-soft { background: var(--grey); border-color: transparent; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 17, 20, 0.1); }
.card-photo { padding: 0; overflow: hidden; gap: 0; }
.card-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #000; transition: transform 0.5s var(--ease); }
a.card-photo:hover img { transform: scale(1.03); }
.card-photo .card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card-link { font-weight: 600; color: var(--accent); margin-top: 4px; font-size: 16px; }
.card-link::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform 0.2s var(--ease); }
a.card:hover .card-link::after { transform: translateX(4px); }
.metric-value { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card.metric { border: 0; border-top: 3px solid var(--ink); border-radius: 0; padding: 22px 0 0; background: transparent; }
.metric-label { font-weight: 600; }
.metric-basis { font-size: 14px; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; counter-reset: step; }
.steps li { flex: 1 1 280px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps .step-title { font-family: var(--display); font-weight: 700; font-size: 19px; }
.steps .step-body { font-size: 16px; color: var(--muted); }
.band-dark .steps li, .band-black .steps li { border-top-color: #fff; }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; }
.split-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-form, .split-side { flex: 1 1 440px; min-width: 0; }
.split-photo { flex: 1 1 420px; min-width: 0; }
.split-photo img { width: 100%; border-radius: 12px; background: #000; }

/* Chips and lists */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 15px; font-weight: 600; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tiles li { flex: 1 1 200px; }
.tiles a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.tiles a:hover { border-color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Long-form text (product pages, guides, policies) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 22px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose ul.chips { padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.prose .note-box { background: var(--grey); border-radius: 12px; padding: 18px 20px; font-size: 16px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 680px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--grey); }
.with-aside { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.with-aside .prose { flex: 999 1 520px; min-width: 0; }
.aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.aside .card { flex: 0 0 auto; }

/* Breadcrumbs */
.crumbs { background: var(--black); max-width: none; padding-top: 14px; padding-bottom: 0; }
.crumbs ol { list-style: none; margin: 0 auto; padding: 0; max-width: calc(var(--wrap) - 48px); display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--on-dark-muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #000; border-radius: 10px; }
.gallery-large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gallery figcaption { font-size: 14px; color: var(--on-dark-muted); }
.band:not(.band-black):not(.band-dark) .gallery figcaption { color: var(--muted); }

/* Forms */
.lead-form { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 15px; border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row .field { flex: 1 1 180px; }
.field-row { display: flex; flex-wrap: wrap; gap: 15px; }
.field label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #8d919b; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.hint { font-size: 14px; color: var(--muted) !important; }
.form-error { color: #a4161a !important; font-size: 15px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { background: #e9f6ee; border-radius: 12px; padding: 20px; color: #14532d; }
.form-done strong { display: block; font-size: 18px; }

.checks { border: 0; padding: 0; margin: 0; gap: 8px; }
.checks legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.checks label { font-weight: 400; display: flex; align-items: center; gap: 10px; min-height: 32px; }
.checks input { width: 20px; height: 20px; }

/* Announcement strip, scanner logos, reel, map */
.announce { background: #fff; border-bottom: 1px solid var(--line); }
.announce-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.scanner-logo { width: 150px; height: 84px; object-fit: contain; margin-bottom: 6px; border-radius: 8px; }
.reel { width: 100%; max-width: 360px; height: auto; border-radius: 12px; background: #000; display: block; margin: 0 auto; }
.map { width: 100%; height: 360px; border: 0; border-radius: 12px; }
.gallery-light a { display: block; }
.gallery-light img { background: #fff; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--black); color: var(--on-dark-muted); font-size: 15px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 52px; padding-bottom: 36px; }
.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-family: Inter, system-ui, sans-serif; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer-col nav a, nav.footer-col a { padding: 4px 0; }
.footer-logo { height: 40px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; }
.footer-base { border-top: 1px solid #2a2c31; padding-top: 18px; padding-bottom: 28px; font-size: 14px; }

/* Scanner logo row (home) */
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-align: center; text-decoration: none; height: 100%; transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease); }
.logo-tile img { width: auto; max-width: min(100%, 124px); height: 72px; object-fit: contain; border-radius: 14px; }
.logo-more { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 40px; font-weight: 300; line-height: 1; }
.logo-more.scanner-logo { width: 84px; height: 84px; margin-bottom: 6px; }
.logo-tile:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 17, 20, 0.1); }

/* Sections ease in once as they are scrolled to. Only applied by site.js, so
   the page is complete without JavaScript, and never with reduced motion. */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .band { padding: 64px 0; }
  .band-tight { padding: 52px 0; }
  .hero-home .hero-row { padding-top: 36px; padding-bottom: 52px; }
  .hero-home .lead, .section-head p { font-size: 17px; }
  .section-head { margin-bottom: 28px; }
  .logo-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logo-tile { padding: 14px 6px 12px; font-size: 13px; gap: 8px; }
  .logo-tile img { max-width: min(100%, 92px); height: 52px; }
  .gallery-large { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .lead-form { padding: 20px; }
  .header-actions .btn-primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .band-dark, .nav-toggle { display: none; } }
