/* ==========================================================================
   DENVIU BRAND OVERRIDES
   Loaded last, after style.css and responsive.css.
   Keep all custom design here so the vendor template files stay untouchable.
   =========================================================================== */

:root {
  --primary-tint: rgba(200, 134, 60, .08);
  --primary-tint-strong: rgba(200, 134, 60, .16);
  /* Opaque twin of --primary-tint, for anything that must hide what is
     behind it (step badges sit on top of the progress rail). */
  --primary-tint-solid: #fbf5ef;
  --hairline: #ece7e1;
}


/* ------------------------------------------------------------------
   1. SECTION RHYTHM & LABELS
   ------------------------------------------------------------------ */

/* Brand-colour run of text inside a heading */
.txt-gold {
  color: var(--primary);
}

.section-id {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 18px;
}

/* Gold hairline under every section eyebrow-less title */
.section-title h2 {
  letter-spacing: -0.5px;
}

hr.divider {
  background-image: linear-gradient(90deg,
      rgba(200, 134, 60, 0) 0,
      var(--primary) 38%,
      var(--primary) 64%,
      rgba(200, 134, 60, 0) 99%);
  opacity: .35;
}


/* ------------------------------------------------------------------
   1b. MOBILE HEADER
   ------------------------------------------------------------------ */

/* The template caps the mobile logo at 36-40px tall inside a 54px bar,
   which leaves the DenViu mark and its tagline unreadably small. Give the
   bar a little more height and centre a larger logo in it. */
@media (max-width: 991.98px) {
  .wsmobileheader {
    height: 68px;
  }

  /* denviu.svg is a 500x500 canvas with the wordmark in a band across the
     middle, so sizing the <img> by height just shrinks the artwork inside a
     mostly-empty box. Oversize the image and clip it to the bar instead. */
  .wsmobileheader .smllogo {
    display: flex !important;
    align-items: center;
    height: 68px;
    overflow: hidden;
    margin-top: 0 !important;
    padding-left: 18px;
  }

  .wsmobileheader .smllogo img {
    height: 132px;
    width: auto;
    max-height: none !important;
    max-width: none !important;
  }

  .wsmobileheader .wsanimated-arrow {
    margin-top: 14px;
  }
}


/* ------------------------------------------------------------------
   2. HERO
   ------------------------------------------------------------------ */

.hero-6-txt h2 {
  letter-spacing: -0.5px;
}

/* Gold rule above the hero headline, replaces the missing eyebrow */
.hero-6-txt h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background-color: var(--primary);
  margin-bottom: 22px;
  border-radius: 2px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* A wider container plus a 7/5 column split grows the graphic without
   letting it run off the right edge and clip the cards inside it. */
@media (min-width: 1200px) {
  #hero-6 > .container {
    max-width: 1500px;
  }
}

@media (min-width: 992px) {
  #hero-6 .hero-6-img img {
    width: 100%;
    max-width: none;
  }
}

.hero-btns .btn {
  white-space: nowrap;
}

/* The template centres hero copy on small screens, so left-aligned buttons
   under centred text read as a mistake. */
@media (max-width: 767.98px) {
  .hero-btns {
    justify-content: center;
  }

  .hero-6-txt h2::before {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ------------------------------------------------------------------
   3. SERVICE CARDS (#features-8)
   ------------------------------------------------------------------ */

/* The <symbol> definitions must be in the DOM but never rendered. */
.svc-sprite {
  display: none;
}

/* Five cards need more room than Bootstrap's 1320px cap gives them.
   The container also drops its side padding at wide sizes so the row
   reaches closer to the viewport edges. */
@media (min-width: 1200px) {
  #features-8 > .container {
    max-width: 1720px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.svc-grid > .col {
  display: flex;
}

.svc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px 26px 30px;
  text-align: left;
  background-color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(30, 20, 10, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(30, 20, 10, .1);
}

/* Icon tile + title, side by side */
.svc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.svc-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  border-radius: 11px;
}

.svc-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.35;
  color: #2c3e50;
}

.svc-desc {
  margin-bottom: 20px;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Media sits in the middle; margin-top:auto on the list pins it to the base
   so every card's checklist starts at the same height. */
.svc-media {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 12px;
}

.svc-media img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
  border-radius: 12px;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
}

.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .9rem;
  line-height: 1.45;
  color: #55606b;
}

.svc-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 3px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  background-color: var(--primary);
  border-radius: 50%;
}

@media (max-width: 991.98px) {
  .svc-media img {
    height: 200px;
  }
}

/* Header / description / image / checklist each get their own shared row,
   so the four zones line up across all five cards no matter how many lines
   a title or paragraph runs to. Falls back to the flex stack above where
   subgrid is unavailable. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 992px) {
    .svc-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      grid-template-rows: repeat(4, auto);
      gap: 20px 16px;
      margin: 0;
    }

    .svc-grid > .col {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      width: auto;
      padding: 0;
    }

    .svc-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
    }

    /* Row gap handles the spacing between zones now. */
    .svc-head,
    .svc-desc,
    .svc-media {
      margin-bottom: 0;
    }

    .svc-list {
      margin: 0;
    }
  }
}


/* Trust strip under the service cards */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 40px;
  margin-top: 56px;
  padding: 22px 40px;
  background-color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(30, 20, 10, .06);
}

