/* ============================================================
   Helenium Home Health — v2 design system
   Direction: modern clinical premium — deep navy + teal-green,
   geometric sans (Plus Jakarta Sans), full-bleed hero, minimal.
   ============================================================ */

:root {
  --navy: #0a1f3c;
  --navy-2: #12315c;
  --teal: #0e9488;
  --teal-dark: #0b7368;
  --teal-tint: #e6f4f2;
  --ink: #10202b;
  --muted: #5a6b7a;
  --bg: #ffffff;
  --bg-soft: #f6f9fa;
  --line: #e4eaee;

  --font-display: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(10, 31, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 31, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 60, 0.16);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 148, 136, 0.30);
}
.btn-accent:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 1000; }
.skip-link:focus { left: 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { color: var(--teal); display: flex; }
.brand-text { font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.brand-text em { font-style: normal; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.15s ease; }
.nav-links > a:not(.btn):hover { color: var(--navy); }
.btn-nav { padding: 10px 20px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero (full-bleed)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-media {
  position: absolute; inset: 0;
  background: url('/images/hero.webp') center / cover no-repeat;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,31,60,0.94) 0%, rgba(10,31,60,0.82) 45%, rgba(10,31,60,0.42) 100%);
}
.hero-inner { position: relative; padding: 110px 0 120px; max-width: 640px; }
.hero .kicker { color: var(--teal); }
.hero h1 { color: #fff; }
.hero h1 span { color: #6fcec1; }
.hero-sub { margin-top: 20px; font-size: 1.16rem; color: rgba(255,255,255,0.86); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.hero-badge img { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.hero-badge span { font-size: 0.86rem; color: rgba(255,255,255,0.9); line-height: 1.35; }
.hero-badge strong { display: block; color: #fff; font-weight: 700; }

/* ============================================================
   Stats strip
   ============================================================ */
.stats { background: var(--navy-2); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.72); }

/* ============================================================
   About
   ============================================================ */
.about-inner { max-width: 780px; margin: 0 auto; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.about-muted { color: var(--muted); font-size: 1rem !important; }
.about-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 28px; font-weight: 500; color: var(--ink); }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}
.about-visual img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; }

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.service-img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin-bottom: 10px; color: var(--navy); }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Mission
   ============================================================ */
.mission { background: var(--teal-tint); }
.mission-inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.mission-seal img { width: 110px; height: 110px; filter: drop-shadow(0 4px 12px rgba(10,31,60,0.14)); }
.mission-copy h2 { margin-bottom: 16px; }
.mission-copy p { color: var(--muted); font-size: 1.14rem; max-width: 58ch; }

/* ============================================================
   Contact
   ============================================================ */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; max-width: 44ch; }

.contact-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: none; }
.panel-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); flex-shrink: 0; }
.panel-value { font-weight: 600; color: var(--navy); text-align: right; font-size: 1rem; }
.panel-value a:hover, .panel-value:hover { color: var(--teal); }

/* ============================================================
   Notice
   ============================================================ */
.notice { background: var(--bg); padding: 56px 0; border-top: 1px solid var(--line); }
.notice-title { font-size: 1.1rem; margin-bottom: 12px; }
.notice p { color: var(--muted); font-size: 0.9rem; max-width: 85ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.82); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-text em { color: #6fcec1; }
.footer-brand p { margin-top: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: #fff; margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 0.95rem; color: rgba(255,255,255,0.72); line-height: 1.5; }
.footer-col a:hover { color: #6fcec1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; padding-bottom: 22px; font-size: 0.86rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-inner { grid-template-columns: 1fr; gap: 24px; }
  .mission-seal img { width: 84px; height: 84px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .btn-nav { margin-top: 16px; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .panel-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .panel-value { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
