/* =============================================================
   BARRY'S PHARMACY — HOME PAGE STYLES (index.html)
   Depends on: css/main.css
   ============================================================= */

/* ── Status Badge ──────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
}
.status-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.status-open  { background: var(--green-pale); color: var(--green-dark); }
.status-open::before  { background: var(--green); box-shadow: 0 0 0 3px rgba(30,92,58,0.2); }
.status-closed { background: #fce8e8; color: #8b1a1a; }
.status-closed::before { background: #dc2626; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a3a2a 0%, #1e5c3a 40%, #245f40 100%);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(200,155,60,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-deco {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(320px,0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-copy { color: white; }
.hero-location {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.92); text-decoration: none;
  transition: color 0.15s;
}
.hero-location:hover { color: white; }
.hero h1 {
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: white;
}
.hero h1 em { font-style: normal; color: #8ecba5; }
.hero-lead {
  max-width: 560px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7; margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.75); font-size: 0.875rem;
}
.trust-item svg { color: #8ecba5; flex: none; }

/* ── Booking Card ──────────────────────────────────────────── */
.booking-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.booking-card-body { padding: 1.75rem; }
.booking-card-body .status-badge { margin-bottom: 1rem; }
.booking-card-body h2 {
  font-family: var(--display);
  font-size: 1.75rem; font-weight: 700; line-height: 1.1;
  margin-bottom: 0.75rem; color: var(--ink);
}
.booking-card-body p { color: var(--text); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6; }
.booking-card-body .btn { width: 100%; justify-content: center; }
.booking-secondary {
  display: flex; justify-content: center; margin-top: 0.85rem;
  color: var(--green); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.booking-secondary:hover { text-decoration: underline; }

/* ── Quick Info Strip ──────────────────────────────────────── */
.quick-info { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.quick-info .wrap {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px; background: var(--hairline);
}
.quick-info-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.35rem 1.5rem; background: var(--paper);
  text-decoration: none; transition: background 0.15s;
}
.quick-info-item:hover { background: var(--wash); }
.quick-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex: none;
}
.quick-info-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 0.2rem;
}
.quick-info-value { font-weight: 600; color: var(--ink); font-size: 0.975rem; }

/* ── Section Layout (home) ─────────────────────────────────── */
.section-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-lead { max-width: 480px; }

/* ── Common Conditions Section ─────────────────────────────── */
.ccs-section { background: var(--paper); border-block: 1px solid var(--hairline); }
.condition-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem; margin-bottom: 1rem;
}
.condition-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: white;
  border: 1px solid var(--hairline);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  display: flex; flex-direction: column;
}
.condition-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4cec6; }
.condition-img { height: 160px; overflow: hidden; background: var(--wash); }
.condition-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.condition-card:hover .condition-img img { transform: scale(1.04); }
.condition-info { padding: 1rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.condition-name {
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  line-height: 1.15; color: var(--ink);
}

/* ── CCS Strip ─────────────────────────────────────────────── */
.ccs-strip {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius); margin-top: 2rem; color: white;
}
.ccs-strip p { margin: 0; color: rgba(255,255,255,0.85); font-size: 1rem; }
.ccs-strip strong { color: white; font-weight: 700; display: block; margin-bottom: 0.35rem; font-size: 1.1rem; }
.ccs-strip-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── How It Works ──────────────────────────────────────────── */
.pathway-section { background: linear-gradient(180deg, var(--canvas) 0%, #ede9e2 100%); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem; margin-top: 0.5rem;
}
.step-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: white; border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-pale); color: var(--green);
  font-size: 1.1rem; font-weight: 800; font-family: var(--display);
  margin-bottom: 1.5rem;
}
.step-card h3 {
  font-family: var(--display); font-size: 1.4rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 0.65rem; color: var(--ink);
}
.step-card p { color: var(--text); margin-bottom: 0; font-size: 0.975rem; line-height: 1.65; }

/* ── Contact & Hours ───────────────────────────────────────── */
.contact-section { background: var(--paper); border-top: 1px solid var(--hairline); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.contact-sticky { position: sticky; top: 108px; }
.contact-sticky h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.contact-sticky p { color: var(--text); font-size: 1.05rem; line-height: 1.7; max-width: 380px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.info-card {
  background: white; border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.info-card:last-child { margin-bottom: 0; }
.info-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--wash); border-bottom: 1px solid var(--hairline);
}
.info-card-header svg { color: var(--green); }
.info-card-header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }

.info-row {
  display: grid; grid-template-columns: 130px minmax(0,1fr);
  align-items: center; gap: 0.75rem; padding: 0.9rem 1.35rem;
  border-bottom: 1px solid var(--hairline);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--subtle);
}
.info-value { font-size: 0.9rem; font-weight: 500; color: var(--ink); font-family: var(--body); }
.info-value a { color: var(--green); font-weight: 500; text-decoration: none; }
.info-value a:hover { text-decoration: underline; }

.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.9rem 1.35rem; border-bottom: 1px solid var(--hairline);
}
.hours-row:last-child { border-bottom: none; }
.hours-day  { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.hours-time { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.hours-today { background: var(--green-pale); }
.hours-today .hours-day  { font-weight: 600; color: var(--green-dark); }
.hours-today .hours-time { font-weight: 500; color: var(--green); }
.closed-text { color: #dc2626 !important; font-weight: 500; }

/* ── Map ───────────────────────────────────────────────────── */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); margin-top: 1.25rem; }
.map-embed-container { position: relative; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  /* Centre everything when stacked */
  .hero-copy { text-align: center; }
  .hero-lead { max-width: none; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .booking-card { max-width: 560px; margin-inline: auto; }
  .condition-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* Steps: 2-column at tablet, third card spans both columns */
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card:last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sticky { position: static; }
  .ccs-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .quick-info .wrap { grid-template-columns: 1fr; }
  .condition-grid { grid-template-columns: 1fr; }
  /* Steps back to single column on phones */
  .steps-grid { grid-template-columns: 1fr; }
  .step-card:last-child { grid-column: auto; }
  .booking-card { max-width: 100%; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .info-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
