/* ============================================
   IAN FRASER SPV LTD — Styles
   ============================================ */

:root {
  /* Palette — sampled from logo (sky blue + pastel green) */
  --blue-900: #2c4c74;
  --blue-800: #3666a1;
  --blue-700: #4872b3;
  --blue-600: #5c9ccc;
  --blue-500: #7eb3d9;
  --blue-300: #b8d4eb;
  --blue-100: #e3eff8;
  --blue-50:  #f2f8fc;

  --sage-900: #4a6340;
  --sage-800: #6b9349;
  --sage-700: #84ac6c;
  --sage-600: #9dbc78;
  --sage-500: #b0cc88;
  --sage-400: #c4dc74;
  --sage-300: #d4dc74;
  --sage-200: #e4ebb8;
  --sage-100: #f0f4dc;
  --sage-50:  #f7faf0;

  --cream-50:  #fefdfb;
  --cream-100: #fafcf8;
  --cream-200: #f3f6ef;
  --cream-300: #e8ede4;

  --text-primary: #2c4c74;
  --text-secondary: #4a6278;
  --text-muted: #7a8f9e;

  --white: #ffffff;
  --border: #d4e0ea;

  /* Brand shortcuts */
  --brand-sky: var(--blue-600);
  --brand-sky-deep: var(--blue-700);
  --brand-pastel-green: var(--sage-300);
  --brand-leaf: var(--sage-700);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1180px;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- Section Header ---- */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }

.section-header__tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--blue-900);
}

.section-header__sub {
  margin-top: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.section-header--center .section-header__sub { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--blue-700);
  color: var(--cream-50);
  border-color: var(--blue-700);
}
.btn--primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(54, 102, 161, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-600);
}
.btn--outline:hover {
  background: var(--blue-700);
  color: var(--cream-50);
  border-color: var(--blue-700);
}

.btn--nav {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  background: var(--blue-700);
  border-radius: 50px;
  border-color: var(--blue-700);
}
.btn--nav,
.nav__links a.btn--nav {
  color: #ffffff;
}
.btn--nav:hover { background: var(--blue-600); border-color: var(--blue-600); }

.btn--full { width: 100%; }

/* ---- Dark / Light Mode Toggle ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
}
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ============================================
   SITE HEADER & ANNOUNCEMENT
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.site-header--scrolled .nav {
  box-shadow: 0 2px 20px rgba(44, 76, 116, 0.1);
}

.announcement {
  background: linear-gradient(90deg, var(--blue-700), var(--sage-700));
  color: #ffffff;
  font-size: 0.85rem;
  text-align: center;
}
.announcement__inner {
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
}
.announcement p { line-height: 1.45; }
.announcement a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.announcement a:hover { opacity: 0.9; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 212, 235, 0.55);
  transition: box-shadow 0.3s;
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 70px;
  width: auto;
  max-width: min(320px, 55vw);
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--blue-600); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(112px + 3rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(92, 156, 204, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(212, 220, 116, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 85%, rgba(132, 172, 108, 0.15) 0%, transparent 50%),
    var(--cream-50);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c9ccc' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  animation: fadeUp 0.8s ease-out;
}

.hero__logo {
  display: none;
  width: clamp(140px, 28vw, 200px);
  height: auto;
  margin-bottom: 1.5rem;
}

.hero__tag {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  color: var(--blue-900);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--sage-700);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__badge {
  position: absolute;
  bottom: 3rem;
  right: clamp(2rem, 8vw, 6rem);
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--sage-500) 55%, var(--sage-300) 100%);
  color: var(--cream-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  animation: gentleSpin 20s linear infinite;
}
.hero__badge span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--cream-50);
  transition: all 0.35s ease;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 76, 116, 0.08);
}

.service-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-100);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--blue-900);
  padding: 1.25rem 1.5rem 0;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0 1.5rem 1.5rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--blue-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about__logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
}

.about__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-800);
}

.leadership {
  margin-top: 4rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.leadership__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}
.leadership__intro {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 640px;
}
.leadership__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.leadership__group h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.75rem;
}
.leadership__group ul {
  list-style: none;
}
.leadership__group li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.leadership__group li:last-child { border-bottom: none; }
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   OUR PHARMACIES
   ============================================ */
.pharmacies {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.pharmacies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pharmacy-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.pharmacy-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 76, 116, 0.1);
}
.pharmacy-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}
.pharmacy-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}
.pharmacy-card__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-700);
  transition: color 0.2s;
}
.pharmacy-card__link:hover { color: var(--sage-600); }

/* Location detail — Giles and Ward */
.location-detail {
  margin-top: 4rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  border: 1px solid var(--border);
  scroll-margin-top: 120px;
}
.location-detail__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.location-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}
.location-detail__area {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.location-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.location-detail__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.location-detail__main h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}
.location-detail__main h4:not(:first-child) { margin-top: 2rem; }
.location-detail__main p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.location-detail__history {
  font-size: 0.92rem;
  padding: 1rem 1.25rem;
  background: var(--blue-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--brand-sky);
}
.location-detail__subtitle {
  margin-top: 2.5rem !important;
}
.location-detail__more {
  margin-top: 1.25rem;
}
.location-detail__more a {
  font-weight: 500;
  color: var(--blue-700);
}
.location-detail__more a:hover { color: var(--sage-600); }

