/* ============================================================
   Shepparton Centre Pharmacy — shared styles
   Brand: teal #31A093 · orange #F58220 · navy #002564
   ============================================================ */

:root {
  --teal: #31A093;
  --teal-dark: #26857A;
  --teal-light: #E4F3F1;
  --orange: #F58220;
  --orange-dark: #D96D0E;
  --navy: #002564;
  --ink: #22303A;
  --muted: #5A6B75;
  --bg: #F7FAF9;
  --card: #FFFFFF;
  --line: #E2ECEA;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--teal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 37, 100, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand-icon { width: 44px; height: 44px; flex-shrink: 0; }

.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 0.85rem;
  color: #FFE3C7;
  line-height: 1.3;
}

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

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s;
  white-space: nowrap;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.18); }

.site-nav a.active { background: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px 72px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 14px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 28px;
  color: #EAF7F5;
}

.hero .badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Slim page-title hero used on secondary pages */
.page-hero { padding: 40px 20px 44px; }
.page-hero h1 { margin-bottom: 6px; }
.page-hero p.lead { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1rem;
  transition: transform 0.1s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }

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

.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

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

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  text-align: center;
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 37, 100, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0, 37, 100, 0.12); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 16px;
}

.service-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.2rem; }

.service-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }

.service-card .card-link {
  margin-top: 16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Hours & contact ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.hours-table td:last-child { text-align: right; font-weight: 600; }

.hours-table tr.closed td { color: var(--muted); }

.open-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
  text-transform: uppercase;
}

.contact-list { list-style: none; }

.contact-list li {
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  overflow-wrap: anywhere;
}

.contact-list .label { font-weight: 700; color: var(--navy); min-width: 64px; }

.contact-list a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 37, 100, 0.08);
}

/* ---------- Promotions ---------- */

.promo-month {
  text-align: center;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.promo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 37, 100, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.promo-image {
  height: 170px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.promo-image img { width: 100%; height: 100%; object-fit: cover; }

.promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.promo-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }

.promo-body h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }

.promo-body p { color: var(--muted); font-size: 0.9rem; flex: 1; }

.promo-prices { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }

.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }

.price-now { color: var(--orange); font-weight: 800; font-size: 1.5rem; }

.promo-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 30px;
}

/* ---------- Booking ---------- */

.booking-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 37, 100, 0.05);
}

/* Ensure the Checkfront iframe is usable even if its auto-resize
   messages don't come through. */
.booking-widget iframe {
  width: 100% !important;
  min-height: 900px;
  border: 0;
}

.booking-fallback { text-align: center; margin-top: 22px; }

.booking-fallback p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }

/* ---------- Webster-pak page ---------- */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
}

.split .photo img {
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 37, 100, 0.15);
}

.check-list { list-style: none; margin-top: 16px; }

.check-list li {
  padding: 7px 0 7px 34px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.dose-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}

.dose-cell .dose-emoji { font-size: 1.8rem; }

.dose-cell h4 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dose-cell p { color: var(--muted); font-size: 0.85rem; }

.free-callout {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  border-radius: 20px;
  text-align: center;
  padding: 44px 28px;
}

.free-callout h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px; }

.free-callout p { max-width: 560px; margin: 0 auto 22px; font-size: 1.05rem; }

.free-callout .btn { background: #fff; color: var(--orange-dark); }
.free-callout .btn:hover { background: #FFF3E6; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #C9D6EC; margin-top: 56px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 44px 0 30px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer p, .site-footer li { font-size: 0.92rem; line-height: 1.7; overflow-wrap: anywhere; }

.site-footer ul { list-style: none; }

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(0, 37, 100, 0.25);
  }

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

  .site-nav a { padding: 12px 16px; border-radius: 10px; }

  .brand-name { font-size: 1rem; white-space: normal; }

  .info-grid, .split { grid-template-columns: 1fr; }

  .split .photo { max-width: 380px; margin: 0 auto; }

  .hero { padding: 44px 20px 52px; }
}

@media (max-width: 480px) {
  .brand-icon { width: 36px; height: 36px; }
  .brand-name { font-size: 0.9rem; }
  .brand-tagline { display: none; }
}
