/* Ringwood Drywall Repair stylesheet, arranged in SMACSS categories:
   1. Base   2. Layout (dkb-l-*)   3. Module (dkb-m-*)   4. State (dkb-is-*) */

/* ==================================================================== 1. BASE */
:root {
  --ink: #1C1332;
  --paper: #F8F6FD;
  --plum: #57289A;
  --lilac: #E3E0F6;
  --berry: #B12648;
  --white: #FFFFFF;
  --soft-ink: #4a4060;
  --rail: 264px;
  --measure: 1040px;
  --gap: 1.25rem;
  --head: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--berry); }
img, svg { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }

/* ==================================================================== 2. LAYOUT */
/* header rail: top bar on small screens, fixed sidebar from 1100px */
.dkb-l-gust {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .7rem 16px;
  background: var(--white);
  border-bottom: 3px solid var(--plum);
}
/* main column beside the rail */
.dkb-l-front { padding: 0 16px; }
.dkb-l-front > main, .dkb-l-front > .dkb-l-frost { max-width: var(--measure); margin: 0 auto; }
/* timeline track that body sections hang from */
.dkb-l-mist { position: relative; padding-left: 2rem; margin: 2.5rem 0; }
.dkb-l-mist::before {
  content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem;
  width: 2px; background: var(--lilac);
}
.dkb-l-squall { position: relative; padding: 0 0 2.6rem; }
/* primitives */
.dkb-l-drift > * + * { margin-top: .9rem; }
.dkb-l-flurry { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.dkb-l-sleet { display: flex; flex-wrap: wrap; gap: .9rem; }
.dkb-l-sleet > * { flex-grow: 1; flex-basis: calc((30rem - 100%) * 999); }
.dkb-l-haze { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.dkb-l-haze > :first-child { flex: 1 1 20rem; }
.dkb-l-haze > :last-child { flex: 999 1 26rem; min-width: min(100%, 26rem); }
.dkb-l-frost {
  border-top: 1px solid var(--lilac);
  padding: 1.4rem 0 1.8rem;
  font-size: .85rem; color: var(--soft-ink);
}
.dkb-l-frost p { margin: 0 0 .35rem; }

@media (min-width: 1100px) {
  .dkb-l-gust {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail);
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1.1rem;
    padding: 2rem 1.4rem; overflow-y: auto;
    border-bottom: 0; border-right: 3px solid var(--plum);
  }
  .dkb-l-front { margin-left: var(--rail); padding: 0 2.5rem; }
}

/* ==================================================================== 3. MODULE */
.dkb-m-skip { position: absolute; left: -9999px; }
.dkb-m-skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--white); padding: .5rem 1rem; }
.dkb-m-ico { width: 1.05em; height: 1.05em; vertical-align: -.15em; flex: none; }

/* brand and reach (phone + hours) */
.dkb-m-brand { flex: 1 1 auto; min-width: 0; }
.dkb-m-brand a { font: 700 1.15rem/1.15 var(--head); color: var(--ink); text-decoration: none; }
.dkb-m-tagline { display: none; margin: .4rem 0 0; font-size: .82rem; color: var(--soft-ink); line-height: 1.4; }
.dkb-m-reach { display: flex; flex-direction: column; line-height: 1.3; }
.dkb-m-phone { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dkb-m-hours { font-size: .78rem; color: var(--soft-ink); }
.dkb-m-menu {
  display: inline-flex; gap: .35rem; align-items: center;
  border: 1px solid var(--plum); background: transparent; color: var(--plum);
  font: 600 .9rem var(--body); padding: .45rem .7rem; border-radius: 6px; cursor: pointer;
}
.dkb-m-nav { display: none; flex-basis: 100%; }
.dkb-m-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.dkb-m-nav li a {
  display: block; padding: .5rem .2rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--lilac);
}
.dkb-m-nav li a:hover { color: var(--plum); }
.dkb-m-btn-side { width: 100%; justify-content: center; }
@media (min-width: 1100px) {
  .dkb-m-tagline { display: block; }
  .dkb-m-menu { display: none; }
  .dkb-m-nav { display: block; }
  .dkb-m-nav li a { border-bottom: 0; border-left: 3px solid transparent; padding: .38rem .7rem; }
}

