/* Robert West Plumbing — design tokens
   Direction: light editorial. Warm paper, dark ink, one deep-green accent,
   brass only for rating stars. Fraunces display over Manrope body.
   Hairline rules and numbered sections instead of card grids.
   Shape lock: buttons 6px, panels 10px. */

:root {
  --ink: #1b1d1a;
  --ink-soft: #545a52;
  --paper: #f6f3ec;
  --paper-2: #ece6d9;
  --white: #fffdf8;
  --line: rgba(27, 29, 26, 0.14);
  --line-strong: rgba(27, 29, 26, 0.85);

  --green: #1f5a3d;
  --green-700: #17452f;
  --green-900: #11321f;
  --green-100: #dde8df;
  --brass: #b0822a;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-btn: 6px;
  --radius-panel: 10px;
  --max: 1160px;
  --gutter: clamp(1rem, 4vw, 1.75rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }

@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; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
h3 { font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.icon { display: inline-block; flex-shrink: 0; }

.label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 1rem;
}
.label--light { color: rgba(255, 253, 248, 0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary { background: var(--green); color: var(--white); box-shadow: 3px 3px 0 var(--green-900); }
.btn--primary:hover { background: var(--green-700); box-shadow: 1px 1px 0 var(--green-900); transform: translate(2px, 2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { background: var(--paper-2); }

.btn--small { padding: 0.55rem 1rem; font-size: 0.86rem; box-shadow: none; }
.btn--small:hover { transform: none; box-shadow: none; }
.btn--large { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand { display: flex; align-items: baseline; gap: 0.45rem; }
.nav__logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav__logo-sub { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--green); }

.nav__links { display: flex; gap: 1.9rem; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 0.3rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 0.3rem; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 420px) {
  .nav__actions .btn span { display: none; }
  .nav__actions .btn { padding: 0.55rem 0.7rem; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.mobile-menu .btn { margin-top: 0.75rem; }
.mobile-menu__close { position: absolute; top: 1.4rem; right: 1.4rem; background: none; border: none; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem); }
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); max-width: 13ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green); }
.hero__sub { margin-top: 1.4rem; font-size: 1.1rem; max-width: 46ch; }
.hero__ctas { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }

.rating { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem; font-size: 0.9rem; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.rating strong { color: var(--ink); }
.rating:hover { color: var(--green); }
.rating__stars { display: inline-flex; gap: 2px; color: var(--brass); }

.hero__quote {
  position: relative;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 2.4rem 2rem 1.75rem;
  box-shadow: 8px 8px 0 var(--paper-2);
}
.hero__quote-mark {
  position: absolute;
  top: -0.35em;
  left: 1.25rem;
  font-family: var(--serif);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--green);
}
.hero__quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; color: var(--ink); }
.hero__quote figcaption { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.85rem; }
.hero__quote figcaption span { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Offer band ---------- */
.offer { background: var(--green); color: var(--white); }
.offer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.offer__figure { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 9vw, 6rem); line-height: 0.9; color: var(--white); letter-spacing: -0.03em; }
.offer__figure span { font-size: 0.5em; vertical-align: top; margin-left: 0.05em; }
.offer__text h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--white); }
.offer__text p { margin-top: 0.4rem; color: rgba(255, 253, 248, 0.75); max-width: 52ch; }

@media (max-width: 760px) {
  .offer__inner { grid-template-columns: 1fr; gap: 1rem; }
  .offer .btn { justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) var(--gutter); }
.section--tint { background: var(--paper-2); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__title { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 20ch; }
.section__lede { margin-top: 1rem; font-size: 1.04rem; max-width: 42ch; }

/* ---------- Services (split + numbered list) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split__head { position: sticky; top: 110px; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.service-list__num { font-family: var(--serif); font-size: 1.1rem; color: var(--green); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.service-list h3 { font-size: 1.2rem; }
.service-list p { margin-top: 0.35rem; font-size: 0.97rem; max-width: 52ch; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* ---------- Reviews ---------- */
.reviews__head { margin-bottom: 2.5rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.review { margin: 0; padding: 1.75rem 1.75rem 1.75rem 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.review + .review { border-left: 1px solid var(--line); padding-left: 1.75rem; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.review figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; }
.review figcaption span { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; }

.reviews__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.15rem;
}
.reviews__more .icon { transition: transform 0.2s var(--ease); }
.reviews__more:hover .icon { transform: translateX(3px); }

@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
  .review { padding: 1.5rem 0; }
  .review + .review { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ---------- Photo slots ---------- */
.photo-slots { margin-top: 2.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1rem; }
.photo-slot {
  aspect-ratio: 4 / 3.4;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  background: var(--paper-2);
}
.photo-slot .icon { color: var(--green); }
.photo-slot--wide { aspect-ratio: auto; }

@media (max-width: 760px) {
  .photo-slots { grid-template-columns: 1fr; }
  .photo-slot--wide { aspect-ratio: 4 / 3; }
}

/* ---------- Area + hours ---------- */
.area { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.towns { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towns li { padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
.towns li:last-child { border-style: dashed; border-color: var(--line); color: var(--ink-soft); }

.hours { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.9rem; }
.hours h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.hours dl { margin: 1.2rem 0 1.6rem; }
.hours dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours .btn { width: 100%; }

@media (max-width: 860px) {
  .area { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta { background: var(--green-900); color: var(--white); padding: clamp(4.5rem, 10vw, 7rem) var(--gutter); }
.cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta__inner h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); color: var(--white); }
.cta__inner > p { margin-top: 1rem; color: rgba(255, 253, 248, 0.7); font-size: 1.06rem; }
.cta__actions { margin-top: 2rem; display: flex; justify-content: center; }
.cta__embed-slot {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border: 1.5px dashed rgba(255, 253, 248, 0.25);
  border-radius: var(--radius-panel);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255, 253, 248, 0.6);
}

.booking-embed { width: 100%; max-width: 760px; margin: 2rem auto 0; background: var(--white); border-radius: var(--radius-panel); overflow: hidden; }
.booking-embed iframe { display: block; width: 100%; min-height: 720px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--paper); padding: 3.5rem var(--gutter) 1.75rem; border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-bottom: 0.5rem; }
.footer__logo span { color: var(--green); }
.footer__license { margin-top: 0.6rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__col h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin: 0 0 0.9rem; font-weight: 700; }
.footer__col a, .footer__col p { display: block; margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer__credit a { font-weight: 700; }
.footer__credit a:hover { color: var(--green); }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Legal / utility pages ---------- */
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.legal h2 { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; margin: 2rem 0 0.6rem; letter-spacing: -0.01em; }
.legal p { margin-top: 0.8rem; font-size: 1rem; line-height: 1.65; }
.legal ul { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.65; }
.legal li { margin-bottom: 0.4rem; }
.legal a:not(.btn) { color: var(--green); text-decoration: underline; }
.legal__updated { font-size: 0.88rem; }
