@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette — from the Town Pharmacy logo */
  --brand-green: #3FA372;
  --brand-green-hover: #358A60;
  --brand-green-soft: #6FC594;
  --brand-green-light: #E3F5EB;
  --brand-navy: #1B2A6B;
  --brand-navy-dark: #132054;
  --brand-navy-light: #EEF1FB;
  --text-dark: #10193F;
  --text-medium: #38415F;
  --text-light: #64748B;
  --bg-light: #F7FAF8;
  --border-color: #E2E8F0;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Misc */
  --transition-fast: 0.2s ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-md: 0 4px 6px -1px rgba(16, 25, 63, 0.08), 0 2px 4px -1px rgba(16, 25, 63, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(16, 25, 63, 0.1), 0 4px 6px -2px rgba(16, 25, 63, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(16, 25, 63, 0.12), 0 10px 10px -5px rgba(16, 25, 63, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-medium);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ============ Header ============ */
.header-info-bar {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  font-size: 14px;
}

.header-info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-section img.logo-badge {
  height: 58px;
  width: auto;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.logo-text h1 .green { color: var(--brand-green); }

.logo-text p {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  margin-top: -2px;
}

.contact-details-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-item svg {
  color: var(--brand-green);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-item-text { display: flex; flex-direction: column; }

.contact-item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 600;
}

.contact-item-value {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.contact-item-value a:hover { color: var(--brand-green); }

/* Nav */
.nav-bar {
  background-color: var(--brand-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover { color: #fff; }

.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--brand-green-soft);
}

.nav-cta {
  background-color: var(--brand-green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-cta:hover { background-color: var(--brand-green-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 14px 8px;
  cursor: pointer;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--brand-green);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-navy {
  background-color: var(--brand-navy);
  color: #fff;
}

.btn-navy:hover {
  background-color: var(--brand-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-dark-outline {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.btn-dark-outline:hover {
  background-color: var(--brand-navy);
  color: #fff;
}

/* ============ Hero ============ */
.hero-section {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #24378A 60%, #2B4A8F 100%);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 197, 148, 0.22), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand-green-soft);
  box-shadow: 0 0 0 4px rgba(111, 197, 148, 0.3);
}

.hero-title {
  font-size: clamp(36px, 5vw, 54px);
  color: #fff;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.green-accent { color: var(--brand-green-soft); }

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stars-container { display: flex; gap: 2px; }

.star-icon {
  width: 18px;
  height: 18px;
  fill: #FBBF24;
  stroke: none;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-green-soft);
}

.hero-meta span { font-size: 14px; opacity: 0.9; font-weight: 500; }

/* Hero visual card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-logo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-xl);
  transform: rotate(1.5deg);
}

.hero-logo-card img {
  width: 320px;
  max-width: 100%;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xl);
  color: var(--text-dark);
}

.floating-card-1 { top: -28px; left: -4px; }
.floating-card-2 { bottom: -28px; right: -4px; }

.floating-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--brand-navy-light);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-icon-wrapper.green-bg {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

.floating-card-text { display: flex; flex-direction: column; line-height: 1.3; }
.floating-card-label { font-size: 12px; color: var(--text-light); font-weight: 500; }
.floating-card-value { font-size: 15px; font-weight: 700; color: var(--brand-navy); }

/* ============ Sections ============ */
.section-padding { padding: 88px 0; }

.section-tag {
  display: inline-block;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-header-center p { color: var(--text-light); }

/* Highlights */
.highlights-section {
  padding: 0;
  margin-top: -48px;
  position: relative;
  z-index: 5;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--brand-navy);
}

.highlight-card.green-theme { border-top-color: var(--brand-green); }

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--brand-navy-light);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.green-theme .highlight-icon {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

.highlight-card h3 { font-size: 20px; margin-bottom: 8px; }
.highlight-card p { font-size: 15px; color: var(--text-light); }

/* Intro / Who We Are */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.intro-content p { font-size: 16px; }

.intro-visual {
  background: linear-gradient(150deg, var(--brand-green-light), var(--brand-navy-light));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-visual img {
  width: 360px;
  max-width: 100%;
  filter: drop-shadow(0 12px 24px rgba(16, 25, 63, 0.15));
}

/* Service cards */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-fast);
}

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

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--brand-navy-light);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon-box.green-accent {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

.card-item h3 { font-size: 19px; margin-bottom: 8px; }
.card-item p { font-size: 15px; color: var(--text-light); }

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #24378A 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* Steps (refill page) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-green);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--text-light); }

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.checklist svg {
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Call panel */
.call-panel {
  background: linear-gradient(135deg, var(--brand-green) 0%, #2E8A5C 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.call-panel h2 { color: #fff; font-size: 28px; }
.call-panel p { color: rgba(255, 255, 255, 0.9); max-width: 480px; }

.call-panel .big-phone {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.call-panel .big-phone:hover { opacity: 0.9; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-row { display: flex; gap: 16px; align-items: flex-start; }

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-row h3 { font-size: 17px; margin-bottom: 4px; }
.contact-info-row p { font-size: 15px; color: var(--text-light); }
.contact-info-row a { color: var(--brand-green); font-weight: 600; }
.contact-info-row a:hover { color: var(--brand-green-hover); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* Switch banner */
.switch-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #24378A 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.switch-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.switch-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--brand-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-title { color: #fff; font-size: clamp(26px, 4vw, 36px); }

.switch-description {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  font-size: 17px;
}

.switch-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============ Footer ============ */
.main-footer {
  background-color: var(--brand-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 52px; width: auto; }

.footer-brand-text h3 { color: #fff; font-size: 18px; }
.footer-brand-text h3 .green { color: var(--brand-green-soft); }
.footer-brand-text p { font-size: 11px; color: rgba(255, 255, 255, 0.5); font-style: italic; }

.footer-desc { margin-top: 16px; line-height: 1.7; }

.footer-contact-list, .footer-hours-list, .footer-site-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item, .footer-hours-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-item svg, .footer-hours-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green-soft);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a:hover { color: #fff; }

.footer-site-list a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .contact-details-bar { display: none; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--brand-navy);
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .nav-links a { border-bottom: none; border-left: 3px solid transparent; }
  .nav-links a.active { border-left-color: var(--brand-green-soft); }

  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { margin: 0 16px; }

  .highlights-grid, .grid-3-col, .steps-grid { grid-template-columns: 1fr; }

  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 560px) {
  .section-padding { padding: 64px 0; }
  .hero-section { padding: 56px 0 88px; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-card-1 { top: -20px; left: 0; }
  .floating-card-2 { bottom: -20px; right: 0; }
  .hero-logo-card { padding: 28px; }
  .call-panel { padding: 36px 24px; }
  .contact-info-card { padding: 28px; }
}