/* buttons and links */
.dkb-m-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--plum); color: var(--white);
  font: 600 1rem/1.2 var(--body); text-decoration: none;
  padding: .75rem 1.2rem; border: 2px solid var(--plum); border-radius: 6px; cursor: pointer;
}
.dkb-m-btn:hover { background: #431d78; border-color: #431d78; color: var(--white); }
.dkb-m-btn-big { font-size: 1.1rem; padding: .9rem 1.4rem; }
.dkb-m-btn-ghost { background: transparent; color: var(--berry); border-color: var(--berry); }
.dkb-m-btn-ghost:hover { background: var(--berry); color: var(--white); border-color: var(--berry); }
.dkb-m-textlink { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; }
.dkb-m-micro { font-size: .9rem; color: var(--soft-ink); margin: .55rem 0 .9rem; max-width: 34rem; }
.dkb-m-hoursline { display: flex; gap: .4rem; align-items: center; font-weight: 500; margin-bottom: .6rem; }
.dkb-m-hoursline .dkb-m-ico { color: var(--berry); }

/* hero */
.dkb-m-hero { padding: 2.4rem 0 1rem; }
.dkb-m-hero-text { max-width: 30rem; }
.dkb-m-lede { font-size: 1.12rem; color: var(--soft-ink); }
.dkb-m-hero .dkb-m-lede { margin-bottom: 1.4rem; }

/* form */
.dkb-m-form {
  background: var(--white); border: 1px solid var(--lilac); border-top: 6px solid var(--plum);
  border-radius: 8px; padding: 1.3rem; display: flex; flex-direction: column; gap: .85rem;
}
.dkb-m-form-title { font: 700 1.2rem var(--head); margin: 0; }
.dkb-m-field { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; font-weight: 500; }
.dkb-m-field em { font-style: normal; font-weight: 400; color: var(--soft-ink); }
.dkb-m-field input, .dkb-m-field select, .dkb-m-field textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink);
  padding: .62rem .7rem; border: 1px solid #b9b2d4; border-radius: 5px; background: var(--paper);
}
.dkb-m-form .dkb-m-btn { align-self: flex-start; }
.dkb-m-consent { font-size: .85rem; color: var(--soft-ink); margin: .7rem 0 0; }

/* photos: greyscale with a short accent rule */
.dkb-m-shot { margin: 2rem 0; }
.dkb-m-shot img {
  display: block; width: 100%; filter: grayscale(1);
  border: 1px solid var(--lilac); padding: 6px; background: var(--white);
}
.dkb-m-shot figcaption { font-size: .9rem; color: var(--soft-ink); }
.dkb-m-shot figcaption::before {
  content: ""; display: block; width: 56px; height: 4px; background: var(--berry); margin: .7rem 0 .55rem;
}
.dkb-m-shot-wide img { aspect-ratio: 3 / 2; object-fit: cover; }

/* timeline nodes */
.dkb-m-node {
  position: absolute; left: calc(-2rem + .2rem); top: .45rem;
  width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--plum);
}
.dkb-m-alert { background: var(--lilac); border-left: 4px solid var(--berry); padding: 1.1rem 1.2rem .4rem; margin-bottom: 2.4rem; }
.dkb-m-alert .dkb-m-node { left: calc(-2rem + .2rem - 4px); border-color: var(--berry); }

/* cards with a header band */
.dkb-m-cards { align-items: stretch; }
.dkb-m-card {
  flex: 1 1 15rem; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--lilac); border-radius: 6px; overflow: hidden;
}
.dkb-m-card-band {
  display: flex; gap: .55rem; align-items: center;
  background: var(--plum); color: var(--white); padding: .75rem 1rem;
}
.dkb-m-card-band h2, .dkb-m-card-band h3 { margin: 0; font-size: 1.08rem; color: var(--white); }
.dkb-m-card-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.dkb-m-card-body p { margin: 0; flex: 1; }
.dkb-m-card-body a { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; }

/* lists */
.dkb-m-ticks { padding-left: 1.2rem; }
.dkb-m-ticks li { margin-bottom: .55rem; }
.dkb-m-ticks li::marker { color: var(--berry); }
.dkb-m-steps { counter-reset: dkb-step; list-style: none; padding: 0; }
.dkb-m-steps li { counter-increment: dkb-step; position: relative; padding-left: 2.6rem; margin-bottom: .9rem; }
.dkb-m-steps li::before {
  content: counter(dkb-step); position: absolute; left: 0; top: .05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 4px; display: grid; place-items: center;
  background: var(--lilac); color: var(--plum); font: 700 .95rem var(--head);
}
.dkb-m-pairs dt, .dkb-m-faq dt { font-weight: 600; margin-top: .9rem; }
.dkb-m-pairs dd, .dkb-m-faq dd { margin: .25rem 0 0; }
.dkb-m-faq dt { font-family: var(--head); font-size: 1.08rem; }
.dkb-m-towns, .dkb-m-townlist { list-style: none; padding: 0; }
.dkb-m-towns li { padding: .45rem 0; border-bottom: 1px dashed var(--lilac); }
.dkb-m-townlist h3 { margin: 1.1rem 0 .25rem; }

