/* ===== QD Pharmacy — qd-pharmacy.com ===== */
:root {
  --navy: #1d3557;
  --navy-dark: #16283f;
  --green: #4a9b6e;
  --green-dark: #3c7f5a;
  --ink: #24313f;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-gray: #f3f6f8;
  --line: #e2e8ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 53, 87, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.15rem; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.9rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  gap: 1rem;
}
.topbar-open {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #9fd7b9;
}
.topbar-phone { color: #fff; text-decoration: none; font-weight: 700; }
.topbar-phone:hover { color: #9fd7b9; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-logo { width: 54px; height: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand-text small {
  color: var(--green);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--green); }
.btn-nav { padding: 0.55rem 1.2rem; color: #fff !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #eef5f0 0%, #e7eef6 60%, #f6f9fb 100%);
  padding: 4.5rem 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.eyebrow.center { text-align: center; }
.eyebrow.light { color: #9fd7b9; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 900;
  margin-bottom: 1.1rem;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-points {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  border-top: 5px solid var(--green);
}
.hero-logo { width: 110px; margin: 0 auto 1rem; }
.hero-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.hero-card p { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.98rem; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-gray { background: var(--bg-gray); }
.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.8rem;
  font-size: 1.08rem;
}

/* ===== Cards grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Compounding ===== */
.section-navy {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #dbe6ef;
}
.compounding-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.section-navy h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}
.compounding-copy p { margin-bottom: 1.6rem; font-size: 1.05rem; }
.compounding-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.compounding-list li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.compounding-list strong { color: #fff; font-size: 1rem; }
.compounding-list span { font-size: 0.88rem; color: #b9c8d6; }

/* ===== About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.about-copy p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.highlight {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.highlight-num {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--green);
}
.highlight-label { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* ===== Visit ===== */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.visit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}
.visit-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.visit-card p { color: var(--muted); margin-bottom: 1rem; }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.hours-table td {
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.hours-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.hours-table td:last-child { text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--green);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}
.cta-band p { margin-bottom: 1.5rem; font-size: 1.1rem; opacity: 0.92; }
.cta-band .btn-green {
  background: #fff;
  color: var(--green-dark);
}
.cta-band .btn-green:hover { background: #eef7f1; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: #b9c8d6;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-logo { width: 70px; margin-bottom: 0.8rem; background: #fff; border-radius: 50%; padding: 6px; }
.footer-brand p { line-height: 1.5; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-col h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.footer-col p { margin-bottom: 0.4rem; font-size: 0.95rem; }
.footer-col a { color: #b9c8d6; text-decoration: none; }
.footer-col a:hover { color: #9fd7b9; }
.footer-hours { font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  font-size: 0.85rem;
  text-align: center;
}
.footer-bottom a { color: #9fd7b9; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .compounding-inner, .about-inner { grid-template-columns: 1fr; }
  .grid-3, .visit-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4%;
    gap: 0.9rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 640px) {
  .grid-3, .visit-grid, .compounding-list, .about-highlights, .footer-inner { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 0.15rem; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
}
