/* Coldwater Pharmacy — stylesheet */
:root {
  --green: #00643d;         /* brand green (theme-color) */
  --green-dark: #00522f;
  --green-light: #e6f0ea;
  --green-hover: #00945a;
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --bg: #f6f8f7;
  --white: #fff;
  --border: #e2e8e4;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(0, 100, 61, 0.09);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .brand-name {
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
}

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

a { color: var(--green-dark); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 58px;
  width: auto;
  display: block;
}

/* Slim contact bar above the nav */
.topbar {
  background: var(--green);
  color: #fff;
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
}

.nav-links a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-links a.active { color: var(--green-dark); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--green);
  margin: 4px 8px 0;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn.secondary:hover { background: var(--green-light); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--green-light), var(--bg));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}
.hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 14px; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 420px;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid var(--border);
}
.hero-card h3 { margin: 0 0 10px; color: var(--green-dark); }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card li { margin: 6px 0; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: 2rem; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.page-head {
  background: var(--green);
  color: #fff;
  padding: 48px 0;
}
.page-head h1 { margin: 0 0 6px; font-size: 2.3rem; }
.page-head p { margin: 0; opacity: .9; font-size: 1.1rem; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--green-light); color: var(--green-dark);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* ---------- Content prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list .k { min-width: 90px; color: var(--muted); font-weight: 600; }
.info-list a { text-decoration: none; }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; color: var(--muted); }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field input[type="file"] {
  padding: 10px;
  background: #fafbfa;
  cursor: pointer;
}
.field .hint { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.notice {
  background: #fff8e6;
  border: 1px solid #f2e0a8;
  border-radius: 10px;
  padding: 12px 16px;
  color: #6b5600;
  font-weight: 600;
  font-size: .92rem;
}
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,122,61,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.req { color: #c0392b; }
.form-note { font-size: .85rem; color: var(--muted); }

.alert { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.alert.ok { background: #e7f6ec; color: #1a7a3d; border: 1px solid #bfe6cd; }
.alert.err { background: #fdecec; color: #b3271e; border: 1px solid #f5c6c3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cdd6d0;
  padding: 44px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #cdd6d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.footer-brand .mark {
  width: 40px; height: 40px; border-radius: 9px; background: var(--green);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px; padding-top: 18px;
  font-size: .85rem; color: #9fb0a6;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .brand img { height: 42px; }
  .topbar { font-size: .8rem; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links a.active::after { display: none; }
  .hero h1 { font-size: 2rem; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
