/* InterWest Health — site styles (original stylesheet, modelled on the previous site's look) */

@font-face {
  font-family: "Inter var";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/Inter-upright-var.woff2) format("woff2");
}

:root {
  --accent: #ee0606;
  --button: #b2292e;
  --button-hover: #8f1f23;
  --text: #000;
  --muted: #6d6d6d;
  --border: #dcd7ca;
  --light-bg: #f5efe0;
  --header-h: 96px;
  --content-w: 58rem;
  --wide-w: 120rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--text);
  background: #e8f1fa;
  -webkit-font-smoothing: antialiased;
}
@supports (font-variation-settings: normal) { body { font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; }
a:hover, a:focus { text-decoration: none; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; letter-spacing: -0.0145em; margin: 3.5rem 0 2rem; }
h1 { font-size: 4rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.1rem; }
p { margin: 0 0 1.5em; }
ul { margin: 0 0 1.5em 3rem; padding: 0; }
li { margin: 0.5rem 0; }
hr { border: 0; border-top: 1px solid var(--border); width: min(30rem, 60%); margin: 5rem auto; }
.center { text-align: center; }
.center img, img.center { margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: -9999rem; top: 2.5rem; z-index: 999; background: #fff; color: #000; padding: 1rem 2rem; font-size: 1.6rem; }
.skip-link:focus { left: 2.5rem; }

/* Header */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: var(--wide-w); margin: 0 auto; padding: 0 2rem; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo img { width: 200px; height: auto; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.8rem 2.5rem; }
.primary-menu li { position: relative; margin: 0; }
.primary-menu a { color: var(--text); text-decoration: none; font-size: 1.8rem; font-weight: 500; letter-spacing: -0.0277em; display: block; padding: 0.4rem 0; }
.primary-menu a:hover, .primary-menu a:focus, .primary-menu a[aria-current="page"] { text-decoration: underline; }
.has-children { display: flex; align-items: center; }
.submenu-toggle { background: none; border: 0; padding: 0.4rem; margin-left: 0.4rem; cursor: pointer; color: var(--text); }
.submenu-toggle::after { content: ""; display: block; width: 0.7rem; height: 0.7rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub-menu {
  list-style: none; margin: 0; padding: 0.8rem 0;
  position: absolute; top: 100%; right: -2rem; min-width: 24rem;
  background: #000; border-radius: 0.4rem;
  opacity: 0; visibility: hidden; transform: translateY(0.6rem);
  transition: opacity .15s linear, transform .15s linear, visibility 0s .15s;
}
.sub-menu::before { content: ""; position: absolute; top: -1rem; right: 2.4rem; border: 0.5rem solid transparent; border-bottom-color: #000; }
.sub-menu a { color: #fff; padding: 1rem 2rem; font-size: 1.6rem; }
.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu,
.has-children.open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .15s linear, transform .15s linear; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font: inherit; font-size: 1.4rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); flex-direction: column; align-items: center; gap: 0.8rem; padding: 1rem; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 2.6rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

@media (max-width: 1000px) {
  :root { --header-h: 80px; }
  .site-logo img { width: 150px; }
  .nav-toggle { display: flex; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .primary-nav.open { display: block; }
  .primary-menu { flex-direction: column; gap: 0; padding: 1rem 2rem 2rem; }
  .primary-menu > li { border-bottom: 1px solid var(--border); }
  .primary-menu a { padding: 1.4rem 0; }
  .has-children { flex-wrap: wrap; justify-content: space-between; }
  .sub-menu { position: static; display: none; width: 100%; background: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 1rem 2rem; min-width: 0; transition: none; }
  .sub-menu::before { display: none; }
  .sub-menu a { color: var(--text); padding: 1rem 0; }
  .has-children.open > .sub-menu { display: block; }
}

/* Cover / hero */
.cover {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 29rem; padding: 4rem 2rem;
  background: #4d5b62 url(../img/landscapenew-3.png) center / cover no-repeat;
  text-align: center;
}
@media (min-width: 1000px) and (hover: hover) { .cover { background-attachment: fixed; } }
.cover h1 { color: #fff; font-size: 4rem; margin: 0; letter-spacing: 1px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.cover p { color: #fff; font-size: 2rem; margin: 1rem 0 0; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.cover--home { min-height: 50rem; }
.cover--home h1 + h1 { margin-top: 4rem; }

/* Content */
.content { max-width: var(--content-w); margin: 0 auto; padding: 4rem 2rem 6rem; }
.content > :first-child { margin-top: 0; }
.figure { margin: 3rem auto; padding: 0 2rem; }
.content-heading { text-align: center; font-size: 3.6rem; margin: 5rem 2rem 2rem; }

.button, button[type="submit"] {
  display: inline-block; background: var(--button); color: #fff; text-decoration: none;
  font-family: inherit; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.0333em; text-transform: uppercase;
  line-height: 1.25; padding: 1.6rem 2.4rem; border: 0; border-radius: 0; cursor: pointer; text-align: center;
}
.button:hover, .button:focus, button[type="submit"]:hover, button[type="submit"]:focus { background: var(--button-hover); color: #fff; text-decoration: underline; }
.button-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 2.5rem 0; }

/* Home feature tiles */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; max-width: 110rem; margin: 0 auto; padding: 6rem 2rem; text-align: center; }
.feature img { width: 22rem; margin: 0 auto 2rem; }
.feature p { font-size: 1.9rem; font-weight: 600; line-height: 1.4; margin: 2.5rem 0 0; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }

/* Network blocks */
.network-block { text-align: center; max-width: 70rem; margin: 0 auto; padding: 0 2rem; }
.network-block h2 { font-size: 2.5rem; margin: 0 0 1rem; }
.network-block p { font-size: 1.9rem; }

/* WC state grid */
.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 100rem; margin: 3rem auto 2rem; padding: 0 2rem; }
.state-grid .button { display: flex; align-items: center; justify-content: center; min-height: 7rem; }
@media (max-width: 800px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }

/* About */
.about-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; max-width: 110rem; margin: 0 auto; padding: 5rem 2rem 0; align-items: start; }
.about-intro figure { margin: 0 0 2rem; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } }
.bio { display: grid; grid-template-columns: 25rem 1fr; gap: 4rem; align-items: start; max-width: 100rem; margin: 0 auto; padding: 0 2rem 6rem; }
.bio img { border-radius: 50%; width: 22rem; margin: 0 auto; }
.bio h2 { font-size: 2.1rem; margin: 2rem 0 0.5rem; text-align: center; }
.bio .role { text-align: center; color: var(--muted); }
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; } }

