/* ==========================================================
   Clean Dove Boutique Home Care
   Upscale, modern, calm: warm white, charcoal, soft sage green
   ========================================================== */

:root {
  /* Warm whites */
  --white: #FAF8F4;
  --white-2: #F2F0EB;

  /* Soft sage greens */
  --sage-mist: #E6EAE1;
  --sage-soft: #D3DBCC;
  --sage: #A3B09A;
  --sage-deep: #5C6B56;

  /* Charcoal */
  --charcoal: #2E302F;
  --charcoal-hover: #474A48;
  --text: #5A5D5B;
  --line: rgba(46, 48, 47, 0.13);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.45rem, 1.8vw, 1.7rem); line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

section[id] { scroll-margin-top: 4.5rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--charcoal);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 1.15em 2.6em;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

/* Warm white button, for use on photos and dark backgrounds */
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--sage-soft); }

/* Charcoal button, the main call to action on light backgrounds */
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-hover); }

.btn--line {
  padding: 0.85em 1.6em;
  border-color: currentColor;
  color: inherit;
}
.btn--line:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.text-link {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--sage);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover { color: var(--sage-deep); border-color: var(--sage-deep); }

.text-link--inline { margin: 0 0 0 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Over the hero the header starts transparent, then settles into warm white as you scroll */
@supports (animation-timeline: scroll()) {
  .site-header:not(.site-header--solid) {
    animation: header-settle linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
}

@keyframes header-settle {
  from {
    background: rgba(250, 248, 244, 0);
    color: var(--white);
    border-bottom-color: rgba(250, 248, 244, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
  to {
    background: rgba(250, 248, 244, 0.94);
    color: var(--charcoal);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

/* Logo in the header: a light version over the hero photo, the regular one once the header turns white */
.logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.logo__img { display: block; width: auto; height: 54px; }
.logo__img--light {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}

@supports (animation-timeline: scroll()) {
  .site-header:not(.site-header--solid) .logo__img--light,
  .site-header:not(.site-header--solid) .logo__img--dark {
    animation: logo-fade-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 160px;
  }
  .site-header:not(.site-header--solid) .logo__img--dark { animation-name: logo-fade-in; }
}
@keyframes logo-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes logo-fade-in { from { opacity: 0; } to { opacity: 1; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.site-nav > a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) {
  .site-nav > a:not(.btn):hover::after { transform: scaleX(1); }
}
.site-nav > a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 8rem 5rem;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background: var(--charcoal);
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-zoom 22s var(--ease) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(30, 32, 31, 0.22) 0%, rgba(30, 32, 31, 0) 70%),
    linear-gradient(180deg, rgba(30, 32, 31, 0.58) 0%, rgba(30, 32, 31, 0.42) 40%, rgba(30, 32, 31, 0.60) 100%);
}

/* The photo is bright, so a soft shadow keeps the white text crisp */
.hero h1,
.hero p { text-shadow: 0 2px 18px rgba(20, 22, 21, 0.45); }

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.hero p {
  max-width: 36ch;
  margin: 1.75rem auto 2.75rem;
  color: rgba(250, 248, 244, 0.92);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero__content > * {
  animation: rise 1.4s var(--ease) both;
}
.hero__content > :nth-child(2) { animation-delay: 0.25s; }
.hero__content > :nth-child(3) { animation-delay: 0.5s; }
.hero__content > :nth-child(4) { animation-delay: 0.75s; }

/* Offer sign-up form in the hero: name, email, phone, then the button */
.hero-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}
.hero-form input:not([type="hidden"]) {
  width: 100%;
  padding: 1.05rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.hero-form input::placeholder { color: var(--text); opacity: 0.85; }
.hero-form input:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 1px var(--sage-deep);
}
.hero-form__submit {
  grid-column: 1 / -1;
  border: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- About (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__photo img { object-position: center 40%; }

.split__text { max-width: 30rem; }
.split__text p { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.split__text p + p { margin-top: 0.6rem; }
.about__cta { margin-top: 2.25rem; }

/* ---------- Section heads ---------- */
.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.section-head p { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }

/* ---------- Services ---------- */
.services { background: var(--white-2); }

/* Three across on desktop, with the last row centered */
.service-grid {
  --gap: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem var(--gap);
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
}
.service { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); }

/* Wide screens: four across (seven cards sit as 4 + 3) */
@media (min-width: 1200px) {
  .service { flex-basis: calc((100% - 3 * var(--gap)) / 4); }
}

.service__img {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--sage-mist);
}
.service__img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.service:hover .service__img img { transform: scale(1.04); }
.service__img .office__img { object-position: center 60%; }
.service__img .snow__img { object-position: center 85%; }

.service p { margin-top: 0.6rem; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.why__item {
  padding-top: 1.75rem;
  border-top: 1px solid var(--sage);
}
.why__item p { margin-top: 0.6rem; }

/* ---------- Careers page ---------- */
.page-intro {
  padding-top: calc(var(--section) + 4rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.page-intro h1 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  text-wrap: balance;
}
.page-intro p {
  max-width: 34rem;
  margin: 1.25rem auto 2.5rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

/* "This is for you if" / "It's not for you if" */
.fit { padding-top: clamp(2rem, 5vw, 3.5rem); }
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: 62rem;
}
.fit__col {
  padding-top: 1.75rem;
  border-top: 1px solid var(--sage);
}
.fit__col h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.fit__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.fit__list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
}
.fit__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.35rem;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 1.5px solid var(--sage-deep);
  border-bottom: 1.5px solid var(--sage-deep);
  transform: rotate(-45deg);
}
.fit__col--not .fit__list li::before {
  top: 1.45rem;
  width: 0.8rem;
  height: 0;
  border-left: 0;
  border-bottom-color: var(--text);
  transform: none;
}
.careers-apply { background: var(--sage-mist); }
.careers-form { max-width: 54rem; margin-inline: auto; }

/* Join Our Team band at the bottom of the home page */
.join-band {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background: var(--white);
  text-align: center;
}
.join-band h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.join-band p { margin-top: 0.75rem; }

.site-footer__careers { margin-top: 1.25rem; }
.site-footer__careers a { border-bottom: 1px solid rgba(163, 176, 154, 0.6); padding-bottom: 2px; }

/* ---------- Meet your guide ---------- */
.guide { background: var(--sage-mist); }
.guide__photo { background: var(--sage-soft); }
.guide__photo img { object-position: center 25%; }

.guide .split__text p { margin-top: 0.6rem; }
.guide .guide__name {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-style: italic;
  color: var(--sage-deep);
}
.guide .guide__name + p { margin-top: 1.5rem; }

/* ---------- How it works ---------- */
.how { background: var(--white-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 clamp(3.5rem, 6vw, 5rem);
  padding: 0;
  list-style: none;
  text-align: center;
}

.step__num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--sage);
}

.step p { max-width: 21rem; margin: 0.6rem auto 0; }

.how__note { margin-top: 1.25rem; font-size: 0.95rem; }

/* ---------- Areas ---------- */
.towns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  margin: 2.5rem auto 2rem;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--charcoal);
}

.towns li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 clamp(0.9rem, 2vw, 1.6rem);
  vertical-align: middle;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- Reviews ---------- */
.reviews { background: var(--white-2); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.review { margin: 0; text-align: center; }

.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--charcoal);
}

.review figcaption {
  margin-top: 1.25rem;
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact { background: var(--sage-mist); }

/* Booking card: "Choose a Time" calendar and "Send a Message" form, switched with CSS-only tabs */
.booking { background: var(--white); }

.booking__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.booking__tabs label {
  margin-bottom: -1px;
  padding: 1.35rem 1rem;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.booking__tabs label:hover { color: var(--charcoal); }

#view-time:checked ~ .booking__tabs label[for="view-time"],
#view-message:checked ~ .booking__tabs label[for="view-message"] {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

#view-time:focus-visible ~ .booking__tabs label[for="view-time"],
#view-message:focus-visible ~ .booking__tabs label[for="view-message"] {
  outline: 2px solid var(--sage-deep);
  outline-offset: -4px;
}

.booking__panel { display: none; }
#view-time:checked ~ .booking__panel--time,
#view-message:checked ~ .booking__panel--message { display: block; }

.booking__calendar {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.field--full { grid-column: 1 / -1; }

.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.contact__intro p { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }

.contact__direct {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.contact__direct a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__direct a:hover { border-color: var(--sage-deep); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
}

.field { display: flex; flex-direction: column; }

.field label {
  margin-bottom: 0.35rem;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(46, 48, 47, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  padding-right: 1.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235C6B56' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
}
.field select:invalid { color: rgba(46, 48, 47, 0.45); }
.field option { color: var(--charcoal); }

.field textarea {
  width: 100%;
  min-height: 7.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(46, 48, 47, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 1.05rem;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--sage-deep);
  box-shadow: 0 1px 0 0 var(--sage-deep);
}
.field textarea:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 1px var(--sage-deep); }

/* Résumé upload */
.field input[type="file"] {
  padding: 0.6rem 0;
  border-bottom: 0;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--charcoal); color: var(--white); }

.form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.75rem;
  border: 0;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--charcoal);
  color: rgba(250, 248, 244, 0.72);
  font-size: 0.98rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sage); }

.site-footer .wordmark { color: var(--white); }
.site-footer__logo { display: block; width: 220px; max-width: 100%; height: auto; }

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.site-footer__tagline {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--sage);
}

