/* ============================================================
   GLEC — shared styles for Information & More pages
   (Contact, Schedule, Insurance, Billing, Records, Privacy)
   Loads AFTER home.css; relies on its tokens + header/footer/btn.
   ============================================================ */

/* ---------- compact page hero ---------- */
.ip-hero { background: var(--glec-teal-deep); color: #fff; padding-top: 132px; overflow: hidden; }
.ip-hero .container { padding-bottom: 60px; }
.ip-hero .eyebrow { color: var(--glec-clay); }
.ip-hero h1 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(38px,5vw,64px); line-height: 1.03; letter-spacing: -0.02em; color: #fff; max-width: 18ch; }
.ip-hero p.lead { color: rgba(255,255,255,.9); font-weight: 300; font-size: clamp(17px,2vw,21px); line-height: 1.58; margin: 20px 0 0; max-width: 56ch; }
.ip-hero.cream { background: var(--glec-cream); color: var(--fg); border-bottom: 1px solid #ece8e0; }
.ip-hero.cream .eyebrow { color: var(--glec-teal); }
.ip-hero.cream h1 { color: var(--glec-teal-deep); }
.ip-hero.cream p.lead { color: var(--fg-muted); }

/* breadcrumb strip (sits above hero, below fixed header) */
.ip-crumb { position: relative; z-index: 2; }
.ip-crumb .container { display: flex; align-items: center; gap: 8px; padding-block: 0 22px; font-family: var(--font-grotesk); font-size: 12px; letter-spacing: 0.06em; }
.ip-hero .ip-crumb-inline { display: flex; align-items: center; gap: 8px; font-family: var(--font-grotesk); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.ip-hero .ip-crumb-inline a { color: rgba(255,255,255,.7); }
.ip-hero .ip-crumb-inline a:hover { color: #fff; }
.ip-hero.cream .ip-crumb-inline a { color: var(--glec-teal); }
.ip-hero .ip-crumb-inline .sep { color: rgba(255,255,255,.4); }
.ip-hero.cream .ip-crumb-inline .sep { color: var(--glec-stone); }
.ip-hero .ip-crumb-inline .cur { color: rgba(255,255,255,.9); }
.ip-hero.cream .ip-crumb-inline .cur { color: var(--fg-muted); }

/* ---------- section rhythm ---------- */
.ip-sec { padding-block: 80px; }
.ip-sec.tight { padding-block: 56px; }
.ip-sec.alt { background: var(--glec-cream); border-block: 1px solid #ece8e0; }
.ip-shell { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px){ .ip-shell { padding: 0 22px; } }

/* ---------- editorial / legal prose ---------- */
.ip-prose { max-width: 760px; margin: 0 auto; }
.ip-prose.wide { max-width: 860px; }
.ip-prose h2 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(24px,2.8vw,34px); color: var(--glec-teal-deep); letter-spacing: -0.015em; line-height: 1.14; margin: 48px 0 16px; }
.ip-prose h2:first-child { margin-top: 0; }
.ip-prose h3 { font-family: var(--font-sans); font-weight: 800; font-size: 19px; color: var(--glec-teal-deep); margin: 30px 0 10px; }
.ip-prose p { font-size: 17px; line-height: 1.72; color: var(--fg); margin: 0 0 18px; }
.ip-prose p.lead-p { font-size: 19px; color: var(--glec-teal-deep); }
.ip-prose a:not(.btn) { color: var(--glec-teal); border-bottom: 1px solid var(--glec-teal-40); }
.ip-prose a:not(.btn):hover { border-bottom-color: var(--glec-teal); }
.ip-prose ul, .ip-prose ol { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 12px; }
.ip-prose ul li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.6; color: var(--fg); }
.ip-prose ul li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 13px; height: 7px; border-left: 2px solid var(--glec-teal); border-bottom: 2px solid var(--glec-teal); transform: rotate(-45deg); }
.ip-prose ol { counter-reset: ipo; }
.ip-prose ol li { position: relative; padding-left: 44px; font-size: 16.5px; line-height: 1.6; color: var(--fg); min-height: 30px; }
.ip-prose ol li::before { counter-increment: ipo; content: counter(ipo); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--glec-teal-20); color: var(--glec-teal); font-family: var(--font-sans); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ip-prose .fine { font-size: 13.5px; color: var(--fg-subtle); line-height: 1.6; }
.ip-prose .updated { font-family: var(--font-grotesk); font-size: 13px; letter-spacing: 0.04em; color: var(--fg-subtle); margin-bottom: 36px; }

/* ---------- callout notes ---------- */
.ip-note { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--glec-teal); border-radius: 4px; padding: 22px 26px; margin: 28px 0; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; }
.ip-note i, .ip-note svg { color: var(--glec-teal); font-size: 24px; width: 24px; height: 24px; flex: none; margin-top: 1px; }
.ip-note.warn { border-left-color: var(--glec-clay); }
.ip-note.warn i, .ip-note.warn svg { color: var(--glec-clay); }
.ip-note h4 { font-family: var(--font-sans); font-weight: 800; font-size: 16px; color: var(--glec-teal-deep); margin: 0 0 5px; }
.ip-note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-muted); }
.ip-note p a { color: var(--glec-teal); border-bottom: 1px solid var(--glec-teal-40); }

