/* ==========================================================================
   HANDYPRO Maintenance Solutions — styles.css
   Pure modern CSS · mobile-first · no glassmorphism · high contrast
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --ink: #1c211e;          /* near-black warm */
  --ink-soft: #4a524d;     /* secondary text */
  --paper: #ffffff;
  --soft: #f6f5f1;         /* warm off-white section bg */
  --line: #e4e1da;         /* hairline borders */
  --brand: #2f6b4f;        /* forest green — primary */
  --brand-dark: #234f3a;
  --brand-soft: #eaf1ed;
  --focus: #1b7fb0;        /* visible focus ring */

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --narrow: 760px;
  --header-h: 64px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(28, 33, 30, .06), 0 1px 3px rgba(28, 33, 30, .05);
  --shadow-md: 0 4px 14px rgba(28, 33, 30, .08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  /* room for sticky mobile CTA on small screens */
  padding-bottom: 0;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; color: var(--ink); }

p { margin: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--narrow); }

.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--quote { background: var(--brand-soft); }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }

.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }

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

.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- Eyebrow / section heads ------------------------------------------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__title { font-size: 1.9rem; font-weight: 700; }
.section__intro { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.section__body { margin-top: 14px; color: var(--ink-soft); }

/* ==========================================================================
   1. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand__sub { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav__links { display: none; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

.nav__actions { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: inline; }

/* Mobile dropdown */
.mobile-nav { border-top: 1px solid var(--line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__links { padding: 8px 20px; }
.mobile-nav__links a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav__links li:last-child a { border-bottom: 0; }
.mobile-nav__actions { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.hero__inner { display: grid; gap: 40px; }
.hero__title { color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: -.01em; }
.hero__lead { margin-top: 18px; color: #d7dad7; font-size: 1.1rem; max-width: 52ch; }
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 18px; color: #9aa39c; font-size: .9rem; }

.hero__card {
  background: #232a26;
  border: 1px solid #353d38;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.hero__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 2px solid var(--brand);
}
.hero__card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.hero__card-role { color: #9aa39c; font-size: .9rem; margin-bottom: 18px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.stat {
  background: #1a201d;
  border: 1px solid #353d38;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
}
.stat dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.stat dd { margin: 4px 0 0; font-size: .8rem; color: #9aa39c; }

.hero__card .btn { width: 100%; margin-top: 10px; }

/* ==========================================================================
   3. TRUST
   ========================================================================== */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust__item {
  background: var(--paper);
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust__num { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brand); }
.trust__label { font-size: .82rem; color: var(--ink-soft); }

/* ==========================================================================
   4. SERVICES
   ========================================================================== */
.services { display: grid; gap: 18px; }
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.service__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.service__desc { color: var(--ink-soft); margin-bottom: 14px; }
.service__examples { display: flex; flex-direction: column; gap: 6px; }
.service__examples li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: .94rem;
}
.service__examples li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ==========================================================================
   5. BAND (one-visit / service area)
   ========================================================================== */
.band { background: var(--brand); color: #fff; padding: 56px 0; }
.band__inner { text-align: center; max-width: 620px; margin: 0 auto; }
.band__title { color: #fff; font-size: 1.8rem; font-weight: 700; }
.band__text { margin: 16px 0 26px; color: #d6e7de; font-size: 1.05rem; }
.band .btn--primary { background: #fff; color: var(--brand-dark); }
.band .btn--primary:hover { background: var(--soft); }

/* ==========================================================================
   6. STEPS
   ========================================================================== */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step__num {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-weight: 700;
}
.step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.step__text { color: var(--ink-soft); }

/* ==========================================================================
   7. WORK PLACEHOLDERS
   ========================================================================== */
.work { display: grid; gap: 18px; }
.work__slot { margin: 0; }
.work__placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 600;
}
.work__caption { margin-top: 10px; font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* ==========================================================================
   8. WHY
   ========================================================================== */
.why { display: grid; gap: 16px; }
.why__item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.why__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.why__text { color: var(--ink-soft); }

/* ==========================================================================
   9. ABOUT
   ========================================================================== */
.about { display: grid; gap: 28px; align-items: start; }
.about__photo {
  width: 160px; height: 160px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about__text { color: var(--ink-soft); margin-top: 14px; }
.about__text:first-of-type { color: var(--ink); font-weight: 500; }
.about .btn { margin-top: 22px; }

/* ==========================================================================
   10. REVIEWS
   ========================================================================== */
.reviews { display: grid; gap: 18px; }
.review {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.review__text { font-size: 1.05rem; color: var(--ink); }
.review__author { margin-top: 14px; font-weight: 600; color: var(--brand-dark); }
.reviews__cta { text-align: center; margin-top: 32px; }

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; transition: opacity .15s ease; }
.faq__toggle[aria-expanded="true"] .faq__icon::after { opacity: 0; }

.faq__answer { padding: 0 20px 20px; color: var(--ink-soft); }
.faq__answer[hidden] { display: none; }

/* ==========================================================================
   13. QUOTE FORM
   ========================================================================== */
.quote-form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: #b3261e; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-hint { font-size: .85rem; color: var(--ink-soft); text-align: center; }

.form-success {
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.form-success[hidden] { display: none; }
.form-success__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.form-success__text { color: var(--ink-soft); margin-bottom: 18px; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #d7dad7; padding: 48px 0 24px; }
.footer__grid { display: grid; gap: 28px; }
.footer__brand .brand__name { color: #fff; font-size: 1.3rem; }
.footer__tag { margin-top: 8px; color: var(--brand-soft); font-weight: 600; }
.footer__note { margin-top: 8px; font-size: .9rem; color: #9aa39c; }
.footer__heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.footer__col p { margin-bottom: 6px; }
.footer__col a { color: #d7dad7; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #353d38; font-size: .85rem; color: #9aa39c; }

/* ==========================================================================
   STICKY MOBILE CTA
   ========================================================================== */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { min-height: 48px; }

body { padding-bottom: 76px; }

/* ==========================================================================
   RESPONSIVE — tablet & desktop
   ========================================================================== */
@media (min-width: 600px) {
  .trust__grid { grid-template-columns: repeat(5, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .section__title { font-size: 2.3rem; }
  .hero { padding: 84px 0 92px; }
  .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 56px; }
  .hero__title { font-size: 3rem; }
  .nav__links { display: flex; }
  .nav__actions { display: block; }
  .nav__toggle { display: none; }
  .mobile-nav { display: none; }
  .about { grid-template-columns: 200px 1fr; gap: 48px; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 1100px) {
  .hero__title { font-size: 3.3rem; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (desktop only, bottom-right corner)
   Hidden by default; shown only on desktop where the sticky mobile bar is off.
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #25D366;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.wa-float:hover {
  background: #1eb958;
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}
.wa-float:focus-visible {
  outline: 3px solid #14532d;
  outline-offset: 2px;
}
.wa-float__label {
  /* Label hidden on small screens, shown on larger ones */
  display: none;
}

@media (min-width: 900px) {
  .wa-float {
    display: inline-flex;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .wa-float__label { display: inline; }
}
