/* =============================================================
   SYNERGY HomeCare of the West Valley
   Hive-Rise custom build, global stylesheet

   BRAND TOKENS: every color is a variable. When SYNERGY franchise
   media sends the official brand hex + logo, change the values in
   :root below and the whole site re-skins. Nothing else to touch.
   ============================================================= */

:root {
  /* Brand palette (SYNERGY teal-led, warm accent) --------------- */
  --teal:        #0c7c79;   /* primary */
  --teal-dark:   #075b59;   /* headers, footer, deep sections */
  --teal-800:    #0a6b68;
  --teal-100:    #e3f1f0;   /* tint backgrounds */
  --coral:       #d9633f;   /* primary call-to-action */
  --coral-dark:  #bd4f2d;
  --plum:        #6e2e4d;   /* secondary depth (legacy accent) */
  --slate:       #3b3e4d;   /* brand slate carried over from the prior site */
  --gold:        #e2a63b;   /* stars, small highlights */

  /* Neutrals ---------------------------------------------------- */
  --ink:         #23323a;   /* body text */
  --ink-soft:    #4a5a63;   /* muted text */
  --line:        #e2e6e4;   /* hairlines */
  --cream:       #fbf7f1;   /* alternating section bg */
  --mist:        #f2f6f5;   /* light teal-gray bg */
  --white:       #ffffff;

  /* Type & rhythm ---------------------------------------------- */
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", Georgia, serif;
  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 55, 53, 0.10);
  --shadow-lg: 0 14px 40px rgba(15, 55, 53, 0.16);
}

/* Reset / base ------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 18px;               /* elderly-friendly base */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tint { background: var(--cream); }
.section--mist { background: var(--mist); }
.section--teal { background: var(--teal-dark); color: #eaf4f3; }
.section--teal h2, .section--teal h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--coral); margin-bottom: 12px;
}
.section--teal .eyebrow { color: var(--gold); }

/* Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  padding: 14px 30px; border-radius: 7px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(217,99,63,.26); }
.btn--primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217,99,63,.34); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(12,124,121,.22); }
.btn--teal:hover { background: var(--teal-800); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12,124,121,.3); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(2px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { font-size: 1.08rem; padding: 16px 36px; }

/* Header ------------------------------------------------------- */
.topbar { background: var(--slate); color: #dfe3ec; font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .badges { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .badges span { display: inline-flex; align-items: center; }
.topbar .badges span::before { content: ""; width: 14px; height: 14px; margin-right: 7px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2a63b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 46px; height: 46px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); font-size: 1.3rem; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--teal-dark); font-size: 1.05rem; line-height: 1.15; }
.brand__name small { display: block; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
/* Header logo lockup (real SYNERGY logo + locality line) */
.brand--logo { flex-direction: column; align-items: flex-start; gap: 1px; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__local { font-family: var(--font-head); font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal-dark); font-weight: 700; align-self: flex-end; }
@media (max-width: 560px) { .brand__logo { height: 38px; } }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu > li > a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 6px; font-size: 1rem; }
.menu > li > a:hover, .menu > li > a[aria-current="page"] { background: var(--teal-100); color: var(--teal-dark); }
.has-sub > a { display: inline-flex; align-items: center; }
.has-sub > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.has-sub:hover > a::after, .has-sub:focus-within > a::after { transform: translateY(0) rotate(225deg); }
.has-sub { position: relative; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: var(--shadow-lg); border-radius: 10px; padding: 8px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; text-decoration: none; color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; font-size: .98rem; }
.submenu a:hover { background: var(--teal-100); color: var(--teal-dark); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone { text-decoration: none; font-weight: 800; color: var(--teal-dark); font-size: 1.05rem; white-space: nowrap; }
.nav__phone small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .5px; color: var(--ink-soft); text-transform: uppercase; }

.nav-toggle { display: none; background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 9px 11px; cursor: pointer; line-height: 0; }
.nav-toggle .ico { width: 22px; height: 22px; }

/* Hero --------------------------------------------------------- */
.hero { position: relative; background: var(--teal-dark); color: #fff; overflow: hidden; min-height: 600px; display: flex; align-items: center; }
/* Photographic background with a slow Ken Burns zoom */
.hero__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 68% center;
  transform: scale(1.05); animation: heroKen 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroKen { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
/* Scrim keeps white text legible over the photo */
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,42,40,.9) 0%, rgba(6,42,40,.72) 38%, rgba(6,42,40,.28) 66%, rgba(6,42,40,.1) 100%),
    linear-gradient(0deg, rgba(6,42,40,.55) 0%, rgba(6,42,40,0) 38%); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 76px 24px 82px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__inner--single { grid-template-columns: 1fr; }
.hero__inner--single > div { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 16px rgba(0,0,0,.36); }
.hero p { color: #f0f7f5; font-size: 1.2rem; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.36); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: .95rem; color: #eaf5f3; }
.hero__trust span { display: inline-flex; align-items: center; }
.hero__trust span::before { content: ""; width: 15px; height: 15px; margin-right: 8px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2a63b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .hero__photo { animation: none; transform: scale(1.05); } }

/* Trust bar ---------------------------------------------------- */
.trustbar { background: var(--slate); color: #fff; }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; padding: 18px 24px; text-align: center; }
.trustbar strong { font-weight: 700; }
.trustbar span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--gold); transform: rotate(45deg); vertical-align: middle; }

