/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --pink:          #f2c5c0;   /* estimate button */
  --pink-text:     #3b3a2c;
  --cream:         #e7e3db;   /* services section background */
  --olive:         #7e7c46;   /* footer background */
  --ink:           #3c3b2c;   /* dark headings */
  --body-brown:    #5b5949;   /* service body copy */
  --hero-text:     #f5f2ea;   /* hero headline (light cream) */
  --footer-text:   #ecebe0;   /* footer copy */

  --font-display: "Kadwa", Georgia, "Times New Roman", serif;
  --font-body:    "EB Garamond", Georgia, "Times New Roman", serif;

  --maxw: 1152px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 624px;
  padding: 28px clamp(20px, 4vw, 48px) 0;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}
/* subtle darkening so the white text stays legible over the bright garden */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(40, 38, 30, 0.34) 0%,
    rgba(40, 38, 30, 0.16) 42%,
    rgba(40, 38, 30, 0.04) 70%
  );
  pointer-events: none;
}

.hero__nav,
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* Brand lockup */
.brand { display: inline-flex; flex-direction: column; align-items: center; }
.brand__logo {
  width: 198px;
  height: 198px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}
.brand__name {
  margin-top: -8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--hero-text);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Estimate button */
.btn-estimate {
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 18px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--pink);
  border: 1.5px solid var(--pink-text);
  color: var(--pink-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-estimate:hover {
  background: #f6d2ce;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero__content { margin-top: 96px; }
.hero__headline {
  margin: 0;
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.16;
  color: var(--hero-text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

/* ─── Services ────────────────────────────────────────────── */
.services {
  background: var(--cream);
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 48px);
}
.services__intro {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.services__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.6;
  color: var(--body-brown);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
  color: var(--olive);
}
.divider__line {
  display: block;
  width: clamp(48px, 16vw, 140px);
  height: 1px;
  background: linear-gradient(
    to var(--_dir, right),
    rgba(126, 124, 70, 0) 0%,
    rgba(126, 124, 70, 0.55) 100%
  );
}
.divider__line:last-child { --_dir: left; }
.divider__sprig { flex-shrink: 0; opacity: 0.85; }

.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 72px);
}

.service { text-align: center; }
.service__icon-ring {
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 72%);
}
.service__icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.service__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  color: var(--ink);
}
.service__body {
  margin: 0 auto;
  max-width: 360px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--body-brown);
}

/* ─── Testimonials ────────────────────────────────────────── */
.testimonials {
  background: #f3f1ea;
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
}
.testimonials__head {
  max-width: var(--maxw);
  margin: 0 auto clamp(36px, 4vw, 52px);
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}
.testimonials__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--ink);
}

.testimonials__masonry {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  column-count: 3;
  column-gap: 28px;
}

.tcard {
  width: 100%;
  margin: 0 0 28px;
  break-inside: avoid;          /* keep a card from splitting across columns */
  -webkit-column-break-inside: avoid;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(60, 59, 44, 0.08);
  overflow: hidden;
}
.tcard__photo { aspect-ratio: 4 / 3; background: var(--cream); }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; }

.tcard__quote {
  margin: 0;
  padding: 26px 26px 18px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body-brown);
}
.tcard__quote::before { content: "\201C"; }
.tcard__quote::after  { content: "\201D"; }

.tcard__by {
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tcard__name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.tcard__loc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--olive);
}

@media (max-width: 860px) {
  .testimonials__masonry { column-count: 2; }
}
@media (max-width: 560px) {
  .testimonials__masonry { column-count: 1; }
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--olive);
  padding: clamp(44px, 5vw, 64px) clamp(20px, 4vw, 48px);
  color: var(--footer-text);
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.footer__media img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.footer__info {
  font-family: var(--font-body);
  font-size: 21px;
  padding-top: 8px;
}
.footer__contact a {
  display: block;
  margin-bottom: 6px;
  transition: opacity 0.15s ease;
}
.footer__contact a:hover { opacity: 0.75; }
.footer__hours {
  margin-top: 56px;
}
.footer__hours p { margin: 0 0 6px; }

.footer__cta { margin-top: 40px; }

/* ─── Estimate dialog ─────────────────────────────────────── */
.estimate {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.estimate[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.estimate::backdrop {
  background: rgba(40, 38, 30, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.estimate__card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #f7f5ef;
  border-radius: 12px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}
.estimate__card:focus { outline: none; }

.estimate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.estimate__close:hover { background: rgba(60, 59, 44, 0.08); }

.estimate__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 32px);
  color: var(--ink);
}
.estimate__intro {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--body-brown);
}

/* Form fields */
.estimate__form { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}
.field .opt { color: var(--olive); font-style: italic; }

.estimate__form input,
.estimate__form select,
.estimate__form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid rgba(60, 59, 44, 0.28);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.estimate__form textarea { resize: vertical; min-height: 76px; }
.estimate__form input::placeholder,
.estimate__form textarea::placeholder { color: rgba(91, 89, 73, 0.5); }
.estimate__form input:focus,
.estimate__form select:focus,
.estimate__form textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(126, 124, 70, 0.18);
}

.estimate__submit {
  width: 100%;
  margin-top: 10px;
  font-size: 18px;
  text-align: center;
}
.estimate__reassure {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--olive);
}

/* Success state */
.estimate__success { text-align: center; padding: 12px 0 6px; }
.estimate__check {
  width: 64px;
  height: 64px;
  margin: 4px auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 124, 70, 0.14);
  color: var(--olive);
}
.estimate__success .btn-estimate { margin-top: 22px; }

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; }
  .service__body { max-width: 460px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__hours { margin-top: 28px; }
}

@media (max-width: 560px) {
  .hero { min-height: 540px; }
  .hero__nav { flex-direction: column; align-items: center; gap: 16px; }
  .btn-estimate { margin-top: 4px; font-size: 15px; padding: 14px 24px; }
  .hero__content { margin-top: 56px; text-align: center; }
  .hero__headline { margin: 0 auto; }
}