.site-footer__base {
  padding-block: 1.75rem;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  font-size: 0.85rem;
}

/* ---------- Mobile booking bar ---------- */
.mobile-cta { display: none; }

/* ---------- Thank-you page ---------- */
.thanks {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8rem var(--gutter) 5rem;
  text-align: center;
}
.thanks h1 { font-size: clamp(3rem, 8vw, 6rem); }
.thanks p { margin: 1.5rem auto 2.75rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }

/* Thank-you page after a sign-up: book a time, what's next, a direct line */
.thanks-intro {
  padding: calc(var(--section) + 3rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--sage-mist);
  text-align: center;
}
.thanks-intro h1 { font-size: clamp(3rem, 8vw, 6rem); }
.thanks-intro .wrap > p { margin: 1.25rem auto 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.thanks-calendar {
  max-width: 38rem;   /* Calendly's card fills this width with no gray margins */
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  background: var(--white);
}
.thanks-intro .thanks-calendar__note { margin-top: 1.5rem; font-size: 0.95rem; }

.thanks-next .steps { margin-bottom: 0; }

.thanks-reach { text-align: center; }
.thanks-reach .review { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.thanks-reach__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2.5rem;
}
.thanks-reach__actions .text-link { margin-top: 0; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes slow-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Gentle fade-up as sections scroll into view (modern browsers; content is always visible otherwise) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 45%;
  }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service { flex-basis: calc((100% - var(--gap)) / 2); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { max-width: 34rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__inner > :first-child { grid-column: 1 / -1; }
}

/* Tablets and phones: logo on top, menu centered beneath it */
@media (max-width: 1000px) {
  .site-header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    min-height: 0;
    padding-block: 0.75rem 0.7rem;
  }
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 2rem;
  }
  .site-nav > .btn { padding: 0.75em 1.5em; }
  section[id] { scroll-margin-top: 8rem; }
  .hero { padding-top: 10rem; }
}

