/* ==========================================================================
   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: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", 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.15; margin: 0; color: var(--ink); }

h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; }

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

/* High-contrast buttons inside the dark hero card */
.hero .btn--ghost,
.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.hero .btn--ghost:hover,
.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.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: 2rem; font-weight: 600; letter-spacing: -0.015em; }
.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: var(--paper);
  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: 700; font-size: 1.2rem; letter-spacing: .01em; }
.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: 600; font-size: .95rem;
  white-space: nowrap; }
.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: 600;
}
.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: #0f1311; color: #fff; padding: 56px 0 64px; }
.hero__inner { display: grid; gap: 40px; }
.hero__title { color: #fff; font-size: 2.3rem; font-weight: 600; letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: #7fd6a8; font-weight: 500; }
.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; }
.hero__ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  font-size: .9rem;
}
.hero__ai-badge .ai-icon {
  font-size: 1.2rem;
}
.hero__ai-badge .ai-text {
  font-weight: 600;
  color: #4ade80;
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.stats .stat:last-child { grid-column: 1 / -1; }
.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: 26px 24px 24px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brand), #4a9a74);
  opacity: .9;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(28,33,30,.10);
  border-color: #cfd9d2;
}
.service__title { font-size: 1.25rem; font-weight: 600; 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: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.why__item { flex: 0 1 100%; }
.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;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.review::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brand);
  opacity: .35;
  position: absolute;
  top: 8px; right: 18px;
}
.review__text { font-size: 1.02rem; color: var(--ink); }
.review__author { margin-top: 16px; font-weight: 600; color: var(--brand-dark); }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  padding: 12px 18px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.rating-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.rating-score { color: var(--ink-soft); font-size: .95rem; }
.rating-score strong { 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(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(3, 1fr); }
  .why__item { flex: 0 1 calc(50% - 16px); }
  .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; gap: 16px; font-size: .9rem; }
  .nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
  .nav__toggle { display: none; }
  .mobile-nav { display: none; }
  .about { grid-template-columns: 200px 1fr; gap: 48px; }
  .why__item { flex: 0 1 calc(33.333% - 16px); }
  .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; }
}

/* ---- Team gallery (Meet Luis section) ---------------------------------- */
.team-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.team-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28, 33, 30, 0.04);
}
.team-gallery__item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 900px) {
  .team-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .team-gallery { grid-template-columns: 1fr; }
  .team-gallery__item img { height: 280px; }
}


/* ==========================================================================
   AI TEAMWORK FLOW
   ========================================================================== */


