/* ============================================================
   Pharma Dispensers — site stylesheet
   Built from the Claude Design system handoff (June 2026).
   Tokens reverse-engineered from pharmadispensers.com + logo art.
   ============================================================ */

:root {
  /* Brand */
  --pd-blue: #3c3a9c;
  --pd-blue-deep: #2e2c80;
  --pd-blue-tint: #ecebf7;
  --pd-red: #dd3b36;
  --pd-red-deep: #c12f2b;

  /* Neutrals */
  --pd-white: #ffffff;
  --pd-gray-100: #f3f3f3;
  --pd-gray-300: #e2e2e2;
  --pd-gray-500: #999999;
  --pd-gray-700: #666666;
  --pd-ink: #313131;

  /* Semantic */
  --text-heading: var(--pd-ink);
  --text-body: var(--pd-gray-700);
  --text-eyebrow: var(--pd-red);
  --text-on-brand: #ffffff;
  --text-link: var(--pd-blue);
  --surface-page: #ffffff;
  --surface-section-alt: var(--pd-gray-100);
  --surface-brand: var(--pd-blue);
  --surface-footer: var(--pd-ink);
  --border-default: var(--pd-gray-300);

  /* Type */
  --font-heading: "Montserrat", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;

  /* Spacing / shape */
  --content-max: 1080px;
  --space-section: 80px;
  --radius-sm: 3px;
  --radius-md: 8px;
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 12px rgba(49, 49, 49, 0.08);
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--surface-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--text-link); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0;
  text-wrap: pretty;
}

h1 { font-size: 44px; }
h2 { font-size: 40px; }

p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-main { flex: 1; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

.eyebrow--on-brand { color: var(--text-on-brand); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--primary {
  color: #ffffff;
  background: var(--pd-blue);
  border: 2px solid var(--pd-blue);
}
.btn--primary:hover {
  background: var(--pd-blue-deep);
  border-color: var(--pd-blue-deep);
}

.btn--outline {
  color: var(--pd-blue);
  background: transparent;
  border: 2px solid var(--pd-blue);
}
.btn--outline:hover {
  background: var(--pd-blue);
  color: #ffffff;
}

.btn--inverse {
  color: var(--pd-blue);
  background: #ffffff;
  border: 2px solid #ffffff;
}
.btn--inverse:hover {
  background: var(--pd-blue-tint);
  border-color: var(--pd-blue-tint);
}

/* ---- Badges ---- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.badge--brand {
  color: var(--pd-blue);
  background: var(--pd-blue-tint);
  border: 1px solid var(--pd-blue);
}

.badge--neutral {
  color: var(--pd-gray-700);
  background: #ffffff;
  border: 1px solid var(--border-default);
}

/* ---- Header ---- */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img { height: 52px; width: auto; }

.site-nav { display: flex; gap: 32px; }

.site-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--pd-ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease;
}

.site-nav a:hover { color: var(--pd-blue); }

.site-nav a.is-active {
  font-weight: 700;
  color: var(--pd-blue);
  border-bottom-color: var(--pd-red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pd-ink);
  margin: 5px 0;
  transition: transform 150ms ease, opacity 150ms ease;
}

/* ---- Sections ---- */
.section { background: var(--surface-page); }
.section--alt { background: var(--surface-section-alt); }
.section--brand { background: var(--surface-brand); }

.section__inner { padding-top: var(--space-section); padding-bottom: var(--space-section); }

/* Two-column text + image split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__copy { display: flex; flex-direction: column; gap: 14px; }

.split__img { width: 100%; border-radius: var(--radius-md); }

/* ---- Hero ---- */
.hero {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0) 75%),
    url("../img/hero-pharmacy.jpg");
  background-size: cover;
  background-position: center;
}

.hero__inner { padding-top: 120px; padding-bottom: 120px; display: flex; }

.hero__copy { max-width: 560px; display: flex; flex-direction: column; gap: 20px; }

.hero__title { text-transform: uppercase; }

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--pd-blue);
}

.hero__actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

/* ---- Testimonials ---- */
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.tcard {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tcard blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  flex: 1;
}

.tcard figcaption { display: flex; align-items: center; gap: 12px; }

.tcard__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pd-blue-tint);
}

.tcard__initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pd-blue-tint);
  color: var(--pd-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

.tcard__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-heading);
}

.tcard__place { display: block; font-size: 13px; color: var(--pd-gray-500); }

/* ---- Brand CTA band ---- */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.cta-band h2 { color: #ffffff; }

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

/* ---- Checklist (About) ---- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.checklist > div { display: flex; gap: 10px; align-items: baseline; }

.checklist .tick { color: var(--pd-blue); font-weight: 700; }

.checklist .item { font-size: 16px; line-height: 1.6; color: var(--text-body); }

/* About photo pair */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.photo-pair img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.photo-pair img:last-child { margin-top: 32px; }

/* ---- Product page ---- */
.product {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}

.product__media {
  background: var(--pd-gray-100);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__media img { width: 100%; max-width: 320px; mix-blend-mode: multiply; }

.product__facts {
  border-top: 1px solid var(--border-default);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product__facts dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.product__facts dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* Featured product image on home */
.feature-pack {
  width: 100%;
  max-width: 380px;
  justify-self: center;
  mix-blend-mode: multiply;
}

/* ---- Contact ---- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}

.contact-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 28px;
}

.contact-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card p { font-size: 15px; line-height: 1.7; }

.contact-card a:not(.btn) { color: var(--text-body); text-decoration: none; }
.contact-card a:not(.btn):hover { color: var(--pd-blue); }

.contact-intro { display: flex; flex-direction: column; gap: 48px; }

.contact-intro .section-head p { margin: 0 auto; max-width: 560px; }

/* ---- WhatsApp ---- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(49, 49, 49, 0.25);
  transition: background-color 150ms ease;
}

.wa-float:hover { background: #128c7e; }

.wa-float svg { width: 30px; height: 30px; fill: #ffffff; display: block; }

.btn--whatsapp {
  color: #ffffff;
  background: #25d366;
  border: 2px solid #25d366;
}
.btn--whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
}

/* ---- Footer ---- */
.site-footer { background: var(--surface-footer); }

.site-footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 150ms ease;
}

.footer-nav a:hover { color: #ffffff; }

.site-footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.5); text-align: center; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .product__media { max-width: 480px; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--media-first img.split__img,
  .split--media-first .feature-pack { order: -1; }
  .contact-cards { grid-template-columns: 1fr; }
  .section__inner { padding-top: 56px; padding-bottom: 56px; }
  .hero__inner { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 720px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .hero__tagline { font-size: 17px; }
  .eyebrow { font-size: 14px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(49, 49, 49, 0.12);
    padding: 8px 0;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--pd-gray-100);
  }

  .site-nav a.is-active { border-bottom-color: var(--pd-gray-100); }

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

  .hero {
    background-image:
      linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.85)),
      url("../img/hero-pharmacy.jpg");
  }
}
