/* Maison Wasatch — quiet luxury residential care */

:root {
  --ivory: #f6f2ea;
  --ivory-deep: #efe8db;
  --stone: #cfc3ac;
  --charcoal: #1c1a17;
  --charcoal-soft: #2c2822;
  --gold: #b8767a;
  --gold-soft: #e3bfb8;
  --line: rgba(28, 26, 23, 0.14);
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><g fill='none' stroke='%231c1a17' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'><g transform='translate(38,46) rotate(-12)'><rect x='0' y='14' width='16' height='26' rx='3'/><path d='M4 14 V6 H12 V14'/><path d='M12 6 L20 2'/><path d='M8 40 L8 46'/></g><g transform='translate(224,36) rotate(18)'><path d='M22 0 L4 28'/><path d='M-2 34 L4 28 M0 38 L6 32 M2 42 L8 36'/></g><g transform='translate(150,150) rotate(8)'><path d='M0 -11 L2.5 -2.5 L11 0 L2.5 2.5 L0 11 L-2.5 2.5 L-11 0 L-2.5 -2.5 Z'/></g><g transform='translate(58,224) rotate(-6)'><path d='M0 0 H26 L22 28 H4 Z'/><path d='M4 0 Q13 -11 22 0'/></g><g transform='translate(232,236) rotate(10)'><path d='M0 4 Q6 -2 12 4 T24 4 V18 Q18 24 12 18 T0 18 Z'/></g></g></svg>");
  background-repeat: repeat;
  background-size: 300px 300px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 6vw;
  background: rgba(246, 242, 234, 0);
  color: #fdfaf4;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.nav:not(.scrolled) .nav-toggle span { background: #fdfaf4; }

.nav.scrolled {
  color: var(--charcoal);
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  padding: 1rem 6vw;
  box-shadow: 0 1px 0 var(--line);
}

.nav-mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 2.6rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--charcoal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, #fffdf8 0%, var(--ivory) 46%, var(--ivory-deep) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 0 6vw;
}

.hero-crest {
  width: 46px;
  height: 46px;
  margin-bottom: 0.4rem;
}

.hero-sparkle {
  position: absolute;
  stroke: var(--gold);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.hero-sparkle.s1 { width: 20px; top: 22%; left: 14%; }
.hero-sparkle.s2 { width: 14px; top: 68%; right: 16%; opacity: 0.4; }
.hero-sparkle.s3 { width: 26px; top: 40%; right: 10%; opacity: 0.5; }

.hero-tool {
  position: absolute;
  stroke: var(--charcoal);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.hero-tool.broom { width: 90px; top: 16%; right: 20%; transform: rotate(8deg); }
.hero-tool.bucket { width: 90px; bottom: 14%; left: 17%; transform: rotate(-6deg); }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 0.4rem 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--charcoal-soft);
  max-width: 32ch;
}

.hero-sub {
  font-size: 0.92rem;
  color: #55503f;
  max-width: 46ch;
  font-weight: 300;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Photo hero ---------- */

.hero.photo-hero {
  background-image:
    linear-gradient(180deg, rgba(18, 15, 12, 0.32), rgba(18, 15, 12, 0.58) 65%, rgba(18, 15, 12, 0.8)),
    url("https://images.unsplash.com/photo-1750639258774-9a714379a093?fm=jpg&q=70&w=2400&auto=format&fit=crop");
  background-size: cover;
  background-position: center 60%;
}

.hero.photo-hero::before { opacity: 0.08; mix-blend-mode: overlay; }

.hero.photo-hero .eyebrow { color: var(--gold-soft); }
.hero.photo-hero h1,
.hero.photo-hero .hero-tagline,
.hero.photo-hero .hero-sub { color: #fdfaf4; }
.hero.photo-hero .hero-tool { stroke: rgba(253, 250, 244, 0.45); }
.hero.photo-hero .hero-sparkle { stroke: var(--gold-soft); }
.hero.photo-hero .btn-quiet { border-color: rgba(253, 250, 244, 0.4); color: #fdfaf4; }
.hero.photo-hero .hero-cta .btn:not(.btn-quiet) { border-color: #fdfaf4; color: #fdfaf4; }
.hero.photo-hero .hero-cta .btn:not(.btn-quiet):hover { color: var(--charcoal); }
.hero.photo-hero .hero-cta .btn:not(.btn-quiet)::before { background: #fdfaf4; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--charcoal);
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  cursor: pointer;
  background: transparent;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}

.btn:hover {
  color: var(--ivory);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--charcoal-soft);
}

.btn-quiet::before {
  background: var(--charcoal-soft);
}

/* ---------- Section shell ---------- */

section {
  padding: 8.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-head p {
  color: #5a5546;
  font-size: 0.98rem;
}

.divider {
  width: 42px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Philosophy ---------- */

.philosophy {
  background: var(--ivory-deep);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--charcoal-soft);
}

.philosophy-copy p {
  margin-bottom: 1.2rem;
  color: #4c4738;
  font-size: 0.98rem;
}

.philosophy-copy .eyebrow {
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  background: var(--ivory);
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.4s ease;
}

.service-card:hover {
  background: #fffdf8;
}

.service-icon-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.service-icon {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.service-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 500;
}

.service-card p.desc {
  color: #5a5546;
  font-size: 0.9rem;
  flex-grow: 1;
}

.service-price {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.service-price strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--charcoal);
}

.pricing-note {
  text-align: center;
  margin-top: 2.4rem;
  font-size: 0.8rem;
  color: #7a7461;
  font-style: italic;
  font-family: var(--serif);
}

/* ---------- Areas ---------- */

.areas {
  background: var(--charcoal);
  color: var(--ivory);
}

.areas .section-head p {
  color: #b9b3a0;
}

.areas .divider {
  background: var(--gold-soft);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.area-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.area-icon {
  width: 52px;
  height: 52px;
  stroke: var(--gold-soft);
}

.area-card h3 {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.area-card p {
  color: #b9b3a0;
  font-size: 0.88rem;
  max-width: 30ch;
}

/* ---------- Difference ---------- */

.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem 3.5rem;
}

.difference-item {
  display: flex;
  gap: 1.3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.difference-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  min-width: 2.2rem;
}

.difference-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.difference-item p {
  font-size: 0.88rem;
  color: #5a5546;
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--ivory-deep);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.testimonial .mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-soft);
  line-height: 1;
}

.testimonial p.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  line-height: 1.55;
}

.testimonial .attribution {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info .eyebrow {
  margin-bottom: 1rem;
  display: block;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 1.4rem;
}

.contact-info p {
  color: #5a5546;
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
  max-width: 40ch;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-detail .value {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.contact-note {
  font-size: 0.78rem;
  color: #8a8570;
  font-style: italic;
  font-family: var(--serif);
  margin-top: 2rem;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.field input,
.field select,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 300;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-msg {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--serif);
  color: var(--gold);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */

footer {
  padding: 3.2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-mark {
  font-family: var(--serif);
  letter-spacing: 0.1em;
  font-size: 1rem;
}

.footer-meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #8a8570;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    background: var(--ivory);
    color: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2.8rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .philosophy-grid,
  .services-grid,
  .areas-grid,
  .difference-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    border: 1px solid var(--line);
  }

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

  section {
    padding: 5.5rem 0;
  }
}
