/*
Theme Name: Eye Doctor
Template: devq-starter
Author: Josh Yager
Author URI: https://thedevq.com/
Description: Reusable bespoke ophthalmology child theme for DevQ eye-care clients — photography-forward, appointment-driven, built on DevQ Starter. Clone per practice and recolor to the client palette. Site #1: Liberty Ophthalmology.
Version: 1.0.0
*/

/* ==========================================================================
   EYE DOCTOR — DESIGN SYSTEM FOUNDATION
   Bones replicate eyecenterofny.com; palette/type are token-driven so each
   cloned client site overrides only the tokens. Liberty palette below.
   --primary / --secondary / --tertiary / --font1 / --font2 come from DevQ
   theme settings (ACF options); the extra tokens here layer on top.
   ========================================================================== */
:root {
    --ed-navy: var(--primary, #16324F);
    --ed-navy-deep: #0E2338;          /* footer / heavy overlays */
    --ed-slate: var(--secondary, #5B6B7A);
    --ed-sky: var(--tertiary, #3E9BC4);
    --ed-sky-dark: #2E7DA0;
    --ed-gold: #FFAF3C;               /* MOE warm accent (eyebrows, highlights) */
    --ed-gold-deep: #E0912A;
    --ed-surface: #F7F9FA;
    --ed-line: rgba(22, 50, 79, 0.12);
    --ed-body-ink: #33414D;
    --ed-shadow: 0 24px 60px -30px rgba(14, 35, 56, 0.45);

    --ed-display: 48px;   /* hero */
    --ed-h2: 40px;
    --ed-h3: 28px;
    --ed-h4: 22px;

    --ed-maxw: 1450px;
}

/* ---- Typography ---------------------------------------------------------- */
body {
    font-family: var(--font2, 'Figtree', sans-serif);
    color: var(--ed-body-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Text selection: brand navy background, white text (readable highlight) */
::selection { background: var(--ed-navy, #16324F); color: #fff; }
::-moz-selection { background: var(--ed-navy, #16324F); color: #fff; }

h1, h2, h3, h4, h5, h6,
.ed-display {
    font-family: var(--font1, 'Poppins', sans-serif);
    color: var(--ed-navy);
    letter-spacing: 0.01em;
}

.ed-display { font-size: var(--ed-display); line-height: 1.08; font-weight: 600; margin: 0 0 20px; }
.ed-h2      { font-size: var(--ed-h2); line-height: 1.14; font-weight: 600; margin: 0 0 18px; }
.ed-h3      { font-size: var(--ed-h3); line-height: 1.2; font-weight: 600; margin: 0 0 14px; }

.ed-lead { font-size: 20px; line-height: 1.6; color: var(--ed-slate); }
.ed-body { font-size: 18px; line-height: 1.68; }
.ed-body p:last-child { margin-bottom: 0; }

/* Eyebrow / topper — sky, uppercase, tracked (reference's orange, recolored) */
.ed-eyebrow {
    display: inline-block;
    font-family: var(--font1, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ed-gold);
    margin: 0 0 14px;
}

/* ---- Layout helpers ------------------------------------------------------ */
.ed-wrap { width: 100%; max-width: var(--ed-maxw); margin: 0 auto; padding: 0 32px; }
.ed-section { padding: 96px 0; }
.ed-section--tight { padding: 64px 0; }
.ed-on-navy  { background: var(--ed-navy); color: #fff; }
.ed-on-navy h1, .ed-on-navy h2, .ed-on-navy h3, .ed-on-navy h4 { color: #fff; }
.ed-on-navy .ed-lead { color: rgba(255,255,255,0.82); }
.ed-on-surface { background: var(--ed-surface); }

/* ---- Buttons ------------------------------------------------------------- */
.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font1, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 16px 34px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ed-btn:hover { transform: translateY(-2px); }
.ed-btn--navy   { background: var(--ed-navy); color: #fff; }
.ed-btn--navy:hover { background: var(--ed-navy-deep); color: #fff; }
.ed-btn--sky    { background: var(--ed-sky); color: #fff; }
.ed-btn--sky:hover { background: var(--ed-sky-dark); color: #fff; }
.ed-btn--ghost  { background: transparent; color: var(--ed-navy); border-color: var(--ed-line); }
.ed-btn--ghost:hover { border-color: var(--ed-navy); color: var(--ed-navy); }
.ed-btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.ed-btn--ghost-white:hover { background: #fff; color: var(--ed-navy); border-color:#fff; }

/* Circular play button (reference "Play Overview Video") */
.ed-play {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    font-family: var(--font1, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ed-play__ring {
    flex: 0 0 auto;
    width: 74px; height: 74px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: grid; place-items: center;
    transition: background .2s ease, color .2s ease;
}
.ed-play__ring svg { width: 20px; height: 20px; margin-left: 3px; }
.ed-play:hover .ed-play__ring { background: var(--ed-sky); border-color: var(--ed-sky); color:#fff; }

/* Diagonal-line texture accent (reference's engraved corner graphic) */
.ed-texture {
    background-image: repeating-linear-gradient(-45deg, var(--ed-line) 0 1px, transparent 1px 9px);
}

/* ---- Responsive type ----------------------------------------------------- */
@media (max-width: 1199px) {
    :root { --ed-display: 40px; --ed-h2: 34px; --ed-h3: 26px; }
    .ed-section { padding: 76px 0; }
}
@media (max-width: 767px) {
    :root { --ed-display: 32px; --ed-h2: 27px; --ed-h3: 23px; }
    .ed-wrap { padding: 0 20px; }
    .ed-section { padding: 56px 0; }
    .ed-lead { font-size: 18px; }
}

/* ==========================================================================
   SINGLE DOCTOR — editorial provider profile
   Immersive navy hero (philosophy = thesis) merges into the header · light
   credential spec strip · bio column. Scoped under .single-doctor / .sd-*.
   ========================================================================== */

/* ---- Hero: immersive navy panel (bleeds under the navy header) ------------ */
.sd-hero { position: relative; overflow: hidden; padding: 100px 0 108px; }
.sd-hero__tex {
    position: absolute; top: 0; right: 0; z-index: 0; width: 48%; height: 100%; pointer-events: none;
    background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 12px);
    -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 92%);
            mask-image: linear-gradient(to left, #000 15%, transparent 92%);
}
.sd-hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 76px; align-items: center;
}
.sd-name { font-size: 56px; line-height: 1.04; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 16px; }
.sd-hero.ed-on-navy .sd-cred {
    font-family: var(--font1, 'Poppins', sans-serif); font-weight: 600; font-size: 16px;
    letter-spacing: 0.02em; color: rgba(255,255,255,0.72); margin: 0 0 30px;
}
.sd-quote { margin: 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--ed-sky); }
.sd-quote p { font-family: var(--font1, 'Poppins', sans-serif); font-weight: 400; font-size: 21px; line-height: 1.62; margin: 0; }
.sd-hero.ed-on-navy .sd-quote p { color: rgba(255,255,255,0.9); }

.sd-hero__portrait { position: relative; }
.sd-hero__portrait::before {
    content: ""; position: absolute; z-index: 0;
    left: -16px; bottom: -16px; width: 84%; height: 84%; max-width: 360px;
    border: 2px solid var(--ed-sky); border-radius: 200px 200px 20px 20px; opacity: 0.55;
}
.sd-arc {
    position: relative; z-index: 1;
    aspect-ratio: 4 / 5; overflow: hidden; background: var(--ed-navy-deep);
    border-radius: 220px 220px 20px 20px; box-shadow: 0 40px 84px -30px rgba(0,0,0,0.55);
}
.sd-arc img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }

/* ---- Credential ledger (light spec strip, clinical-chart vernacular) ------ */
.sd-ledger { padding: 54px 0; }
.sd-ledger__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sd-ledger__cell { padding: 2px 34px; border-left: 1px solid var(--ed-line); }
.sd-ledger__cell:first-child { padding-left: 0; border-left: none; }
.sd-ledger__val { font-family: var(--font1, 'Poppins', sans-serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--ed-navy); margin: 0 0 7px; }
.sd-ledger__label { font-family: var(--font2, 'Figtree', sans-serif); font-size: 14.5px; line-height: 1.4; color: var(--ed-slate); margin: 0; }
.sd-ledger__foot { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--ed-line); font-family: var(--font2, 'Figtree', sans-serif); font-size: 14.5px; letter-spacing: 0.01em; color: var(--ed-slate); }

/* ---- Profile body: bio (left) + credentials / memberships / affiliations - */
.sd-profile { background: #fff; padding: 72px 0 40px; }
.sd-profile__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 420px); gap: 64px; align-items: start; }
.sd-profile__grid--full { grid-template-columns: minmax(0, 820px); }
.sd-profile__main .ed-eyebrow { display: block; margin-bottom: 20px; }
.sd-bio__body { font-family: var(--font2, 'Figtree', sans-serif); font-size: 18px; line-height: 1.72; color: var(--ed-body-ink); }
.sd-bio__body p { margin: 0 0 1.15em; }
.sd-bio__body p:last-child { margin-bottom: 0; }
.sd-bio__body > p:first-child { font-size: 21px; line-height: 1.62; color: var(--ed-navy); margin-bottom: 1.1em; }

/* Right sidebar */
.sd-profile__aside { position: sticky; top: 96px; background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: 18px; padding: 30px 30px 8px; }
.sd-aside__stats { display: grid; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--ed-line); }
.sd-aside__stat-val { display: block; font-family: var(--font1, 'Poppins', sans-serif); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--ed-navy); }
.sd-aside__stat-label { display: block; font-size: 14px; color: var(--ed-slate); margin-top: 3px; }
.sd-aside__group { margin-bottom: 26px; }
.sd-aside__title { font-family: var(--font1, 'Poppins', sans-serif); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ed-sky); margin: 0 0 12px; }
.sd-aside__list { list-style: none; margin: 0; padding: 0; }
.sd-aside__list li { position: relative; padding-left: 22px; margin: 0 0 10px; font-family: var(--font2, 'Figtree', sans-serif); font-size: 15.5px; line-height: 1.5; color: var(--ed-navy); }
.sd-aside__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ed-sky); }
.sd-aside__list li:last-child { margin-bottom: 0; }
.sd-aside__foot { font-size: 13.5px; color: var(--ed-slate); margin: 6px 0 22px; }

/* ---- Gallery (full-width, click to expand) ------------------------------- */
.sd-gallery { background: #fff; padding: 44px 0 88px; }
.sd-gallery__eyebrow { display: block; margin-bottom: 22px; }
.sd-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.sd-gallery__item { position: relative; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.sd-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.sd-gallery__item:hover img, .sd-gallery__item:focus-visible img { transform: scale(1.06); }
.sd-gallery__zoom { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, rgba(14, 35, 56, 0) 45%, rgba(14, 35, 56, 0.38)); opacity: 0; transition: opacity 0.3s ease; }
.sd-gallery__zoom svg { width: 34px; height: 34px; }
.sd-gallery__item:hover .sd-gallery__zoom, .sd-gallery__item:focus-visible .sd-gallery__zoom { opacity: 1; }

/* ---- Lightbox ------------------------------------------------------------ */
html.ed-lightbox-lock { overflow: hidden; }
.ed-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(9, 22, 36, 0.92); padding: 5vh 4vw; }
.ed-lightbox.is-open { display: flex; }
.ed-lightbox__stage { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ed-lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.ed-lightbox__cap { color: rgba(255, 255, 255, 0.8); font-family: var(--font2, 'Figtree', sans-serif); font-size: 14.5px; text-align: center; }
.ed-lightbox__close, .ed-lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease; }
.ed-lightbox__close svg, .ed-lightbox__nav svg { width: 24px; height: 24px; }
.ed-lightbox__close:hover, .ed-lightbox__nav:hover { background: var(--ed-sky); }
.ed-lightbox__close { top: 22px; right: 26px; }
.ed-lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ed-lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.ed-lightbox__nav[hidden] { display: none; }

/* ---- Quality floor ------------------------------------------------------- */
.single-doctor a:focus-visible { outline: 2px solid var(--ed-sky); outline-offset: 3px; border-radius: 4px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 991px) {
    .sd-hero { padding: 76px 0 84px; }
    .sd-hero__tex { display: none; }
    .sd-hero__grid { grid-template-columns: 1fr; row-gap: 40px; justify-items: start; }
    .sd-hero__portrait { order: -1; }
    .sd-arc { max-width: 300px; }
    .sd-hero__portrait::before { max-width: 300px; }
    .sd-name { font-size: 44px; }
    .sd-ledger__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
    .sd-ledger__cell:nth-child(3) { padding-left: 0; border-left: none; }
    .sd-profile { padding: 56px 0 28px; }
    .sd-profile__grid { grid-template-columns: 1fr; gap: 44px; }
    .sd-profile__aside { position: static; }
}
@media (max-width: 767px) {
    .sd-hero { padding: 56px 0 64px; }
    .sd-name { font-size: 34px; }
    .sd-hero.ed-on-navy .sd-cred { margin-bottom: 24px; }
    .sd-quote p { font-size: 19px; line-height: 1.56; }
    .sd-ledger { padding: 44px 0; }
    .sd-ledger__val { font-size: 26px; }
    .sd-bio__body { font-size: 17px; }
    .sd-bio__body > p:first-child { font-size: 19px; }
    .sd-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ed-lightbox__nav { width: 44px; height: 44px; }
    .ed-lightbox__nav--prev { left: 8px; }
    .ed-lightbox__nav--next { right: 8px; }
    .ed-lightbox__close { top: 14px; right: 14px; }
}

/* ---- iHealthSpot online form embed (interim, [ihealthspot_form]) ---------- */
.ihs-form-embed { max-width: 900px; margin: 0 auto; padding: 64px 20px; }
.ihs-form-embed iframe { width: 100% !important; border: 0; display: block; }

/* ---- Appointment page (124): "urgent problem" notice banner --------------- */
.page-id-124 .banner-bg-secondary .banner-inner { justify-content: center; }
.page-id-124 .banner-bg-secondary .banner-content {
    flex-direction: column; align-items: center; text-align: center; max-width: 940px; margin: 0 auto;
}
.page-id-124 .banner-bg-secondary .banner-text { line-height: 1.55; }
/* Number is already in the notice copy, so drop the redundant call button. */
.page-id-124 .banner-bg-secondary .banner-link { display: none; }

