/* Mental Health Arizona - site styles
   Recreates the look of the original WordPress "News Pro" theme,
   with mobile layout and accessibility fixes. */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-italic.woff2") format("woff2"); }

:root {
  --page-bg: #dceef2;
  --text: #000;
  --link: #0000ff;
  --border: #e3e3e3;
  --muted: #595959;
  --focus: #b35900;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
main a:not(.button) { text-decoration: underline; text-underline-offset: 2px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

p { margin: 0 0 24px; }
h1, h2, h3, h4, h5, h6 { color: #000; font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
hr { border: 0; border-top: 1px solid #ccc; margin: 24px 0; }
ul, ol { margin: 0 0 26px 40px; padding: 0; }

/* Utilities */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #000; color: #fff; padding: 12px 16px; font-weight: 700;
}
.skip-link:focus { top: 8px; color: #fff; }
.center { text-align: center; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.underline { text-decoration: underline; }
.big { font-size: 26px; line-height: 1.45; }
.bigger { font-size: 22px; line-height: 1.45; }
.boxed { border: 1px solid #000; padding: 8px 14px; margin: 0 auto 24px; max-width: 708px; }
.boxed p { margin: 0; }
.icon { vertical-align: middle; margin-right: 6px; }

/* Layout */
.site-container {
  background-color: #fff;
  border: 1px solid var(--border);
  margin: 60px auto;
  max-width: 1140px;
}

.site-header { padding: 40px 40px 24px; }
.site-title { margin: 0; line-height: 1; }
.site-title a { display: inline-block; }
.site-title img { display: block; width: 495px; max-width: 100%; }

.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-primary a {
  display: block; padding: 20px 24px;
  color: var(--link); font-size: 12px; font-weight: 700; line-height: 1.5;
  text-transform: uppercase; text-decoration: none;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { background-color: #000; color: #fff; text-decoration: none; }

.site-inner { display: block; }
.content-sidebar .site-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}
.entry { padding: 40px; }
.entry-title { font-size: 36px; line-height: 1; margin-bottom: 24px; }
.full-width .entry { max-width: 1060px; margin: 0 auto; }

.sidebar { padding: 40px 20px 40px 0; }
.sidebar .widget { border-bottom: 1px solid var(--border); padding: 20px; }
.sidebar .widget:first-child { padding-top: 0; }
.sidebar h2 { font-size: 20px; margin-bottom: 12px; }
.sidebar .key { font-size: 14px; font-weight: 400; line-height: 1.5; }
.sidebar .key b { font-weight: 700; }

.site-footer { color: var(--muted); font-size: 14px; padding: 40px 20px; text-align: center; }
.site-footer p { margin: 0; }

/* Condition (educational) link lists */
.conditions { margin: 0; }
.conditions details { border-bottom: 1px solid var(--border); }
.conditions summary {
  cursor: pointer; padding: 6px 0;
  color: var(--link); font-size: 14px; font-weight: 700;
  list-style-position: inside;
}
.conditions summary:hover { color: #000; }
.conditions ul { margin: 0 0 10px 18px; font-size: 14px; line-height: 1.5; }
.conditions li { margin: 0 0 6px; }
.entry .conditions summary { font-size: 16px; }
.entry .conditions ul { font-size: 16px; }

/* Group listings */
.group { margin-bottom: 22px; }
.group p { margin: 0; }

/* Testimonials */
.quotes { list-style: none; margin: 0 0 26px; }
.quotes li { margin: 0 0 20px 40px; padding-left: 16px; border-left: 3px solid var(--border); }

/* Form */
.signup-form { max-width: 600px; margin: 0 0 32px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 12px; font: inherit; font-size: 16px;
  border: 1px solid #767676; border-radius: 2px; background: #fff; color: #000;
}
.field textarea { min-height: 160px; resize: vertical; }
.field .choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-bottom: 8px; }
.field .choice input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.field [aria-invalid="true"] { border-color: #c00; border-width: 2px; }
.field-error { color: #b00000; font-size: 14px; font-weight: 700; margin-top: 4px; }
.req-note { font-size: 14px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button {
  background-color: #000; border: none; border-radius: 3px; color: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1; padding: 16px 24px; text-transform: uppercase;
}
.button:hover { background-color: #333; }
.button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 16px; padding: 12px 16px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.success { background: #e6f4ea; border: 1px solid #1e7e34; }
.form-status.error { background: #fdecea; border: 1px solid #b00000; }
.cf-turnstile { margin-bottom: 20px; min-height: 65px; }

/* Tablet */
@media (max-width: 1023px) {
  .site-container { margin: 16px; }
  .content-sidebar .site-inner { display: block; }
  .sidebar { padding: 0 20px 20px; }
  .sidebar .widget:first-child { padding-top: 20px; }
  .find-support img { max-width: 240px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-container { margin: 0; border: 0; }
  .site-header { padding: 20px 16px 12px; }
  .nav-primary ul { justify-content: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .nav-primary li { flex: 1 1 50%; text-align: center; }
  .nav-primary a { padding: 14px 8px; font-size: 13px; }
  .entry { padding: 24px 16px; }
  .entry-title { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .big { font-size: 21px; }
  .bigger { font-size: 19px; }
  ul, ol { margin-left: 24px; }
  .quotes li { margin-left: 0; }
  .sidebar { padding: 0 0 16px; }
  .sidebar .widget { padding: 16px; }
  .site-footer { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.group-name { font-size: inherit; line-height: 1.625; margin: 0; }
.group p strong { font-weight: 700; }
