/* Pecan Cleaning demo site. Shared styles for all pages. */

:root {
  --cream: #FAF6EF;
  --pecan: #7A4A2A;
  --pecan-dark: #5E3820;
  --ink: #2E1D12;
  --sage: #6F8F63;
  --sage-ink: #4F6B47;
  --line: #E8DFD2;
  --paper: #FFFDF9;
  --tint: #F3EDE2;
  --muted: #6A5545;
  --leaf-soft: #E4EBDA;
  --leaf-text: #3F5A36;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(46, 29, 18, 0.06), 0 10px 30px rgba(46, 29, 18, 0.07);
  --shadow-lift: 0 2px 4px rgba(46, 29, 18, 0.06), 0 18px 40px rgba(46, 29, 18, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Cross-page fade */
@view-transition {
  navigation: auto;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.75rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--pecan);
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--pecan);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  margin-bottom: 40px;
  max-width: 680px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--pecan);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--pecan-dark);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border-color: var(--pecan);
  color: var(--pecan);
}

.btn-ghost:hover {
  background: var(--paper);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn-light {
  background: var(--cream);
  color: var(--pecan-dark);
}

.btn-light:hover {
  background: #fff;
  color: var(--pecan-dark);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.btn-outline-light:hover {
  background: rgba(250, 246, 239, 0.12);
  color: var(--cream);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine-print {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  transition: min-height 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.brand-mark {
  width: 22px;
  height: 28px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(160deg, var(--pecan), var(--pecan-dark));
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -8px;
  width: 12px;
  height: 8px;
  border-radius: 0 100% 0 100%;
  background: var(--sage);
  transform-origin: 0 100%;
  animation: leaf-sway 3.4s ease-in-out infinite;
}

.brand:hover .brand-mark::after {
  animation-duration: 1.2s;
}

@keyframes leaf-sway {
  0%, 100% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-22deg) scale(1.12); }
  65% { transform: rotate(14deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark::after { animation: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  background: none;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  font: 600 0.95rem/1 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 20px;
  display: grid;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 14px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.site-nav a[aria-current="page"] {
  color: var(--pecan);
  font-weight: 600;
}

.site-nav li.nav-cta a {
  margin-top: 12px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--pecan);
}

.site-nav li.nav-cta a:hover {
  background: var(--pecan-dark);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
  }

  .site-nav a {
    border: 0;
    padding: 8px 0;
  }

  .site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--sage);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .site-nav li.nav-cta a {
    margin-top: 0;
    min-height: 40px;
    padding: 0 16px;
  }
}

/* Hero */
.hero {
  padding: 48px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.accent {
  font-style: italic;
  color: var(--sage);
  background: linear-gradient(var(--sage), var(--sage)) no-repeat 0 92% / 0% 0.14em;
  animation: underline-draw 1.1s cubic-bezier(0.6, 0.1, 0.2, 1) 0.5s forwards;
}

@keyframes underline-draw {
  to {
    background-size: 100% 0.14em;
  }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  justify-self: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #F1E6D3 0%, #E4EBDA 60%, #D9E3CF 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lift);
  font-size: 0.95rem;
  color: var(--muted);
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

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

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--leaf-soft);
  color: var(--leaf-text);
  margin-bottom: 14px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--pecan);
}

.card-link:hover {
  text-decoration: underline;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
  }
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

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

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pecan);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 18px;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Offer band */
.band-wrap {
  padding: 24px 0 72px;
}

.band-inner {
  display: grid;
  gap: 24px;
  background: linear-gradient(120deg, var(--pecan) 0%, var(--pecan-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  color: var(--cream);
}

.band-inner h2 {
  color: var(--cream);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.3em;
}

.band-inner p {
  color: rgba(250, 246, 239, 0.9);
  margin: 0;
}

.band-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E9D3B8;
  margin-bottom: 0.5rem !important;
}

@media (min-width: 800px) {
  .band-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 56px;
  }
}

/* Service area chips */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 56px 0 24px;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

.promise {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--pecan);
  font-weight: 500;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 88px 0 40px;
  }
}

/* Price table */
.table-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 22px 18px 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

