/* CommunityUrgentCare.ca — static rebuild stylesheet
   Plain CSS, no build step, no framework. */

:root {
  --navy: #11182a;
  --blue-text: #2c4874;
  --blue-dark: #024a87;
  --blue-mid: #1b6ca8;
  --purple-dark: #5c3d6b;
  --purple-mid: #7d5990;
  --pink: #a91f52;
  --pink-hover: #841441;
  --orange: #f0a94e;
  --orange-edge: #d97f1d;
  --hero-bg: #eaf5f4;
  --hero-circle: #cfe6f7;
  --white: #ffffff;
  --max-width: 960px;
  --focus-ring: #ffbf47;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 1.125rem;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
}

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

a {
  color: var(--pink);
}

a:hover {
  color: var(--pink-hover);
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* Site header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue-dark);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--navy);
}

.site-header__brand img {
  width: 40px;
  height: 40px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--blue-text);
  padding: 0.4rem 0.2rem;
}

.site-nav a[aria-current="page"] {
  color: var(--pink);
  border-bottom: 3px solid var(--pink);
}

/* Hero */
.hero {
  position: relative;
  background: var(--hero-bg) url("../img/hero-bg.jpg") right top / 480px auto no-repeat;
  padding: 3rem 1.25rem 2.5rem;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  color: var(--navy);
}

.hero__emergency {
  font-weight: 700;
  max-width: 40em;
  margin: 0 auto 1.5rem;
}

.hero__sub {
  color: var(--blue-text);
  font-family: var(--font-display);
  font-weight: 700;
  max-width: 42em;
  margin: 0 auto;
  letter-spacing: 0.08em;
}

.hero__back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
}

/* Ribbon section title */
.ribbon-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1.25rem 0;
  background: var(--white);
}

.ribbon {
  background: var(--orange);
  border-bottom: 6px solid var(--orange-edge);
  color: var(--navy);
  padding: 0.9rem 2.5rem;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  max-width: 90%;
}

.ribbon h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Colour bands */
.band {
  padding: 2.5rem 1.25rem;
  color: var(--white);
}

.band--blue-1 { background: var(--blue-dark); }
.band--blue-2 { background: var(--blue-mid); }
.band--purple-1 { background: var(--purple-dark); }
.band--purple-2 { background: var(--purple-mid); }

.band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.band a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 700;
}

.band a:hover {
  color: var(--white);
  text-decoration-thickness: 2px;
}

/* Service card: icon + details + action, 3-col on desktop */
.service {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.service__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.service__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.service__body p.subtitle {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.service__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.service__meta li {
  margin-bottom: 0.15rem;
}

.service__meta .label {
  font-weight: 700;
}

.service__action {
  justify-self: end;
}

/* Reversed layout variant (icon on the right) */
.service--reverse {
  grid-template-columns: auto 1fr 96px;
}

.service--reverse .service__icon {
  order: 3;
}

.service--reverse .service__action {
  order: 1;
  justify-self: start;
}

.service--reverse .service__body {
  order: 2;
}

/* Simple contact-style row (icon + text + link), used for "Other health care
   needs" and mental-health resource lists */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list .icon-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-list .icon-sm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-list a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

.resource {
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 1.5rem;
  align-items: start;
}

.resource__icon {
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource__icon img {
  max-width: 140px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.resource__body h3 {
  margin: 0 0 0.5rem;
}

.resource__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.resource__contacts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.resource__contacts .icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.resource__contacts .icon-sm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource__contacts a {
  color: var(--white);
  font-weight: 700;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

.button:hover {
  background: var(--pink-hover);
  color: var(--white);
}

/* Plain-text section (pharmacy, notices) */
.plain-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.plain-section p {
  font-size: 1.05rem;
}

/* Illustration strip */
.people-strip {
  background: var(--white);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.people-strip img {
  margin: 0 auto;
  max-width: min(640px, 100%);
  height: auto;
}

/* Footer / OHT partner logos */
.site-footer {
  background: var(--white);
  border-top: 3px solid var(--blue-dark);
  padding: 2rem 1.25rem 2.5rem;
}

.site-footer__partners {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.site-footer__partners img {
  max-height: 60px;
  width: auto;
}

.site-footer__note {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: #444;
}

.site-footer__note a {
  color: var(--blue-text);
}

/* Responsive: stack the 3-col layouts on narrow screens */
@media (max-width: 700px) {
  .service,
  .service--reverse {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .service--reverse .service__icon,
  .service--reverse .service__action,
  .service--reverse .service__body,
  .service__icon,
  .service__action,
  .service__body {
    order: initial;
    justify-self: center;
  }

  .service__icon {
    order: -1;
  }

  .resource {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .resource__contacts {
    justify-items: center;
  }

  .resource__contacts li {
    justify-content: center;
  }

  .hero {
    background-size: 320px auto;
  }

  .site-header__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ribbon {
    padding: 0.8rem 1.25rem;
    clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
  }
}

/* Print: keep it simple/readable */
@media print {
  .band, .band--blue-1, .band--blue-2, .band--purple-1, .band--purple-2 {
    background: none !important;
    color: var(--navy) !important;
  }
  .button { border: 1px solid var(--navy); }
}

/* r97 (REPORT-95f S9): phone numbers are tap-to-call (tel:/sms:) and never break across lines ("9-" / "1-1") */
.nb { white-space: nowrap; }
.hero__emergency a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.resource__contacts a.nb, .resource__contacts a.tel { display: inline-block; padding: 10px 0; font-weight: 700; }