/* ---------- forms ---------- */
.ip-formwrap { max-width: 820px; margin: 0 auto; }
.ip-form { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 40px; box-shadow: var(--shadow-card); }
@media (max-width: 640px){ .ip-form { padding: 26px 22px; } }
.ip-form .grp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.ip-form .grp.three { grid-template-columns: 1fr 1fr 1fr; }
.ip-form .field.full { grid-column: 1 / -1; }
.ip-form .field { display: flex; flex-direction: column; margin-bottom: 20px; }
.ip-form .grp .field { margin-bottom: 0; }
.ip-form label { font-family: var(--font-grotesk); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glec-teal-deep); margin-bottom: 8px; }
.ip-form label .req { color: var(--glec-clay); margin-left: 2px; }
.ip-form input, .ip-form select, .ip-form textarea { font-family: var(--font-sans); font-size: 15.5px; color: var(--fg); background: var(--glec-paper); border: 1px solid var(--border-strong, #d8d9d4); border-radius: 4px; padding: 12px 14px; transition: border-color 150ms ease, box-shadow 150ms ease; width: 100%; }
.ip-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.ip-form input:focus, .ip-form select:focus, .ip-form textarea:focus { outline: none; border-color: var(--glec-teal-mid); box-shadow: 0 0 0 3px var(--glec-teal-20); }
.ip-form .hint { font-size: 12.5px; color: var(--fg-subtle); margin-top: 6px; }
.ip-form .check { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.ip-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--glec-teal); }
.ip-form .check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--font-sans); font-size: 14px; color: var(--fg-muted); margin: 0; line-height: 1.55; }
.ip-form .actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ip-form .actions .privacy { font-size: 13px; color: var(--fg-subtle); }
.ip-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.ip-form legend { font-family: var(--font-sans); font-weight: 800; font-size: 18px; color: var(--glec-teal-deep); padding: 0; margin-bottom: 4px; }
.ip-form .legend-sub { font-size: 14px; color: var(--fg-muted); margin: 0 0 20px; }
.ip-form .divider { height: 1px; background: var(--border); margin: 30px 0; }

/* form success state */
.ip-success { display: none; text-align: center; padding: 24px 10px; }
.ip-success.show { display: block; }
.ip-form.hide { display: none; }
.ip-success .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--glec-teal-20); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.ip-success .ico i, .ip-success .ico svg { color: var(--glec-teal); font-size: 40px; width: 40px; height: 40px; }
.ip-success h3 { font-family: var(--font-sans); font-weight: 900; font-size: 26px; color: var(--glec-teal-deep); margin-bottom: 12px; }
.ip-success p { color: var(--fg-muted); font-size: 16.5px; max-width: 46ch; margin: 0 auto 8px; }
.ip-success .phone { margin-top: 18px; font-family: var(--font-grotesk); font-size: 14px; letter-spacing: 0.06em; color: var(--fg-muted); }
.ip-success .phone strong { color: var(--glec-teal); font-weight: 700; }
.ip-success [data-soft-note][hidden] { display: none; }