@media (max-width: 760px) {
  /* Phones: menu links in one row under the logo (booking lives in the bottom bar) */
  .site-nav { gap: clamp(1rem, 5vw, 1.75rem); }
  .site-nav > .btn { display: none; }
  .site-nav > a:not(.btn) {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    padding-block: 0.35rem;   /* larger tap target */
  }
  .site-nav > a:not(.btn)::after { bottom: 0; }
  section[id] { scroll-margin-top: 6.75rem; }
  .wordmark { font-size: 1.25rem; }
  .logo__img { height: 42px; }
  .site-footer__logo { width: 190px; }

  .hero { padding-block: 8.5rem 6rem; }
  .hero__img { object-position: 40% center; }   /* fireplace and windows both in view on phones */
  .hero .btn { width: 100%; max-width: 22rem; }
  .hero-form { grid-template-columns: 1fr; max-width: 22rem; }
  .hero-form .btn { max-width: none; }

  .split { grid-template-columns: 1fr; }
  .split__text { text-align: center; margin-inline: auto; }
  .split--reverse .split__media { order: -1; }

  .service { flex-basis: 100%; }
  .service__img img { aspect-ratio: 3 / 2; }

  .why-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .fit-grid { grid-template-columns: 1fr; gap: 3rem; }

  .steps { grid-template-columns: 1fr; gap: 2.75rem; }
  .review-grid { grid-template-columns: 1fr; gap: 3rem; }

  .booking__tabs label { padding-inline: 0.5rem; letter-spacing: 0.12em; }
  .booking__calendar { height: 680px; }

  .towns { flex-direction: column; gap: 0.35rem; }
  .towns li:not(:last-child)::after { display: none; }
  .text-link--inline { display: table; margin: 1.25rem auto 0; }

  .form { grid-template-columns: 1fr; gap: 1.75rem; }
  .form__submit { width: 100%; justify-self: stretch; }

  .btn { padding-inline: 1.8em; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Booking button always within reach on phones */
  body { padding-bottom: 4.25rem; }
  .mobile-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    padding: 1.3rem 1rem calc(1.3rem + env(safe-area-inset-bottom));
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
  }
}