th,
td {
  padding: 14px 8px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  background: var(--tint);
  color: var(--pecan);
  font-weight: 600;
  font-size: 0.85rem;
}

tbody th {
  font-weight: 500;
  color: var(--ink);
}

td {
  font-weight: 500;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  padding: 14px 18px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (min-width: 600px) {
  th,
  td {
    padding: 18px 22px;
    font-size: 1rem;
  }
}

/* Add-ons */
.addon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.addon-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.addon-list .price {
  font-weight: 600;
  color: var(--pecan);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .addon-list {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .addon-list li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

/* Checklist accordion */
.acc {
  display: grid;
  gap: 14px;
}

.acc-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.acc-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.acc-btn {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 1.15rem/1.2 var(--font-display);
  color: var(--ink);
  text-align: left;
}

.acc-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--pecan);
  transition: transform 0.35s ease;
}

.acc-icon::after {
  transform: rotate(90deg);
}

.acc-item.is-open .acc-icon::after {
  transform: rotate(0deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s ease, visibility 0.45s;
}

.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.acc-inner {
  min-height: 0;
  overflow: hidden;
}

.acc-inner ul {
  list-style: none;
  margin: 0;
  padding: 0 22px 22px;
  display: grid;
  gap: 10px;
}

.acc-inner li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.acc-inner li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.note-card {
  background: var(--tint);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.note-card p {
  margin: 0 0 0.6em;
  color: var(--muted);
}

.note-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Contact page */
.quote-layout {
  display: grid;
  gap: 32px;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field label,
.field .label-text {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(111, 143, 99, 0.2);
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.form-foot .btn {
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  color: var(--ink);
}

@media (hover: hover) {
  .contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
}

.contact-card .label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-ink);
  font-weight: 600;
}

.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.terms-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--pecan);
  transform: rotate(45deg);
}

.lang-note {
  background: var(--leaf-soft);
  color: var(--leaf-text);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 640px) {
  .form-card {
    padding: 40px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-foot .btn {
    width: auto;
    align-self: flex-start;
  }
}

@media (min-width: 900px) {
  .quote-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #E9DFD2;
  padding: 56px 0 32px;
}

.site-footer a {
  color: #F3E7D6;
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer p {
  color: #CFC2B2;
  margin: 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9B8A3;
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid .brand + p {
  margin-top: 14px;
  max-width: 28em;
}

.demo-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  padding-top: 20px;
  font-size: 0.88rem;
  color: #BFAE99 !important;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Section spacing and layout breakpoints */
@media (min-width: 768px) {
  .section {
    padding: 104px 0;
  }

  .hero {
    padding: 64px 0 96px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 120px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

section[id] {
  scroll-margin-top: 90px;
}

/* Scroll reveal. Only active when main.js has run (js-ready). */
.js-ready [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.7s ease var(--delay, 0ms),
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Reduced motion: no movement, no transitions, no view fade. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    translate: none;
  }

  .accent {
    background-size: 100% 0.14em;
  }

  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================================
   Illustration and motion layer. Same visual language as the
   Instagram posts: flat SVG props, rising bubbles, twinkling
   sparkles, masked line reveals, floaty and pop motion.
   ========================================================== */
:root {
  --sand: #EFE3D0;
  --sage-tint: #E6EDDF;
  --sage-light: #B7D3A9;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise { 0% { transform: translate(0, 0) scale(0.7); opacity: 0 } 10% { opacity: 1 } 50% { transform: translate(24px, calc(var(--rise, -700px) / 2)) scale(1) } 100% { transform: translate(-16px, var(--rise, -700px)) scale(1.15); opacity: 0 } }
@keyframes twinkle { 0%, 100% { transform: scale(0.3) rotate(0); opacity: 0.2 } 50% { transform: scale(1) rotate(90deg); opacity: 1 } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)) } 50% { transform: translateY(var(--fy, -14px)) rotate(calc(var(--r, 0deg) + 3deg)) } }
@keyframes pop { 0% { transform: scale(0.4) rotate(var(--r, 0deg)); opacity: 0 } 70% { transform: scale(1.08) rotate(var(--r, 0deg)); opacity: 1 } 100% { transform: scale(1) rotate(var(--r, 0deg)); opacity: 1 } }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes lineUp { from { transform: translateY(112%) } to { transform: translateY(0) } }
@keyframes shine { 0%, 55% { transform: translateX(-140%) skewX(-20deg) } 100% { transform: translateX(260%) skewX(-20deg) } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(-40px, 30px) } }
@keyframes wob { 0%, 100% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) scale(1.04) } }
@keyframes bob { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }
@keyframes morph { 0%, 100% { border-radius: 58% 42% 52% 48% / 48% 56% 44% 52% } 50% { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44% } }
@keyframes wiggle { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-10deg) scale(1.1) } 60% { transform: rotate(8deg) scale(1.08) } }
@keyframes chipIn { from { opacity: 0; scale: 0.6 } to { opacity: 1; scale: 1 } }
@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.6); opacity: 0.55 } }
@keyframes dotHop { 0%, 100% { transform: translateY(0) } 40% { transform: translateY(-8px) } }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0 } 40% { opacity: 1 } 100% { transform: translateY(-10px); opacity: 0 } }

