/* ======================================================================
   IGBANS HOME CARE SERVICES (IHCS) — SITE STYLESHEET
   Mobile-first · no frameworks · one file
   Brand: green #3D7A3A / #2D5C2A · accent red #CC2929
   Type:  Fraunces (display) + Inter (body) via Google Fonts
   ====================================================================== */

:root {
  --green: #3D7A3A;
  --green-dark: #2D5C2A;
  --green-deep: #1F4520;
  --green-tint: #EEF4ED;
  --red: #CC2929;
  --ink: #21281f;
  --body: #4a524a;
  --muted: #6d746d;
  --line: #e3e7e2;
  --paper: #ffffff;
  --paper-alt: #f6f8f5;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(33, 40, 31, .06);
  --shadow-lg: 0 12px 32px rgba(33, 40, 31, .12);
  --wrap: 1160px;
  --speed: .25s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
ul[role="list"], .plain-list { list-style: none; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
p + p { margin-top: .9em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--body); max-width: 42em; }
.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: .75rem;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.section--alt { background: var(--paper-alt); }
.section--green { background: var(--green-dark); color: #e9efe7; }
.section--green h2, .section--green h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .section { padding-block: 80px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--split { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--speed), color var(--speed), border-color var(--speed), transform var(--speed);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #a82121; color: #fff; }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--green-tint); color: var(--green-deep); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-white:hover { background: #fff; color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; color: var(--green-dark); text-decoration: none; }
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--green-deep);
  color: #dbe6d8;
  font-size: .82rem;
  padding-block: 7px;
}
.utility .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.utility a { color: #fff; font-weight: 600; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility__license { display: none; }
@media (min-width: 720px) { .utility__license { display: inline; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--speed), opacity var(--speed); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; inset: 100% 0 auto 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.site-nav ul { list-style: none; }
.site-nav a { display: block; padding: 14px 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-tint); }

.submenu-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 24px; font: 600 1rem var(--font-body); color: var(--ink);
  background: none; border: 0; cursor: pointer;
}
.submenu-toggle::after { content: "\25BE"; font-size: .8em; color: var(--green); transition: transform var(--speed); }
.submenu-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.submenu { display: none; background: var(--paper-alt); }
.submenu-toggle[aria-expanded="true"] + .submenu { display: block; }
.submenu a { padding-left: 40px; font-weight: 500; }

.nav-cta { padding: 16px 24px; }
.nav-cta .btn { width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex; position: static; border: 0; box-shadow: none;
    max-height: none; overflow: visible; align-items: center;
  }
  .site-nav > ul { display: flex; align-items: center; gap: 2px; }
  .site-nav > ul > li { position: relative; }
  .site-nav a, .submenu-toggle { padding: 10px 13px; font-size: .95rem; border-radius: 8px; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--green-tint); }
  .submenu-toggle { width: auto; gap: 6px; }
  .submenu-toggle:hover { background: var(--green-tint); color: var(--green-dark); }
  .submenu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 6px; z-index: 70;
  }
  .submenu a { padding: 10px 14px; border-radius: 6px; }
  .nav-cta { padding: 0 0 0 10px; }
  .nav-cta .btn { width: auto; padding: 12px 22px; font-size: .92rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(61,122,58,.16), transparent 60%),
    linear-gradient(180deg, var(--paper-alt), var(--paper));
  padding-block: 64px;
}
.hero__inner { display: grid; gap: 36px; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-block: 1.1rem 1.6rem; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.hero__media { align-self: center; }
@media (min-width: 1024px) {
  .hero { padding-block: 88px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
}

/* Page hero (interior pages) */
.page-hero { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding-block: 48px; }
.page-hero .lede { margin-top: .8rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--green-dark); font-weight: 600; }

/* ---------- Photos ---------- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.photo--band { border-radius: 0; box-shadow: none; }

/* ---------- Image placeholders (swap for real photos) ---------- */
.img-ph {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(61,122,58,.05) 14px 28px),
    var(--green-tint);
  border: 1px dashed rgba(61,122,58,.45);
  border-radius: var(--radius-lg);
  color: var(--green-dark);
  font-size: .85rem; font-weight: 600; text-align: center;
  min-height: 260px; padding: 20px;
}
.img-ph--tall { min-height: 340px; }
.img-ph--short { min-height: 180px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--speed), box-shadow var(--speed);
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--green-tint); border-radius: 14px;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--green); }
.card p { font-size: .95rem; }
.card .text-link { margin-top: auto; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper); padding-block: 22px; }
.trust ul {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Credentials band ---------- */
.creds { text-align: center; }
.creds h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.creds p { font-size: .9rem; color: #cfdccb; margin-top: 4px; }

/* ---------- Steps ---------- */
.step { position: relative; padding: 28px 24px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  font: 700 1rem var(--font-body);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .93rem; }

/* ---------- Feature list (checkmarks) ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233D7A3A"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/12px no-repeat;
}

/* ---------- Callout / info boxes ---------- */
.callout {
  background: var(--paper);
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.callout--red { border-left-color: var(--red); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--green-tint);
  border: 1px solid rgba(61,122,58,.25);
  border-radius: var(--radius);
  padding: 16px 18px; font-size: .93rem;
}
.notice svg { flex: none; width: 20px; height: 20px; fill: var(--green-dark); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 38em; margin: .8rem auto 1.6rem; color: #e6eee4; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Areas grid ---------- */
.area-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-align: center; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow);
}
.area-card small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font: 700 1.02rem/1.4 var(--font-body); color: var(--ink);
}
.accordion__trigger::after {
  content: "+"; flex: none;
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green-tint); color: var(--green-dark);
  font-size: 1.1rem; font-weight: 600;
  transition: transform var(--speed);
}
.accordion__trigger[aria-expanded="true"]::after { content: "\2212"; transform: rotate(180deg); }
.accordion__panel { padding: 0 4px 22px; max-width: 62em; }
.accordion__panel[hidden] { display: none; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 24px;
}
@media (min-width: 720px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 1rem var(--font-body); color: var(--ink);
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid #c9cfc8; border-radius: 8px;
  transition: border-color var(--speed);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,122,58,.15); }
