/* ============================================================
   C&D Medical Group – Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* C&D Medical Group brand palette (from cdmg.ie) */
  --brand-dark:   #344245;   /* dark teal-grey — hero, footer, nav */
  --brand-mid:    #A1384D;   /* wine red — primary accent, buttons */
  --brand-teal:   #678489;   /* mid teal — secondary accents */
  --brand-pale:   #E1EFF2;   /* very light teal — section backgrounds */
  --brand-xpale:  #f4f8f9;   /* near-white teal tint */
  --brand-light:  #AABCBF;   /* light teal — borders, dividers */
  --white:        #ffffff;
  --grey-50:      #f8f9fa;
  --grey-100:     #f1f3f5;
  --grey-200:     #e9ecef;
  --grey-400:     #ced4da;
  --grey-600:     #6c757d;
  --grey-800:     #343a40;
  --text:         #1e2c2e;

  /* Aliases so existing classes keep working */
  --green-dark:   var(--brand-dark);
  --green-mid:    var(--brand-mid);
  --green-light:  var(--brand-teal);
  --green-pale:   var(--brand-pale);
  --green-xpale:  var(--brand-xpale);

  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.12);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1,h2,h3,h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p { color: #374b3e; }

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 80px; }
.section--alt { background: var(--grey-50); }
.section--green { background: var(--green-dark); color: var(--white); }
.section--pale  { background: var(--green-xpale); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--grey-600);
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn-outline-dark:hover {
  background: var(--green-mid);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding-block: 18px;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding-block: 12px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.nav-logo-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo-text strong { color: var(--green-dark); }
.navbar.scrolled .nav-logo-text span   { color: var(--grey-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.navbar.scrolled .nav-links a {
  color: var(--grey-800);
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--green-mid);
  background: var(--green-xpale);
}

.nav-cta {
  background: var(--white) !important;
  color: var(--green-dark) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
}

.navbar.scrolled .nav-cta {
  background: var(--green-mid) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span { background: var(--grey-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2a3538 0%, #344245 50%, #3d4f53 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(161,56,77,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(103,132,137,.15) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(52,66,69,.25) 0%, transparent 40%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(82,183,136,.15);
  top: -150px;
  right: -100px;
}

.hero-shapes::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(82,183,136,.10);
  bottom: -100px;
  left: 10%;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-block: 140px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(161,56,77,.2);
  border: 1px solid rgba(161,56,77,.35);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8a0ad;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #e8a0ad;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 em {
  font-style: normal;
  color: #e8a0ad;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--green-pale);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--green-mid);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ---------- About Strip ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-card-main::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(82,183,136,.1);
  bottom: -100px;
  right: -80px;
}

.about-year {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,.08);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
}

.about-card-main h3 {
  color: var(--green-light);
  font-size: 0.8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-card-main p {
  color: rgba(255,255,255,.8);
  font-size: 0.95rem;
}

.about-card-stat {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.about-card-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-mid);
  line-height: 1;
}

.about-card-stat .lbl {
  font-size: 0.85rem;
  color: var(--grey-600);
}

.about-content { padding-block: 16px; }

.about-content h2 { margin-bottom: 20px; }

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  gap: 14px;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--green-mid);
}

.about-feature h4 { font-size: 0.95rem; margin-bottom: 2px; }
.about-feature p  { font-size: 0.88rem; color: var(--grey-600); }

/* ---------- Pharmacies Preview ---------- */
.pharmacy-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pharmacy-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}

.pharmacy-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pharmacy-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pharmacy-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
}

.pharmacy-badge {
  background: var(--green-pale);
  color: var(--green-mid);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.pharmacy-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pharmacy-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--grey-600);
}

.pharmacy-info-row svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--green-light);
}

.pharmacy-hours {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--grey-100);
  font-size: 0.82rem;
  color: var(--grey-600);
}

.pharmacy-hours strong { color: var(--text); }

.pharmacy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pharmacy-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--grey-200);
  color: var(--grey-800);
  transition: all var(--transition);
}

.pharmacy-actions a:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  color: var(--green-dark);
}

.pharmacy-actions a svg { width: 13px; height: 13px; }

/* ---------- Contact / CTA ---------- */
.cta-section {
  background: var(--green-xpale);
  padding-block: 80px;
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p  { font-size: 1.05rem; color: var(--grey-600); margin-bottom: 36px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.contact-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.contact-item-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg { width: 20px; height: 20px; color: var(--green-mid); }

.contact-item h4 { font-size: 0.85rem; color: var(--grey-600); margin-bottom: 4px; }
.contact-item p, .contact-item a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.contact-item a:hover { color: var(--green-mid); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.7);
  padding-block: 60px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo-text strong { color: var(--white); }
.footer-brand .nav-logo-text span   { color: rgba(255,255,255,.5); }

.footer-desc {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green-light); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--green-light); }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, #2a3538 0%, #344245 100%);
  padding-block: 140px 64px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(82,183,136,.12);
  top: -150px;
  right: -100px;
}