/* --- Comparison Slider (before/after) --- */
.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .work__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.work__item {
  display: flex;
  flex-direction: column;
}
.work__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.work__comparison {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--line);
}
.work__img-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
}
.work__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work__img--before {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
.work__img--after {
  z-index: 1;
}
.work__slider {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  margin: 0;
}
.work__slider input.work__slider-input {
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.work__handle-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.work__handle-circle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: 44px;
  height: 44px;
  background: var(--brand);
  border: 3px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.work__handle-circle::after {
  content: "⇔";
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}
.work__label {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
}
.work__label--before { left: 10px; }
.work__label--after { right: 10px; }
.work__label::before,
.work__label::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
}
.work__label--before::before { content: "‹"; left: 6px; }
.work__label--after::after { content: "›"; right: 6px; }
.work__info {
  margin-top: 16px;
  padding: 14px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.work__category {
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.work__city {
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-style: italic;
}
.work__problem,
.work__solution {
  margin-bottom: 8px;
  color: var(--ink);
}
.work__problem:before { content: "▸ "; color: var(--brand-dark); }
.work__solution:before { content: "▸ "; color: var(--brand-dark); }



@media (max-width: 520px) {
  .btn--ghost {
    border-color: var(--ink-soft);
    background: rgba(0,0,0,0.02);
  }
  .btn--ghost:active {
    background: var(--soft);
  }
}


/* ============ INSTAGRAM SOCIAL BLOCK ============ */
.band--ig { background: var(--soft); }
.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.ig-badge__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.ig-badge__text { display: flex; flex-direction: column; }
.ig-badge__text strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.ig-badge__text small { color: var(--ink-soft); font-size: 0.9rem; }
.btn--ig { white-space: nowrap; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ig-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ig-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: #fff;
  background: rgba(28,33,30,.62);
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
}
.ig-card:hover .ig-card__overlay { opacity: 1; }
.ig-card:hover img { transform: scale(1.04); }
.ig-card__actions { display: flex; gap: 14px; }
.ig-card__actions .iv-icon { width: 18px; height: 18px; }
.ig-card__caption {
  font-size: .9rem;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
@media (hover: none) {
  .ig-card__overlay { opacity: 1; background: linear-gradient(to top, rgba(28,33,30,.72), rgba(28,33,30,0) 60%); justify-content: flex-end; text-align: left; }
  .ig-card__caption { font-size: .82rem; }
}

.ig-cta {
  margin-top: 22px;
  text-align: center;
  color: var(--ink-soft);
}
.ig-cta a { color: var(--brand); font-weight: 600; }

@media (max-width: 640px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ig-header { flex-direction: column; align-items: flex-start; }
  .ig-badge__text small { font-size: .82rem; }
}


/* ============ LANGUAGE SELECTOR ============ */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang-link:hover { color: var(--brand-dark); }
.lang-link--active {
  background: var(--brand);
  color: #fff;
}
.lang-link--active:hover { color: #fff; }
@media (max-width: 860px) {
  .nav__lang { margin-right: 8px; }
  .lang-link { min-width: 26px; height: 24px; padding: 0 6px; font-size: .72rem; }
}


/* Google Trust Badge */
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.g-badge:hover { border-color: #4285F4; box-shadow: 0 2px 8px rgba(66,133,244,.18); }
.g-badge__icon { width: 18px; height: 18px; flex: none; }
.g-badge__score { font-weight: 700; color: var(--ink-strong, inherit); }
.g-badge__stars { color: #FBBC05; letter-spacing: 1px; font-size: 0.85rem; }
.g-badge__sep { color: var(--ink-soft, #889) ; }
.g-badge__count { color: #4285F4; font-weight: 600; }
@media (max-width: 480px){ .g-badge{ flex-wrap: wrap; } }

/* bandera de Canada inline */
svg.flag, img.flag { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.25em; margin: 0 2px; object-fit: contain; }
.hero__note img.flag { width: 1.15em; height: 1.15em; vertical-align: -0.28em; }
.hero__note svg.flag { width: 0.9em; height: 0.9em; vertical-align: -0.12em; }
.hero__ai-badge .ai-icon img.flag { width: 1em; height: 1em; }
.hero__ai-badge .ai-icon svg.flag { width: 0.85em; height: 0.85em; }

/* ============================
   DARK MODE  /  MODE NOCHE
   ============================ */
[data-theme="dark"] {
  --ink: #e7ece8;            /* light text on dark bg */
  --ink-soft: #c6cfc9;       /* secondary text */
  --paper: #151a17;          /* near-black page bg */
  --soft: #1c2420;           /* section alt bg */
  --line: #2a332d;           /* hairline borders */
  --brand: #6fbf92;          /* brighter green on dark */
  --brand-dark: #234f3a;
  --brand-soft: #1f2d25;     /* dark brand-tinted bg */
  --focus: #4aa8d6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.25);
  --shadow-md: 0 4px 14px rgba(0,0,0,.35);
}
html[data-theme="dark"] body { color: var(--ink); background: var(--paper); }

/* hero card — ya es oscuro en light; en dark afinar */
[data-theme="dark"] .hero__card,
[data-theme="dark"] .hero__stats {
  background: #1a201d;
  border-color: #353d38;
}
/* band verde: en dark baja el contraste del texto */
[data-theme="dark"] .band { background: var(--brand-dark); }
[data-theme="dark"] .form-success { background: var(--paper); }
[data-theme="dark"] .band--ig { background: var(--soft); }

/* honestidad de borde/estrellas */
[data-theme="dark"] .why-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .faq__item { background: var(--paper); }

/* imágenes con fondo claro: brillan en modo noche */
[data-theme="dark"] img { filter: brightness(.9); }

/* components with fixed white backgrounds — invert in dark so text stays legible */
[data-theme="dark"] .mobile-nav { background: #1c2420; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: #1a201d;
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: var(--ink-soft); }
[data-theme="dark"] .g-badge { background: #1a201d; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .g-badge:hover { border-color: #4285F4; }
[data-theme="dark"] .select--dark,
[data-theme="dark"] select option { background: #1a201d; color: var(--ink); }

/* hero & footer use --ink as BG in light (near-black). In dark, --ink flips to LIGHT
   (it's the text color) — so force them to stay dark backgrounds with light text. */
[data-theme="dark"] .hero { background: #0f1311; color: #fff; }
[data-theme="dark"] .hero__title, [data-theme="dark"] .hero__card-name { color: #fff; }
[data-theme="dark"] .site-footer { background: #121612; color: #c9d2cc; }
[data-theme="dark"] .footer__heading, [data-theme="dark"] .footer__brand .brand__name,
[data-theme="dark"] .footer__col a { color: #e6ebe7; }
[data-theme="dark"] .footer__col a:hover { color: #fff; }
[data-theme="dark"] .hero .btn--ghost, [data-theme="dark"] .hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }


/* step numbers & anything brand-dark-on-brand-soft: invert to light green in dark */
[data-theme="dark"] .step__num { color: #6fbf92; }
[data-theme="dark"] .rating-badge { background: var(--soft); }



/* transición suave al cambiar de tema */
* { transition-property: background-color, color, border-color; transition-duration: .25s; }

/* --- Toggle tema --- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { background: var(--soft); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* hero: banner siempre oscuro en ambos temas */
[data-theme="dark"] .hero,
[data-theme="light"] .hero { background: #0f1311; color: #fff; }
[data-theme="dark"] .hero__title,
[data-theme="light"] .hero__title { color: #fff; }
[data-theme="dark"] .hero__lead,
[data-theme="light"] .hero__lead { color: #d7dad7; }
[data-theme="dark"] .hero__note,
[data-theme="light"] .hero__note { color: #9aa39c; }

/* — transición suave (fade) en los extremos del band — */
.band { position: relative; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 40px; pointer-events: none;
}
.band::before {
  top: 0;
  background: linear-gradient(to bottom, var(--page-bg, var(--paper)), transparent);
}
.band::after {
  bottom: 0;
  background: linear-gradient(to top, var(--page-bg, var(--paper)), transparent);
}
[data-theme="dark"] .band::before { --page-bg: #151a17; }
[data-theme="dark"] .band::after { --page-bg: #151a17; }
[data-theme="light"] .band::before { --page-bg: var(--paper); }
[data-theme="light"] .band::after { --page-bg: var(--paper); }


/* ================= PALETA LUIS (handypromain.ca): negro + dorado ================= */
/* Port de NUESTRO diseño a los colores ACTUALES de la web de Luis (handypromain.ca).
   Negro #171718, acento dorado #EFB522, gris #6F706F. Se activa con <html data-palette="luis">. */
[data-palette="luis"] {
  --ink: #171718;
  --ink-soft: #6F706F;
  --paper: #ffffff;
  --soft: #F4F4F3;
  --line: #BBBBBB;
  --brand: #EFB522;        /* dorado handypromain.ca */
  --brand-dark: #C89A1A;
  --brand-soft: #FCF7E7;
  --focus: #1b7fb0;
}
/* el hero pasa de verde oscuro a negro con acento dorado */
[data-palette="luis"] .hero { background: #171718; }
[data-palette="luis"] .hero__title em { color: #EFB522; }
[data-palette="luis"] .hero__ai-badge .ai-text { color: #EFB522; }
[data-palette="luis"] .site-header { background: #171718; border-bottom-color: #2a2a2b; }
[data-palette="luis"] .site-header a, [data-palette="luis"] .brand { color: #ffffff; }
[data-palette="luis"] .band { background: #171718; }
[data-palette="luis"] .band .btn--primary { background: #EFB522; color: #171718; }
[data-palette="luis"] .band .btn--primary:hover { background: #F4B23A; }
[data-palette="luis"] .site-footer { background: #171718; color: #BBBBBB; }
/* contraste: botón dorado usa texto oscuro; hero card & stats neutros */
[data-palette="luis"] .btn--primary { color: #1a1a1b; }
[data-palette="luis"] .hero__card { background: #1f1f20; border-color: #2a2a2b; }
[data-palette="luis"] .stat { background: #1a1a1b; border-color: #2a2a2b; }
[data-palette="luis"] .hero__card-role, [data-palette="luis"] .hero__note { color: #BBBBBB; }

/* demo luis - modo noche: negro + dorado */
[data-palette="luis"][data-theme="dark"] {
  --ink: #e8e8e8;
  --ink-soft: #BBBBBB;
  --paper: #171718;
  --soft: #1f1f20;
  --line: #2a2a2b;
  --brand: #EFB522;
  --brand-dark: #C89A1A;
  --brand-soft: #262014;
}
[data-palette="luis"][data-theme="dark"] .site-header { background: #171718; }
[data-palette="luis"][data-theme="dark"] .band { background: #1f1f20; }
[data-palette="luis"][data-theme="dark"] .site-footer { background: #101011; }

/* ================= DEMO: paleta original HandyPro (verde bosque) ================= */
/* Port de NUESTRO diseño a los colores de la web original. Se activa con <html data-palette="original"> (solo index-original.html). */
[data-palette="original"] {
  --ink: #1a3329;
  --ink-soft: #3d584b;
  --paper: #fbf8f1;
  --soft: #f0ece1;
  --line: #dee0d6;
  --brand: #2f6b4f;
  --brand-dark: #234f3a;
  --brand-soft: #e2ece6;
  --focus: #1b7fb0;
}
/* el hero pasa de oscuro (#0f1311) a verde bosque dominante */
[data-palette="original"] .hero { background: #2f6b4f; }
[data-palette="original"] .hero h1,
[data-palette="original"] .hero__lead { color: #f4f7f3; }
[data-palette="original"] .site-header { background: #fbf8f1; border-bottom-color: #dee0d6; }
/* band CTA y footer coinciden con el verde profundo de la marca */
[data-palette="original"] .band { background: #234f3a; }
[data-palette="original"] .site-footer { background: #1a3329; color: #d7e2da; }
/* los links del nav, ya anchored, mantienen contraste sobre crema */
[data-palette="original"] .why-card,
[data-palette="original"] .service-card,
[data-palette="original"] .review-card,
[data-palette="original"] .faq__item { background: #ffffff; }

/* demo original - modo noche: verde bosque profundo */
[data-palette="original"][data-theme="dark"] {
  --ink: #e2ece6;
  --ink-soft: #b9cdc2;
  --paper: #16231c;
  --soft: #1d2d24;
  --line: #2f4237;
  --brand: #7fc9a3;
  --brand-dark: #2f6b4f;
  --brand-soft: #1f3329;
}
[data-palette="original"][data-theme="dark"] .hero { background: #2f6b4f; }
[data-palette="original"][data-theme="dark"] .site-header { background: #16231c; }
[data-palette="original"][data-theme="dark"] .band { background: #2f6b4f; }
[data-palette="original"][data-theme="dark"] .site-footer { background: #12201a; }

/* enlace demo paleta original */
.footer__demo-link { margin-top: 10px; }
.footer__demo-link a { color: var(--ink-soft); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.footer__demo-link a:hover { color: var(--brand); }
