/* ==========================================================================
   DEKA — Pages stylesheet
   Additive styles for non-home pages (page-hero, shop, contact, etc).
   Loaded AFTER home.css so it can layer on top without ever overwriting
   home.css. New page/section styles should go HERE, not in home.css.
   ========================================================================== */

/* ==========================================================================
   PAGE HERO — reusable heading section for simpler pages (shop, contact, …).
   Dark navy base with optional background photo + gradient overlay, so the
   fixed nav (white logo/links at the top state) is always legible over it.
   White heading + lavender (sapphire-soft) accent; centered.

   Markup (photo optional):
     <section class="page-hero">
       <div class="page-hero__bg">
         <img src="…" alt="" loading="eager">  <!-- optional -->
         <div class="page-hero__overlay"></div>
       </div>
       <div class="container"><div class="page-hero__inner">
         <span class="kicker">Eyebrow</span>
         <h1>Big heading <em>with accent.</em></h1>
         <p class="page-hero__lede">Optional intro line.</p>
       </div></div>
     </section>
   ========================================================================== */
.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(160px, 20vh, 240px) 0 clamp(72px, 9vh, 120px);
    min-height: 45dvh;
    background: var(--deka-ink); color: var(--deka-ivory);
    text-align: center;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.page-hero__overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 78% 40%, rgba(43, 82, 159, 0.45), transparent 60%),
        linear-gradient(180deg, rgba(4, 5, 65, 0.85) 0%, rgba(4, 5, 65, 0.62) 40%, rgba(4, 5, 65, 0.96) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__inner {
    max-width: 64ch; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
}
.page-hero .kicker {
    font-family: var(--deka-mono);
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--deka-sapphire-soft); font-weight: 500;
    display: inline-flex; align-items: center; gap: 10px;
}
.page-hero .kicker::before,
.page-hero .kicker::after { content: ''; width: 24px; height: 1px; background: var(--deka-sapphire-soft); }
/* Display style sits on a class, not on `h1`, so the eyebrow and the display
   line can swap semantic roles (h1 ↔ p / h2) without changing the look. */
.page-hero__title {
    margin: 20px 0 0;
    font-family: var(--deka-sans); font-weight: 600;
    font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.025em;
    color: var(--deka-ivory); text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.page-hero__title em {
    font-family: var(--deka-serif); font-style: italic; font-weight: 400;
    color: var(--deka-sapphire-soft);
}
.page-hero__lede {
    margin-top: 20px; max-width: 56ch;
    font-size: 16.5px; line-height: 1.65;
    color: rgba(245, 244, 239, 0.82);
}

/* ==========================================================================
   SHOP — page-hero + product grid (.svc cards) + category filter chips.
   The product cards reuse the global .svc / .svc-grid styles from home.css.
   ========================================================================== */
.shop-content { padding: clamp(56px, 7vh, 96px) 0 clamp(80px, 10vh, 140px); background: var(--deka-ivory); }
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 48px; }
.shop-filter {
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--deka-rule);
    background: transparent; color: var(--deka-ink);
    font-family: var(--deka-mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.shop-filter:hover { border-color: var(--deka-sapphire); color: var(--deka-sapphire); }
.shop-filter.active { background: var(--deka-ink); color: var(--deka-ivory); border-color: var(--deka-ink); }

/* ==========================================================================
   CONTACT — info + form two-column block paired with .page-hero.
   ========================================================================== */
.contact-section { padding: clamp(72px, 9vh, 120px) 0 clamp(100px, 12vh, 160px); background: var(--deka-ivory); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h3 {
    font-family: var(--deka-serif); font-weight: 400;
    font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.01em;
    color: var(--deka-ink); margin-bottom: 14px;
}
.contact-info__lede { font-size: 16px; color: var(--hm-muted); line-height: 1.6; margin-bottom: 28px; max-width: 40ch; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li {
    display: grid; grid-template-columns: 96px 1fr; gap: 16px;
    padding-bottom: 16px; border-bottom: 1px solid var(--deka-rule);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list__label {
    font-family: var(--deka-mono); font-size: 10.5px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--hm-muted-2); align-self: center;
}
.contact-list a { color: var(--deka-ink); transition: color .2s ease; }
.contact-list a:hover { color: var(--deka-sapphire); }

.contact-form {
    background: #fff; border: 1px solid var(--deka-rule); border-radius: 22px; padding: 32px;
    box-shadow: 0 30px 70px -40px rgba(4, 5, 65, 0.25);
}

/* ==========================================================================
   ENDORSEMENTS — grid of clinician cards (portrait + name + title + quote).
   ========================================================================== */
.endorsements-section { padding: clamp(72px, 9vh, 120px) 0 clamp(100px, 12vh, 160px); background: var(--deka-ivory); }
.endorsements-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    margin-top: clamp(40px, 5vh, 64px);
}
@media (max-width: 880px) { .endorsements-grid { grid-template-columns: 1fr; gap: 18px; } }

.endorsement {
    background: #fff; border: 1px solid var(--deka-rule); border-radius: 22px;
    padding: 32px;
    display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start;
    transition: box-shadow .3s ease, transform .3s ease;
}
.endorsement:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -32px rgba(4, 5, 65, 0.18); }
@media (max-width: 640px) { .endorsement { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }

.endorsement__portrait {
    width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
    background: var(--deka-bone-2);
    border: 1px solid var(--deka-rule);
}
.endorsement__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .endorsement__portrait { width: 96px; height: 96px; } }

.endorsement__body p.q {
    font-family: var(--deka-serif); font-weight: 300; font-style: italic;
    font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5;
    color: var(--deka-ink); margin: 0 0 18px;
}
.endorsement__name {
    font-family: var(--deka-serif); font-weight: 400; font-size: 19px;
    letter-spacing: -0.01em; color: var(--deka-ink); margin: 0;
}
.endorsement__title {
    font-family: var(--deka-mono); font-size: 10.5px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--hm-muted-2); margin-top: 6px;
}