/* Section rhythm: cream, sand, sage tint, pecan, with wave dividers */
.bg-cream { --bg: var(--cream); background: var(--cream); }
.bg-sand { --bg: var(--sand); background: var(--sand); }
.bg-sage { --bg: var(--sage-tint); background: var(--sage-tint); }
.bg-pecan { --bg: var(--pecan); background: var(--pecan); color: var(--cream); }

.hero,
.page-hero,
.section,
.band-wrap {
  position: relative;
  overflow-x: clip;
}

.wavy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C140 6 300 2 460 24S760 58 920 36 1110 6 1200 22V60z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C140 6 300 2 460 24S760 58 920 36 1110 6 1200 22V60z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

.wavy-flip::before { transform: scaleX(-1); }

.hero > .wrap,
.page-hero > .wrap,
.section > .wrap,
.band-wrap > .wrap {
  position: relative;
  z-index: 2;
}

.bg-sand .note-card,
.bg-sage .note-card { background: var(--paper); }

.bg-sage .step { box-shadow: var(--shadow-soft); }

/* Ambient decor */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite;
}

.blob-1 { width: 520px; height: 520px; right: -200px; top: -180px; background: #F1E6D3; }
.blob-2 { width: 380px; height: 380px; left: -190px; bottom: -150px; background: var(--sage-tint); animation-delay: -6s; }

.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bubbles i {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(111, 143, 99, 0.3), rgba(111, 143, 99, 0.06) 55%);
  border: 2px solid rgba(111, 143, 99, 0.28);
  animation: rise linear infinite;
}

.bg-pecan .bubbles i {
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.04) 70%);
  border-color: rgba(255, 255, 255, 0.3);
}

.spk {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 3;
  animation: twinkle 2.6s ease-in-out infinite;
}

.spk svg { width: 100%; height: 100%; }
.spk-bg { z-index: 1; }

.is-paused,
.is-paused * { animation-play-state: paused !important; }

/* Home hero */
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding: 0 0.14em 0.12em 0;
  margin-bottom: -0.12em;
}

.hero h1 .ln > span {
  display: block;
  animation: lineUp 0.9s var(--ease-out) both;
}

.hero h1 .ln:nth-child(2) > span { animation-delay: 0.14s; }
.hero .accent { animation-delay: 1s; }

.hero-copy .eyebrow { animation: slideUp 0.7s var(--ease-out) both; }
.hero-copy .lead { animation: slideUp 0.8s 0.45s var(--ease-out) both; }
.hero-copy .cta-row { animation: slideUp 0.8s 0.6s var(--ease-out) both; }
.hero-copy .fine-print { animation: slideUp 0.8s 0.75s var(--ease-out) both; }

.hero-art {
  aspect-ratio: auto;
  background: none;
  box-shadow: none;
  overflow: visible;
  display: grid;
  place-items: center;
  padding: 28px 0 96px;
}

.hero-blob {
  position: absolute;
  inset: 4% 2% 14%;
  background: var(--pecan);
  border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%;
  animation: pop 1s var(--ease-out) both, morph 10s 1s ease-in-out infinite;
}

