/* ==========================================================================
   PAGES
   Page sections, in the order they appear:

   Home page
     1. Black section     (the 4 highlights, right after the hero)
     2. Services          (grid of service cards)
     3. Process           (4 numbered steps)
     4. Service area      (dark band with cities & counties)
     5. About             (white: summary + microscope drawing)
     6. Contact           (dark band with form)

   Service pages
     7. Service layout    (article + sticky sidebar)
     8. Call-to-action band
   ========================================================================== */


/* ---------- 1. Black section: the 4 highlights ---------- */
/* Dark band right after the hero (the hero fades into it). */

.dark-section {
  padding-block: clamp(48px, 6vw, 96px) clamp(72px, 8vw, 120px);
  color: var(--white);
  background: var(--dark-bg);          /* site dark color, set in base.css */
}

/* Highlights: 4 steps in a row, in the light pages' style but on dark.
   Each: a hairline with a blue dot (the line draws in on scroll),
   a round icon badge with a thin number, then a title and one line. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}

.stat {
  position: relative;
  padding-top: 34px;
}

/* hairline + blue dot on top */
.stat::before,
.stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
}

.stat::before {
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .14);
  transform-origin: left;
  transition: transform 1s var(--ease) .15s;
}

.stat::after {
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.js .stat[data-reveal]:not(.is-visible)::before {
  transform: scaleX(0);
}

.stat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.stat__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  transition: background .35s;
}

.stat:hover .stat__badge {
  background: rgba(111, 227, 242, .2);
}

.stat__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat__no {
  font: 300 2.2rem / 1 var(--font-display);
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .22);
}

.stat h3 {
  font: 500 1.15rem / 1.3 var(--font-display);
  color: var(--white);
}

.stat p {
  margin-top: 8px;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .55);
}

/* Tablets and phones: 2 x 2 */
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

/* Small phones: one per row */
@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
}

/* ---------- 2. Services ---------- */

.services {
  background: var(--bg-soft);
}


/* ---------- 3. Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 32px;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}

/* Short blue accent on top of each step's line */
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 48px;
  height: 2px;
  background: var(--blue);
}

.step__num {
  display: block;
  margin-bottom: 14px;
  font: 800 2.6rem / 1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}


/* ---------- 3b. Reviews carousel ---------- */
/* Same minimal look as the service cards: thin top line, light text, lots of air.
   3 reviews visible on desktop, 2 on tablets, 1 (plus a peek of the next) on phones. */

.reviews {
  --review-gap: clamp(32px, 4.5vw, 72px);
  background: var(--bg-soft);
}

/* Heading on the left, arrows on the right */
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.reviews__head .section-head {
  margin-bottom: 0;
}

.reviews__nav {
  display: flex;
  gap: 10px;
}

.reviews__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(13, 43, 58, .18);
  border-radius: 50%;
  transition: border-color .3s, background .3s, color .3s;
}

.reviews__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reviews__arrow:hover {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

/* The sliding row */
.reviews__track {
  position: relative;                  /* card positions are measured from here */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--review-gap)) / 3);
  gap: var(--review-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;               /* hide the scrollbar (Firefox) */
}

.reviews__track::-webkit-scrollbar {
  display: none;                       /* hide the scrollbar (Chrome, Safari, Edge) */
}

.review {
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  border-top: 1px solid rgba(13, 43, 58, .14);
  scroll-snap-align: start;
}

/* Large thin quote mark */
.review::before {
  content: "\201C";
  height: 44px;
  font: 300 4.2rem / 1 Georgia, "Times New Roman", serif;
  color: var(--blue);
}

.review blockquote {
  margin: 18px 0 0;
}

.review blockquote p {
  font: 300 clamp(1.05rem, 1.3vw, 1.2rem) / 1.7 var(--font-body);
  letter-spacing: .01em;
  color: var(--ink);
}

.review__name {
  margin-top: auto;
  padding-top: 28px;
  font: 500 .72rem / 1 var(--font-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Dots + Google link */
.reviews__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}

.reviews__dots {
  display: flex;
  gap: 6px;
}

/* Each dot is a short line; the current one is long and blue */
.reviews__dot {
  width: 18px;
  height: 18px;
  position: relative;
}

.reviews__dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(13, 43, 58, .18);
  transition: background .3s;
}