/* form submitting / failed states */
.ip-form .actions button:disabled { opacity: .6; cursor: default; }
.ip-form-error {
  margin: 22px 0 0; padding: 14px 16px;
  background: #fbf2f0; border: 1px solid var(--glec-danger); border-left-width: 3px; border-radius: 4px;
  font-family: var(--font-grotesk); font-size: 14px; line-height: 1.55; color: var(--fg);
}
.ip-form-error[hidden] { display: none; }
.ip-form-error:focus-visible { outline: 2px solid var(--glec-teal-mid); outline-offset: 2px; }

/* Shown only when JavaScript is off — the forms post via fetch, so without it
   there is nothing to submit to and the patient needs the phone number. */
.ip-noscript {
  max-width: 820px; margin: 0 auto 24px; padding: 16px 18px;
  background: var(--glec-cream); border: 1px solid var(--border); border-left: 3px solid var(--glec-warning); border-radius: 4px;
  font-family: var(--font-grotesk); font-size: 14.5px; line-height: 1.6; color: var(--fg-muted);
}
.ip-noscript a { color: var(--glec-teal); }

/* Spam honeypot. Hidden from sight, from assistive tech (aria-hidden in the
   markup) and from the tab order (tabindex="-1"), but still in the DOM for
   bots to fill — a non-empty value is how the endpoint spots them. */
.ip-form .decoy {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Turnstile mount point. forms.mjs creates the widget inside the SUBMIT path, so
   this container is genuinely empty until the patient presses the button — it
   collapses to nothing until then and costs no space in the resting form.

   No height is reserved, deliberately: the widget appears in response to the
   click, and layout shifts within 500ms of a user interaction are excluded from
   CLS. Reserving 65px would cost every visitor a permanent gap to protect a
   metric that already ignores this case. */
.ip-form .ip-verify:empty { display: none; }
.ip-form .ip-verify { margin: 0 0 18px; }
.ip-form .ip-verify:focus-visible { outline: 2px solid var(--glec-teal-mid); outline-offset: 4px; }

/* ---------- contact cards ---------- */
.ip-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .ip-contact-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.ip-ccard { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 30px; box-shadow: var(--shadow-card); }
.ip-ccard .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--glec-teal-20); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ip-ccard .ic i, .ip-ccard .ic svg { color: var(--glec-teal); font-size: 26px; width: 26px; height: 26px; }
.ip-ccard h3 { font-family: var(--font-sans); font-weight: 800; font-size: 19px; color: var(--glec-teal-deep); margin-bottom: 8px; }
.ip-ccard p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; margin: 0 0 4px; }
.ip-ccard a:not(.btn) { color: var(--glec-teal); font-weight: 700; }
.ip-ccard .big { font-family: var(--font-sans); font-weight: 900; font-size: 22px; color: var(--glec-teal); letter-spacing: -0.01em; }