/* Cards / grids ------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; box-shadow: 0 1px 3px rgba(15,55,53,.04), 0 14px 30px rgba(15,55,53,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(15,55,53,.06), 0 22px 48px rgba(15,55,53,.12); border-color: #d3e4e2; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-100); color: var(--teal-dark); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; }
.card__icon .ico { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 14px; }
.card a.more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--coral); }
.card a.more::after { content: ""; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bd4f2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition: transform .2s ease; }
.card a.more:hover::after { transform: translateX(3px); }

/* Feature list with drawn checkmarks --------------------------- */
.checks { list-style: none; }
.checks li { position: relative; padding: 9px 0 9px 36px; }
.checks li::before { content: ""; position: absolute; left: 6px; top: 15px; width: 7px; height: 12px;
  border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.section--teal .checks li::before { border-color: var(--gold); }

/* Coverage checker (See if you're covered) --------------------- */
.coverage { margin-top: 20px; }
.coverage label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.coverage__row { display: flex; gap: 10px; flex-wrap: wrap; }
.coverage__row input { flex: 1 1 220px; padding: 14px 16px; font-size: 1rem; font-family: var(--font);
  color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 7px; }
.coverage__row input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }

/* Compact coverage bar (below the hero) */
.coverage-bar { padding: 26px 0; background: var(--mist); border-bottom: 1px solid var(--line); }
.coverage-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 16px 22px; flex-wrap: wrap; }
.coverage-bar .coverage-bar__label { font-family: var(--font-head); font-weight: 700; color: var(--teal-dark); font-size: 1.1rem; }
.coverage-bar .coverage { margin: 0; }
.coverage-bar .coverage label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.coverage-bar .coverage__row input { flex: 1 1 200px; min-width: 200px; }

/* Result popup (modal) */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9, 40, 38, .55); }
.modal__box { position: relative; z-index: 1; background: #fff; border-radius: 14px; max-width: 440px; width: 100%;
  padding: 30px 30px 28px; box-shadow: var(--shadow-lg); animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__box { animation: none; } }
.modal__close { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink-soft); line-height: 0; }
.modal__close .ico { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.modal__title { font-size: 1.25rem; margin-bottom: 10px; color: var(--teal-dark); padding-right: 24px; }
#coverage-result { font-size: 1.05rem; line-height: 1.6; }
#coverage-result p { margin: 0; }
#coverage-result .cov-yes { color: var(--teal-dark); font-weight: 600; }
#coverage-result .cov-no { color: var(--ink); }
#coverage-result a { color: var(--coral-dark); font-weight: 700; }

/* Split content ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-slot { border-radius: var(--radius); min-height: 320px; background: var(--teal-100); border: 1px dashed var(--teal); display: grid; place-items: center; text-align: center; color: var(--teal-dark); font-size: .9rem; padding: 20px; }

/* Stats -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); }
.stat span { color: #d7ecea; font-size: .98rem; }

/* CTA band ----------------------------------------------------- */
.ctaband { background: linear-gradient(120deg, var(--coral), var(--coral-dark)); color: #fff; text-align: center; }
.ctaband h2 { color: #fff; }
.ctaband p { color: #ffe9e0; font-size: 1.15rem; max-width: 640px; margin: 10px auto 24px; }
.ctaband .btn--outline { background: #fff; color: var(--coral-dark); border-color: #fff; }
.ctaband .phone-xl { font-family: var(--font-head); font-size: 2.2rem; color: #fff; text-decoration: none; display: inline-block; margin-top: 8px; }

/* FAQ ---------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 16px 0; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--coral); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; }

/* Testimonial block (real quotes only, filled after collection) */
.quote { background: #fff; border-left: 5px solid var(--gold); border-radius: 10px; padding: 24px 26px; box-shadow: var(--shadow); }
.quote p { font-size: 1.08rem; font-style: italic; color: var(--ink); }
.quote cite { display: block; font-style: normal; font-weight: 700; color: var(--teal-dark); margin-top: 8px; }
.stars { display: inline-block; width: 96px; height: 18px; margin-bottom: 8px;
  background: repeat-x left center/19px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='18' viewBox='0 0 24 24' fill='%23e2a63b'%3E%3Cpath d='M12 2l2.9 6.3 6.9.7-5.1 4.6 1.4 6.8L12 17.8 5.9 21.2l1.4-6.8L2.2 9l6.9-.7z'/%3E%3C/svg%3E"); }

/* Page hero (interior pages) ----------------------------------- */
.page-hero { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e7f3f2; font-size: 1.15rem; max-width: 720px; margin-top: 10px; }
.crumbs { font-size: .9rem; color: #cfe6e4; margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Pricing ------------------------------------------------------ */
.price-card { background: #fff; border: 2px solid var(--teal); border-radius: 14px; padding: 30px; text-align: center; box-shadow: var(--shadow); }
.price-card .amount { font-family: var(--font-head); font-size: 2.6rem; color: var(--teal-dark); }
.price-card .amount small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }

/* Footer ------------------------------------------------------- */
.site-footer { background: var(--slate); color: #cfd4de; padding: 56px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: .5px; }
.site-footer a { color: #c7d1d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name small { color: #9fb0b7; }
.footer-cred { margin-top: 14px; font-size: .85rem; color: #93a3aa; }
.footer-bottom { border-top: 1px solid #364650; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #93a3aa; }

/* Sticky mobile call bar --------------------------------------- */
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--coral); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; padding: 15px; }
.callbar a::before { content: ""; width: 19px; height: 19px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6 19.8 19.8 0 0 1-3.1-8.7A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2.1z'/%3E%3C/svg%3E"); }

/* Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { min-height: 220px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu, .topbar { display: none; }
  .nav-toggle { display: inline-block; }
  .menu.open { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); padding: 12px; gap: 2px; }
  .menu.open > li { width: 100%; }
  .menu.open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
  .nav__phone small { display: none; }
  .callbar { display: block; }
  body { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