/* File download */
.file-download { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 3rem 0; }

/* News */
.post-list { list-style: none; margin: 0; }
.post-list li { margin: 0 0 4rem; }
.post-list h2 { font-size: 2.8rem; margin: 0 0 1.5rem; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 1.5rem; font-weight: 500; }
.post-meta a { color: var(--muted); }
.post-header { text-align: center; max-width: 80rem; margin: 0 auto; padding: 6rem 2rem 0; }
.post-header h1 { font-size: 4.2rem; margin: 1rem 0 0; }
.archive-header { background: var(--light-bg); text-align: center; padding: 5rem 2rem; }
.archive-header h1 { margin: 0; font-size: 3.2rem; }
.archive-header span { color: var(--muted); font-weight: 500; }

/* Forms */
.form-wrap { background: var(--light-bg); padding: 6rem 2rem; }
.site-form { max-width: 70rem; margin: 0 auto; background: #fff; padding: 4rem; }
@media (max-width: 600px) { .site-form { padding: 2.5rem 1.8rem; } }
.site-form h2 { font-size: 2.4rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.site-form h2:not(:first-of-type) { margin-top: 4rem; }
.site-form .section-desc { font-size: 1.6rem; margin-bottom: 2rem; }
.field { margin: 2.2rem 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.req { color: #c02b0a; font-weight: 400; font-size: 1.4rem; margin-left: 0.3rem; }
.sub-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
.sub-fields .full { grid-column: 1 / -1; }
.sub-fields label { display: block; font-size: 1.4rem; color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 600px) { .sub-fields { grid-template-columns: 1fr; } }
.site-form input[type="text"], .site-form input[type="email"], .site-form input[type="tel"], .site-form input[type="date"], .site-form select, .site-form textarea {
  width: 100%; font: inherit; font-size: 1.6rem; color: var(--text);
  padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 0; background: #fff;
}
.site-form textarea { min-height: 16rem; resize: vertical; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus { outline: 2px solid var(--button); outline-offset: 1px; }
.choice-row { display: flex; gap: 2.5rem; }
.choice-row label { font-weight: 400; font-size: 1.6rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.site-form [aria-invalid="true"] { border-color: #c02b0a !important; }
.field-error { color: #c02b0a; font-size: 1.4rem; margin-top: 0.4rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 2rem 0 0; padding: 1.5rem 2rem; font-size: 1.6rem; }
.form-status:empty { display: none; }
.form-status.error { background: #fbeaea; border: 1px solid #e6b3ab; color: #8a1f0a; }
.form-status.success { background: #e9f6ec; border: 1px solid #b5d8bc; color: #1d5a22; }
.form-actions { margin-top: 3rem; }
button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
#site-footer { border-top: 1px solid var(--border); font-size: 1.6rem; font-weight: 600; }
.footer-inner { max-width: var(--wide-w); margin: 0 auto; padding: 3.5rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-inner p { margin: 0; }
#site-footer a { color: var(--text); text-decoration: none; }
#site-footer a:hover { text-decoration: underline; }

.not-found { text-align: center; padding: 8rem 2rem; }

@media print {
  #site-header, #site-footer, .nav-toggle { display: none; }
  body { padding-top: 0; }
  .cover { background: none; min-height: 0; }
  .cover h1 { color: #000; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