.hero-house {
  position: relative;
  width: 82%;
  z-index: 2;
  animation: pop 1s 0.3s var(--ease-out) both, floaty 5s 1.3s ease-in-out infinite;
}

.hero-art .hero-house svg { width: 100%; height: auto; overflow: visible; }

.glint {
  transform-box: fill-box;
  animation: shine 4s ease-in-out infinite;
}

.hero-prop {
  position: absolute;
  z-index: 3;
  animation: pop 0.8s var(--ease-out) both, floaty 4.5s ease-in-out infinite;
}

.hero-art .hero-prop svg { width: 100%; height: auto; }
.prop-spray { width: 15%; left: 2%; bottom: 30%; --r: -8deg; animation-delay: 0.7s, 1.5s; }
.prop-bucket { width: 22%; right: 0; bottom: 18%; --r: 6deg; animation-delay: 0.85s, 0.2s; }

.float-card {
  bottom: 0;
  z-index: 4;
  animation: slideUp 0.8s 1.1s var(--ease-out) both;
}

.foam circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: bob 2.4s ease-in-out infinite;
}

.foam circle:nth-child(2) { animation-delay: -0.6s; }
.foam circle:nth-child(3) { animation-delay: -1.2s; }
.liq { animation: bob 3s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.steam { animation: steam 2.4s ease-out infinite; }
.dots circle { animation: dotHop 1.4s ease-in-out infinite; }
.dots circle:nth-child(2) { animation-delay: 0.15s; }
.dots circle:nth-child(3) { animation-delay: 0.3s; }
.leaves { transform-box: fill-box; transform-origin: 50% 100%; animation: wob 4s ease-in-out infinite; }

/* Illustrated icons for cards, steps, contact cards */
.ico {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sage-tint);
  margin-bottom: 18px;
}

.ico svg {
  width: 52%;
  height: 62%;
  --fy: -5px;
  animation: floaty 4.5s ease-in-out infinite;
}

.card:nth-child(even) .ico,
.ico-sand { background: var(--sand); }
.card:nth-child(3n) .ico svg { animation-delay: -1.5s; }
.card:nth-child(3n+2) .ico svg { animation-delay: -3s; }

.step { position: relative; }

.step .ico {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 68px;
  height: 68px;
  margin: 0;
}

.step h3 { padding-right: 76px; }
.step:nth-child(2) .ico svg { animation-delay: -1.5s; }
.step:nth-child(3) .ico svg { animation-delay: -3s; }

.ico-sm { flex: 0 0 56px; width: 56px; height: 56px; margin: 0; }

.card,
.step { transition: transform 0.3s ease, box-shadow 0.3s ease; }

@media (hover: hover) {
  .step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .card:hover .ico,
  .step:hover .ico,
  .contact-card:hover .ico,
  .acc-btn:hover .acc-ico { animation: wiggle 0.6s ease; }
}

/* Offer band */
.band-wrap.bg-pecan { padding: 72px 0; }

.band-inner {
  position: relative;
  background: linear-gradient(120deg, #8A5733 0%, var(--pecan-dark) 100%);
  border: 1px solid rgba(250, 246, 239, 0.12);
}

.band-art {
  position: relative;
  width: 170px;
  height: 140px;
}

.band-art [data-img] { position: absolute; }
.band-art svg { width: 100%; height: auto; }
.band-bucket { width: 104px; left: 8px; bottom: 0; --r: -6deg; animation: floaty 5s ease-in-out infinite; }
.band-spray { width: 54px; right: 6px; bottom: 6px; --r: 10deg; animation: floaty 4s -1.5s ease-in-out infinite; }

@media (min-width: 800px) {
  .band-inner { grid-template-columns: auto 1.4fr 1fr; gap: 36px; }
  .band-art { width: 190px; height: 160px; }
  .band-bucket { width: 120px; }
  .band-spray { width: 62px; }
}

/* Corner illustrations in sections */
.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: none;
  animation: floaty 5.5s ease-in-out infinite;
}

.deco svg { width: 100%; height: auto; }