.field--error input { border-color: var(--red); }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 8px; font-weight: 600; font-size: .95rem; display: none; }
.form-msg--error { display: block; background: #fbeaea; color: #8c1d1d; border: 1px solid #efc4c4; }

/* Newsletter */
.newsletter { background: var(--green-tint); border-top: 1px solid var(--line); }
.newsletter .wrap { display: grid; gap: 18px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input[type="email"] {
  flex: 1 1 240px;
  font: 1rem var(--font-body);
  padding: 13px 16px;
  border: 1px solid #c9cfc8; border-radius: 999px;
}
@media (min-width: 1024px) {
  .newsletter .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Contact blocks ---------- */
.contact-block {
  background: var(--paper-alt);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
}
.contact-block + .contact-block { margin-top: 16px; }
.contact-block h3 { margin-bottom: 4px; }
.contact-block p { font-size: .95rem; }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #c9d6c5; font-size: .93rem; }
.site-footer a { color: #e6eee4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; padding-block: 56px 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand .heart { color: var(--red); }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 18px;
  font-size: .82rem; color: #a9baa4;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; }

/* ---------- Misc ---------- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green-dark); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.honeypot { position: absolute !important; left: -9999px !important; }

/* Sticky click-to-call (mobile only; element injected by main.js) */
.call-fab {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: 55;
  align-items: center; gap: 8px;
  padding: 14px 20px;
  background: var(--green); color: #fff;
  border-radius: 999px;
  font: 700 .95rem var(--font-body);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(31, 69, 32, .35);
}
.call-fab svg { width: 18px; height: 18px; fill: #fff; }
.call-fab:hover, .call-fab:focus-visible { background: var(--green-dark); color: #fff; }
@media (max-width: 719px) {
  .call-fab { display: inline-flex; }
  body { padding-bottom: 76px; } /* keep footer content clear of the button */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
