/* ============================================================
   OSVI Healthcare — Eye Care section
   Shares brand tokens with the rest of the site (magenta #8C3688).
   Loaded in addition to include/css/style.css on Eye Care pages only.
   ============================================================ */

:root{
  --ec-magenta: #8C3688;
  --ec-magenta-dark: #6E2A6C;
  --ec-ink: #2A2A2E;
  --ec-muted: #5B5B63;
  --ec-line: #E7E2EA;
  --ec-tint: #F7EFF8;
}

/* ---------- Breadcrumb ---------- */
.ec-breadcrumb{
  background: var(--ec-tint);
  border-bottom: 1px solid var(--ec-line);
  padding: 14px 0;
  font-size: 13.5px;
}
.ec-breadcrumb ol{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}
.ec-breadcrumb li{ display: flex; align-items: center; color: var(--ec-muted); }
.ec-breadcrumb li:not(:last-child)::after{
  content: "/";
  margin: 0 8px;
  color: #C9BDCC;
}
.ec-breadcrumb a{ color: var(--ec-magenta-dark); text-decoration: none; font-weight: 600; }
.ec-breadcrumb a:hover{ text-decoration: underline; }
.ec-breadcrumb li[aria-current="page"]{ color: var(--ec-ink); font-weight: 600; }

/* ---------- Hero ---------- */
.ec-hero{
  background: linear-gradient(135deg, var(--ec-magenta) 0%, var(--ec-magenta-dark) 100%);
  color: #fff;
  padding: 54px 0 60px;
}
.ec-hero .ec-eyebrow{
  display: inline-block;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ec-hero h1{
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}
.ec-hero p.ec-lead{
  color: #F1E3F3;
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 26px;
}
.ec-hero-ctas{ display: flex; flex-wrap: wrap; gap: 12px; }
.ec-hero-ctas a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.ec-hero-ctas a:hover{ transform: translateY(-1px); }
.ec-cta-primary{ background: #fff; color: var(--ec-magenta-dark); }
.ec-cta-secondary{ background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }

/* ---------- Section framing (reuses site's .content-container rhythm) ---------- */
.ec-section{ padding: 56px 0; }
.ec-section.ec-tint-bg{ background: var(--ec-tint); }
.ec-section-head{ max-width: 720px; margin: 0 0 34px; }
.ec-section-head h2{ font-size: 26px; margin-bottom: 10px; color: var(--ec-ink); }
.ec-section-head p{ color: var(--ec-muted); font-size: 15.5px; line-height: 1.7; margin: 0; }

/* ---------- Service / condition cards ---------- */
.ec-card-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 767px){ .ec-card-grid{ grid-template-columns: 1fr; } }

.ec-card{
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(139, 58, 150, 0.06);
}
.ec-card .ec-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  background: var(--ec-tint);
  color: var(--ec-magenta);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.ec-card h3{ font-size: 18px; margin-bottom: 8px; color: var(--ec-ink); }
.ec-card p{ color: var(--ec-muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 10px; }
.ec-card p:last-child{ margin-bottom: 0; }
.ec-card p strong{ color: var(--ec-ink); }

/* ---------- Hub grid (11 category cards) ---------- */
.ec-hub-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 991px){ .ec-hub-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .ec-hub-grid{ grid-template-columns: 1fr; } }

.ec-hub-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(139, 58, 150, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ec-hub-card:hover{
  transform: translateY(-3px);
  border-color: var(--ec-magenta);
  box-shadow: 0 14px 30px rgba(139, 58, 150, 0.14);
}
.ec-hub-card .ec-hub-icon{
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--ec-magenta);
}
.ec-hub-card .ec-hub-icon svg{ width: 100%; height: 100%; }
.ec-hub-card h3{ font-size: 17px; color: var(--ec-ink); margin-bottom: 8px; }
.ec-hub-card p{ color: var(--ec-muted); font-size: 14px; line-height: 1.65; margin: 0 0 14px; flex-grow: 1; }
.ec-hub-card .ec-learn-more{ color: var(--ec-magenta-dark); font-weight: 600; font-size: 13.5px; }
.ec-hub-card:hover .ec-learn-more{ text-decoration: underline; }

/* ---------- Patient journey (What to Expect) ---------- */
.ec-journey{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  counter-reset: ec-step;
}
.ec-journey li{
  list-style: none;
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  padding: 20px 18px;
  position: relative;
}
.ec-journey li::before{
  counter-increment: ec-step;
  content: counter(ec-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ec-magenta);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.ec-journey h4{ font-size: 15px; margin-bottom: 6px; color: var(--ec-ink); }
.ec-journey p{ font-size: 13.5px; color: var(--ec-muted); line-height: 1.6; margin: 0; }

/* ---------- Why choose OSVI (reuses feature-list look) ---------- */
.ec-why-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ec-why-item{ display: flex; gap: 14px; align-items: flex-start; }
.ec-why-item .ec-why-num{
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ec-tint);
  color: var(--ec-magenta);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.ec-why-item h4{ font-size: 15px; margin-bottom: 4px; color: var(--ec-ink); }
.ec-why-item p{ font-size: 13.5px; color: var(--ec-muted); line-height: 1.6; margin: 0; }

/* ---------- FAQ accordion (native details/summary — accessible, no JS) ---------- */
.ec-faq{ max-width: 820px; }
.ec-faq details{
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 10px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.ec-faq summary{
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  color: var(--ec-ink);
  font-size: 15px;
  position: relative;
}
.ec-faq summary::-webkit-details-marker{ display: none; }
.ec-faq summary::after{
  content: "+";
  position: absolute;
  right: 0; top: 14px;
  font-size: 22px;
  color: var(--ec-magenta);
  transition: transform 0.15s ease;
}
.ec-faq details[open] summary::after{ transform: rotate(45deg); }
.ec-faq summary:focus-visible{ outline: 2px solid var(--ec-magenta); outline-offset: 3px; border-radius: 4px; }
.ec-faq .ec-faq-a{ color: var(--ec-muted); font-size: 14.5px; line-height: 1.7; padding: 0 0 18px; margin: 0; }

/* ---------- Related links ---------- */
.ec-related{ display: flex; flex-wrap: wrap; gap: 10px; }
.ec-related a{
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--ec-line);
  border-radius: 999px;
  color: var(--ec-magenta-dark);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ec-related a:hover{ border-color: var(--ec-magenta); background: var(--ec-tint); }

/* ---------- Disclaimer note ---------- */
.ec-disclaimer{
  font-size: 12.5px;
  color: #8A8690;
  border-top: 1px solid var(--ec-line);
  padding-top: 16px;
  margin-top: 6px;
  line-height: 1.6;
}

/* ---------- Focus visibility (accessibility) ---------- */
.ec-hub-card:focus-visible,
.ec-related a:focus-visible,
.ec-hero-ctas a:focus-visible{
  outline: 2px solid var(--ec-magenta-dark);
  outline-offset: 3px;
}
