/* ===========================================================
   D&D Pharmacy — shared styles for content pages
   (Services, FAQ, Refill, Team). Inherits site.css tokens.
   =========================================================== */

/* ---------- Light page hero ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: 30px 0 64px; }
.page-hero .crumbs { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.page-hero .crumbs a { color: var(--navy); }
.page-hero .crumbs a:hover { color: var(--green-700); }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero h1 { font-family: var(--serif); font-weight: 420; font-size: clamp(38px, 5vw, 64px); line-height: 1.0; letter-spacing: -0.025em; color: var(--navy); margin: 18px 0 0; max-width: 900px; text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: var(--green-700); }
.page-hero .lede { margin: 20px 0 0; max-width: 620px; }

/* ===========================================================
   SERVICES — numbered rows
   =========================================================== */
.svc-row { display: grid; grid-template-columns: 88px 0.8fr 1.4fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { font-family: var(--serif); font-style: italic; font-size: 46px; color: var(--green-700); line-height: 0.9; }
.svc-row .svc-name h3 { font-family: var(--serif); font-weight: 460; font-size: clamp(24px, 2.6vw, 32px); color: var(--navy); letter-spacing: -0.015em; margin: 0; line-height: 1.08; }
.svc-row .svc-name .tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green-700); background: rgba(15,160,78,0.1); border: 1px solid rgba(15,160,78,0.22); padding: 5px 11px; border-radius: 999px; }
.svc-row .svc-body p { font-size: 16.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; max-width: 560px; }
.svc-row .svc-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.svc-row .svc-body li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.45; }
.svc-row .svc-body li::before { content:''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: 8px; }

/* ===========================================================
   QUOTE (shared)
   =========================================================== */
.quote-sec { background: var(--paper); }
.quote-sec .wrap { max-width: 940px; text-align: center; }
.quote-sec .open { font-family: var(--serif); font-size: 90px; line-height: 0.6; color: var(--green); height: 46px; }
.quote-sec blockquote { font-family: var(--serif); font-weight: 420; font-size: clamp(24px, 3vw, 34px); line-height: 1.32; color: var(--navy); margin: 0 auto; max-width: 820px; letter-spacing: -0.01em; text-wrap: pretty; }
.quote-sec .attr { margin-top: 26px; font-size: 15px; font-weight: 700; color: var(--ink); }
.quote-sec .attr small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; font-size: 13.5px; }

/* ===========================================================
   FAQ groups
   =========================================================== */
.faq-page { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group-title { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-700); margin-bottom: 6px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-group:last-child .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--serif); font-size: 20px; font-weight: 460; color: var(--navy); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 25px; color: var(--muted); font-weight: 300; line-height: 1; transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { content: '−'; color: var(--green-700); }
.faq-item .answer { padding: 0 30px 24px 0; font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.faq-item .answer strong { color: var(--navy); font-weight: 600; }
.faq-aside { position: sticky; top: 96px; }
.faq-aside h3 { font-family: var(--serif); font-weight: 460; font-size: 24px; color: var(--navy); margin: 0 0 10px; letter-spacing: -0.01em; }
.faq-aside p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.faq-aside .ph { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--navy); }

/* ===========================================================
   REFILL form
   =========================================================== */
.refill-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.refill-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 38px 34px; box-shadow: var(--shadow-card); }
.refill-form h2 { font-family: var(--serif); font-weight: 460; font-size: 30px; color: var(--navy); margin: 0 0 6px; letter-spacing: -0.015em; }
.refill-form > #form-body > p { font-size: 15px; color: var(--muted); margin: 0 0 24px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field label .hint { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea { font-family: var(--sans); font-size: 15px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,160,78,0.14); }
.field textarea { min-height: 84px; resize: vertical; }
.pickup-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pickup-options label { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; margin: 0; }
.pickup-options label:has(input:checked) { border-color: var(--green); background: rgba(15,160,78,0.05); }
.pickup-options input { accent-color: var(--green); margin-top: 2px; }
.pickup-options .opt-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.pickup-options .opt-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.form-submit { width: 100%; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.field-error { display: none; color: #c0392b; font-size: 12.5px; margin-top: 5px; }
.field-error.visible { display: block; }
input.invalid, textarea.invalid { border-color: #c0392b; }
.success-msg { display: none; text-align: center; padding: 30px 10px; }
.success-msg.active { display: block; }
.success-msg .check { width: 60px; height: 60px; border-radius: 50%; background: rgba(15,160,78,0.12); color: var(--green); display: grid; place-items: center; font-size: 30px; margin: 0 auto 18px; }
.success-msg h3 { font-family: var(--serif); font-weight: 460; font-size: 28px; color: var(--navy); margin: 0 0 10px; }
.success-msg p { font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 380px; margin: 0 auto; }

.refill-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px; }
.side-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.1px; }
.side-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.side-card p:last-child { margin-bottom: 0; }
.side-card p strong { color: var(--navy); font-weight: 700; }
.step-list { margin: 0; padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.step-list li { position: relative; padding-left: 38px; font-size: 14px; color: var(--ink); line-height: 1.5; counter-increment: step; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* ===========================================================
   TEAM
   =========================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px; background: #fff; }
.team-card .role { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-700); margin-bottom: 12px; }
.team-card h2 { font-family: var(--serif); font-weight: 460; font-size: 28px; color: var(--navy); margin: 0 0 4px; letter-spacing: -0.015em; }
.team-card .cred { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.team-card p { font-size: 15px; color: var(--ink); line-height: 1.65; margin: 0; }
.team-cta { margin-top: 44px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.team-cta h3 { font-family: var(--serif); font-weight: 460; color: #fff; font-size: 30px; margin: 0; letter-spacing: -0.015em; }
.team-cta p { color: rgba(255,255,255,0.72); font-size: 15px; margin: 8px 0 0; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .faq-page { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .refill-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .svc-row .num { font-size: 36px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .pickup-options { grid-template-columns: 1fr; }
  .team-cta { flex-direction: column; align-items: flex-start; }
}
