/* Sunday Home — ivory and muted blue */

:root {
  --ivory: #f8f4ec;
  --ivory-deep: #efe8da;
  --paper: #fffdf8;
  --blue: #44637d;
  --blue-dark: #2f4a60;
  --blue-soft: #dbe4ea;
  --ink: #2a2f33;
  --muted: #5d656b;
  --line: #ddd5c6;
  --radius: 10px;
  --max: 1120px;
  --font: "Avenir Next", Avenir, "Segoe UI", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--blue-dark);
  color: var(--paper);
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.concept-strip {
  padding: 0.4rem 1.25rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted);
  background: var(--ivory-deep);
  border-bottom: 1px solid var(--line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--ivory);
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue-dark);
  text-decoration: none;
}

.site-header nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav-list a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-outline {
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: var(--blue-dark);
  font-size: 0.9375rem;
}

.button-outline:hover {
  color: var(--paper);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.kicker {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.25rem 0 2rem;
  max-width: 32rem;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 62% 40%;
  border-radius: var(--radius);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Checklist */
.rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.room {
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.room h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
  border-top: 1px solid #eee7da;
}

.checks li:first-child {
  border-top: 0;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.8rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--blue);
  border-radius: 3px;
}

.checks li::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.88rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checks .extra {
  color: var(--muted);
}

.checks .extra span {
  margin-left: 0.35rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--blue);
}

/* Visit types */
.section-tint {
  max-width: none;
  background: var(--blue-soft);
}

.section-tint > * {
  max-width: calc(var(--max) - 5rem);
  margin-left: auto;
  margin-right: auto;
}

.visits-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.note {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.note-inline {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
}

.visit-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border-radius: var(--radius);
}

.visit-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.visit-table th,
.visit-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e4ded1;
}

.visit-table thead th {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue-dark);
  border-bottom: 2px solid var(--blue);
}

.visit-table tbody th {
  width: 22%;
  font-weight: 600;
}

.visit-table .price-row td,
.visit-table .price-row th {
  border-bottom: 0;
  font-weight: 700;
  background: #f6f2e9;
}

/* Prepare */
.prepare {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.prepare-figure {
  margin: 0;
}

.prepare-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.prep-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: prep;
}

.prep-list li {
  counter-increment: prep;
  position: relative;
  padding: 0 0 1.25rem 3rem;
  color: var(--muted);
}

.prep-list li::before {
  content: counter(prep);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-weight: 600;
  color: var(--blue-dark);
}

.prep-list strong {
  display: block;
  color: var(--ink);
}

/* Not included */
.excluded {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.excluded li {
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.excluded li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* Service area */
.service-area {
  border-top: 1px solid var(--line);
}

.area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.area-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.area-columns > div {
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}

.area-columns h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.area-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 0.4rem 0;
  border-top: 1px solid #eee7da;
}

.area-list li:first-child {
  border-top: 0;
}

.area-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Choose */
.choose {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.choose-copy p {
  color: var(--muted);
}

.choose-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field legend {
  padding: 0;
  font-weight: 600;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.4rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
}

.radio-row input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--blue);
}

.field select,
.field input[type="date"] {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #b9b1a2;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.choose-form .button {
  justify-self: start;
}

.form-output {
  display: block;
  color: var(--blue-dark);
}

.form-output:empty {
  display: none;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--ivory-deep);
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero,
  .prepare,
  .choose {
    grid-template-columns: 1fr;
  }

  .prepare-figure img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
    padding-bottom: 0.25rem;
  }

  .nav-list a {
    display: inline-block;
    white-space: nowrap;
    padding: 0.35rem 0;
  }

  .site-header .button-outline {
    margin-left: auto;
  }

  .rooms,
  .excluded,
  .area-columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