@media (min-width: 900px) {
  .deco { display: block; }
  .deco-tr { right: 4%; top: 0; width: 96px; --r: 6deg; }
  .deco-tr2 { right: 16%; top: 36px; width: 64px; --r: -6deg; animation-delay: -2s; }
  .deco-bl { left: 4%; top: 14px; width: 72px; --r: -8deg; }
}

/* Service area chips: staggered pop-in, pulsing dot, hover lift */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s var(--bounce), background-color 0.25s ease, border-color 0.25s ease;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  animation: dotPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

.js-ready .chips .chip { opacity: 0; }

.js-ready .chips.is-visible .chip {
  animation: chipIn 0.55s var(--bounce) both;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}

@media (hover: hover) {
  .chip:hover { transform: translateY(-3px) rotate(-2deg); background: var(--sand); border-color: var(--sand); }
}

/* Button shine */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-180%) skewX(-20deg);
  pointer-events: none;
}

@media (hover: hover) {
  .btn:hover::after { transform: translateX(340%) skewX(-20deg); transition: transform 0.7s ease; }
}

/* Inner page heroes with an illustrated scene */
.page-hero-grid {
  display: grid;
  gap: 8px;
  align-items: center;
}

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 220px;
  justify-self: center;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  background: var(--sand);
  border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%;
  animation: morph 10s ease-in-out infinite;
}

.hero-scene > [data-img] {
  position: absolute;
  animation: pop 0.8s var(--ease-out) both, floaty 5s ease-in-out infinite;
}

.hero-scene svg { width: 100%; height: auto; }
.scene-1 { width: 20%; left: 18%; bottom: 10%; --r: -8deg; animation-delay: 0.1s, 0.9s !important; }
.scene-2 { width: 34%; right: 14%; bottom: 12%; --r: 6deg; animation-delay: 0.25s, -1.5s !important; }
.scene-3 { width: 26%; left: 40%; top: 12%; --r: 4deg; animation-delay: 0.4s, -3s !important; }
.scene-contact .scene-1 { width: 24%; left: 12%; }
.scene-contact .scene-2 { width: 42%; right: 22%; bottom: 10%; }
.scene-contact .scene-3 { width: 24%; left: auto; right: 6%; top: 8%; }

@media (min-width: 860px) {
  .page-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .hero-scene { height: 300px; }
}

/* Room strip above the price table */
.ill-strip {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ill-strip li {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.ill-strip li svg {
  width: 70%;
  height: 70%;
  --fy: -5px;
  animation: floaty 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.8s);
}

td,
.addon-list .price { font-variant-numeric: tabular-nums; }

/* Accordion room icons */
.acc-btn { justify-content: flex-start; }
.acc-icon { margin-left: auto; }

.acc-ico {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sage-tint);
  transition: transform 0.3s var(--bounce);
}

.acc-ico svg { width: 78%; height: 78%; }
.acc-item.is-open .acc-ico { transform: rotate(-6deg) scale(1.08); background: var(--sand); }

/* Scroll reveal: add a soft pop on top of the existing fade and slide */
.js-ready [data-reveal] {
  scale: 0.96;
  transition:
    opacity 0.7s ease var(--delay, 0ms),
    translate 0.7s var(--ease-out) var(--delay, 0ms),
    scale 0.7s var(--bounce) var(--delay, 0ms),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.js-ready [data-reveal].is-visible { scale: 1; }

/* Reduced motion: final state, no loops */
@media (prefers-reduced-motion: reduce) {
  .blob,
  .bubbles,
  .spk,
  .hero h1 .ln > span,
  .hero-copy > *,
  .hero-blob,
  .hero-house,
  .hero-prop,
  .float-card,
  .glint,
  .foam circle,
  .liq,
  .steam,
  .dots circle,
  .leaves,
  .ico,
  .ico svg,
  .band-art [data-img],
  .deco,
  .chip,
  .chip::before,
  .hero-scene::before,
  .hero-scene > [data-img],
  .ill-strip li svg,
  .acc-ico { animation: none !important; }

  .bubbles,
  .glint { display: none; }

  .js-ready .chips .chip { opacity: 1; scale: none; }
  .js-ready [data-reveal] { scale: none; }
  .btn::after { display: none; }
}
