/* Bonooba — shared styles for every page. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f1ece3;
  --ink: #1f2a2e;
  --ink-soft: #4b5a5f;
  --line: #e2dbcf;
  --brand: #2f5d50;
  --brand-dark: #234638;
  --brand-tint: #e3ece8;
  --accent: #b0813b;
  --star: #c9922e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 6px 20px rgba(31, 42, 46, .07);
  --max: 1120px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* Logo: brush mark, then the two-line name ("Bonooba" over "Home Maintenance"). */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { width: 62px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.logo-sub {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .3rem;
}

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }

@media (max-width: 640px) { .section { padding: 56px 0; } }

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

.hero { padding: 64px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 40px 0 56px; }
}

/* ---------- Home: the three service buttons ---------- */

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

.service-btn {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.service-btn:hover, .service-btn:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 2px 4px rgba(31, 42, 46, .06), 0 14px 32px rgba(31, 42, 46, .12);
}
.service-btn .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.service-btn h3 { font-size: 1.4rem; }
.service-btn p { color: var(--ink-soft); flex: 1; }
.service-btn .go { font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; }
.service-btn:hover .go svg { transform: translateX(3px); }
.service-btn .go svg { transition: transform .18s; }

@media (max-width: 900px) { .service-buttons { grid-template-columns: 1fr; } }

/* ---------- Feature / perk lists ---------- */

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.perk {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex; gap: .85rem; align-items: flex-start;
}
.perk svg { flex: none; color: var(--brand); margin-top: 3px; }
.perk strong { display: block; }
.perk span { color: var(--ink-soft); font-size: .92rem; }

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

.price-tag {
  display: inline-flex; align-items: baseline; gap: .5rem;
  background: var(--brand); color: #fff;
  padding: .45rem 1rem; border-radius: 999px;
  font-weight: 600; margin-bottom: 1rem;
}
.price-tag b { font-family: var(--font-head); font-size: 1.4rem; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  margin-bottom: .9rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Portfolio gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }

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

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 20, 22, .92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem;
}
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Service cards (handyman / property) ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card p { color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.card li { margin-bottom: .3rem; }

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

/* ---------- Reviews ---------- */

.reviews-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.review-list { display: grid; gap: 1rem; }
.review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.review .stars { color: var(--star); letter-spacing: 2px; }
.review blockquote { margin: .4rem 0 .6rem; }
.review cite { font-style: normal; color: var(--ink-soft); font-size: .9rem; }
.reviews-empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--ink-soft);
}

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

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
label .opt { font-weight: 400; color: var(--ink-soft); }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .9rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.form-note { font-size: .88rem; color: var(--ink-soft); margin: .25rem 0 0; }
.hidden-field { position: absolute; left: -9999px; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; color: var(--line); cursor: pointer; margin: 0; line-height: 1; }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.contact-wrap ul { padding-left: 1.1rem; color: var(--ink-soft); }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Area / CTA band ---------- */

.band { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.band h2 { margin: 0 0 .3rem; }
.band p { margin: 0; opacity: .85; }
.band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.band .btn:hover { background: var(--brand-tint); }

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

.site-footer { background: var(--ink); color: #c9d1d3; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.site-footer .logo { color: #fff; margin-bottom: .9rem; }
.site-footer .logo-sub { color: #9aa6a9; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #9aa6a9; }

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

/* ---------- Thank-you page ---------- */

.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
