/* Kiln Dental Laboratory · concept site v2
   Ember ground, burnt-orange glow, porcelain light sections. Self-hosted Inter (OFL). */

@font-face { font-family: "Inter Display"; src: url("assets/fonts/InterDisplay-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --ground: #061416;
  --ember-1: #2f807c;
  --ember-2: #216664;
  --ember-3: #154846;
  --ember-4: #0c2f30;
  --porcelain: #f7efe7;
  --porcelain-2: #ebe3d9;
  --ink: #0e2627;
  --ink-soft: #3f5755;
  --rust: #9a4c1e;
  --white: #fbf6f1;
  --peach: #f3b78c;
  --accent: #f0a06b;
  --soft: #d8ece8;
  --muted: #b5d0cc;
  --line: rgba(190, 230, 224, 0.2);
  --line-ink: rgba(14, 38, 39, 0.14);
  --radius: 28px;
  --pad: clamp(20px, 3.4vw, 48px);
  --display: "Inter Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; background: var(--ground); color: var(--white); font-family: var(--body); font-weight: 300; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: #fff; color: var(--ember-4); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.light :focus-visible, .trust :focus-visible { outline-color: var(--ink); }

.page { padding: clamp(8px, 1.4vw, 20px); display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 20px); }
.page > *, main > * { max-width: 1600px; width: 100%; margin-inline: auto; }
main { display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 20px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn--light { background: var(--white); color: var(--ember-4); }
.btn--light:hover { background: #fff; }
.btn--outline { border-color: rgba(255,244,236,.7); color: var(--white); background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--dark { background: var(--ink); color: var(--porcelain); }
.btn--dark:hover { background: var(--rust); }

/* ---------- hero ---------- */
.hero {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: radial-gradient(ellipse 48% 75% at 66% 48%, var(--ember-1) 0%, var(--ember-2) 30%, var(--ember-3) 60%, var(--ember-4) 100%);
  padding: 28px var(--pad) 0;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 3; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.logo__sub { font-weight: 300; color: var(--soft); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--soft); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.nav__phone { color: #fff !important; font-weight: 500; font-variant-numeric: tabular-nums; padding-left: 28px !important; border-left: 1px solid var(--line); }
.menu-toggle { display: none; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 0 32px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 620px; }
.eyebrow { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 400; }
.display { font-family: var(--display); font-size: clamp(52px, 6.6vw, 104px); line-height: .98; font-weight: 300; letter-spacing: -0.035em; }
.display span { display: block; }
.tint { color: var(--peach); }
.soft { color: #9cc4be; }
.light .soft { color: var(--ink-soft); }
.accent { color: var(--accent); }
.light .accent { color: var(--rust); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--soft); max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* annotated render */
.render { position: relative; margin: 0 clamp(150px, 15vw, 230px) 0 0; justify-self: center; width: min(320px, 62%); }
.render img { width: 100%; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callout { position: absolute; left: 70%; display: flex; align-items: center; gap: 0; transform: translateY(-50%); }
.callout--crown { top: 20%; left: 76%; }
.callout--base { top: 38%; left: 67%; }
.callout--implant { top: 64%; left: 65%; }
.callout__line { position: relative; width: clamp(40px, 6vw, 110px); height: 1px; background: rgba(255,244,236,.7); flex: none; }
.callout__line::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.callout__text { padding-left: 12px; font-size: 14px; line-height: 1.35; color: var(--soft); white-space: nowrap; }
.callout__text strong { display: block; font-weight: 500; color: #fff; font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0 calc(var(--pad) * -1); }
.facts > div { padding: 22px var(--pad); border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-family: var(--display); font-size: 22px; font-weight: 300; letter-spacing: -0.01em; color: #fff; }
.facts dd { font-size: 14px; color: var(--soft); margin-top: 4px; }

/* ---------- trust strip ---------- */
.trust { background: var(--porcelain-2); color: var(--ink); border-radius: 18px; padding: 18px var(--pad); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; font-weight: 400; }
.trust li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.trust svg { width: 20px; height: 20px; color: var(--rust); flex: none; }

/* ---------- shared section layout ---------- */
.light, .dark, .tech { border-radius: var(--radius); }
.light { background: var(--porcelain); color: var(--ink); }
.dark { background: #0a1c1e; border: 1px solid rgba(190,230,224,.08); }
.wrap { padding: clamp(56px, 7vw, 104px) var(--pad); }
.wrap > * { max-width: 1240px; margin-inline: auto; }
.head { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(36px, 4vw, 56px); }
.title { font-family: var(--display); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; font-weight: 300; letter-spacing: -0.03em; max-width: 760px; }
.intro { max-width: 380px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.light .intro { color: var(--ink-soft); }

/* ---------- registration row ---------- */
.regs { list-style: none; padding: 0 0 36px; margin-bottom: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; border-bottom: 1px solid var(--line-ink); }
.regs li { font-size: 15px; line-height: 1.45; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.regs__k { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--ink); }

/* ---------- services table ---------- */
.table { border-top: 1px solid var(--ink); }
.table__row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) minmax(140px, .8fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-ink); align-items: baseline; transition: background .2s; }
.table__row:not(.table__row--head):hover { background: rgba(154,76,30,.05); }
.table__row--head { padding: 14px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.table__row span { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.table__row--head span { font-size: 13px; }
.table__name { font-family: var(--display); font-size: 24px !important; color: var(--ink) !important; letter-spacing: -0.01em; line-height: 1.2 !important; }
.table__days { font-family: var(--display); font-size: 22px !important; color: var(--rust) !important; text-align: right; font-variant-numeric: tabular-nums; }
.table__row--head span:last-child { text-align: right; }
.table__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; font-size: 15px; color: var(--ink-soft); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(240,160,107,.2)); }
.timeline li { position: relative; padding-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ground); border: 2px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }
.timeline__day { font-family: var(--display); font-size: 34px; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.timeline h3 { font-size: 19px; font-weight: 500; }
.timeline p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 300px; }

/* ---------- technicians ---------- */
.tech { background: radial-gradient(ellipse 70% 100% at 85% 10%, #2f807c 0%, var(--ember-3) 50%, #0a2a2b 100%); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding: clamp(56px, 7vw, 96px) var(--pad); align-items: end; }
.tech__detail { display: flex; flex-direction: column; gap: 16px; }
.tech__detail p { font-size: 17px; line-height: 1.55; color: var(--soft); max-width: 440px; }
.tech__phone { font-family: var(--display); font-size: clamp(32px, 3vw, 44px); letter-spacing: -0.02em; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; margin-top: 8px; }
.tech__phone:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.tech .tech__hours { font-size: 14px; color: var(--soft); }

/* ---------- start / form ---------- */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.intents { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.intents legend { padding: 0; margin-bottom: 14px; font-size: 14px; color: var(--soft); font-weight: 400; }
.intent { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(190,230,224,.28); border-radius: 14px; padding: 18px 20px 18px 52px; cursor: pointer; transition: border-color .2s, background .2s; }
.intent input { position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.intent strong { font-size: 17px; font-weight: 500; color: #fff; }
.intent span { font-size: 15px; color: var(--muted); }
.intent:hover { border-color: rgba(190,230,224,.55); }
.intent:has(input:checked) { border-color: var(--accent); background: rgba(240,160,107,.08); }
.intent:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--soft); font-weight: 400; }
.form .optional { color: var(--muted); font-weight: 300; }
.form .label-text { display: block; }
.form__wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { border-radius: 10px; border: 1px solid #5f8c87; background: #0d2729; color: #fff; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 300; }
.form input, .form select { height: 50px; }
.form select { background: #0c2a2b; }
.form textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.form input:hover, .form textarea:hover, .form select:hover { border-color: #8fbab4; }
.form input:focus, .form textarea:focus { border-color: #d8ece8; outline: none; box-shadow: 0 0 0 3px rgba(216,236,232,.25); }
.form [aria-invalid="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.form__note { font-size: 14px; color: var(--muted); }
.form__note a { color: var(--soft); }

/* ---------- footer ---------- */
.footer { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px var(--pad) 28px; font-size: 15px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); }
.footer a { color: var(--soft); }
.footer__brand { display: flex; align-items: flex-start; gap: 12px; color: #fff; font-size: 18px; font-weight: 500; }
.footer__label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; font-weight: 400; }
.footer__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; font-size: 14px; }
  .nav a[href="#technicians"] { display: none; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .render { width: min(280px, 50%); justify-self: start; margin: 0 0 0 4%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regs { grid-template-columns: 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
  .tech, .start { grid-template-columns: 1fr; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
  .nav { display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; min-width: 260px; background: var(--ember-4); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav.is-open { display: flex; }
  .nav a, .nav a[href="#technicians"] { display: block; padding: 12px 12px; border-bottom: 0; }
  .nav__phone { border-left: 0; padding-left: 12px !important; border-top: 1px solid var(--line) !important; margin-top: 4px; }
}
@media (max-width: 640px) {
  .logo__sub { display: none; }
  .render { width: 50%; margin: 0; }
  .callout__text { white-space: nowrap; }
  .callout__desc { display: none; }
  .callout__text strong { font-size: 14px; }
  .callout__line { width: 56px; }
  .callout--base .callout__line { width: 68px; }
  .callout--implant .callout__line { width: 74px; }
  .table__row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .table__row span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .table__row--head span:nth-child(2) { display: none; }
  .table__name { font-size: 21px !important; }
  .timeline { grid-template-columns: 1fr; row-gap: 32px; }
  .timeline::before { display: block; left: 7px; right: auto; top: 14px; bottom: 30px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(240,160,107,.2)); }
  .timeline li { padding: 0 0 0 36px; }
  .timeline li::before { top: 8px; }
  .form { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }

}