/* ==========================================================================
   COMPANY PROFILE — alternating two-column narrative sections.
   ========================================================================== */
.company-profile { padding: clamp(72px, 9vh, 120px) 0 clamp(100px, 12vh, 160px); background: var(--deka-ivory); }
.cp-section + .cp-section { margin-top: clamp(64px, 8vh, 112px); }
.cp-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px);
    align-items: center;
}
.cp-section--reverse .cp-section__media { order: 2; }
.cp-section--text-only { grid-template-columns: 1fr; max-width: 64ch; margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 880px) {
    .cp-section, .cp-section--reverse { grid-template-columns: 1fr; gap: 32px; }
    .cp-section--reverse .cp-section__media { order: 0; }
}

.cp-section__kicker {
    font-family: var(--deka-mono); font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--deka-sapphire); font-weight: 500;
    display: inline-block; margin-bottom: 14px;
}
.cp-section__heading {
    font-family: var(--deka-sans); font-weight: 600;
    font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
    color: var(--deka-ink); margin: 0 0 18px; text-wrap: balance;
}
.cp-section__heading em {
    font-family: var(--deka-serif); font-style: italic; font-weight: 400; color: var(--deka-sapphire);
}
.cp-section__lede {
    font-size: 16.5px; line-height: 1.7; color: var(--hm-muted); max-width: 56ch;
}
.cp-section__media img { width: 100%; height: auto; display: block; border-radius: 18px; }

/* ==========================================================================
   CP — split feature (image + narrative, alternating).
   ========================================================================== */
.cp-feature { padding: clamp(80px, 10vh, 140px) 0; background: var(--deka-ivory); }
.cp-feature__grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 5vw, 80px);
    align-items: center;
}
.cp-feature--reverse .cp-feature__media { order: 2; }
@media (max-width: 880px) {
    .cp-feature__grid { grid-template-columns: 1fr; gap: 32px; }
    .cp-feature--reverse .cp-feature__media { order: 0; }
}
.cp-feature__media img { width: 100%; height: auto; display: block; border-radius: 22px; }
.cp-feature__kicker {
    font-family: var(--deka-mono); font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--deka-sapphire); font-weight: 500;
    display: inline-block; margin-bottom: 16px;
}
.cp-feature__heading {
    font-family: var(--deka-sans); font-weight: 600;
    font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.025em;
    color: var(--deka-ink); margin: 0 0 18px; text-wrap: balance;
}
.cp-feature__heading em {
    font-family: var(--deka-serif); font-style: italic; font-weight: 400; color: var(--deka-sapphire);
}
.cp-feature__text { font-size: 16.5px; line-height: 1.7; color: var(--hm-muted); max-width: 56ch; }
.cp-feature__text + .cp-feature__text { margin-top: 16px; }

/* ==========================================================================
   CP — Technology, 3-up numbered feature cards.
   ========================================================================== */
.cp-tech { padding: clamp(80px, 10vh, 140px) 0; background: var(--deka-bone); }
.cp-tech-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: clamp(40px, 5vh, 64px);
}
@media (max-width: 880px) { .cp-tech-grid { grid-template-columns: 1fr; gap: 18px; } }

.cp-tech-card {
    padding: 36px 32px;
    background: #fff; border: 1px solid var(--deka-rule); border-radius: 22px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.cp-tech-card:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -32px rgba(4, 5, 65, 0.18); }
.cp-tech-card__num {
    font-family: var(--deka-serif); font-size: 64px; font-weight: 300; line-height: 1;
    color: var(--deka-sapphire); letter-spacing: -0.03em;
}
.cp-tech-card__name {
    margin-top: 18px;
    font-family: var(--deka-sans); font-weight: 600; font-size: 22px;
    color: var(--deka-ink); letter-spacing: -0.01em;
}
.cp-tech-card__text {
    margin-top: 10px; font-size: 14.5px; line-height: 1.65;
    color: var(--hm-muted); max-width: 38ch;
}

/* ==========================================================================
   CP — Conservation: dark aside (2-col text + pull-quote tile).
   ========================================================================== */
.cp-aside {
    padding: clamp(80px, 10vh, 140px) 0;
    background: var(--deka-ink); color: var(--deka-ivory);
}
.cp-aside__grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 880px) { .cp-aside__grid { grid-template-columns: 1fr; gap: 40px; } }
.cp-aside .kicker {
    font-family: var(--deka-mono); font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--deka-sapphire-soft); font-weight: 500;
    display: inline-block; margin-bottom: 16px;
}
.cp-aside h2 {
    font-family: var(--deka-sans); font-weight: 600;
    font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.025em;
    color: var(--deka-ivory); margin: 0 0 20px; text-wrap: balance;
}
.cp-aside h2 em {
    font-family: var(--deka-serif); font-style: italic; font-weight: 400; color: var(--deka-brass);
}
.cp-aside p {
    font-size: 16.5px; line-height: 1.7;
    color: rgba(245, 244, 239, 0.78); max-width: 52ch;
}
.cp-aside__quote {
    background: linear-gradient(160deg, rgba(43, 82, 159, 0.92), rgba(4, 5, 65, 0.95));
    border-radius: 22px; padding: 40px 36px;
    display: flex; flex-direction: column; gap: 16px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.cp-aside__quote .quote-mark {
    font-family: var(--deka-serif); font-style: italic; font-size: 80px;
    line-height: 0.5; color: var(--deka-brass);
}
.cp-aside__quote p {
    font-family: var(--deka-serif); font-style: italic; font-weight: 300;
    font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35;
    color: var(--deka-ivory); margin: 0; max-width: none;
}

/* ==========================================================================
   CP — Four pillars: glass cards on a sapphire→ink gradient band.
   Used by the Company Profile page below the hero.
   ========================================================================== */
.cp-pillars {
    padding: clamp(80px, 10vh, 140px) 0;
    /* Solid ink so the hero's bottom edge (ink at ~96% over the photo) fades
       seamlessly into this section — no visible color seam. */
    background: var(--deka-ink);
    color: var(--deka-ivory);
}
.cp-pillars__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1100px) { .cp-pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cp-pillars__grid { grid-template-columns: 1fr; } }

.cp-pillar {
    background: rgba(245, 244, 239, 0.06);
    border: 1px solid rgba(245, 244, 239, 0.16);
    border-radius: 22px; padding: 36px 30px;
    color: var(--deka-ivory);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.cp-pillar:hover {
    background: rgba(245, 244, 239, 0.10);
    border-color: rgba(245, 244, 239, 0.28);
    transform: translateY(-4px);
}
.cp-pillar__kicker {
    font-family: var(--deka-mono); font-size: 10.5px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--deka-sapphire-soft); font-weight: 500;
}
.cp-pillar__heading {
    margin: 14px 0 16px;
    font-family: var(--deka-serif); font-weight: 400;
    font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.01em;
    color: var(--deka-ivory);
}
.cp-pillar__heading em { font-style: italic; color: var(--deka-brass); }
.cp-pillar__text {
    margin: 0;
    font-size: 14.5px; line-height: 1.65;
    color: rgba(245, 244, 239, 0.82);
}

/* ==========================================================================
   UTILITY — centered content image. 95% / max 900px / auto-margined.
   Use on <img> or <figure>: <img class="image-center" src="..." alt="">
   ========================================================================== */
.image-center {
    display: block;
    width: 95%; max-width: 900px;
    height: auto;
    margin: clamp(40px, 5vh, 72px) auto;
}
.image-center > img { width: 100%; height: auto; display: block; }
