:root {
  --primary-color: #25382f;
  --secondary-color: #b89b68;
  --accent-color: #d7b46a;
  --background-color: #f6f2eb;
  --text-color: #23241f;
  --button-radius: 14px;
  --brand-font: Aptos, "Segoe UI", sans-serif;
  --quote-question-size: 2.35rem;
  --quote-bg-color: var(--background-color);
  --quote-bg-image: none;
  --quote-panel-scale: .92;
  --surface: color-mix(in srgb, var(--background-color) 82%, #fff 18%);
  --surface-strong: #fffaf2;
  --muted: color-mix(in srgb, var(--text-color) 62%, var(--background-color) 38%);
  --line: color-mix(in srgb, var(--text-color) 15%, transparent);
  --shadow: 0 28px 80px rgba(37, 56, 47, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --motion-quick: 650ms;
  --motion-standard: 780ms;
  --motion-flow: 900ms;
  --motion-entrance: 860ms;
  --motion-bg: 900ms;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(184,155,104,.13), transparent 34%),
    var(--background-color);
  color: var(--text-color);
  font-family: var(--brand-font);
  line-height: 1.5;
}

.quote-page {
  --quote-logo-size: clamp(112px, 14vw, 172px);
  --quote-top-clearance: clamp(142px, 18vw, 214px);
  --quote-bottom-clearance: clamp(16px, 2.6svh, 30px);
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow-x: hidden;
}

.home-page {
  min-height: 100svh;
  max-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

a { color: inherit; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.public-preview-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 11px clamp(16px, 4vw, 54px);
  background: #fff1d4;
  color: #684b12;
  border-bottom: 1px solid color-mix(in srgb, #b89b68 44%, transparent);
  box-shadow: 0 10px 28px rgba(104,75,18,.1);
  font-weight: 900;
  text-align: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 54px);
}

.home-page .site-header {
  display: none;
}

.quote-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  justify-content: center;
  padding-top: clamp(12px, 2.4svh, 28px);
  padding-bottom: 0;
  pointer-events: none;
}

.admin-preview-site.quote-page .site-header {
  inset: 42px 0 auto;
}

.admin-preview-site.quote-page {
  --quote-top-clearance: clamp(184px, calc(18vw + 42px), 256px);
}

.quote-page .site-logo {
  pointer-events: auto;
}

.quote-page .brand-logo-public {
  height: var(--quote-logo-size);
  max-width: min(540px, 82vw);
}

.quote-page .brand-logo-public.brand-mark {
  width: var(--quote-logo-size);
  height: var(--quote-logo-size);
  font-size: clamp(3rem, 8vw, 6rem);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo.logo-only { gap: 0; }

.site-logo span,
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--surface-strong);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: var(--public-logo-height);
  max-width: min(280px, 54vw);
  object-fit: contain;
}

.brand-logo-public {
  height: var(--public-logo-height);
}

.brand-logo-public.brand-mark {
  width: var(--public-logo-height);
  height: var(--public-logo-height);
}

