/* =============================================================
   BARRY'S PHARMACY — COMMON CONDITIONS SERVICE PAGE STYLES
   Depends on: css/main.css
   ============================================================= */

/* ── Section overrides for this page ──────────────────────── */
.section-title { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.section-head  { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-lead  { max-width: 700px; line-height: 1.75; margin-top: 1rem; }

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1a3a2a 0%, #1e5c3a 45%, #245f40 100%);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 40%, rgba(200,155,60,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.hero-deco {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }

.hero-breadcrumb {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); text-decoration: none;
}
.hero-breadcrumb:hover { color: rgba(255,255,255,0.85); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  color: white; margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: normal; color: #8ecba5; }
.page-hero-lead {
  max-width: 640px; color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
}
.hero-badge svg { color: #8ecba5; flex: none; }

/* ── Conditions Sidebar List ───────────────────────────────── */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(260px, 0.5fr);
  gap: clamp(2rem,5vw,4rem); align-items: center;
}
.conditions-list-card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(8px);
}
.conditions-list-card h3 {
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1rem;
}
.conditions-list-card ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.conditions-list-card li {
  display: flex; align-items: center; gap: 0.6rem;
  color: white; font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.conditions-list-card li:last-child { border-bottom: none; }
.cond-dot { width: 6px; height: 6px; border-radius: 50%; background: #8ecba5; flex: none; }

/* ── Intro / What is CCS ───────────────────────────────────── */
.intro-section { background: var(--paper); border-block: 1px solid var(--hairline); }
.intro-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem,5vw,5rem); align-items: start;
}
.intro-text h2 {
  font-family: var(--display); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.intro-text p { color: var(--text); line-height: 1.75; font-size: 1.02rem; margin-bottom: 1.1rem; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-highlight {
  background: var(--green-pale); border: 1px solid rgba(30,92,58,0.15);
  border-left: 4px solid var(--green); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-top: 1.75rem;
}
.intro-highlight p { color: var(--green-dark); font-weight: 500; margin: 0; font-size: 0.975rem; line-height: 1.65; }

/* ── How to Access ─────────────────────────────────────────── */
.access-section { background: var(--canvas); }
.access-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2rem; align-items: stretch;
}
.access-card {
  background: white; border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.access-card-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; display: flex; align-items: flex-start; gap: 1rem;
}
.access-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.access-card-header h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; margin: 0 0 0.3rem; }
.access-card-header p  { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.access-card-body  { padding: 1.75rem; flex: 1; }
.access-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.access-step  { display: flex; gap: 1rem; }
.step-num-badge {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; flex: none; margin-top: 0.1rem;
}
.access-step-text h4 { font-size: 0.925rem; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
.access-step-text p  { color: var(--text); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.access-card-footer { padding: 0 1.75rem 1.75rem; }

/* ── Conditions Grid ───────────────────────────────────────── */
.conditions-section { background: var(--paper); border-block: 1px solid var(--hairline); }
.ccs-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }
.ccs-card {
  border-radius: var(--radius); overflow: hidden;
  background: white; border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
}
.ccs-card-img { height: 150px; overflow: hidden; }
.ccs-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ccs-accordion { border-top: 1px solid var(--hairline); }
.ccs-accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: white; border: none; cursor: pointer; text-align: left; transition: background 0.15s;
}
.ccs-accordion-trigger:hover { background: var(--wash); }
.ccs-accordion-trigger h3 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 700;
  color: var(--ink); margin: 0; line-height: 1.2;
}
.ccs-chevron {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: transform 0.25s ease;
}
.ccs-accordion-trigger[aria-expanded="true"] .ccs-chevron { transform: rotate(45deg); }
.ccs-accordion-body { overflow: hidden; max-height: 0; transition: max-height 0.3s ease, opacity 0.2s ease; opacity: 0; }
.ccs-accordion-body.open { opacity: 1; }
.ccs-accordion-body-inner { padding: 1.1rem; color: var(--text); font-size: 0.88rem; line-height: 1.65; }
.ccs-hse-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.6rem; color: var(--green); font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.ccs-hse-link:hover { text-decoration: underline; }

/* ── Fee ───────────────────────────────────────────────────── */
.fee-section { background: var(--canvas); }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.fee-card {
  padding: clamp(1.5rem,3vw,2rem); border-radius: var(--radius-lg);
  border: 1px solid var(--hairline); background: white; box-shadow: var(--shadow-sm);
}
.fee-card.featured {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-color: transparent; color: white;
}
.fee-amount { font-family: var(--display); font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; color: var(--green); }
.fee-card.featured .fee-amount { color: white; }
.fee-card h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.fee-card p  { color: var(--text); font-size: 0.975rem; line-height: 1.7; margin-bottom: 0; }
.fee-card.featured p { color: rgba(255,255,255,0.82); }
.fee-note {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: var(--green-pale); border-radius: var(--radius); border-left: 3px solid var(--green);
}
.fee-note p { color: var(--green-dark); font-size: 0.875rem; font-weight: 500; margin: 0; line-height: 1.6; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-section { background: var(--paper); border-top: 1px solid var(--hairline); }
.faq-layout { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: clamp(2rem,5vw,5rem); }
.faq-sidebar { position: sticky; top: 108px; align-self: start; }
.faq-sidebar h2 {
  font-family: var(--display); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.faq-sidebar p { color: var(--text); font-size: 1rem; line-height: 1.7; max-width: 340px; }
.faq-sidebar .btn { margin-top: 1.25rem; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0; background: transparent; border: none; cursor: pointer; text-align: left;
}
.faq-trigger:hover .faq-question { color: var(--green); }
.faq-question { font-size: 1rem; font-weight: 600; color: var(--ink); transition: color 0.15s; }
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle); flex: none; transition: all 0.2s;
}
.faq-trigger[aria-expanded="true"] .faq-icon { background: var(--green); border-color: var(--green); color: white; transform: rotate(45deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease, opacity 0.2s; opacity: 0; }
.faq-answer.open { opacity: 1; }
.faq-answer-inner { padding: 0 0 1.35rem; color: var(--text); font-size: 0.975rem; line-height: 1.75; }
.faq-disclaimer {
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  background: var(--wash); border-radius: var(--radius); border: 1px solid var(--hairline);
}
.faq-disclaimer p { color: var(--subtle); font-size: 0.825rem; line-height: 1.65; margin: 0; }

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding-block: clamp(3rem, 6vw, 5rem); text-align: center;
}
.cta-band h2 { font-family: var(--display); font-size: clamp(1.8rem,4vw,3rem); font-weight: 700; color: white; margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2rem; }
.cta-band-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ccs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .conditions-list-card { display: none; }
  .intro-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }
}

@media (max-width: 640px) {
  .ccs-grid { grid-template-columns: 1fr; }
}