.trust-item {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dividers only once all four sit on a single row — on wrapped layouts a
   left border would hang off the start of the second row. */
@media (min-width: 992px) {
  .trust-bar {
    flex-wrap: nowrap;
    gap: 0;
  }

  /* Centre each item in its equal-width cell so the dividers land midway
     between neighbours instead of hugging the one on their right. */
  .trust-item {
    justify-content: center;
    padding: 4px 24px;
  }

  .trust-item + .trust-item {
    border-left: 1px solid var(--hairline);
  }
}

.trust-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-txt h4 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: #2c3e50;
}

.trust-txt p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .trust-bar {
    padding: 26px 24px;
    border-radius: 18px;
  }
}


/* ------------------------------------------------------------------
   4. HOW IT WORKS (#content-10)
   ------------------------------------------------------------------ */

.hiw-section {
  background-color: #fbfafa;
}

/* Gold rule under the section heading */
.hiw-title {
  position: relative;
  padding-bottom: 20px;
}

.hiw-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  margin-left: -28px;
  background-color: var(--primary);
  border-radius: 2px;
}

.hiw-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hiw-step {
  position: relative;
  flex: 1 1 200px;
  max-width: 260px;
  padding: 0 12px;
  text-align: center;
}

/* Dotted connector, drawn from each step to the next at disc centre height */
.hiw-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 76px;
  left: calc(50% + 62px);
  width: calc(100% - 124px);
  border-top: 2px dotted #d8d2cb;
}

.hiw-marker {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
}

.hiw-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(30, 20, 10, .07);
}

.hiw-disc svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #2c3e50;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Number chip overlapping the top-left of the disc */
.hiw-num {
  position: absolute;
  top: -14px;
  left: -8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: var(--primary);
  border-radius: 50%;
}

.hiw-step-title {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2c3e50;
}

.hiw-step-txt {
  margin: 0;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .hiw-step {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 48px;
  }

  /* Connectors only make sense on the single-row layout */
  .hiw-step::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hiw-step {
    flex: 0 0 100%;
    max-width: 320px;
  }
}


/* ------------------------------------------------------------------
   5. WHY CLINICS CHOOSE US (#faqs-2)
   ------------------------------------------------------------------ */

/* Alternating image / copy rows */
.whyus-row {
  margin-bottom: 90px;
}

.whyus-row:last-of-type {
  margin-bottom: 0;
}

.whyus-img {
  text-align: center;
  padding: 0 6%;
}

.whyus-img img {
  max-width: 100%;
}

/* Real product screenshots get a frame; the flat SVGs do not need one */
.whyus-img-shot img {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 20, 10, .08);
}

.whyus-txt {
  padding: 0 6%;
}

.whyus-txt h3 {
  position: relative;
  padding-top: 22px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.whyus-txt h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.whyus-txt p {
  margin-bottom: 14px;
}

.whyus-txt p:last-child {
  margin-bottom: 0;
}

.whyus-txt .btn {
  margin-top: 16px;
}

@media (max-width: 767.98px) {
  .whyus-row {
    margin-bottom: 60px;
  }

  .whyus-img,
  .whyus-txt {
    padding: 0;
  }

  .whyus-img {
    margin-bottom: 28px;
  }

  /* Centre the row copy and its button together, matching the hero */
  .whyus-txt {
    text-align: center;
  }

  .whyus-txt h3::before {
    left: 50%;
    margin-left: -22px;
  }

  .whyus-txt .btn {
    display: inline-block;
  }
}


/* ------------------------------------------------------------------
   6. FOOTER
   ------------------------------------------------------------------ */

.footer .footer-links h6 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.footer .footer-links h6::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.footer .foo-links a:hover,
.footer .footer-socials a:hover {
  color: var(--primary);
}

/* Phones: one column per footer group. Two-up forces "Aligners Fabrication
   & Printing", "Dedicated Account Manager" and the street address to wrap
   mid-phrase. */
@media (max-width: 575.98px) {
  #footer-4 .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  #footer-4 .footer-links.mb-40 {
    margin-bottom: 30px !important;
  }

  /* Phone and address run onto one line once the column is full width.
     The template sets display/float/clear with !important, so matching it
     is the only way to override. */
  #footer-4 .footer-socials li {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
  }
}

.bottom-footer {
  padding: 22px 0 30px;
}

.bottom-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.bottom-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.bottom-footer-list li {
  display: inline-block;
  margin-left: 22px;
}

@media (max-width: 767.98px) {
  .bottom-footer-list {
    text-align: left;
    margin-top: 10px;
  }

  .bottom-footer-list li {
    margin: 0 22px 0 0;
  }
}


/* ------------------------------------------------------------------
   6b. GET STARTED BAND (#cta-band)
   ------------------------------------------------------------------ */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px 46px;
  padding: 34px 46px;
  background-color: #fbeadb;
  border-radius: 20px;
}

.cta-band-lead {
  flex: 1 1 380px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cta-band-ico {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 50%;
}

.cta-band-ico svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-band-txt h3 {
  max-width: 15ch;
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: #2c3e50;
}

.cta-band-txt p {
  max-width: 34ch;
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #55606b;
}

.cta-band-action {
  flex: 0 0 auto;
}

.cta-band-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.cta-band-arrow {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-band-contact {
  flex: 0 0 auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-band-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}

.cta-band-contact svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-band-contact a {
  font-size: .95rem;
  color: #55606b;
  text-decoration: none;
}

.cta-band-contact a:hover {
  color: var(--primary);
}

@media (max-width: 575.98px) {
  .cta-band {
    padding: 30px 24px;
    border-radius: 16px;
  }

  .cta-band-txt h3,
  .cta-band-txt p {
    max-width: none;
  }
}


/* ------------------------------------------------------------------
   7. CTA
   ------------------------------------------------------------------ */

#cta-11 .cta-11-wrapper {
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