.phone-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.home-hero,
.quote-shell,
.thank-you-panel {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero {
  width: min(1360px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(520px, 1.32fr);
  gap: clamp(18px, 3.4vw, 48px);
  align-items: center;
  min-height: 0;
  padding: clamp(10px, 2vh, 24px) 0;
}

.packages-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(16px, 4vw, 54px) 0;
}

.home-logo-lockup {
  display: inline-flex;
  align-items: center;
  margin: 0 0 clamp(16px, 3vh, 28px);
}

.brand-logo-home {
  display: block;
  width: auto;
  height: clamp(112px, 15vw, 210px);
  max-width: min(560px, 100%);
  object-fit: contain;
}

.brand-logo-home.brand-mark {
  width: clamp(112px, 15vw, 210px);
  height: clamp(112px, 15vw, 210px);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.hero-copy h1,
.quote-step h1,
.estimate-result h1,
.thank-you-panel h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: .95;
  letter-spacing: 0;
  max-width: 11ch;
}

.home-page .hero-copy h1 {
  font-size: clamp(1.9rem, 4.7vw, 4.35rem);
  max-width: 17ch;
}

.quote-step h1,
.estimate-result h1,
.thank-you-panel h1 {
  font-size: clamp(1.45rem, 5vw, var(--quote-question-size));
  line-height: 1.08;
  max-width: min(100%, 32ch);
}

.quote-page {
  background-color: var(--quote-bg-color);
}

.quote-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(135deg, rgba(184,155,104,.10), transparent 34%),
    var(--quote-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: quote-bg-fade var(--motion-bg) var(--ease) 160ms forwards;
}

.hero-copy p,
.hero-panel p,
.step-help,
.disclaimer {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion-quick) var(--ease), box-shadow var(--motion-quick) var(--ease), background var(--motion-quick) var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button[disabled],
.button.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button[disabled]:hover,
.button.is-disabled:hover {
  transform: none;
}
.button[hidden],
button[hidden] { display: none !important; }

.button-primary {
  background: var(--primary-color);
  color: var(--surface-strong);
  box-shadow: 0 16px 36px rgba(37, 56, 47, .2);
}

.button-ghost {
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border-color: var(--line);
  color: var(--primary-color);
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.package-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(16px, 3vh, 28px);
}

.package-strip article {
  display: grid;
  gap: 2px;
  padding: 12px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
}

.package-strip span {
  color: var(--secondary-color);
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.package-strip strong {
  color: var(--primary-color);
  line-height: 1.12;
}

.package-strip small {
  color: var(--muted);
  line-height: 1.25;
}

.hero-panel,
.quote-card,
.thank-you-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(24px, 5vw, 42px);
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 0;
}

.hero-slideshow {
  position: relative;
  overflow: hidden;
  padding: 0;
  align-self: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: min(50svh, 520px);
  isolation: isolate;
}

.slide-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  background-size: cover;
  background-position: center;
  animation: hero-slide 18s infinite;
}

.slide-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.slide-caption span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,250,242,.82);
  color: var(--primary-color);
  font-size: .8rem;
  font-weight: 900;
}

@keyframes hero-slide {
  0% { opacity: 0; transform: scale(1); }
  6% { opacity: 1; transform: scale(1.015); }
  31% { opacity: 1; transform: scale(1.075); }
  39% { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1); }
}

.hero-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 24px 0 12px;
}

.material-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.material-stack span {
  min-height: 112px;
  border-radius: 18px;
  background: var(--secondary-color);
}

.material-stack span:nth-child(2) { background: var(--primary-color); }
.material-stack span:nth-child(3) { grid-column: 1 / -1; background: #ded2bd; }

.quote-shell {
  min-height: 100svh;
  display: grid;
  place-items: start center;
  padding: var(--quote-top-clearance) 0 var(--quote-bottom-clearance);
}

.quote-card {
  width: min(1040px, 100%);
  padding: clamp(16px, 4vw, calc(46px * var(--quote-panel-scale)));
  max-height: calc(100svh - var(--quote-top-clearance) - var(--quote-bottom-clearance));
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.quote-progress {
  height: 7px;
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  border-radius: 99px;
  margin-bottom: clamp(18px, 4vw, calc(44px * var(--quote-panel-scale)));
  overflow: hidden;
}

.quote-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--secondary-color);
  transition: width var(--motion-flow) var(--ease);
}

.quote-step,
.estimate-result {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-standard) var(--ease), transform var(--motion-standard) var(--ease);
}

.quote-step.is-visible,
.estimate-result.is-visible,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  animation: reveal var(--motion-entrance) var(--ease) both;
}

.reveal-delay { animation-delay: 180ms; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quote-bg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.option-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.quote-step .option-grid:has(.image-choice) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-step .option-grid:has(.image-choice):hover .image-choice:not(:hover):not(.selected) {
  opacity: .48;
  filter: grayscale(.32) saturate(.68);
  transform: scale(.985);
}

.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 18px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--background-color) 55%, #fff 45%);
  cursor: pointer;
  transition: border var(--motion-quick) var(--ease), transform var(--motion-quick) var(--ease), background var(--motion-quick) var(--ease), opacity var(--motion-quick) var(--ease), filter var(--motion-quick) var(--ease);
}

