/* Horizons Medical Care — site styles */
:root {
  --ink: #1c1f22;
  --ink-soft: #555b61;
  --char-900: #1b1e21;
  --char-700: #2c3136;
  --red: #9b1d21;
  --red-dark: #7a1519;
  --red-soft: #f1c1c3;
  --gray-50: #f2f2f3;
  --paper: #f7f6f4;
  --line: #e2e2e4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(24, 27, 30, .28);
  --max: 1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); color: var(--char-900); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--char-900); color: #c9cdd1; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { 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(--char-900); }
.brand .logo { height: 44px; width: auto; }
.brand-sub { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); padding-left: 12px; border-left: 2px solid var(--line); line-height: 1.25; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--gray-50); color: var(--char-700); }
.nav a[aria-current="page"] { color: var(--char-700); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 8px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--char-900); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-dark { background: var(--char-700); color: var(--white); }
.btn-dark:hover { background: var(--char-900); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--char-700); color: var(--char-700); }
.btn-outline:hover { background: var(--char-700); color: var(--white); }
.nav .btn { padding: 10px 18px; }
.nav .btn:hover { background: var(--red-dark); color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--char-900); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(24,27,30,.95) 0%, rgba(24,27,30,.82) 45%, rgba(24,27,30,.25) 100%); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero p.lede { font-size: 1.2rem; max-width: 46ch; color: #eceeef; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

.page-hero { background: var(--char-900); color: #eceeef; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(24,27,30,.97) 0%, rgba(24,27,30,.93) 40%, rgba(24,27,30,.55) 68%, rgba(24,27,30,.15) 100%),
  url("images/banner-hex.webp") center 55% / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { max-width: 60ch; font-size: 1.12rem; margin: 0; }

/* ---------- Quick info strip ---------- */
.quick { background: var(--white); border-bottom: 1px solid var(--line); }
.quick .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-item { padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start; }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-item svg { flex: none; width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.quick-item strong { display: block; color: var(--char-900); }
.quick-item span, .quick-item a { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.alt { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
section.alt .card { background: var(--paper); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--ink-soft); }
.card-body ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--ink-soft); }
.card-body ul li { margin-bottom: .25em; }
.card-body .more { margin-top: auto; font-weight: 700; text-decoration: none; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%239b1d21' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ticks.two { grid-template-columns: 1fr 1fr; column-gap: 28px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--red); box-shadow: 0 1px 0 var(--line); }
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

.callout { background: var(--char-700); color: #eceeef; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.callout::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(155,29,33,.35); }
.callout h2 { color: var(--white); margin: 0 0 .2em; }
.callout p { margin: 0; max-width: 52ch; }
.callout .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

.note { background: var(--gray-50); border-left: 4px solid var(--red); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--char-900); }
.emergency { background: #fbefef; border-left-color: var(--red-dark); }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--char-900); }
.hours td { color: var(--ink-soft); text-align: right; }

/* ---------- Placeholder marker (remove once filled in) ---------- */
.todo { background: #fff3c4; color: #6b4e00; border: 1px dashed #d9a400; border-radius: 6px; padding: 1px 6px; font-weight: 600; }

/* ---------- Jobs ---------- */
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 340px 1fr; overflow: hidden; margin-bottom: 32px; }
.job > img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.job-body { padding: clamp(24px, 4vw, 40px); }
.job-body h3 { font-size: 1.15rem; margin-top: 1.4em; }
.job-body ul { padding-left: 1.2em; color: var(--ink-soft); }
.tag { display: inline-block; background: var(--gray-50); color: var(--char-700); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
details.job-details summary { cursor: pointer; font-weight: 700; color: var(--char-700); margin: 6px 0 4px; }
details.job-details[open] summary { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.4rem; }
.contact-line { display: flex; gap: 14px; margin-bottom: 16px; }
.contact-line svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.contact-line strong { display: block; color: var(--char-900); }
.map { border: 0; width: 100%; height: 560px; position: sticky; top: 100px; background: var(--gray-50); border-radius: var(--radius); display: block; }

/* ---------- Aesthetics ---------- */
.applicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.applicator { text-align: center; }
.applicator img { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.banner-img { border-radius: var(--radius); width: 100%; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-900); color: #b8bcc0; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--font-body); color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { background: var(--white); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .88rem; }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .nav .btn { margin: 8px 0 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 2; }
  .job { grid-template-columns: 1fr; }
  .job > img { min-height: 0; aspect-ratio: 16 / 9; }
  .quick .wrap { grid-template-columns: 1fr; }
  .quick-item + .quick-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .topbar .hide-sm { display: none; }
  .cards, .features, .applicators, .ticks.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(24,27,30,.88), rgba(24,27,30,.94)); }
  .brand .logo { height: 36px; }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.25); }
  .call-bar a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; color: var(--char-900); }
  .call-bar a + a { background: var(--red); color: var(--white); }
  .map { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cards .panel + .panel { margin-top: 0; }

/* Eyebrows sitting on dark backgrounds */
.hero .eyebrow, .page-hero .eyebrow { color: var(--red-soft); }
.callout .btn-primary:hover { background: var(--white); color: var(--red); }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--white); }
.brand .logo { height: 50px; }
.site-footer .brand { display: inline-flex; }
@media (max-width: 640px) { .brand .logo { height: 38px; } }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(8px, 2vw, 24px); max-width: 820px; }
.form-panel iframe { width: 100% !important; }
.upload-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.upload-grid .form-panel { max-width: none; }
.upload-grid aside .panel h2 { font-size: 1.25rem; }
@media (max-width: 860px) { .upload-grid { grid-template-columns: 1fr; } }
/* Nav: one line per item; collapse to the Menu button before it gets crowded */
.nav a { white-space: nowrap; padding: 10px 10px; }
.nav { gap: 2px; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .nav .btn { margin: 8px 0 0; }
}
.form-fallback { font-size: .9rem; color: var(--ink-soft); margin: 12px 8px 4px; }

@media (max-width: 640px) {
  .page-hero::before { background: linear-gradient(180deg, rgba(24,27,30,.9), rgba(24,27,30,.94)), url("images/banner-hex.webp") 70% center / cover no-repeat; }
}
.page-hero h1 { max-width: 22ch; }
/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; color: var(--ink-soft); }
.legal ul li { margin-bottom: .3em; }
.legal dl { margin: 1.4em 0; }
.legal dt { font-weight: 700; color: var(--char-900); margin-top: 1em; }
.legal dd { margin: .2em 0 0; color: var(--ink-soft); }
.legal .panel h2 { margin-top: 0; }
.legal-meta { color: var(--ink-soft); }
/* Careers: hiring indicator + empty state */
.nav a.hiring { position: relative; }
.nav a.hiring::after { content: ""; position: absolute; top: 7px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--white); }
@media (max-width: 1180px) { .nav a.hiring::after { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.job.no-image { grid-template-columns: 1fr; }
.job-apply { margin-top: 20px; }
.job-empty { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); max-width: 760px; }
.job-empty h2 { font-size: 1.6rem; }
.job-empty p { margin: 0; color: var(--ink-soft); }
