/* Tampa Bay Home Health Solutions - Styles
   Brand palette = exact fills from the official logo SVG:
   navy #202A69 · orange #F15A29 · sage teal #67A590
   Fonts (self-hosted, SIL OFL): Outfit (headings), DM Sans (body). */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #202A69;
  --navy-dark: #161d4d;
  --orange: #F15A29;        /* brand orange: large text, icons, accents only */
  --orange-dark: #C9421A;   /* 4.9:1 on white: buttons + small text */
  --orange-darker: #a83614;
  --teal: #67A590;          /* decorative */
  --teal-dark: #3F7A66;     /* 5:1 on white when used for text */
  --tint: #f1f7f4;
  --line: #e3ebe7;
  --text: #2a2f4a;
  --muted: #565c72;
  --white: #ffffff;
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

h1, h2, h3, .btn, nav a, button { font-family: var(--font-head); }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

.visually-hidden, .hidden-field {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}

header nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 14px 0;
}

.logo { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
.logo img { display: block; height: 58px; width: auto; max-width: 100%; }

nav ul { display: flex; list-style: none; gap: 30px; flex-shrink: 0; }

nav ul a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--orange-dark); border-bottom-color: var(--orange); }

/* ---------- Swoosh bands (traced from the brand banners) ---------- */
.swoosh { position: absolute; left: 0; width: 100%; height: auto; display: block; pointer-events: none; }
.swoosh-teal { top: 0; fill: var(--teal); }
.swoosh-navy { bottom: 0; fill: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--text);
  text-align: center;
  padding: 110px 0 120px;
  isolation: isolate;
}
.hero .container { z-index: 2; }

.hero-motif {
  position: absolute;
  z-index: 1;
  width: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
/* staff sits on the page edge, half the caduceus cropped off like the banners */
.hero-motif-right { right: 0; transform: translateX(50%); }
.hero-motif-left  { left: 0;  transform: translateX(-50%); }

.hero-home { text-align: left; padding: 120px 0 140px; }
.hero-home .hero-motif-right { height: 128%; top: 2%; }
.hero-home .container > * { max-width: 640px; }
.hero-home h1 { max-width: 780px !important; }

.hero-sm { padding: 90px 0 100px; }
.hero-sm .hero-motif { height: 125%; top: 7%; }

.hero h1 {
  font-size: 3.3rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-sm h1 { font-size: 3rem; }
.hero h1 .accent { color: var(--orange); }

.hero p {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text);
}
.hero-home p { margin-left: 0; }
.hero-sm p { margin-bottom: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(32,42,105,.18); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }

.btn-orange { background: var(--orange-dark); color: #fff; }
.btn-orange:hover { background: var(--orange-darker); color: #fff; }

.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tint { background: var(--tint); }

h2 {
  font-size: 2.35rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
  text-align: center;
}
h2::after {
  content: "";
  display: block;
  width: 64px; height: 5px;
  margin: 14px auto 0;
  background: var(--orange);
  border-radius: 3px;
}

.section-intro { text-align: center; max-width: 700px; margin: 0 auto 44px; font-size: 1.12rem; color: var(--muted); }

.center-cta { text-align: center; margin-top: 44px; }
.center-cta p { margin-bottom: 14px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  background: #fff;
  padding: 32px 30px 30px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(32,42,105,.06);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal) 0 70%, var(--orange) 70% 100%);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(32,42,105,.10); }

.card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.35rem; font-weight: 700; line-height: 1.25; }

.services-note { margin: 56px auto 0; text-align: center; max-width: 760px; }
.services-note p { font-size: 1.08rem; margin-bottom: 26px; }

/* ---------- About ---------- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { text-align: left; }
.about-text h2::after { margin-left: 0; }
.about-text p { margin-bottom: 20px; }

.leadership p { margin-top: 14px; }
.leadership strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.leadership .small { margin-top: 22px; }

.values { margin-top: 70px; }
.values .cards { margin-top: 34px; }

.small { font-size: .95rem; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }

/* ---------- Icon lists (letterhead style) ---------- */
.icon-list { list-style: none; display: grid; gap: 14px; }
.icon-list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.icon-list a { text-decoration: none; }
.icon-list a:hover { text-decoration: underline; }
.ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: -5px;
}
.ico svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

form {
  background: #fff;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(32,42,105,.06);
}
form h3 { margin-bottom: 20px; color: var(--navy); font-size: 1.4rem; }

input, textarea, select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 1px solid #c9d3cf;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #6b7083; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }

button[type="submit"] {
  background: var(--orange-dark);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}
button[type="submit"]:hover { background: var(--orange-darker); }

.form-note { font-size: .88rem; margin-top: 12px; color: var(--muted); }