.choice:hover,
.choice.selected {
  border-color: color-mix(in srgb, var(--secondary-color) 70%, var(--primary-color) 30%);
  background: color-mix(in srgb, var(--secondary-color) 14%, #fff 86%);
  transform: translateY(-1px);
}

.choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.image-choice {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.image-choice .choice-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0;
  animation: image-choice-fade var(--motion-entrance) var(--ease) forwards;
}

.image-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.image-choice > span:last-child {
  padding: 16px 18px;
}

@keyframes image-choice-fade {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.field {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--primary-color);
}

.field span {
  color: var(--muted);
  font-weight: 600;
  font-size: .86rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--text-color);
  padding: 14px 15px;
  font: inherit;
  transition: border var(--motion-quick) var(--ease), box-shadow var(--motion-quick) var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary-color) 20%, transparent);
}

.large-field {
  position: relative;
  margin-top: 28px;
}

.large-field input {
  min-height: 72px;
  font-size: 1.7rem;
}

.photo-field input {
  min-height: 64px;
  font-size: 1rem;
}

.photo-upload-control {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px dashed color-mix(in srgb, var(--secondary-color) 54%, var(--line) 46%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--secondary-color) 8%);
  color: var(--primary-color);
  text-align: center;
  cursor: pointer;
  transition: border var(--motion-quick) var(--ease), box-shadow var(--motion-quick) var(--ease), transform var(--motion-quick) var(--ease), background var(--motion-quick) var(--ease);
}

.photo-upload-control:hover {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
  background: color-mix(in srgb, var(--surface-strong) 72%, var(--secondary-color) 14%);
  box-shadow: 0 18px 42px rgba(37, 56, 47, .1);
}

.photo-upload-control:focus-within {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary-color) 20%, transparent);
}

.photo-upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--surface-strong);
}

.upload-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-upload-control strong {
  font-size: 1.35rem;
  line-height: 1;
}

.photo-upload-control small,
.photo-file-list {
  max-width: 48ch;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
}

.photo-file-list {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.input-suffix {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--muted);
  font-weight: 850;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.wide { grid-column: 1 / -1; }

.form-error,
.success-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7dfd7;
  color: #74291f;
  font-weight: 800;
}

.success-note {
  background: #e3efdf;
  color: #285238;
}

.estimate-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.visit-success-note + .estimate-actions {
  margin-top: 28px;
}

.price-lockup {
  margin: 28px 0 14px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
}

.price-lockup strong {
  color: var(--primary-color);
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1;
}

.summary {
  margin: 24px 0;
  padding: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--background-color) 56%, #fff 44%);
}

.summary ul,
details ul {
  margin: 0;
  padding-left: 20px;
}

details {
  margin: 20px 0;
}

details li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.visit-form {
  display: grid;
  gap: 14px;
}

.visit-form h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(1.6rem, 5vw, 2.45rem);
  line-height: 1;
}

.visit-form.is-visible {
  animation: reveal var(--motion-entrance) var(--ease) both;
}

.estimate-result {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.estimate-pane,
.visit-pane {
  min-width: 0;
}

.estimate-pane {
  transition: opacity var(--motion-standard) var(--ease);
}

.visit-pane {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(4px, 1vw, 10px);
  border-radius: 18px;
  background: var(--surface-strong);
  animation: visit-slide-in var(--motion-flow) var(--ease) both;
}

.visit-pane[hidden] {
  display: none !important;
}

.estimate-result.is-requesting-visit .estimate-pane {
  opacity: 0;
  transition: opacity var(--motion-standard) var(--ease);
}

.visit-panel-back {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.visit-pane .contact-grid {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.visit-period-field[hidden] {
  display: none !important;
}

.modern-date-field input[type="date"] {
  min-height: 58px;
  padding-right: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--secondary-color) 14%, transparent), transparent 42%),
    #fffdf8;
  font-weight: 850;
}

.modern-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--secondary-color) 22%, transparent);
  cursor: pointer;
}

.visit-period-field {
  animation: reveal var(--motion-standard) var(--ease) both;
}

@keyframes visit-slide-in {
  from { opacity: 0; transform: translateX(44px); }
  to { opacity: 1; transform: translateX(0); }
}

.thank-you-panel {
  margin-top: clamp(32px, 10vw, 92px);
  padding: clamp(28px, 7vw, 64px);
}

.site-footer {
  padding: 12px clamp(16px, 4vw, 54px);
  color: var(--muted);
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.home-page .site-footer p:first-child {
  display: none;
}

.quote-page .site-footer {
  display: none;
}

.packages-intro {
  max-width: 820px;
  margin-bottom: clamp(22px, 5vw, 44px);
}

.packages-intro h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: .98;
}

