/* Copyright Aadithya Eye Care — FAQ page */

.faq-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,4vw,48px); }

.faq-eyebrow { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.2rem; }
.faq-eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31,158,87,.18); }
.faq-eyebrow--light { color: rgba(255,255,255,.82); }
.faq-eyebrow--light .faq-eyebrow__dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(31,158,87,.3); }

/* ── Hero ── */
.faq-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, #f5fbfc 0%, #eaf6f7 55%, #dff2f3 100%);
  padding: clamp(140px,18vh,200px) 0 clamp(64px,8vw,104px);
}
.faq-hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse at center, rgba(31,158,87,.26), rgba(22,146,76,.08) 44%, transparent 70%);
  filter: blur(22px); z-index: 0; pointer-events: none;
}
.faq-hero__inner {
  position: relative; z-index: 2;
  max-width: 780px;
}
.faq-breadcrumb {
  display: flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .02em; color: var(--muted); margin-bottom: 1.4rem;
}
.faq-breadcrumb a { color: var(--primary); transition: color .3s; }
.faq-breadcrumb a:hover { color: var(--secondary); }
.faq-breadcrumb span { opacity: .5; }
.faq-hero__title {
  font-family: var(--font-head); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(2.4rem,5.4vw,4.3rem);
  max-width: 18ch; margin-bottom: 1.4rem;
}
.faq-hero__lead {
  font-size: clamp(1.04rem,1.6vw,1.22rem);
  color: var(--muted); max-width: 60ch; margin-bottom: 2.4rem;
}
.faq-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Layout ── */
.faq-main { padding: clamp(64px,8vw,112px) 0; }
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px,4vw,64px);
  align-items: start;
}

/* ── Sidebar ── */
.faq-sidebar { position: sticky; top: calc(var(--nav-h, 80px) + 24px); }
.faq-sidebar__inner {
  border-radius: var(--r-lg); padding: 28px 24px;
}
.faq-sidebar__label {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.faq-sidebar__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2rem; }
.faq-sidebar__link {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  color: var(--muted); padding: .6em .9em; border-radius: 10px;
  transition: background .25s, color .25s;
}
.faq-sidebar__link:hover,
.faq-sidebar__link.is-active { background: rgba(11,106,60,.08); color: var(--primary); }
.faq-sidebar__cta { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.faq-sidebar__cta p { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; font-weight: 500; }

/* ── Content ── */
.faq-content { min-width: 0; display: flex; flex-direction: column; gap: clamp(48px,6vw,80px); }

.faq-group__head { margin-bottom: 1.6rem; }
.faq-group__head h2 {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.1;
}

/* ── FAQ accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow .35s var(--ease);
}
.faq-item[open] { box-shadow: 0 24px 48px -18px rgba(9,58,36,.18), 0 0 0 1px rgba(11,106,60,.1); }

.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(.96rem,1.4vw,1.08rem);
  color: var(--ink); padding: 1.35em 1.5em;
  cursor: pointer; list-style: none; user-select: none;
  transition: color .25s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--primary); }

.faq-item__icon {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(11,106,60,.08);
  color: var(--primary); transition: background .3s, transform .4s var(--ease);
}
.faq-item__icon i { width: 16px; height: 16px; }
.faq-item[open] .faq-item__icon {
  background: var(--primary); color: #fff; transform: rotate(45deg);
}

.faq-item__a {
  padding: 0 1.5em 1.5em;
  display: flex; flex-direction: column; gap: .9em;
  font-size: clamp(.94rem,1.3vw,1rem); color: var(--muted); line-height: 1.72;
  animation: faq-open .35s var(--ease) both;
}
.faq-item__a a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-item__a a:hover { color: var(--secondary); }

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA ── */
.faq-cta {
  background: var(--bg);
  padding: clamp(80px,11vw,150px) 0;
}
.faq-cta__glow { display: none; }
.faq-cta__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--primary) 0%, #0d5a5e 40%, var(--secondary) 100%);
  padding: clamp(52px,7vw,96px) clamp(36px,5vw,80px);
  box-shadow: 0 40px 80px -30px rgba(11,106,60,.55);
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
  max-width: 860px; margin: 0 auto;
}
.faq-cta__card::before {
  content: ''; position: absolute;
  top: -40%; right: -12%; width: 55%; height: 160%;
  background: radial-gradient(circle at center, rgba(255,255,255,.22), transparent 62%);
  pointer-events: none;
}
.faq-cta__card::after {
  content: ''; position: absolute;
  bottom: -30%; left: -10%; width: 50%; height: 130%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 62%);
  pointer-events: none;
}
.faq-cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.faq-cta__inner h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem,3.8vw,3rem); letter-spacing: -.03em;
  color: #fff; margin-bottom: 1rem; line-height: 1.06;
}
.faq-cta__inner p {
  font-size: clamp(1rem,1.5vw,1.06rem); color: rgba(255,255,255,.88);
  max-width: 52ch; margin-bottom: 2.2rem;
}
.faq-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 2rem; }
.faq-cta__card .btn--solid { background: #fff; color: var(--primary); box-shadow: 0 14px 30px -12px rgba(7,32,36,.45); }
.faq-cta__card .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.faq-cta__card .btn--ghost:hover { background: rgba(255,255,255,.2); }
.faq-cta__contact {
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  margin-top: clamp(22px,3vw,34px); padding-top: clamp(20px,3vw,32px);
  border-top: 1px solid rgba(255,255,255,.22);
}
.faq-cta__contact a {
  display: flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  color: #fff; transition: opacity .3s;
}
.faq-cta__contact a:hover { opacity: .8; }
.faq-cta__contact i { width: 17px; height: 17px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
  .faq-sidebar__inner { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
  .faq-sidebar__label { display: none; }
  .faq-sidebar__nav { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
  .faq-sidebar__cta { border-top: none; padding-top: 0; border-left: 1px solid var(--line); padding-left: 1.2rem; }
}
@media (max-width: 600px) {
  .faq-item__q { padding: 1.1em 1.2em; font-size: .96rem; }
  .faq-item__a { padding: 0 1.2em 1.3em; }
  .faq-cta__card { padding: clamp(28px,5vw,48px); }
}
