/* Frontpage template v2 -- mobile-first, sage/mint brand, real-business polish. */

:root {
  /* Defaults; per-prospect index.html overrides --accent etc. inline. */
  --bg: #fafbf9;
  --bg-card: #ffffff;
  --bg-section: #f0f4ee;
  --text: #1a2622;
  --text-secondary: #4a5557;
  --text-tertiary: #7a8487;
  --line: #e1e6e0;
  --line-strong: #ccd4cc;
  --accent: #2d8a5f;
  --accent-hover: #1f6a48;
  --accent-soft: rgba(45, 138, 95, 0.10);
  --accent-softer: rgba(45, 138, 95, 0.04);
  --gold: #d4a926;
  --success: #2d8a5f;
  --danger: #b91c1c;
  --shadow: 0 1px 3px rgba(20, 30, 25, 0.06), 0 8px 24px rgba(20, 30, 25, 0.04);
  --shadow-lg: 0 10px 30px rgba(20, 30, 25, 0.10), 0 24px 56px rgba(20, 30, 25, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 10px 0; color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 249, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark:hover { color: inherit; }
.brand-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-image-topbar {
  max-height: 44px;
  max-width: 200px;
  width: auto;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.brand-image-footer {
  max-height: 56px;
  max-width: 220px;
  width: auto;
  height: auto;
  display: block;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 14px;
  border-radius: 10px;
}
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-toggle {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  min-width: 56px;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
.hero {
  padding: 80px 18px 60px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.hero-stars { color: var(--gold); letter-spacing: 0.05em; }
.hero h1 {
  color: #fff;
  margin-bottom: 14px;
  max-width: 640px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero-sub {
  font-size: clamp(15px, 3.5vw, 17px);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 26px;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 140ms ease;
  min-height: 48px;
  font-family: var(--font);
}
.cta-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 30, 25, 0.25);
}
.cta-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.cta-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: transparent;
}
.cta-secondary:hover { background: #fff; }

/* ===== TRUST ROW ===== */
.trust-row {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}
.trust-row-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.trust-item-text { font-size: 13px; line-height: 1.35; min-width: 0; }
.trust-item-text strong { display: block; color: var(--text); font-weight: 700; }
.trust-item-text span { color: var(--text-tertiary); font-size: 12px; }

/* ===== SECTIONS ===== */
section { padding: 56px 18px; }
section.hero, section.trust-row { padding-left: 18px; padding-right: 18px; }
section h2 {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}
section > p, section > .services-grid, section > .gallery-grid, section > .calendar,
section > form, section > .services-foot, section > .book-intro, section > .contact-intro,
section > .how-grid, section > .testimonial-grid, section > .neighborhoods,
section > .service-area-note {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HOW IT WORKS ===== */
.how { background: var(--bg-section); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 880px;
}
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.how-num {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.how-body { flex: 1; }
.how-body h3 { margin: 0 0 4px; color: var(--text); }
.how-body p { margin: 0; font-size: 14px; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card h3 { margin: 0; }
.service-card p { margin: 0; font-size: 14px; flex: 1; }
.service-price {
  margin-top: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.services-foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
  max-width: 680px;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-section); }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 980px;
}
.testimonial {
  background: var(--bg-card);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 14px;
  font-style: italic;
}
.testimonial-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}
.testimonial-meta strong { color: var(--text); font-weight: 700; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1080px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-section);
  box-shadow: var(--shadow);
  display: block;
}

/* ===== SERVICE AREA ===== */
.service-area { background: var(--bg-section); }
.neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 880px;
}
.neighborhood {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.service-area-note {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 680px;
  font-style: italic;
}

/* ===== BOOK / CALENDAR ===== */
.book-intro, .contact-intro {
  font-size: 15px;
  margin-bottom: 22px;
  text-align: center;
  max-width: 580px;
}
.calendar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 580px;
}
.calendar-loading {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 22px 0;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}
.cal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.cal-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-daylabel {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.cal-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-day:disabled { color: var(--text-tertiary); cursor: not-allowed; opacity: 0.4; }
.cal-day.has-slots { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.cal-day.selected { background: var(--accent); color: #fff; }
.cal-day.today { border-color: var(--accent); }

.cal-slots {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cal-slots-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.cal-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.cal-slot {
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}
.cal-slot:hover { border-color: var(--accent); color: var(--accent); }
.cal-slot.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-slot:disabled { background: var(--bg-section); color: var(--text-tertiary); cursor: not-allowed; }

.cal-confirm {
  margin-top: 16px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: 12px;
}
.cal-confirm-summary {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.cal-confirm-form {
  display: grid;
  gap: 8px;
}
.cal-confirm-form input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--font);
  font-size: 16px;
}

/* ===== CONTACT FORM ===== */
form#lead-form {
  display: grid;
  gap: 14px;
  max-width: 580px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 6px;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field input, .field textarea, .field select {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  width: 100%;
  font-weight: 400;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 90px; }
form#lead-form button[type="submit"] {
  margin-top: 6px;
  font-family: var(--font);
}
.form-status {
  font-size: 14px;
  padding: 10px 0 0;
  min-height: 22px;
  color: var(--text-secondary);
}
.form-status.success { color: var(--success); font-weight: 600; }
.form-status.error { color: var(--danger); font-weight: 600; }

/* ===== FOOTER ===== */
footer {
  padding: 36px 18px 48px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-meta { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-watermark {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}
.footer-watermark a {
  color: var(--gold);
  font-weight: 700;
}
.footer-watermark a:hover { color: #e8c249; }

/* ===== FLOATING CONTACT BUTTON ===== */
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(20, 30, 25, 0.30), 0 4px 12px rgba(20, 30, 25, 0.15);
  transition: all 160ms ease;
}
.floating-contact:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(20, 30, 25, 0.35);
}
.floating-contact svg { flex-shrink: 0; }

/* ===== POST-SUBMIT SUCCESS CARD ===== */
.lead-success {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.lead-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.lead-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
}
.lead-success p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.lead-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.lead-success-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lead-success-actions a.primary {
  background: var(--accent);
  color: #fff;
}
.lead-success-actions a.secondary {
  background: var(--bg-section);
  color: var(--text);
}

/* ===== TABLET + UP ===== */
@media (min-width: 640px) {
  .hero { padding: 100px 24px 72px; }
  section { padding: 72px 24px; }
  .trust-row-inner { grid-template-columns: repeat(4, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cal-slot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero { padding: 130px 24px 96px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(4, 1fr); }
}