.packages-intro p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.package-groups {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.package-group {
  display: grid;
  gap: 14px;
}

.package-group h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1;
}

.package-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: 0 18px 48px rgba(37, 56, 47, .09);
  text-decoration: none;
  transition: transform var(--motion-standard) var(--ease), box-shadow var(--motion-standard) var(--ease), border-color var(--motion-standard) var(--ease), background var(--motion-standard) var(--ease);
}

.package-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--secondary-color) 60%, var(--line) 40%);
  box-shadow: 0 24px 58px rgba(37, 56, 47, .13);
}

.package-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: color-mix(in srgb, var(--secondary-color) 10%, var(--surface-strong) 90%);
}

.package-card span,
.package-card strong,
.package-card small {
  margin-left: 18px;
  margin-right: 18px;
}

.package-card span {
  margin-top: 18px;
  color: var(--secondary-color);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.package-card strong {
  margin-top: 8px;
  color: var(--primary-color);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.05;
}

.package-card small {
  margin-top: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
}

.package-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--primary-color);
  font-weight: 900;
  text-decoration: none;
}

.package-back-link span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 9%, transparent);
  transition: transform var(--motion-standard) var(--ease), background var(--motion-standard) var(--ease);
}

.package-back-link:hover span:first-child {
  transform: translateX(-3px);
  background: color-mix(in srgb, var(--secondary-color) 18%, transparent);
}

.package-detail {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
  margin: clamp(18px, 4vw, 42px) 0 clamp(30px, 6vw, 64px);
}

.package-detail-image {
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(37, 56, 47, .1);
}

.package-detail-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.package-detail-copy {
  align-self: center;
}

.package-detail-copy h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: .98;
}

.package-detail-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.package-price {
  display: grid;
  gap: 3px;
  margin: 20px 0;
  color: var(--muted);
  font-weight: 850;
}

.package-price strong {
  color: var(--primary-color);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.package-detail-copy h3 {
  margin: 26px 0 12px;
  color: var(--primary-color);
}

.package-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-includes li {
  position: relative;
  padding: 10px 12px;
  padding-left: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-strong) 74%, var(--secondary-color) 9%);
  color: var(--primary-color);
  font-weight: 760;
}

.package-includes li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--surface-strong);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
}

.package-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 25, 22, .48);
  animation: modal-fade var(--motion-standard) var(--ease) both;
}

.package-modal[hidden] {
  display: none;
}

.package-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: clamp(22px, 5vw, 34px);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: 0 28px 80px rgba(20, 25, 22, .24);
  animation: modal-rise var(--motion-standard) var(--ease) both;
}

.package-modal-panel h2 {
  margin: 0 40px 18px 0;
  color: var(--primary-color);
  font-size: clamp(1.65rem, 5vw, 2.6rem);
  line-height: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary-color);
  font-size: 1.4rem;
  box-shadow: none;
}

.modal-close:hover {
  background: transparent;
  transform: none;
}

.package-enquiry-form {
  display: grid;
  gap: 14px;
}

body.modal-open {
  overflow: hidden;
}

.site-closed-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(184,155,104,.14), transparent 34%),
    var(--background-color);
}

.site-closed-panel {
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  animation: reveal var(--motion-entrance) var(--ease) both;
}

.site-closed-logo .brand-logo {
  height: clamp(96px, 18vw, 170px);
  max-width: min(420px, 82vw);
}

.site-closed-message {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
}

.site-closed-contact {
  width: min(460px, 100%);
  padding: 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--background-color) 76%, #fff 24%);
  color: var(--primary-color);
  font-weight: 850;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .home-page {
    max-height: none;
    overflow: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-logo-home {
    height: clamp(96px, 28vw, 150px);
  }

  .brand-logo-home.brand-mark {
    width: clamp(96px, 28vw, 150px);
    height: clamp(96px, 28vw, 150px);
  }

  .hero-panel,
  .hero-slideshow { min-height: 230px; }

  .package-strip { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .package-detail { grid-template-columns: 1fr; }
  .package-detail-image { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .phone-link { font-size: .9rem; }
  .quote-step .option-grid:has(.image-choice) { grid-template-columns: 1fr; }
  .quote-card { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