.location-detail__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.highlight-card {
  padding: 0;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.highlight-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-50);
}
.highlight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.highlight-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
  padding: 1rem 1.15rem 0;
}
.highlight-card p {
  font-size: 0.88rem;
  margin-bottom: 0 !important;
  line-height: 1.55;
  padding: 0 1.15rem 1.15rem;
}
.highlight-card a {
  color: var(--blue-700);
  font-weight: 500;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.service-tile:hover {
  border-color: var(--blue-300);
  box-shadow: 0 10px 28px rgba(44, 76, 116, 0.1);
  transform: translateY(-3px);
}
.service-tile__media {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--blue-50);
}
.service-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-tile:hover .service-tile__media img {
  transform: scale(1.05);
}
.service-tile__body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.service-tile__body h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-900);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.service-tile__body p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.location-detail__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.info-box {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.info-box h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.info-box address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.info-box__contact a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-800);
  display: inline-block;
  margin-top: 0.25rem;
}
.info-box__contact a:hover { color: var(--sage-600); }
.info-box__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td {
  padding: 0.55rem 0;
  color: var(--text-secondary);
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--blue-900);
}
.info-box--cta {
  background: var(--blue-50);
  border-color: var(--blue-100);
}
.info-box--cta p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.info-box--legal ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.info-box--legal li { padding: 0.2rem 0; }

/* Testimonials */
.testimonials {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.testimonials__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-900);
  line-height: 1.15;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.testimonial {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.testimonial__stars {
  color: #e6a817;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.testimonial p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--cream-50);
}

.contact__grid {
  max-width: 640px;
}

.contact__info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__method {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  transition: all 0.25s;
}
.contact__method:hover {
  border-color: var(--blue-300);
  background: var(--blue-100);
}
.contact__method-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.25rem;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 0 2rem;
  background: var(--blue-900);
  color: rgba(255,255,255,0.65);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.footer__logo-img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.6;
}
.footer__reg {
  margin-top: 0.75rem !important;
  font-size: 0.72rem !important;
  opacity: 0.5 !important;
}
.footer__photo-credit {
  width: 100%;
  margin-top: 0.5rem !important;
  font-size: 0.68rem !important;
  opacity: 0.45 !important;
}
.footer__photo-credit a { text-decoration: underline; }

.footer__links {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer__links a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__links a:hover { opacity: 1; }

.footer__legal {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__legal a { text-decoration: underline; opacity: 0.7; }
.footer__legal a:hover { opacity: 1; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gentleSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
  }
  .nav__links--open { transform: translateY(0); }

  .hero { min-height: 85vh; }
  .hero__badge { display: none; }

  .nav__logo-img { height: 58px; }

  .hero__logo { display: block; }

  .location-detail__header { flex-direction: column; }
  .location-detail__grid { grid-template-columns: 1fr; }
  .location-detail__sidebar { order: -1; }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__stats { gap: 1.5rem; }
  .stat__number { font-size: 1.6rem; }

  .footer__inner { flex-direction: column; gap: 1.5rem; }
  .footer__links { flex-wrap: wrap; gap: 1rem; }
  .footer__legal { flex-direction: column; }
}

@media (max-width: 400px) {
  .services__grid { grid-template-columns: 1fr; }
  .pharmacies__grid { grid-template-columns: 1fr; }
  .service-tiles { grid-template-columns: 1fr; }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --cream-50:  #0d1b2a;
  --cream-100: #0f1e30;
  --white:     #162233;
  --blue-50:   #111e2c;
  --blue-100:  #1a2d42;
  --blue-300:  #2a4060;
  --blue-500:  #8bbce8;
  --blue-600:  #7aaee0;
  --blue-700:  #6b9fd4;
  --blue-800:  #c0d5eb;
  --blue-900:  #dce8f5;
  --border:    #243850;
  --text-primary:   #dce8f5;
  --text-secondary: #96b0c8;
  --text-muted:     #607585;
}

/* Nav — hardcoded rgba needs explicit override */
[data-theme="dark"] .nav {
  background: rgba(13, 27, 42, 0.95);
  border-bottom-color: rgba(36, 56, 80, 0.8);
}

/* Mobile nav menu */
[data-theme="dark"] .nav__links {
  background: rgba(13, 27, 42, 0.97);
  border-bottom-color: var(--border);
}

/* Nav hamburger lines */
[data-theme="dark"] .nav__toggle span {
  background: var(--blue-600);
}

/* Hero background gradients */
[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(ellipse at 15% 40%, rgba(107, 159, 212, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(132, 172, 108, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 85%, rgba(84, 172, 108, 0.06) 0%, transparent 50%),
    var(--cream-50);
}

/* Footer stays dark in both modes; --blue-900 is now a light colour so override */
[data-theme="dark"] .footer {
  background: #0a1520;
}

/* Keep footer logo on a white chip so it stays legible */
[data-theme="dark"] .footer__logo-img {
  background: rgba(255, 255, 255, 0.9);
}

/* Star ratings keep their gold colour */
[data-theme="dark"] .testimonial__stars {
  color: #e6a817;
}