.contact-info {
  position: relative;
  align-self: start;
  background: var(--tint);
  border-radius: 16px;
  padding: 36px;
  overflow: hidden;
}
.contact-info::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--teal);
}
.contact-info h3 { margin-bottom: 18px; color: var(--navy); font-size: 1.4rem; }
.contact-info p { margin-bottom: 12px; }
.contact-info .icon-list { margin: 18px 0 8px; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 calc(4.2vw + 34px);
  font-size: .97rem;
  color: var(--text);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr .7fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { width: 300px; max-width: 100%; height: auto; display: block; margin-bottom: 16px; }
.footer-brand p { margin-bottom: 6px; color: var(--muted); }
.footer-brand .license { font-weight: 600; color: var(--navy); }
footer a { color: var(--navy); }
footer a:hover { color: var(--orange-dark); }
.footer-nav { display: grid; gap: 8px; justify-items: start; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  header nav { flex-direction: column; gap: 10px; }
  .logo img { height: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .hero-home .hero-motif-right { height: 100%; top: 12%; opacity: .9; }
}

@media (max-width: 768px) {
  header { position: static; }
  nav ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
  nav ul a { font-size: 1rem; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-home { padding: 64px 0 80px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-sm h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.08rem; }
  .hero-sm .hero-motif { height: 58%; top: 16%; }
  .hero-sm .container { padding: 0 62px; }
  .hero-home { padding-bottom: 165px; }
  .hero-home .hero-motif-right { height: 195px; top: auto; bottom: -38px; opacity: 1; }
  .hero-home .container > * { max-width: 100%; }
  .hero-home .container { padding-right: 24px; }
  h2 { font-size: 1.9rem; }
  .about-content, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  form, .contact-info { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .logo img { height: auto; width: 100%; max-width: 340px; }
  nav ul { gap: 14px; }
  nav ul a { font-size: .95rem; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: 2.05rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- Two-card grid (Services) ---------- */
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 900px; margin: 0 auto; }

/* ---------- Legal / compliance pages ---------- */
.legal-page { max-width: 820px; }
.legal-page h2 { text-align: left; font-size: 1.6rem; margin: 40px 0 14px; }
.legal-page h2::after { margin-left: 0; width: 48px; height: 4px; margin-top: 10px; }
.legal-page > h2:first-child, .legal-page > .effective + p + h2 { margin-top: 0; }
.legal-page > h2:first-child { margin-top: 0; }
.legal-page p { margin-bottom: 14px; }
.legal-page .effective { color: var(--navy); }
.check-list { list-style: none; margin: 6px 0 18px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--teal);
}
.notice-box {
  background: var(--tint);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  padding: 26px 28px 12px;
  margin: 10px 0 22px;
}
.notice-box p { margin-bottom: 16px; font-size: 1.05rem; }
.notice-box strong { color: var(--navy); }
.notice-box .small { color: var(--muted); }
.emergency { font-size: 1.1rem; color: var(--navy); }

/* ---------- Footer legal links ---------- */
.legal-links {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.legal-links a { color: var(--navy); text-decoration: none; font-weight: 600; font-family: var(--font-body); }
.legal-links a:hover { color: var(--orange-dark); text-decoration: underline; }
.legal-links + .copyright { margin-top: 12px; padding-top: 0; border-top: 0; }
.notice-box a, .legal-page a[href^="tel:"] { white-space: nowrap; }

/* ---------- Photos ---------- */
.photo-card { position: relative; margin: 0; }
.photo-card img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(32, 42, 105, .18);
  background: var(--tint);
}
.photo-card::before {               /* teal accent block behind, bottom-left */
  content: ""; position: absolute; z-index: 0;
  left: -16px; bottom: -16px; width: 60%; height: 68%;
  background: var(--teal); border-radius: 24px;
}
.photo-card::after {                /* orange dot, top-right */
  content: ""; position: absolute; z-index: 2;
  top: -12px; right: 28px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 6px #fff;
}

/* Split hero: copy left, photo right */
.hero-split .container {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center; text-align: left;
}
.hero-split .container > * { max-width: none; }
.hero-split .hero-copy { max-width: 600px; }
.hero-split .hero-copy p { margin-left: 0; margin-right: 0; }
.hero-split .hero-photo { justify-self: end; width: 100%; max-width: 500px; }
.hero-home.hero-split { padding: 96px 0 120px; }
.hero-home.hero-split .hero-photo { max-width: 540px; }
.hero-home.hero-split h1 { max-width: none !important; }
.hero-sm.hero-split { padding: 76px 0 96px; }
.hero-sm.hero-split .hero-photo { max-width: 440px; }

/* Legal pages: smaller side photo */
.photo-side { float: right; width: 340px; margin: 6px 0 32px 48px; }
.photo-side img { border-radius: 20px; }
.photo-side::before { border-radius: 20px; left: -12px; bottom: -12px; }
.photo-side::after { width: 20px; height: 20px; top: -9px; right: 22px; box-shadow: 0 0 0 5px #fff; }
.legal-page::after { content: ""; display: block; clear: both; }

@media (max-width: 960px) {
  .hero-split .container { gap: 40px; }
}
@media (max-width: 768px) {
  .hero-split .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-sm.hero-split .container { padding: 0 24px; }
  .hero-split .hero-photo, .hero-home.hero-split .hero-photo, .hero-sm.hero-split .hero-photo {
    justify-self: center; max-width: 520px; width: calc(100% - 16px); margin-left: 16px;
  }
  .hero-home.hero-split { padding: 56px 0 96px; }
  .hero-sm.hero-split { padding: 56px 0 88px; }
  .hero-sm.hero-split .hero-copy { text-align: center; margin: 0 auto; }
  .hero-split .hero-motif-left { display: none; }
  .hero-split .hero-motif-right, .hero-home.hero-split .hero-motif-right {
    height: 210px; top: auto; bottom: 40px; opacity: 1;
  }
  .photo-side { float: none; width: calc(100% - 12px); margin: 0 0 36px 12px; }
}
/* split-hero refinements */
.hero-split .hero-motif-left { display: none; }
.hero-home.hero-split .container { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
.hero-home.hero-split h1 { font-size: clamp(2.3rem, 3.6vw, 3.1rem); }
.hero-home.hero-split h1 br { display: none; }
.hero-home.hero-split h1 .accent { display: block; }
@media (max-width: 768px) {
  .hero-home.hero-split .container { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero-split .hero-motif-right, .hero-home.hero-split .hero-motif-right { display: none; }
}
.legal-page > .photo-side + h2, .legal-page > .photo-side + .effective { margin-top: 0; }
@media (max-width: 480px) {
  .hero-sm h1 { font-size: 1.9rem; overflow-wrap: anywhere; }
}