.reviews__dot[aria-current="true"] {
  width: 40px;
}

.reviews__dot[aria-current="true"]::before {
  background: var(--blue);
}

.reviews__dot {
  transition: width .4s var(--ease);
}

.reviews__google {
  font: 500 .72rem / 1 var(--font-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .3s;
}

.reviews__google::after {
  content: "\2197";                    /* ↗ opens in a new tab */
  margin-left: 10px;
  letter-spacing: 0;
}

.reviews__google:hover {
  color: var(--blue);
}

@media (max-width: 1023px) {
  .reviews__track {
    grid-auto-columns: calc((100% - var(--review-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .reviews__track {
    grid-auto-columns: 85%;            /* a peek of the next review hints you can swipe */
  }

  .reviews__arrow {
    width: 42px;
    height: 42px;
  }
}


/* ---------- 4. Service area ---------- */

.area {
  color: var(--white);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(24, 166, 223, .35), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(19, 118, 158, .5), transparent 60%),
    linear-gradient(150deg, var(--deep), var(--sea));
}

.area__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.area .lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .8);
}

/* Frosted-glass box with the place lists */
.area__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.area__lists h3 {
  margin-bottom: 14px;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fd6f5;
}

.area__lists li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 1.05rem;
}

.area__lists li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}


/* ---------- 5. About (white section after the highlights) ---------- */
/* Two columns: summary on the left, microscope drawing on the right */

.about-white {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
}

/* Text column kept narrow so it breathes */
.about__text {
  max-width: 30rem;
}

.about__grid .eyebrow {
  margin-bottom: 22px;
  letter-spacing: .26em;
}

.about__grid h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
}

.about__grid p:not(.eyebrow) {
  margin-top: 22px;
  font-size: .95rem;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--muted);
}

.about__cta {
  margin-top: 40px;
  padding: 12px 26px;
  font-size: .85rem;
  letter-spacing: .08em;
}

/* Line-art illustration: microscope with a magnified view of mold */
.about__art {
  display: grid;
  place-items: center;
}

.about__art img {
  width: min(100%, 580px);
  height: auto;                        /* black line art on a transparent background */
}

/* ---------- 6. Contact ---------- */

.contact {
  color: var(--white);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(24, 166, 223, .28), transparent 60%),
    linear-gradient(160deg, var(--sea), var(--deep));
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact .lead {
  color: rgba(255, 255, 255, .8);
}

.contact__list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.contact__list li {
  display: grid;
  gap: 2px;
  font-size: 1.1rem;
}

.contact__list span {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fd6f5;
}

.contact__list a:hover {
  color: #9fe0ff;
}

/* White card holding the form */
.contact__form {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}


/* ---------- 7. Service page layout ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* Long-form text */
.prose h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Sidebar stays in view while scrolling the article */
.service__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}

.aside-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
}

.aside-card h3 {
  margin-bottom: 10px;
}

.aside-card p {
  color: var(--muted);
}

.aside-card .btn {
  margin-top: 20px;
}

/* Dark variant for the booking card */
.aside-card--accent {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(150deg, var(--sea), var(--deep));
}

.aside-card--accent p {
  color: rgba(255, 255, 255, .8);
}

.aside-card__phone {
  display: block;
  margin-top: 14px;
  font: 700 1.3rem / 1.2 var(--font-display);
}

/* "Other services" list */
.link-list a {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}

.link-list li:last-child a {
  border-bottom: 0;
}

.link-list a::after {
  content: "→";
  color: var(--teal);
  transition: transform .25s var(--ease);
}

.link-list a:hover {
  color: var(--teal);
}

.link-list a:hover::after {
  transform: translateX(4px);
}


/* ---------- 8. Call-to-action band ---------- */

.cta-band {
  padding-block: clamp(64px, 8vw, 110px);
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(24, 166, 223, .3), transparent 70%),
    linear-gradient(160deg, var(--sea), var(--deep));
}

.cta-band p {
  max-width: 36em;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, .8);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .area__grid,
  .about__grid,
  .contact__grid,
  .service {
    grid-template-columns: 1fr;
  }

  .about__art img {
    width: min(100%, 520px);
  }

  .service__aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .area__lists {
    grid-template-columns: 1fr;
  }
}
