/* =========================================================
   North D Pharmacy — design system
   Warm, trustworthy, community-first. Not a chain.
   ========================================================= */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400&display=swap');

/* ----- Tokens ----- */
:root {
  --bg:          #F4F6F9;
  --bg-2:        #FFFFFF;
  --bg-3:        #EBF0F6;
  --ink:         #151C26;
  --ink-soft:    #3F5068;
  --muted:       #7A8FA6;
  --blue:        #1672A4;
  --blue-dark:   #115A86;
  --blue-light:  #DDF0F7;
  --teal:        #2DC5A2;
  --teal-light:  #E4F9F4;
  --amber:       #B86A1A;
  --amber-light: #FDF3E7;
  --rule:        #D6E0EA;
  --shadow-sm:   0 1px 4px rgba(21,28,38,.07);
  --shadow-md:   0 4px 16px rgba(21,28,38,.12);

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --container: 1200px;
  --header-h:  72px;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ----- Typography ----- */
h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}
p { max-width: 65ch; }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--space-5); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(26,107,74,.3);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  background: var(--bg-3);
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,244,240,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.header-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.header-nav a:hover { color: var(--ink); background: var(--bg-3); }
.header-cta {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  line-height: 1;
}
.lang-toggle-option {
  padding: 5px 11px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.lang-toggle-active {
  background: var(--ink);
  color: #fff;
}
.lang-switcher {
  color: var(--ink-soft);
  background: transparent;
}
.lang-switcher:hover {
  background: var(--bg-3);
  color: var(--ink);
}
/* Hide text label on small screens, show icon-style */
@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
}

/* ----- Hero ----- */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-4);
}
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
  max-width: 48ch;
}
.hero-sub em {
  color: var(--amber);
  font-style: italic;
}
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.hero-hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  max-width: fit-content;
}
.hero-hours .hours-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.hours-row {
  display: flex;
  gap: var(--space-4);
  font-size: 14px;
}
.hours-day {
  font-weight: 500;
  color: var(--ink);
  min-width: 80px;
}
.hours-time { color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; }
.hours-row.closed .hours-time { color: var(--muted); }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--bg-3) 100%);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  padding: var(--space-6);
  text-align: center;
}
.hero-photo-placeholder svg { opacity: 0.4; }

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
  margin-top: var(--space-7);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-item svg { color: var(--blue); flex-shrink: 0; }
.trust-item.spanish { color: var(--amber); font-style: italic; }

@media (max-width: 768px) {
  .hero { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16/9; order: -1; }
  .hero-sub { font-size: 16px; }
}

/* ----- Section shell ----- */
.section {
  padding-block: var(--space-9);
}
.section-alt { background: var(--bg-3); }
.section-white { background: var(--bg-2); }
.section-green { background: var(--blue); color: #fff; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-3);
}
.section-green .section-label { color: rgba(255,255,255,.7); }

.section-heading {
  margin-bottom: var(--space-3);
}
.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: var(--space-7);
  max-width: 52ch;
}

/* ----- Services grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: var(--space-4);
}
.service-card h3 { margin-bottom: var(--space-2); font-size: 17px; }
.service-card p { font-size: 15px; color: var(--ink-soft); max-width: 40ch; }

/* ----- Transfer CTA band ----- */
.transfer-band {
  background: var(--blue);
  color: #fff;
  padding-block: var(--space-8);
}
.transfer-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.transfer-band h2 { color: #fff; margin-bottom: var(--space-2); }
.transfer-band p { color: rgba(255,255,255,.8); max-width: 52ch; }
.btn-white {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover { background: var(--blue-light); border-color: var(--blue-light); }
@media (max-width: 640px) {
  .transfer-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ----- About / Trust ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--bg-3) 100%);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-4);
  background: linear-gradient(160deg, #0B3250 0%, #1672A4 100%);
  color: rgba(255,255,255,.85);
  font-size: 14px; text-align: center; padding: var(--space-7);
}
.about-photo-placeholder svg { opacity: 0.5; color: #fff; width: 72px; height: 72px; }
.about-photo-placeholder span { color: rgba(255,255,255,.6); font-size: 13px; }

.about-content .section-label { display: block; }
.about-bio { font-size: 17px; color: var(--ink-soft); margin-bottom: var(--space-6); }
.about-bio p + p { margin-top: var(--space-4); }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-chip svg { color: var(--blue); }
.trust-chip.spanish { color: var(--amber); border-color: var(--amber-light); background: var(--amber-light); }

/* ----- Vaccines ----- */
.vaccines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.vaccines-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--bg-3) 100%);
}
.vaccines-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
@media (max-width: 768px) {
  .vaccines-grid { grid-template-columns: 1fr; }
  .vaccines-photo { order: -1; aspect-ratio: 4/3; }
}

.vaccines-content .section-label { display: block; }

.vaccine-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.vaccine-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: var(--blue-light);
  border-radius: var(--radius);
}
.vaccine-item strong { font-size: 22px; font-weight: 700; color: var(--blue-dark); line-height: 1.1; }
.vaccine-item span { font-size: 14px; color: var(--ink-soft); }

.vaccine-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 16px;
  color: var(--ink-soft);
}
.vaccine-points li { display: flex; align-items: flex-start; gap: var(--space-3); }
.vaccine-points svg { flex-shrink: 0; margin-top: 4px; color: var(--blue); }

.vaccine-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.contact-item-text .label {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: var(--space-1);
}
.contact-item-text .value {
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.contact-item-text .value a:hover { color: var(--blue); }
.contact-phone-big {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 24px; font-weight: 600; color: var(--blue);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.contact-phone-big:hover { color: var(--blue-dark); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 4/3;
}
.map-embed iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ----- Reviews CTA band ----- */
.reviews-band {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  padding-block: var(--space-9);
  text-align: center;
}
.reviews-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 560px;
  margin-inline: auto;
}
.reviews-band .section-label { margin-bottom: 0; }
.reviews-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.reviews-band p { color: var(--ink-soft); max-width: 46ch; text-align: center; }
.reviews-btns {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}
.btn-review-google,
.btn-review-yelp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1.5px solid var(--rule);
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-review-google:hover { background: #f1f3ff; border-color: #4285F4; box-shadow: var(--shadow-md); }
.btn-review-yelp:hover   { background: #fff1f1; border-color: #D32323; box-shadow: var(--shadow-md); }

/* ----- Footer ----- */
.site-footer {
  background: #0B3250;
  color: rgba(255,255,255,.7);
  padding-block: var(--space-7);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-name { font-weight: 600; font-size: 15px; color: #fff; }
.footer-meta { font-size: 13px; line-height: 1.8; }
.footer-meta strong { color: rgba(255,255,255,.9); }
.footer-reviews { font-size: 13px; display: flex; gap: var(--space-3); align-items: center; color: rgba(255,255,255,.4); }
.footer-review-link { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-review-link:hover { color: #fff; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,.4); }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-5); }
}
