/* Tannteknikarin – calm, warm, highly legible. Mobile first. No external fonts. */
:root {
  --bg: #fbf8f4;
  --bg-alt: #f1ebe2;
  --surface: #ffffff;
  --ink: #1e2b2f;
  --muted: #485a5f;
  --line: #ddd3c6;
  --accent: #1d5c63;
  --accent-dark: #143f44;
  --accent-soft: #e3eeee;
  --focus: #b45309;
  --radius: 14px;
  --wrap: 72rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; scroll-padding-bottom: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.1875rem); /* 18–19px */
  line-height: 1.65;
  padding-bottom: 5.5rem; /* room for the mobile call bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.15rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15em; color: var(--ink); }
.small { font-size: .95em; color: var(--muted); }
.note { color: var(--muted); border-left: 4px solid var(--line); padding-left: 1rem; margin-top: 1.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 700px) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }

/* ---------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: .5rem; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.logo-sub { font-size: .95rem; color: var(--muted); margin-top: .15rem; }
.logo:hover { color: var(--accent-dark); }

.main-nav ul { list-style: none; margin: 0; padding: .25rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 .85rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-link.active { color: var(--accent-dark); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 0 0; }
.lang-switch { border: 2px solid var(--line); font-weight: 600; letter-spacing: .04em; }
.main-nav li:first-child .nav-link { padding-left: .85rem; }

.crumbs ol { list-style: none; margin: 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 .45rem 0 .2rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .8rem 1.5rem; border-radius: 999px;
  font-size: 1.15rem; font-weight: 650; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: background-color .15s ease;
}
.btn-call { background: var(--accent); color: #fff; }
.btn.btn-header { display: none; }
@media (min-width: 900px) { .btn.btn-header { display: inline-flex; } }
.btn-call:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.icon { width: 1.3em; height: 1.3em; flex: none; }
.icon-sm { width: 1.05em; height: 1.05em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; min-height: 48px; }
.more .icon-sm { transition: transform .15s ease; }
.more:hover .icon-sm { transform: translateX(3px); }

/* ---------- sections */
.band { padding: 3rem 0; }
.band-alt { background: var(--bg-alt); }
@media (min-width: 900px) { .band { padding: 4.5rem 0; } }
.narrow .wrap > * { max-width: 46rem; }
.narrow-wrap { max-width: 46rem; }
.narrow-inner { max-width: 46rem; }

.hero, .intro { padding: 2.25rem 0 3rem; }
@media (min-width: 900px) { .hero, .intro { padding: 3.5rem 0 4.5rem; } }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .split-hero, .split-intro { grid-template-columns: 1.15fr .85fr; }
  .split-contact { align-items: start; }
}

.media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-ph {
  display: grid; place-items: center; color: #b9ac9b;
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 18px, #ece4d8 18px 36px);
}
.media-ph .icon-lg { width: 30%; height: auto; }
.split-hero .media, .split-intro .media { max-height: 34rem; }

/* ---------- cards */
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgb(30 43 47 / .07); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-icon { color: var(--accent); margin-bottom: 1rem; }
.card-icon .icon-lg { width: 3.25rem; height: 3.25rem; }
.card-link { margin-top: auto; margin-bottom: 0; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }

.cols2, .cols3 { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 800px) { .cols2 { grid-template-columns: 1fr 1fr; gap: 3rem; } .cols3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- counters */
.counters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.counters li { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center; border: 1px solid var(--line); }
.counters .num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); font-weight: 600; color: var(--accent-dark); line-height: 1.1; }
.counters .lbl { display: block; color: var(--muted); margin-top: .35rem; }

/* ---------- steps */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.steps li {
  counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.75rem;
}
@media (min-width: 900px) { .steps li { padding: 4.75rem 1.5rem 1.5rem; } }
.steps li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.35rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
}
.steps strong { display: block; margin-bottom: .25rem; }

/* ---------- checklist */
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.checklist .icon { color: var(--accent); margin-top: .2rem; }

/* ---------- callout */
.callout { background: var(--accent-soft); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 1.75rem 1.5rem; max-width: 52rem; }
@media (min-width: 700px) { .callout { padding: 2.25rem 2.5rem; } }
.callout h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.8rem); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ */
.faq { margin-top: 1.5rem; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 60px; padding: 1rem 0; font-weight: 600; font-size: 1.08em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 1rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23143f44' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23143f44' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 8h10'/%3E%3C/svg%3E");
}
.faq summary:hover { color: var(--accent-dark); }
.faq-a { padding: 0 0 1.1rem; }

/* ---------- closing / contact */
.closing { text-align: center; }
.closing p { margin-left: auto; margin-right: auto; }
.closing .actions { justify-content: center; }
.phone-big { font-size: 1.5rem; font-weight: 600; }
.phone-big a { white-space: nowrap; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.cc-name { font-size: 1.1em; }
.cc-row { display: flex; gap: .6rem; align-items: flex-start; }
.cc-row .icon { color: var(--accent); margin-top: .2rem; }
.contact-card h2 { margin-top: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 500; padding-right: 1rem; }
.hours td { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- footer */
.site-footer { background: var(--ink); color: #e8e4de; padding: 3rem 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr; } }
.foot-name { font-size: 1.05em; }
.foot-map { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-content: start; }
.foot-nav a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgb(251 248 244 / .96); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgb(30 43 47 / .06);
}
.callbar .btn { width: 100%; }
@media (min-width: 900px) { .callbar { display: none; } }

.en-404 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .callbar, .main-nav, .btn-header, .skip { display: none !important; } body { padding: 0; } }
