/* =========================================================
   Melias Cleaning LLC — main stylesheet
   Palette and fonts live in :root, change them in one place.
   ========================================================= */

:root {
  /* Brand palette (from the client's brand sheet) */
  --forest: #173F37;
  --sage: #A4B49A;
  --beige: #F1E9DE;
  --brown: #574435;
  --milk: #FFFEFA;

  /* Roles */
  --green: var(--forest);  /* buttons, headings, logo */
  --green-deep: #102D27;   /* hover, footer */
  --green-soft: #3E6A5F;
  --sage-light: #E6ECE1;   /* light sage sections */
  --cream: var(--milk);    /* page background */
  --white: #FFFFFF;
  --ink: #1F2A26;          /* body text */
  --muted: #5E625C;        /* secondary text */
  --line: #E3DACB;         /* borders */

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(87, 68, 53, .06), 0 10px 30px rgba(87, 68, 53, .10);
  --shadow-lg: 0 2px 4px rgba(87, 68, 53, .06), 0 18px 40px rgba(87, 68, 53, .14);

  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--font-head); color: var(--green); font-weight: 600; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid #7FA894; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 .95rem/1 var(--font-body);
  letter-spacing: .01em;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--sage); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); /* no backdrop-filter: it would break the fixed mobile menu */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: block; color: var(--green); flex: none; }
.brand-logo { display: block; height: 66px; width: 138px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav ul a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.main-nav-extra { display: none; }

.header-phone {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  color: var(--green); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; text-underline-offset: 5px; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--milk); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 560px; }
.hero-text { padding: 4.5rem 3rem 4.5rem 0; align-self: center; }
.hero-kicker { color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); font-weight: 600; line-height: .98; letter-spacing: -.005em; }
.hero h1 span { display: block; }
.h1-top { text-transform: uppercase; font-size: .76em; letter-spacing: .03em; white-space: nowrap; }
.hero-lead { margin-top: 1.4rem; font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-points li { white-space: nowrap; display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--ink); }
.hero-points .icon { width: 1.6rem; height: 1.6rem; color: var(--green); }
/* the photo bleeds to the right edge of the screen */
.hero-media { display: block; position: relative; overflow: hidden; margin-right: calc((100vw - min(100vw - 2.5rem, var(--container))) / -2); min-height: 100%; background: var(--sage); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }

