/* ==========================================================================
   QMed — multi-page additions
   Everything the approved one-page design did not need: dropdown navigation,
   the service-card link row, chips, FAQ/placeholder cards and a few layout
   variants. The design system itself lives untouched in qmed.css.
   ========================================================================== */

/* ---------- dropdown navigation ---------- */
.navitem{position:relative;display:flex;align-items:center}
.navitem > .navlink{display:inline-flex;align-items:center;gap:5px}
.navitem > .navlink svg{width:14px;height:14px;opacity:.6;transition:transform .18s ease}
.navitem:hover > .navlink svg,
.navitem:focus-within > .navlink svg{transform:rotate(180deg)}
.subnav{
  position:absolute;top:100%;left:0;min-width:236px;z-index:120;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:var(--shadow);padding:8px;
  display:flex;flex-direction:column;gap:2px;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.navitem:hover .subnav,
.navitem:focus-within .subnav{opacity:1;visibility:visible;transform:translateY(4px)}
.subnav a{
  padding:9px 13px;border-radius:8px;font-size:.92rem;font-weight:500;
  color:var(--ink);text-decoration:none;white-space:nowrap;transition:.15s;
}
.subnav a:hover{background:var(--bg-soft);color:var(--blue);text-decoration:none}
.navlink.is-active{color:var(--blue);background:var(--bg-soft)}

/* ---------- service cards: link row ---------- */
.svc{display:flex;flex-direction:column}
.svc > p{flex:1}
.svc-link{
  display:inline-flex;align-items:center;gap:7px;margin-top:4px;
  font-size:.9rem;font-weight:600;color:var(--blue);text-decoration:none;
}
.svc-link svg{width:15px;height:15px;transition:transform .2s ease}
.svc:hover .svc-link svg{transform:translateX(4px)}
.svc-link:hover{text-decoration:none}
.svc:nth-child(2) .svc-link,.svc:nth-child(4) .svc-link{color:var(--green)}
.svc ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.svc li{position:relative;padding-left:22px;font-size:.89rem;color:var(--body);line-height:1.5}
.svc li::before{content:'';position:absolute;left:0;top:.52em;width:7px;height:7px;border-radius:50%;background:var(--blue);opacity:.5}

/* two-across variant for FAQ / placeholder cards */
.services-2{grid-template-columns:repeat(2,1fr)}

/* full-width feature card (home care) */
.services-feature{margin-top:24px}
.svc-feature{
  flex-direction:row;align-items:flex-start;gap:24px;
  background:var(--bg-soft);
}
.svc-feature .svc-ico{margin-bottom:0;flex:none}
.svc-feature > div{flex:1}
.svc-feature::after{background:var(--green)}
.svc-feature .svc-link{color:var(--green)}

/* ---------- chips (settings served) ---------- */
.chips{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}
.chips span{
  font-size:.85rem;font-weight:500;color:#DCE8F6;
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15);
  padding:7px 14px;border-radius:100px;
}
.panel-note{font-size:.92rem;margin:0;padding-top:20px;border-top:1px solid rgba(255,255,255,.16)}

/* ---------- panel list inside a light section ---------- */
.panel h3 + .panel-list{margin-top:18px}

/* ---------- "more" link under a section ---------- */
.section-more{text-align:center;margin:36px 0 0}
.section-more a{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.section-more svg{width:16px;height:16px;transition:transform .2s ease}
.section-more a:hover{text-decoration:none}
.section-more a:hover svg{transform:translateX(4px)}

/* ---------- contact: who-should-contact list ---------- */
.who-list{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.who-list li{position:relative;padding-left:20px;font-size:.92rem;line-height:1.55}
.who-list li::before{content:'';position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--green)}

/* ---------- placeholder cards (About: leadership / track record) ---------- */
.placeholder{
  background:var(--bg-soft);border:1px dashed rgba(10,51,114,.3);
  border-radius:var(--radius);padding:30px;
}
.placeholder h3{margin-bottom:9px}
.placeholder p{font-size:.94rem;margin:0;color:var(--muted)}

/* ---------- CTA band as its own section ---------- */
.cta-band{padding:0 0 88px}
.svc-cta h3{color:#fff;font-size:1.28rem;margin-bottom:10px}
.svc-cta p{color:#C6D7EC;margin-bottom:0;max-width:62ch}
.svc-cta .btn + .btn{margin-left:10px}

/* ---------- hero without an image: let the copy breathe ---------- */
.hero-in:not(:has(.hero-card)){grid-template-columns:minmax(0,1fr)}
.hero-in:not(:has(.hero-card)) .hero-lead{max-width:62ch}

/* ---------- footer logo ---------- */
.footer-logo{height:54px;width:auto;margin-bottom:18px;opacity:.95}

/* ---------- forms ---------- */
.qmed-form .field-grow textarea{min-height:140px}
.form-card{height:100%}

/* ---------- responsive ---------- */
@media (max-width:1040px){
  .services-2{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .navitem{display:block}
  .navitem > .navlink{justify-content:space-between;width:100%}
  .subnav{
    position:static;opacity:1;visibility:visible;transform:none;
    box-shadow:none;border:0;border-radius:0;padding:0 0 10px 12px;
    border-left:2px solid var(--line);margin:4px 0 8px;
  }
  .subnav a{padding:10px 12px;font-size:.95rem}
}
@media (max-width:680px){
  .services-2{grid-template-columns:minmax(0,1fr)}
  .svc-feature{flex-direction:column;gap:18px}
  .svc-cta .btn + .btn{margin-left:0;margin-top:10px}
  .cta-band{padding:0 0 60px}
}

/* ---------- hero tag row ----------
   The one-page design spread five pills edge to edge. With seven service
   lines the row wraps, and space-between strands the last pill on its own
   line, so pack them from the left instead. */
.hero-tags{justify-content:flex-start;gap:9px}

/* ---------- eight specialties: four across ----------
   Eight cards in the design's three-column grid leaves a 3-3-2 ragged row.
   Four across gives two clean rows, stepping down to two and then one. */
.services-4{grid-template-columns:repeat(4,1fr);gap:20px}
.services-4 .svc{padding:26px}
.services-4 .svc h3{font-size:1.1rem}
@media (max-width:1040px){ .services-4{grid-template-columns:repeat(2,1fr)} }
@media (max-width:680px){ .services-4{grid-template-columns:minmax(0,1fr)} }
/* the design alternates green on cards 2 and 4; extend the rhythm to 6 and 8 */
.services-4 .svc:nth-child(6) .svc-ico,.services-4 .svc:nth-child(8) .svc-ico{background:var(--green-100);color:var(--green)}
.services-4 .svc:nth-child(6)::after,.services-4 .svc:nth-child(8)::after{background:var(--green)}
.services-4 .svc:nth-child(6) .svc-link,.services-4 .svc:nth-child(8) .svc-link{color:var(--green)}