/* location contact rows */
.ip-loc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 780px){ .ip-loc-grid { grid-template-columns: 1fr; } }
.ip-loc { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 26px 28px; box-shadow: var(--shadow-card); display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.ip-loc .n { font-family: var(--font-grotesk); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glec-teal); margin-bottom: 8px; }
.ip-loc h3 { font-family: var(--font-sans); font-weight: 800; font-size: 20px; color: var(--glec-teal-deep); margin-bottom: 10px; }
.ip-loc .addr { color: var(--fg-muted); font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.ip-loc .tel { font-family: var(--font-sans); font-weight: 800; font-size: 17px; color: var(--glec-teal); }
.ip-loc .flag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glec-clay); margin-bottom: 6px; }
.ip-loc .dir { flex: none; }
.ip-loc .dir a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glec-teal-40); display: flex; align-items: center; justify-content: center; color: var(--glec-teal); transition: background 160ms ease, color 160ms ease; }
.ip-loc .dir a:hover { background: var(--glec-teal); color: #fff; }
.ip-loc .dir i, .ip-loc .dir svg { font-size: 20px; width: 20px; height: 20px; }

/* two-column: form + sidebar */
.ip-split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; max-width: 1120px; margin: 0 auto; }
@media (max-width: 940px){ .ip-split { grid-template-columns: 1fr; gap: 32px; } }
.ip-side { display: grid; gap: 20px; position: sticky; top: 96px; }
@media (max-width: 940px){ .ip-side { position: static; } }
.ip-side .box { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 26px; box-shadow: var(--shadow-card); }
.ip-side .box.teal { background: var(--glec-teal-deep); border-color: transparent; }
.ip-side h4 { font-family: var(--font-grotesk); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glec-teal); margin: 0 0 14px; }
.ip-side .box.teal h4 { color: var(--glec-clay); }
.ip-side .box.teal p, .ip-side .box.teal a { color: rgba(255,255,255,.88); }
.ip-side .row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ip-side .row:last-child { border-bottom: 0; padding-bottom: 0; }
.ip-side .row i, .ip-side .row svg { color: var(--glec-teal); font-size: 20px; width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ip-side .row .k { font-family: var(--font-grotesk); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); }
.ip-side .row .v { font-size: 15px; color: var(--fg); font-weight: 600; }
.ip-side .row .v a { color: var(--glec-teal); }

/* buttons keep their own colors even inside color-setting containers */
.ip-ccard .btn-primary, .ip-prose .btn-primary, .ip-cta .btn-primary { color: #fff; }
.ip-ccard .btn-secondary, .ip-prose .btn-secondary { color: var(--glec-teal); }

/* on dark teal bands, primary hover must lighten (teal-deep matches the bg) */
.ip-hero .btn-primary:hover, .ip-cta:not(.cream) .btn-primary:hover { background: var(--glec-teal-soft); color: var(--glec-teal-deep); }

/* ---------- FAQ ---------- */
.ip-faq { max-width: 760px; margin: 0 auto; }
.ip-faq details { border-bottom: 1px solid var(--border); }
.ip-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-sans); font-weight: 700; font-size: 17.5px; color: var(--glec-teal-deep); }
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary .pm { flex: none; width: 24px; height: 24px; position: relative; }
.ip-faq summary .pm::before, .ip-faq summary .pm::after { content: ""; position: absolute; background: var(--glec-teal); border-radius: 2px; }
.ip-faq summary .pm::before { top: 11px; left: 3px; width: 18px; height: 2px; }
.ip-faq summary .pm::after { top: 2px; left: 11px; width: 2px; height: 20px; transition: opacity 200ms ease; }
.ip-faq details[open] summary .pm::after { opacity: 0; }
.ip-faq details p { margin: 0 0 20px; color: var(--fg-muted); font-size: 16px; line-height: 1.65; }

/* ---------- section heading ---------- */
.ip-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.ip-head.left { margin-inline: 0; text-align: left; }
.ip-head .eyebrow { color: var(--glec-teal); }
.ip-head h2 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(26px,3.2vw,40px); color: var(--glec-teal-deep); letter-spacing: -0.015em; line-height: 1.1; }
.ip-head p { color: var(--fg-muted); font-size: 17px; margin-top: 14px; }

/* ---------- CTA band ---------- */
.ip-cta { background: var(--glec-teal-deep); color: #fff; padding-block: 76px; text-align: center; }
.ip-cta.cream { background: var(--glec-cream); color: var(--fg); border-top: 1px solid #ece8e0; }
.ip-cta .inner { max-width: 640px; margin: 0 auto; }
.ip-cta h2 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(26px,3.2vw,42px); color: #fff; letter-spacing: -0.015em; margin-bottom: 14px; }
.ip-cta.cream h2 { color: var(--glec-teal-deep); }
.ip-cta p { color: rgba(255,255,255,.85); font-size: 17.5px; margin: 0 auto 28px; max-width: 46ch; }
.ip-cta.cream p { color: var(--fg-muted); }
.ip-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* header dropdown styles are defined in home.css (loaded first) */
.drop-menu .grp-label { font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); padding: 12px 14px 6px; }
