/* DENTSAWAY — one design system for the whole site.
   Change colors here only. */
:root {
  --bg: #0e1013;
  --panel: #171a1f;
  --line: #2a2f37;
  --text: #ffffff;
  --muted: #a7b1bf;
  --accent: #0b8a1c;          /* buttons, highlights (white text passes contrast) */
  --accent-hover: #087016;
  --accent-bright: #3fd35a;   /* green text/icons/lines on dark backgrounds */
  --light-bg: #f3f5f8;
  --light-ink: #10141a;
  --light-muted: #4c5766;
  --light-line: #d6dce4;
  --radius: 6px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: .04em; text-transform: uppercase;
  padding: 12px 24px; border: 2px solid var(--accent); border-radius: var(--radius); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-lg { padding: 16px 32px; font-size: 21px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-outline { background: transparent; border-color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--bg); }
.cta-pair { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(14,16,19,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 16px; color: #e6eaf0; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--accent-bright); }
.nav-cta-pair { white-space: nowrap; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: calc(var(--header-h) + 64px) 0 80px;
  background:
    linear-gradient(90deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.62) 48%, rgba(8,9,11,.12) 100%),
    url("../assets/images/hero.jpg") right center / cover no-repeat, var(--bg);
}
.hero-inner { max-width: 1180px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(63,211,90,.12); border: 1px solid rgba(63,211,90,.4); color: var(--accent-bright);
  font-family: var(--head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px;
  padding: 7px 16px 7px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-badge, .hero-badge:hover, .hero-badge * { text-decoration: none !important; }
.hero-badge { flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; padding-top: 10px; padding-bottom: 10px; }
.hero-badge:hover { background: rgba(63,211,90,.2); }
.hero-badge-line { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.3; }
.hero-badge-line svg { margin-top: 2px; }
.hero-badge-sub { font-family: var(--body); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--muted); padding-left: 24px; }
.hero h1 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: .01em; margin-bottom: 24px;
}
.hero-lead { max-width: 34em; font-size: clamp(18px, 2vw, 21px); color: #d8dee8; margin-bottom: 36px; }
.benefits { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 48px; font-weight: 500; }
.benefits li { display: flex; align-items: center; gap: 10px; }
.benefits svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-bright); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Sections */
.section { padding: 104px 0; }
.section.light { background: var(--light-bg); color: var(--light-ink); }
.section.light.alt { background: #ffffff; border-top: 1px solid var(--light-line); border-bottom: 1px solid var(--light-line); }
.section.dark { background: var(--bg); }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 20px; }
.light .section-head p { color: var(--light-muted); }
h2 { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: .01em; margin-bottom: 16px; }
.label { font-family: var(--head); font-weight: 600; letter-spacing: .2em; color: var(--accent-bright); text-transform: uppercase; font-size: 17px; margin-bottom: 8px; }

/* Damage types */
.damage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 96px; }
.damage-grid li { background: #fff; border: 1px solid var(--light-line); border-radius: var(--radius); padding: 32px 16px; text-align: center; }
.damage-grid svg { width: 56px; height: 56px; margin: 0 auto 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.damage-grid h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; line-height: 1.15; }

.why-us { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.why-us-list { display: grid; gap: 24px; }
.why-us-list li { display: flex; align-items: flex-start; gap: 16px; }
.why-us-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,138,28,.1); display: flex; align-items: center; justify-content: center; }
.why-us-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.why-us-list strong { display: block; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 18px; margin-bottom: 4px; }
.why-us-list li span:last-child { color: var(--light-muted); font-size: 15.5px; line-height: 1.5; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--light-line); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pdr { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.pdr-text p { color: var(--light-muted); margin-bottom: 24px; max-width: 34em; }
.pdr-media { order: -1; max-width: 360px; justify-self: start; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--light-line); background: #fff; display: flex; flex-direction: column; height: 100%; }
.pdr-media img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; }
.pdr-media figcaption { padding: 14px 18px; font-size: 15px; color: var(--light-muted); }
.text-link { font-weight: 600; text-decoration: none; color: #087016; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Before & after */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ba-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 20px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.ba-pair figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; padding: 3px 10px; border-radius: 3px; }
.ba-pair figcaption.after { background: var(--accent); }
.ba-card h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: 24px; letter-spacing: .03em; padding: 0 4px; }
.cta-row { margin-top: 48px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; }
.steps li { position: relative; padding: 0 28px 0 0; }
/* connector to the next step */
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: 88px; right: 16px; border-top: 2px dashed #b8c1cd; }
.step-icon { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.step-icon svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-num { position: absolute; top: -6px; right: -8px; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 14px; background: var(--light-ink); color: #fff; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.steps h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: 26px; letter-spacing: .03em; margin-bottom: 6px; }
.steps p { color: var(--light-muted); }

/* Step 3 branches into two service options */
.step-branch { grid-column: span 1; }
.branch-options { margin-top: 14px; border: 1px solid var(--light-line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.branch-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.branch-opt + .branch-opt { border-top: 1px dashed var(--light-line); }
.branch-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--light-bg); display: flex; align-items: center; justify-content: center; }
.branch-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.branch-opt strong { display: block; font-family: var(--head); font-weight: 600; letter-spacing: .02em; font-size: 16px; text-transform: uppercase; margin-bottom: 2px; }
.branch-opt span { color: var(--light-muted); font-size: 14.5px; line-height: 1.45; }


/* About */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.about-media { display: flex; flex-direction: column; gap: 12px; }
.about-carousel-main { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.about-carousel-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.about-carousel-thumbs { display: flex; gap: 10px; }
.about-thumb { flex: 1 1 0; aspect-ratio: 1 / 1; padding: 0; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s; }
.about-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.about-thumb:hover { opacity: .85; }
.about-thumb.is-active { opacity: 1; border-color: var(--accent-bright); }
.about-text p { color: var(--muted); margin-bottom: 20px; max-width: 32em; }
.about-text .btn { margin-top: 12px; }

/* Estimate */
.estimate { background: var(--panel); border-top: 1px solid var(--line); }
.estimate-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
.estimate-info p { color: var(--muted); max-width: 26em; margin-bottom: 36px; }
.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list dt { font-family: var(--head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; color: var(--accent-bright); }
.contact-list dd { margin: 2px 0 0; font-size: 20px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 5px; }
.req { color: var(--accent-bright); }
.hint-inline { color: var(--muted); font-weight: 400; font-size: 12px; }
.field input, .field textarea {
  width: 100%; background: #0a0c0f; color: #fff; border: 1px solid #3a414c; border-radius: var(--radius);
  padding: 10px 12px; font: inherit; font-size: 14px;
}
.field input::placeholder { color: #6f7a89; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(63,211,90,.35); }
.field input[type="file"] { padding: 8px; }
.field input[type="file"]::file-selector-button { background: #262b33; color: #fff; border: 0; border-radius: 4px; padding: 6px 12px; margin-right: 10px; font: inherit; font-size: 13px; cursor: pointer; }
.field textarea { resize: vertical; min-height: 90px; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.consent-label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 13px; line-height: 1.5; color: #d8dee8; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--accent-bright); cursor: pointer; }
.consent-label a { color: var(--accent-bright); text-decoration: underline; }
.consent-label a:hover { color: #fff; }
.field-consent.invalid .consent-label { color: #ff8a8a; }
.field-consent.invalid .consent-label input[type="checkbox"] { outline: 2px solid #ff6b6b; outline-offset: 3px; border-radius: 3px; }
.error { color: #ff8a8a; font-size: 13px; margin-top: 5px; min-height: 0; }
.error:empty { display: none; }
.hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.btn-submit { width: 100%; padding: 13px 26px; font-size: 17px; }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--accent-bright); }

/* Footer */
/* Legal pages (Terms of Use, Privacy Policy) */
.legal { padding: 140px 0 100px; max-width: 820px; }
.legal h1 { font-family: var(--head); text-transform: uppercase; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-family: var(--head); text-transform: uppercase; font-size: 23px; letter-spacing: .01em; margin: 40px 0 14px; color: var(--accent-bright); }
.legal p { font-size: 17px; line-height: 1.7; color: #d8dee8; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { font-size: 17px; line-height: 1.7; color: #d8dee8; margin-bottom: 8px; }
.legal a { color: var(--accent-bright); text-decoration: underline; }
.legal a:hover { color: var(--text); }

.site-footer { background: #08090b; border-top: 1px solid var(--line); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr; gap: 40px; padding-bottom: 36px; align-items: start; }
.site-footer img { height: 76px; width: auto; }
.footer-h { font-family: var(--head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 16px; color: var(--accent-bright); margin: 0 0 10px; }
.site-footer p { color: #d8dee8; font-size: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social { display: grid; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 9px; }
.social-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copyright { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px; color: var(--muted); font-size: 15px; }

/* Tablet */
@media (max-width: 1024px) {
  .damage-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps li:nth-child(even)::after { display: none; }
  .pdr, .about-grid, .estimate-grid, .why-us { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav appears earlier than the layout stacks, so the 6 links never crowd */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .btn-block-mobile { width: 100%; }
  .nav-cta-pair { flex-direction: column; align-items: stretch; width: 100%; }
}

@media (max-width: 800px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; min-height: auto; }
  .hero { background:
    linear-gradient(180deg, rgba(8,9,11,.8), rgba(8,9,11,.5)), url("../assets/images/hero.jpg") 72% center / cover no-repeat, var(--bg); }
  .pdr, .about-grid, .estimate-grid, .why-us { grid-template-columns: 1fr; }
  .pdr-media { justify-self: start; height: auto; }
  .pdr-media img { flex: none; aspect-ratio: 4 / 3; }
  .why-us { margin-bottom: 64px; }
  .about-media { order: 2; }
  .ba-grid { grid-template-columns: 1fr; }
  .damage-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 64px; }
  .damage-grid li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 40px 96px; min-height: 72px; }
  .steps .step-icon { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after, .steps li:nth-child(even):not(:last-child)::after { display: block; top: 84px; bottom: 12px; left: 35px; right: auto; border-top: 0; border-left: 2px dashed #b8c1cd; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 18px; }
  .benefits { flex-direction: column; margin-top: 36px; }
  .hero .btn-lg { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  :root { --header-h: 76px; }
  .brand img { height: 54px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ba-pair { gap: 6px; }
  .cta-pair { flex-direction: column; align-items: stretch; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