/* figures strip */
.dkb-m-figures { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.dkb-m-figures li { flex: 1 1 12rem; background: var(--lilac); border-radius: 6px; padding: .9rem 1rem; }
.dkb-m-figures strong { display: block; font: 700 1.5rem var(--head); color: var(--plum); }
.dkb-m-figures span { font-size: .88rem; }

/* comparison table */
.dkb-m-scroll { overflow-x: auto; border: 1px solid var(--lilac); border-radius: 6px; background: var(--white); }
.dkb-m-table { width: 100%; min-width: 40rem; font-size: .94rem; }
.dkb-m-table th, .dkb-m-table td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--lilac); }
.dkb-m-table thead th { background: var(--plum); color: var(--white); font-family: var(--head); }
.dkb-m-table tbody th { font-weight: 600; width: 9rem; }

/* page heads, diagrams, related, closing */
.dkb-m-pagehead { display: flex; gap: 1rem; align-items: center; padding: 2.4rem 0 .4rem; }
.dkb-m-pagehead h1 { margin: 0; }
.dkb-m-badge {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--lilac); color: var(--plum); font-size: 1.35rem;
}
.dkb-m-diagram { margin: 0 0 2.4rem; background: var(--white); border: 1px solid var(--lilac); border-radius: 6px; padding: 1rem; }
.dkb-m-diagram figcaption { font-size: .9rem; color: var(--soft-ink); margin-top: .6rem; }
.dkb-m-visual { display: block; width: 100%; height: auto; font-family: var(--body); }
.dkb-v-wood { fill: #d9c7a3; stroke: #9c845a; stroke-width: 1; }
.dkb-v-board { fill: #eceaf2; stroke: #b9b2d4; stroke-width: 1; }
.dkb-v-tape { fill: #fbfaff; stroke: #cfc8e6; stroke-dasharray: 3 3; }
.dkb-v-screw { fill: var(--plum); }
.dkb-v-box { fill: #8d7fb5; stroke: var(--plum); }
.dkb-v-boxin { fill: var(--white); }
.dkb-v-dim { stroke: var(--berry); stroke-width: 2; fill: none; }
.dkb-v-tag { fill: #fff; fill-opacity: .92; }
.dkb-v-label { font-size: 15px; font-weight: 600; fill: var(--ink); }
.dkb-v-sub { font-size: 13px; fill: var(--soft-ink); }
.dkb-v-wallp { fill: #f1eff8; stroke: #b9b2d4; }
.dkb-v-door { fill: #d9c7a3; stroke: #9c845a; }
.dkb-v-seam { stroke: #cfc8e6; stroke-width: 6; }
.dkb-v-ceil { fill: #e3e0f6; }
.dkb-v-crack { stroke: var(--berry); stroke-width: 2.4; fill: none; stroke-linejoin: round; }
.dkb-m-related { background: var(--white); border-left: 4px solid var(--plum); padding: 1rem 1.2rem; margin: 0 0 2.4rem; }
.dkb-m-related-title { font: 700 1.05rem var(--head); display: flex; gap: .4rem; align-items: center; }
.dkb-m-related ul { margin: 0; padding-left: 1.1rem; }
.dkb-m-closing { background: var(--lilac); border-radius: 8px; padding: 1.8rem 1.5rem 1rem; margin: 0 0 2.6rem; }
.dkb-m-cta .dkb-l-flurry { margin-top: .4rem; }
.dkb-m-reachbox { background: var(--white); border: 1px solid var(--lilac); border-radius: 8px; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.dkb-m-reachbox-title { font: 700 1.1rem var(--head); margin: 0; }
.dkb-m-estimate { margin: 1rem 0 2rem; }
.dkb-m-nowrap { white-space: nowrap; }

/* mobile call bar */
.dkb-m-callbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 4.2rem; }
  .dkb-m-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--plum); border-top: 2px solid var(--berry);
  }
  .dkb-m-callbar a {
    flex: 1; display: flex; gap: .45rem; justify-content: center; align-items: center;
    color: var(--white); text-decoration: none; font-weight: 600; padding: .95rem .5rem; font-size: .95rem;
  }
  .dkb-m-callbar a + a { border-left: 1px solid rgba(255,255,255,.35); }
  .dkb-m-hours { font-size: .72rem; }
  .dkb-l-mist { padding-left: 1.6rem; }
  .dkb-l-mist::before { left: .4rem; }
  .dkb-m-node { left: calc(-1.6rem + .05rem); }
  .dkb-m-alert .dkb-m-node { left: calc(-1.6rem + .05rem - 4px); }
}

/* ==================================================================== 4. STATE */
.dkb-is-open .dkb-m-nav { display: block; }
.dkb-is-current { font-weight: 600; color: var(--plum) !important; }
@media (min-width: 1100px) {
  .dkb-m-nav .dkb-is-current { border-left-color: var(--berry); background: var(--lilac); }
}