.contact-pop { position: relative; }
.contact-pop-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 10; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .4rem;
}
.contact-pop-menu a { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.contact-pop-menu a:hover { background: var(--sage); color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head p { margin-top: .8rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--beige); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: stretch; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-media { display: block; aspect-ratio: 4 / 3; background: var(--sage-light); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.service-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service--popular { outline: 2px solid var(--sage); outline-offset: -2px; }
.badge-popular {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: var(--radius-pill);
  background: var(--sage); color: var(--forest);
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.service-top { display: flex; gap: .8rem; align-items: flex-start; }
.service-icon { width: 1.9rem; height: 1.9rem; color: var(--green); flex: none; margin-top: .1rem; }
.service h3 { font-size: 1.55rem; }
.service-desc { margin-top: .35rem; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.service-toggle { display: none; }
.service-list { margin: 1.2rem 0 1.4rem; display: grid; gap: .35rem; font-size: .93rem; }
.service-list li { position: relative; padding-left: 1.3rem; }
.service-list li::before {
  content: ""; position: absolute; left: .15rem; top: .62em; width: .45rem; height: .45rem;
  border-radius: 50%; border: 1.5px solid var(--sage);
}
.service-price { margin-top: auto; }
.price-pill {
  display: flex; align-items: baseline; justify-content: center; gap: .45rem;
  padding: .7rem 1rem; border-radius: var(--radius-pill);
  background: var(--forest); color: var(--milk); font-size: .88rem;
}
.price-pill strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; }
.services-cta { text-align: center; margin-top: 2.5rem; color: var(--muted); }

/* ---------- Add-ons ---------- */
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.addon {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.addon-icon { width: 2.1rem; height: 2.1rem; color: var(--forest); }
.addon h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink); }
.addon p { font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.addon .addon-price {
  margin: 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--forest);
  font-variant-numeric: lining-nums; white-space: nowrap;
}

/* ---------- Explore your clean ---------- */
.explore { background: var(--beige); }
.explore-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.plan-svg { display: block; width: 100%; height: auto; color: var(--brown); }
.plan-hall { fill: #F7F2EA; }
.room { cursor: pointer; outline: none; }
.room-floor { fill: var(--white); transition: fill .25s; }
.room:hover .room-floor { fill: var(--sage-light); }
.room[aria-pressed="true"] .room-floor { fill: var(--sage); }
.room:focus-visible .room-floor { stroke: var(--forest); stroke-width: 4; }
.furn { fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .55; transition: opacity .25s; }
.furn .rug { stroke-dasharray: 4 4; }
.room[aria-pressed="true"] .furn { opacity: .8; stroke: var(--forest); }
.room-label { font: 600 15px var(--font-body); fill: var(--forest); text-anchor: middle; pointer-events: none; }
.walls { fill: none; stroke: var(--forest); stroke-width: 6; stroke-linecap: square; }
.room-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; justify-content: center; }
.room-chip {
  font: 500 .9rem var(--font-body); padding: .5rem 1rem; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--white); color: var(--forest); border: 1px solid var(--line);
}
.room-chip[aria-pressed="true"] { background: var(--forest); color: var(--milk); border-color: var(--forest); }
.room-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.room-detail h3 { font-size: 2rem; margin-bottom: 1rem; }
.room-detail:not([hidden]) { animation: fadeUp .35s ease both; }
.check-list { display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--sage-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23173F37' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.room-note { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* ---------- Why us ---------- */
.why { background: var(--sage-light); }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.why-grid li { text-align: center; padding: 0 1.4rem; }
.why-grid li + li { border-left: 1px solid #CBD5C3; }
.why-icon { width: 2.4rem; height: 2.4rem; color: var(--green); margin-bottom: 1rem; }
.why-grid h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink); }
.why-grid p { margin-top: .4rem; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- Care ---------- */
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.care-card { background: var(--beige); border-radius: var(--radius); padding: 2.2rem; }
.care-card h3 { font-size: 1.8rem; margin: 1rem 0 .7rem; }
.care-card p { color: var(--muted); }
.care-icon { width: 2.6rem; height: 2.6rem; color: var(--forest); }
.care-icons { display: flex; gap: .6rem; }

/* ---------- Before / after ---------- */
.work { background: var(--forest); color: #E3ECE6; }
.work h2 { color: var(--milk); }
.work .section-head p { color: #C7D6CD; }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ba-card { margin: 0; }
.ba-card figcaption { margin-top: .8rem; text-align: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--milk); }
.work-cta { text-align: center; margin-top: 2.5rem; }

.ba-frame {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: #28503F;
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label {
  position: absolute; top: 1rem; z-index: 2; font-size: .8rem; font-weight: 500;
  padding: .3rem .75rem; border-radius: var(--radius-pill); pointer-events: none;
}
.ba-label-before { left: 1rem; background: rgba(0, 0, 0, .55); color: var(--white); }
.ba-label-after { right: 1rem; background: var(--white); color: var(--green); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 3px; margin-left: -1.5px; background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, .35);
}
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-knob { outline: 3px solid #9CC3AF; outline-offset: 3px; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--green); box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.ba-knob svg { width: 24px; height: 24px; }

/* ---------- Reviews (marquee) ---------- */
.reviews { background: var(--beige); overflow: hidden; }
.reviews .section-head { margin-bottom: 2rem; }
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; gap: 1.25rem; padding-right: 1.25rem; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.review {
  width: 320px; flex: none; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem;
}
.review-stars { display: flex; gap: .15rem; color: #C9A227; }
.review-stars svg { width: 1.05rem; height: 1.05rem; }
.review-text { color: var(--ink); flex: 1; }
.review-name { font-size: .9rem; font-weight: 600; color: var(--brown); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Quote ---------- */
.quote { background: var(--milk); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.quote-intro > p { margin-top: 1rem; color: var(--muted); max-width: 28em; }
.quote-steps { margin-top: 2rem; display: grid; gap: 1rem; counter-reset: step; }
.quote-steps li { position: relative; padding-left: 3rem; color: var(--muted); }
.quote-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; font-variant-numeric: lining-nums;
}
.quote-steps strong { color: var(--ink); font-weight: 600; }
.quote-alt { margin-top: 2rem !important; }

.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
  display: grid; gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #C3CEC6; border-radius: var(--radius-sm);
  padding: .7rem .8rem; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 63, 55, .15); }
.field.has-error input, .field.has-error select { border-color: #B3261E; }
.field-error { font-size: .82rem; color: #B3261E; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--green); flex: none; }
.consent.has-error span { color: #B3261E; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success h3 { font-size: 2rem; }
.form-success p { margin-top: .8rem; color: var(--muted); }
.form-success .icon { width: 3rem; height: 3rem; color: var(--green); margin: 0 auto 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #CBD8D1; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-logo { display: block; width: 200px; height: 96px; color: var(--white); }
.footer-brand p { margin-top: 1rem; max-width: 22em; font-size: .95rem; }
.footer-title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .6rem; font-size: .95rem; }
.footer-list li { display: flex; align-items: center; gap: .6rem; }
.footer-list a { color: #C9D6CE; text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

.sticky-cta { display: none; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js [data-reveal-from="left"] { transform: translateX(-28px); }
.js [data-reveal-from="right"] { transform: translateX(28px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .service[data-reveal].is-visible:hover { transform: translateY(-3px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .why-grid li:nth-child(4) { border-left: 0; }
  .addon-grid { grid-template-columns: 1fr 1fr; }
  .explore-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ba-grid { gap: 1rem; }
  .ba-card figcaption { font-size: 1.25rem; }
  .quote-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .quote-intro { position: static; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand-logo { height: 54px; width: 113px; }
  .header-phone { display: none; }
  .header-cta { display: none; }

  /* hamburger */
  .menu-toggle {
    display: grid; gap: 5px; margin-left: auto; padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green); transition: transform .25s, 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); }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    padding: 1.5rem 1.25rem 2rem; display: flex; flex-direction: column;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 1rem 0; font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; color: var(--green); border-bottom: 1px solid var(--line); }
  .main-nav-extra { display: grid; gap: 1rem; margin-top: auto; }
  .nav-phone { display: flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; color: var(--green) !important; }

  /* hero: photo on top, text below */
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  /* photo on top; its lower part is blurred and the text sits over it.
     explicit width: Safari otherwise shrinks this grid item to its content */
  .hero-media { order: -1; justify-self: stretch; width: calc(100% + 2.5rem); margin: 0 -1.25rem; aspect-ratio: 1 / 1; min-height: 0; }
  .hero-media img { object-position: 55% 30%; }
  .hero-media::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%);
    background: linear-gradient(to bottom, rgba(255, 254, 250, 0) 0%, rgba(255, 254, 250, .55) 45%, var(--milk) 100%);
  }
  .hero-text { position: relative; z-index: 1; margin-top: -38vw; padding: 0 0 2.5rem; }
  .hero-kicker { color: var(--forest); }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .contact-pop { width: 100%; }
  .contact-pop-menu { left: 0; right: 0; }
  .hero-points { justify-content: space-between; gap: 1rem; }
  .hero-points li { white-space: normal; flex-direction: column; text-align: center; font-size: .82rem; gap: .4rem; flex: 1; }

  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2rem; }

  /* services become compact rows, list opens on tap */
  .service-grid { grid-template-columns: 1fr; gap: .8rem; }
  .service { display: grid; grid-template-columns: 96px 1fr; }
  .service-media { border-radius: var(--radius) 0 0 var(--radius); }
  .badge-popular { left: auto; right: .7rem; top: .7rem; font-size: .68rem; padding: .25rem .6rem; }
  .service--popular h3 { padding-right: 6.5rem; }
  .service-media { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .service-body { padding: 1rem 1rem 1.1rem; }
  .service-icon { display: none; }
  .service h3 { font-size: 1.35rem; }
  .service-desc { font-size: .88rem; }
  .service-toggle {
    display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; padding: .3rem 0;
    background: none; border: 0; font: 500 .88rem var(--font-body); color: var(--green); cursor: pointer;
  }
  .service-toggle .icon { transition: transform .2s; }
  .service-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .service-list { display: none; margin: .6rem 0 .8rem; }
  .service.is-open .service-list { display: grid; }
  .service-price { margin-top: .7rem; }
  .price-pill { justify-content: space-between; padding: .55rem 1rem; }
  .price-pill strong { font-size: 1.4rem; }

  .why-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .why-grid li { padding: 0 .8rem; border-left: 0 !important; }
  .why-grid li:last-child { grid-column: 1 / -1; }

  .addon-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr; }
  .care-card { padding: 1.6rem; }
  .ba-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ba-frame { aspect-ratio: 1 / 1; }
  .room-panel { padding: 1.5rem; }
  .review { width: 270px; }
  .marquee-track { animation-duration: 35s; }

  .quote-form { padding: 1.3rem; }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding-bottom: 4.5rem; } /* room for the sticky button */

  /* sticky "Get a free quote" button on phones */
  .sticky-cta {
    display: block; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40;
    text-align: center; padding: 1rem; border-radius: var(--radius-pill);
    background: var(--green); color: var(--white); text-decoration: none; font-weight: 500;
    box-shadow: 0 6px 20px rgba(21, 50, 40, .3);
    transition: transform .25s, opacity .25s;
  }
  .sticky-cta.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { width: auto; overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .room-detail:not([hidden]) { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Legal pages (privacy policy, terms)
   ========================================================= */
.legal { padding: 4rem 0 5rem; }
.legal-inner { max-width: 44rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal-updated { margin-top: .8rem; color: var(--muted); }
.legal h2 { font-size: 1.8rem; margin: 2.6rem 0 .8rem; }
.legal h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 1.6rem 0 .5rem; }
.legal p { margin: .8rem 0; }
.legal ul { margin: .8rem 0; padding-left: 1.3rem; list-style: disc; }
.legal li { margin: .35rem 0; }
.legal mark { background: #FFF1B8; color: inherit; padding: 0 .2em; border-radius: 3px; }
.legal-note { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--sage); border-radius: var(--radius-sm); font-size: .95rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }
