/* ============================================================
   O Eyecare — 2026 UI Renewal · "Services" (ourservice) page styles
   New file (never edit the shared oeyecare-2026.css). Loaded in
   addition to the base design system by layout_services.jsp.
   Design source: _delivery/ui_kits/website/services.html · services-page.jsx
   ============================================================ */

/* ------------------------------------------------------------
   Solid header over the dark hero (design: <OEHeader solid />).
   Same technique as doctor/insurance: replicate `.oe-header.is-solid`,
   scoped to the page body class, so shared header.jsp / base CSS stay untouched.
   ------------------------------------------------------------ */
.oe-svc-page .oe-header {
  background: rgba(246, 241, 233, .92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.oe-svc-page .oe-header .oe-nav__link,
.oe-svc-page .oe-header .oe-nav__caret,
.oe-svc-page .oe-header .oe-header__phone,
.oe-svc-page .oe-header .oe-lang__toggle,
.oe-svc-page .oe-header .oe-header__burger {
  color: var(--ink-900);
}
.oe-svc-page .oe-header .oe-brand__tag { color: var(--text-muted); }
.oe-svc-page .oe-header .oe-brand__logo--white { display: none; }
.oe-svc-page .oe-header .oe-brand__logo--ink { display: block; }
.oe-svc-page .oe-header .oe-header__book { color: var(--ink-900); border-color: var(--ink-900); }
.oe-svc-page .oe-header .oe-header__book:hover { background: var(--ink-900); color: #fff; }

/* ------------------------------------------------------------
   Hero — dark banner image + gradient
   ------------------------------------------------------------ */
.oe-svc-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
}
.oe-svc-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}
.oe-svc-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,.4) 0%, rgba(20,16,12,.2) 45%, rgba(20,16,12,.62) 100%);
}
.oe-svc-hero__inner {
  position: relative;
  padding-top: 128px;
  padding-bottom: 96px;
  max-width: 900px;
}
.oe-svc-hero__eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
}
.oe-svc-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}
.oe-svc-hero__lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  margin: 24px 0 0;
  max-width: 620px;
}

/* ------------------------------------------------------------
   Services grid — expandable cards (3-up)
   ------------------------------------------------------------ */
.oe-svc-section {
  background: var(--surface-card);
  padding: 72px 0;
}
.oe-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.oe-svc-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.oe-svc-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  min-height: 240px;
  overflow: hidden;
  background: var(--paper-400);
}
.oe-svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.oe-svc-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.oe-svc-card__title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 14px;
  min-height: 42px;
  display: flex;
  align-items: flex-start;
}
.oe-svc-card__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}
/* collapsed: hide the "more" tail + show ellipsis; expanded: reverse */
.oe-svc-card__more { display: none; }
.oe-svc-card.is-open .oe-svc-card__more { display: inline; }
.oe-svc-card.is-open .oe-svc-card__ellipsis { display: none; }
.oe-svc-card__toggle {
  align-self: flex-start;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-500);
}
.oe-svc-card__toggle svg { transition: transform var(--dur) var(--ease-out); }
.oe-svc-card.is-open .oe-svc-card__toggle svg { transform: rotate(45deg); }

/* ------------------------------------------------------------
   Closing CTA band (dark)
   ------------------------------------------------------------ */
.oe-svc-cta {
  background: var(--ink-900);
  color: #fff;
  padding: 80px 0;
}
.oe-svc-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.oe-svc-cta__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.oe-svc-cta__sub {
  font-family: var(--font-body);
  font-size: 17px;
  opacity: .82;
  margin-top: 12px;
}

/* ------------------------------------------------------------
   Responsive ( <= 760px ) — mirrors services.html mobile rules
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  .oe-svc-hero__inner { padding-top: 118px; }
  .oe-svc-hero__title { font-size: 36px; }
  .oe-svc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .oe-svc-cta__title { font-size: 30px; }
}