.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--green-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ---------- Pharmacy Search ---------- */
.pharmacy-search-bar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.pharmacy-search-bar svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--grey-400);
}

.pharmacy-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
}

.pharmacy-search-bar input::placeholder { color: var(--grey-400); }

/* County filter tabs */
.county-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.county-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 2px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.county-btn span {
  background: var(--grey-100);
  color: var(--grey-400);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.county-btn:hover {
  border-color: var(--brand-mid);
  color: var(--brand-mid);
}

.county-btn:hover span {
  background: rgba(161, 56, 77, 0.1);
  color: var(--brand-mid);
}

.county-btn.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

.county-btn.active span {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.pharmacy-card.hidden {
  display: none;
}

.no-results-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
  font-size: 1rem;
}

/* ---------- Timeline (About) ---------- */
.timeline {
  position: relative;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-mid), var(--green-pale));
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}

.timeline-dot {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--green-pale);
}

.timeline-dot svg { width: 18px; height: 18px; color: var(--white); }

.timeline-body {
  padding-top: 8px;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.timeline-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-body p  { font-size: 0.9rem; color: var(--grey-600); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-split   { grid-template-columns: 1fr; }
  .huug-inner    { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links     { display: none; }
  .nav-toggle    { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    inset-inline: 0;
    bottom: 0;
    background: var(--green-dark);
    padding: 100px 32px 32px;
    gap: 6px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.2rem; padding: 12px 16px; color: var(--white); }
  .hero-stats    { gap: 24px; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .section       { padding-block: 56px; }
  .pharmacy-list { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: fit-content; }
  .huug-visual   { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}

/* ---------- CCS Section ---------- */
.ccs-section {
  background: linear-gradient(135deg, #2a3538 0%, #344245 100%);
  padding-block: 80px;
}

.ccs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ccs-header-text h2 { color: var(--white); margin-bottom: 12px; }
.ccs-header-text p  { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 540px; line-height: 1.7; }

.ccs-hse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(161,56,77,.2);
  border: 1px solid rgba(161,56,77,.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8a0ad;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ccs-price-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  min-width: 180px;
  flex-shrink: 0;
}

.ccs-price-card .price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

.ccs-price-card .price-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

.ccs-price-card .price-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
  line-height: 1.4;
}

.ccs-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.ccs-condition {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.ccs-condition:hover {
  background: rgba(161,56,77,.2);
  border-color: rgba(161,56,77,.4);
}

.ccs-condition-icon {
  width: 36px;
  height: 36px;
  background: rgba(161,56,77,.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ccs-condition span {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
}

.ccs-how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.ccs-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ccs-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--brand-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
}

.ccs-step h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 4px; }
.ccs-step p  { color: rgba(255,255,255,.55); font-size: 0.83rem; line-height: 1.5; }

.ccs-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-ccs {
  background: var(--brand-mid);
  color: var(--white);
  border-color: var(--brand-mid);
  font-size: 1rem;
  padding: 16px 32px;
}

.btn-ccs:hover {
  background: #8a2e40;
  border-color: #8a2e40;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(161,56,77,.4);
}

.ccs-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
  max-width: 480px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .ccs-how-it-works { grid-template-columns: 1fr; }
  .ccs-header { flex-direction: column; }
  .ccs-price-card { align-self: flex-start; }
}

/* ---------- Map Section ---------- */
.map-section {
  background: var(--grey-50);
  padding-block: 80px;
}

.map-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.map-controls p {
  font-size: 0.92rem;
  color: var(--grey-600);
  flex: 1;
  min-width: 200px;
}

#pharmacy-map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 0;
}

.map-nearest-result {
  display: none;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--green-dark);
}

.map-nearest-result strong { font-weight: 700; }

/* Leaflet custom popup */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: 'Inter', sans-serif !important;
}
.leaflet-popup-content { margin: 14px 16px !important; }
.map-popup-name { font-weight: 700; color: var(--green-dark); font-size: 0.95rem; margin-bottom: 6px; }
.map-popup-addr { font-size: 0.83rem; color: var(--grey-600); margin-bottom: 8px; }
.map-popup-links { display: flex; gap: 8px; }
.map-popup-links a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--green-pale);
  color: var(--green-dark);
  text-decoration: none;
}
.map-popup-links a:hover { background: var(--green-mid); color: white; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.fw-bold { font-weight: 700; }
.text-green { color: var(--green-mid); }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
