/* tandblekning-goteborg.se — design system
   Light, dental, professional. Cyan + amber accent. */

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #cffafe;
  --primary-tint: #ecfeff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --success: #059669;
  --danger: #dc2626;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 10px 25px -5px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --container: 1080px;
  --container-narrow: 760px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-top: 2.5em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }
h4 { font-size: 1.05rem; margin-top: 1.2em; }

p { margin: 0 0 1em; }

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============== Header ============== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgb(255 255 255 / 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { color: var(--primary-dark); }
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--primary-dark); }
.site-nav a.cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.site-nav a.cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
  }
  .site-nav a.cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }
}

/* ============== Hero ============== */
.hero {
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--bg) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

/* Split hero: text left, illustration right (desktop) */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}
.hero-split .hero-text { max-width: 560px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split .hero-illu {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-split .hero-illu img,
.hero-split .hero-illu svg {
  width: 100%;
  height: auto;
  max-width: 520px;
}
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hero-split .hero-actions { justify-content: center; }
  .hero-split .hero-illu { order: -1; }
  .hero-split .hero-illu img,
  .hero-split .hero-illu svg { max-width: 360px; }
}

/* Internal page hero: lighter gradient, illustration right */
.hero-page {
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--bg) 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-page-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.hero-page-text { max-width: 560px; }
.hero-page-illu {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-page-illu img,
.hero-page-illu svg {
  width: 100%;
  height: auto;
  max-width: 440px;
}
@media (max-width: 860px) {
  .hero-page-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-page-illu { order: -1; }
  .hero-page-illu img,
  .hero-page-illu svg { max-width: 280px; }
}
.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 14px; }
.hero .subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms, color 120ms, transform 80ms;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--primary-dark); border-color: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  padding-left: 0;
  padding-right: 0;
}

/* ============== Sections ============== */
section { padding: 56px 0; }
section.compact { padding: 40px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ============== Grid + Cards ============== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 14px; }
.card a.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--primary-dark);
}
.card a.card-link:hover { text-decoration: underline; }
.card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

/* ============== Step list ============== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.steps li h4 { margin: 0 0 4px; }
.steps li p { color: var(--text-muted); margin: 0; }

/* ============== Factor list (accent left border) ============== */
.factors {
  display: grid;
  gap: 14px;
}
.factor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.factor strong { display: block; margin-bottom: 4px; color: var(--text); }
.factor span { color: var(--text-muted); font-size: 0.96rem; }

/* ============== FAQ ============== */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}
.faq details[open] { border-color: var(--primary-light); }
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div {
  padding: 0 20px 18px;
  color: var(--text-muted);
}
.faq details > div p:last-child { margin-bottom: 0; }

/* ============== Form ============== */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 22px; }
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 6px;
  color: var(--text);
}
.field label .opt { color: var(--text-soft); font-weight: 400; font-size: 0.85rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 120ms, box-shadow 120ms;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(8 145 178 / 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.field-consent input { width: auto; margin-top: 3px; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-trust {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ============== Disclaimer ============== */
.disclaimer {
  background: var(--primary-tint);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 32px 0;
}
.disclaimer strong { color: var(--text); }

/* ============== CTA band ============== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius-lg);
  margin: 56px 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgb(255 255 255 / 0.9); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-band .btn-primary:hover { background: var(--surface-alt); color: var(--primary-dark); }

/* ============== Footer ============== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--primary-dark); }
.footer-about p { margin: 0 0 12px; color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

/* ============== Sticky mobile CTA ============== */
.sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgb(15 23 42 / 0.06);
  padding: 10px 14px;
  z-index: 40;
  gap: 8px;
}
.sticky-mobile a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.sticky-mobile .sm-call {
  background: var(--surface-alt);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}
.sticky-mobile .sm-quote {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 768px) {
  .sticky-mobile.show { display: flex; }
  body.has-sticky { padding-bottom: 72px; }
}

/* ============== Utility ============== */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.12rem; color: var(--text-muted); }
.spacer-sm { height: 16px; }
.spacer { height: 32px; }
.spacer-lg { height: 56px; }
.divider { border: 0; height: 1px; background: var(--border); margin: 32px 0; }

/* article body */
.prose { max-width: 760px; margin: 0 auto; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: 6px; color: var(--text); }
.prose ul li::marker { color: var(--primary); }
.prose blockquote {
  border-left: 4px solid var(--primary-light);
  background: var(--bg-alt);
  margin: 24px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* breadcrumb */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumb span { color: var(--text); margin: 0 8px; }
