/* ==========================================================
   Kelly Home Healthcare, Inc. - shared site styles
   Edit colors and fonts in :root below; every page updates.
   ========================================================== */

:root {
  --navy: #082f50;
  --navy-deep: #051f36;
  --navy-mid: #0d4574;
  --red: #df233d;
  --red-dark: #bd1930;
  --red-soft: #fdecef;
  --lime: #a9d34a;
  --ink: #17334d;
  --muted: #5d6f7d;
  --soft: #f5f7f4;
  --line: #e3e8ec;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", Arial, Helvetica, sans-serif;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(8, 47, 80, .08);
  --shadow-lg: 0 18px 44px rgba(8, 47, 80, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 3000; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 800; font-size: 15px; border: 2px solid transparent; cursor: pointer; font-family: var(--sans);
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(223, 35, 61, .26); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hiring bar ---------- */
.hiring-bar { background: var(--lime); color: var(--navy-deep); text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 800; }
.hiring-bar a { text-decoration: underline; margin-left: 6px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2000; }
.header-inner { width: min(1240px, calc(100% - 36px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo img { width: 158px; height: auto; }

.main-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 2px; }
.main-nav > a, .dropdown-button {
  background: transparent; border: 0; color: var(--ink); font-family: var(--sans);
  font-size: 15px; font-weight: 700; padding: 32px 11px; cursor: pointer; white-space: nowrap; position: relative;
}
.main-nav > a:hover, .dropdown-button:hover, .dropdown:focus-within .dropdown-button { color: var(--red); }
.main-nav a.current, .dropdown.current .dropdown-button { color: var(--red); }
.main-nav > a.current::after, .dropdown.current .dropdown-button::before {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 22px; height: 3px; border-radius: 3px; background: var(--red);
}
.dropdown { position: relative; }
.dropdown-button::after { content: " \25BE"; font-size: 10px; }
.dropdown-menu {
  position: absolute; top: calc(100% - 12px); left: 0; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.dropdown-menu a:hover { background: var(--soft); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { font-size: 14px; font-weight: 800; white-space: nowrap; color: var(--navy); }
.header-phone:hover { color: var(--red); }
.mobile-only { display: none; }

.mobile-menu-button { display: none; background: var(--navy); color: #fff; border: 0; padding: 9px 14px; border-radius: 10px; font-size: 20px; cursor: pointer; min-height: 44px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(700px 420px at 92% 0%, rgba(169, 211, 74, .22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(223, 35, 61, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0 150px; }
.hero-kicker { display: inline-block; color: var(--lime); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 62px; line-height: 1.06; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero .lead { font-size: 19px; color: #d3e1ee; max-width: 520px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-hours { font-size: 14px; color: #b7cadc; }
.hero-photo { position: relative; padding: 0 0 26px 26px; }
.hero-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 78%; height: 78%; border-radius: 28px; background: var(--red); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 28px 56px rgba(0,0,0,.35); }

/* ---------- Inner page hero ---------- */
.page-hero {
  color: #fff; padding: 72px 0 76px;
  background:
    radial-gradient(520px 320px at 95% 0%, rgba(169, 211, 74, .2), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-mid) 100%);
}
.page-hero .eyebrow { color: var(--lime); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { font-family: var(--serif); font-weight: 700; font-size: 50px; line-height: 1.1; margin-bottom: 14px; max-width: 760px; }
.page-hero p { font-size: 19px; color: #d3e1ee; max-width: 640px; }
.page-hero .hero-buttons { margin: 26px 0 0; }

/* ---------- Quick apply ---------- */
.apply-strip { margin-top: -88px; position: relative; z-index: 5; }
.apply-card { background: #fff; border-radius: 24px; padding: 30px 34px; box-shadow: 0 24px 56px rgba(8,47,80,.22); display: grid; grid-template-columns: 1.1fr 2fr; gap: 28px; align-items: center; }
.apply-card .tag { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.apply-card h2 { font-family: var(--serif); font-size: 29px; line-height: 1.2; color: var(--navy); }
.apply-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 64px 0; }
.heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.heading-left { margin-left: 0; text-align: left; }
.kicker { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
h2.title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 42px; line-height: 1.15; margin-bottom: 14px; }
h3.sub { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.heading p, .lead-dark { color: var(--muted); font-size: 18px; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 15px; }
.card-center { text-align: center; }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 0 16px; }
.card-center .icon-circle { margin-inline: auto; }
.card .btn { margin-top: 18px; }

.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 170px; object-fit: cover; }
.service-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; flex: 1; }
.link-arrow { color: var(--red); font-weight: 800; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.service-detail { scroll-margin-top: 110px; }
.service-detail + .service-detail { margin-top: 72px; }

/* ---------- Dark "why" band ---------- */
.band-navy { background: var(--navy); color: #fff; padding: 96px 0; }
.band-navy .kicker { color: var(--lime); }
.band-navy h2.title { color: #fff; }
.band-navy .lead-dark { color: #d3e1ee; margin-bottom: 26px; }
.why-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 24px; border-top: 4px solid var(--lime); }
.pillar:nth-child(2) { border-top-color: var(--red); }
.pillar:nth-child(3) { border-top-color: #fff; }
.pillar h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.pillar p { color: #c9d8e6; font-size: 15px; }

/* ---------- Lists, steps ---------- */
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); font-size: 17px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) 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='%23082f50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 800; color: var(--navy); position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Careers band ---------- */
.careers-box { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 28px; overflow: hidden; background: var(--red); color: #fff; box-shadow: 0 24px 50px rgba(223,35,61,.25); }
.careers-content { padding: 60px 56px; }
.careers-content .kicker { color: #fff; opacity: .9; }
.careers-content h2 { font-family: var(--serif); font-size: 42px; line-height: 1.15; margin-bottom: 14px; }
.careers-content p { color: #ffe9ec; font-size: 18px; margin-bottom: 26px; }
.careers-image img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; border-radius: 28px; padding: 56px 48px; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: 38px; line-height: 1.15; margin-bottom: 12px; }
.cta-band p { color: #d3e1ee; font-size: 18px; max-width: 600px; margin: 0 auto 26px; }
.cta-band .hero-buttons { justify-content: center; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 38px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label, .label { display: block; font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 2px solid #c9d4dd; border-radius: 12px;
  font-family: var(--sans); font-size: 16px; background: #fff; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 4px rgba(8,47,80,.1); }
.notice { background: #fff8e6; border: 1px solid #f0d48a; color: #5a4300; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-top: 16px; }
.notice-info { background: #eef5fb; border-color: #c7dcee; color: var(--navy); }
.form-status { display: none; margin-top: 16px; }
.form-status.show { display: block; }

/* ---------- Offices ---------- */
.office { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.office-body { padding: 32px; }
.office-row { display: flex; gap: 14px; margin-bottom: 16px; color: var(--muted); }
.office-row svg { flex: none; color: var(--red); margin-top: 3px; }
.office-row strong { display: block; color: var(--navy); }
.office-row > div { min-width: 0; overflow-wrap: anywhere; }
.office-row a:hover { color: var(--red); }
.office-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.office-map iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-line a { font-weight: 800; color: var(--navy); }
.contact-line a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding: 64px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-logo { width: 170px; background: #fff; padding: 8px 10px; border-radius: 10px; margin-bottom: 16px; }
.footer-col h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #bdcddb; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-office { margin-bottom: 18px; }
.footer-office strong { display: block; margin-bottom: 3px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #93a9bb; font-size: 13px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .main-nav > a, .dropdown-button { font-size: 14px; padding-left: 7px; padding-right: 7px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apply-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 76px; flex-wrap: wrap; padding: 10px 0; }
  .logo img { width: 140px; }
  .mobile-menu-button { display: block; margin-left: auto; }
  .header-actions { display: none; }
  .mobile-only { display: block; }
  .main-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0 16px; border-top: 1px solid var(--line); }
  .main-nav.active { display: flex; }
  .main-nav > a, .dropdown-button { display: flex; align-items: center; width: 100%; min-height: 48px; box-sizing: border-box; text-align: left; padding: 10px 8px; line-height: 1.3; }
  .main-nav > a.current::after, .dropdown.current .dropdown-button::before { display: none; }
  .main-nav > a.btn { display: flex; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 10px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; text-align: center; justify-content: center; }
  .main-nav > a.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(223, 35, 61, .26); }
  .main-nav > a.btn-red:hover { background: var(--red-dark); color: #fff; }
  .main-nav > a.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
  .main-nav > a.btn-outline:hover { background: var(--navy); color: #fff; }
  .dropdown-menu { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 8px 14px; }
  .dropdown.open .dropdown-menu { display: block; }

  .hero-inner, .why-inner, .careers-box, .split { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 130px; gap: 40px; }
  .hero h1 { font-size: 48px; }
  .page-hero h1 { font-size: 40px; }
  .split { gap: 32px; }
  .split-reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .careers-image img { min-height: 260px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-form { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .hiring-bar { font-size: 12.5px; }
  .hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 34px; }
  .hero .lead, .page-hero p { font-size: 17px; }
  h2.title, .careers-content h2, .cta-band h2 { font-size: 32px; }
  .section { padding: 68px 0; }
  .grid-2, .grid-4, .pillars { grid-template-columns: 1fr; }
  .apply-card { padding: 26px 22px; }
  .careers-content { padding: 38px 26px; }
  .cta-band { padding: 40px 24px; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
.notice-ok { background: #eaf7e0; border-color: var(--lime); color: #1f4d12; }
