/* Braden Health hospital website template — generated design system.
   Source of truth: design_handoff_bh_hospital_websites (claude.ai/design).
   Tokens and values are copied exactly from the design prototype. */

:root {
  --bh-primary: #336432;
  --bh-dark: color-mix(in oklab, var(--bh-primary), black 30%);
  --bh-tint: color-mix(in oklab, var(--bh-primary), white 93%);
}

body {
  margin: 0;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  color: #263028;
  background: #fbfcfa;
  line-height: 1.6;
}

h1, h2, h3, summary, dt { font-family: 'Merriweather', Georgia, serif; }
h1 { letter-spacing: -0.015em; }
h2 { letter-spacing: -0.01em; }

a { color: var(--bh-dark); }
a:hover { color: var(--bh-primary); }

*:focus-visible { outline: 3px solid var(--bh-primary); outline-offset: 2px; border-radius: 2px; }

main:focus { outline: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 2000;
  background: var(--bh-dark);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #d8ded8;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #263028; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 300px; object-fit: contain; }
.brand-logo-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-logo-stack .brand-sub { padding-left: 2px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--bh-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-cross { position: relative; display: block; width: 20px; height: 20px; }
.brand-cross span:first-child { position: absolute; left: 8px; top: 0; width: 4px; height: 20px; background: #ffffff; border-radius: 2px; }
.brand-cross span:last-child { position: absolute; left: 0; top: 8px; width: 20px; height: 4px; background: #ffffff; border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: .005em; font-family: 'Merriweather', Georgia, serif; }
.brand-sub { font-size: .75rem; color: #566057; }

.main-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: #263028; padding: 6px 2px; }
nav a[aria-current="page"] { color: var(--bh-primary); box-shadow: inset 0 -3px 0 var(--bh-primary); }

/* Light-on-dark text renders artificially thick/fuzzy with subpixel
   antialiasing (halation); grayscale smoothing shows its true weight. */
.btn-primary, .btn-submit, .skip-link, .site-footer, .brand-mark {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--bh-primary); color: #ffffff; padding: 12px 22px; }
.btn-primary:hover { filter: brightness(.88); color: #ffffff; }
.btn-primary.btn-lg { padding: 13px 24px; }
.btn-primary.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-outline { border: 2px solid var(--bh-primary); color: var(--bh-dark); padding: 10px 20px; background: #ffffff; }
.btn-outline:hover { background: var(--bh-tint); }
.btn-outline.btn-lg { padding: 11px 22px; }
.btn-disabled { display: inline-flex; align-items: center; gap: 8px; background: #e4e8e4; color: #5c665d; padding: 12px 22px; border-radius: 6px; font-weight: 700; cursor: not-allowed; }
.btn-disabled.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-submit {
  background: var(--bh-primary); color: #ffffff;
  padding: 13px 22px; border-radius: 6px;
  font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-submit:hover { filter: brightness(.88); }

/* ---------- Layout containers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.container--narrow { max-width: 900px; }
.bh-split { display: flex; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid--250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card { background: #ffffff; border: 1px solid #d8ded8; border-radius: 10px; padding: 24px; }
.card-link {
  text-decoration: none;
  background: #ffffff; border: 1px solid #d8ded8; border-radius: 10px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  color: #263028;
}
.card-link:hover { border-color: var(--bh-primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .07); color: #263028; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--bh-dark); }
.card p { margin: 0; font-size: .94rem; color: #3c463d; }

.notice-box { background: var(--bh-tint); border: 1px solid #d8ded8; border-radius: 10px; padding: 24px; }
.notice-inline { background: var(--bh-tint); border: 1px solid #d8ded8; border-radius: 8px; padding: 14px 18px; font-size: .95rem; }
.success-box {
  background: var(--bh-tint); border: 1px solid var(--bh-primary); border-radius: 8px;
  padding: 14px 18px; margin: 0 0 20px;
  font-weight: 600; color: var(--bh-dark);
}

/* ---------- Info definition lists ---------- */
.info-list { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .98rem; }
.info-list dt { font-weight: 700; color: var(--bh-dark); }
.info-list dd { margin: 0; }

.history-copy { margin: 0 0 16px; }
.history-copy p { margin: 0 0 12px; max-width: 70ch; }

/* ---------- Page headings ---------- */
.page-h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: #1c2620; }
.page-lede { margin: 0 0 32px; color: #566057; font-size: 1.05rem; }
.section-h2 { margin: 0 0 12px; font-size: 1.3rem; color: var(--bh-dark); }

/* ---------- Photo placeholder slots ---------- */
/* Production stand-in for the prototype's <image-slot>: same footprint and
   empty-state look. Replace with real <img> photography before launch. */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  width: 100%; height: 100%;
  min-height: inherit;
  box-sizing: border-box;
  padding: 12px;
  background: rgba(127, 127, 127, .08);
  border: 1.5px dashed rgba(38, 48, 40, .35);
  border-radius: 14px;
  color: #566057;
  font-size: 13px;
  text-align: center;
}
.photo-slot--circle { border-radius: 50%; }
.hero-photo {
  display: block;
  width: 100%; height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: 14px;
}

/* Clickable live map view: the iframe renders the map, the overlay link makes
   the whole tile act like the Get Directions button. */
.map-embed { position: relative; width: 100%; height: 100%; min-height: inherit; border-radius: 14px; overflow: hidden; border: 1px solid #d8ded8; }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: inherit; border: 0; pointer-events: none; }
.map-embed-link { position: absolute; inset: 0; border-radius: 14px; }
.map-embed:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }

/* Text pages: main column + complementary aside (keeps ~70ch line length
   while using the side space) */
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.page-aside { position: sticky; top: 96px; }
.page-aside .card h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--bh-dark); }
@media (max-width: 900px) {
  .page-cols { grid-template-columns: 1fr; }
  .page-aside { position: static; }
}

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 12px;
  border: 1px solid #6f7a70;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.form-field select { background: #ffffff; }
.form-field textarea { resize: vertical; }
.req { color: #8a2323; }

/* ---------- Tables ---------- */
.hours-table { border-collapse: collapse; width: 100%; max-width: 560px; margin: 0 0 32px; font-size: .98rem; }
.hours-table caption { text-align: left; color: #566057; font-size: .85rem; padding: 0 0 8px; }
.hours-table tr { border-bottom: 1px solid #d8ded8; }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th { text-align: left; padding: 10px 16px 10px 0; color: var(--bh-dark); }
.hours-table td { padding: 10px 0; }

/* ---------- FAQ ---------- */
.faq-item { background: #ffffff; border: 1px solid #d8ded8; border-radius: 10px; padding: 18px 22px; }
.faq-item summary { font-weight: 700; color: var(--bh-dark); cursor: pointer; }
.faq-item p { margin: 12px 0 0; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: #1e2a20; color: #e8ede8; margin-top: 64px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto;
  padding: 52px 24px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.footer-h { margin: 0 0 12px; font-size: 1.05rem; color: #ffffff; }
.footer-blurb { margin: 0 0 16px; font-size: .92rem; color: #b9c4ba; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; }
.social-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #ffffff; text-decoration: none; font-weight: 800;
}
.social-circle:hover { background: var(--bh-primary); color: #ffffff; }
.social-circle--disabled { background: rgba(255, 255, 255, .06); color: #7c877d; cursor: not-allowed; }
.social-circle--disabled:hover { background: rgba(255, 255, 255, .06); color: #7c877d; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .94rem; }
.footer-links a { color: #cfd8cf; text-decoration: none; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-contact { color: #cfd8cf; }
.footer-csv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff !important;
  padding: 9px 14px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
  margin-top: 4px;
}
.footer-csv-btn:hover { background: var(--bh-primary); text-decoration: none !important; }
.footer-bottom {
  max-width: 1180px; margin: 40px auto 0;
  padding: 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: #a9b5aa;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cfd8cf; }

/* ---------- Responsive & print ---------- */
.nav-toggle { display: none; }
.header-cta .cta-short { display: none; }

@media (max-width: 900px) {
  .bh-split { flex-direction: column !important; }

  /* Slim single-row sticky header with a hamburger menu */
  .header-inner { flex-wrap: nowrap; gap: 10px; padding: 10px 16px; }
  .brand-logo { height: 34px; max-width: 200px; }
  .brand-sub { display: none; }
  .brand-name { font-size: .92rem; }
  .header-cta { margin-left: auto; padding: 8px 12px; font-size: .8rem; flex-shrink: 0; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid #d8ded8; border-radius: 6px; background: #ffffff; cursor: pointer;
  }
  .nav-toggle-bars { position: relative; display: block; width: 18px; height: 2px; background: #263028; border-radius: 1px; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #263028; border-radius: 1px; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] { background: var(--bh-tint); border-color: var(--bh-primary); }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1000;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #ffffff; border-bottom: 1px solid #d8ded8;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    padding: 6px 0 10px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 24px; font-size: 1rem; }
  nav.main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bh-primary); color: var(--bh-primary); }
  .main-nav .btn { margin: 8px 24px 4px; align-self: flex-start; }
}
@media print {
  header, footer { display: none; }
}
