/* ============================================================
   Helenium Home Health — design system
   Palette: deep teal + warm gold on warm off-white
   Type: Fraunces (display serif) + Inter (body sans)
   ============================================================ */

:root {
  --ink: #0f2027;
  --ink-soft: #33505a;
  --teal: #0e5a63;
  --teal-dark: #0a454d;
  --teal-bright: #17808a;
  --gold: #d9a02e;
  --gold-soft: #f4e6c4;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --bg-tint: #eaf1f1;
  --muted: #5f747c;
  --line: #e2ebec;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 3px rgba(15, 32, 39, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 32, 39, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 32, 39, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
}

/* ---------- Reset ---------- */
*, *::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.6;
  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; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 16px;
}
.kicker-light { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 90, 99, 0.28);
}
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 10px 26px rgba(14, 90, 99, 0.34); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-ghost:hover { background: rgba(14, 90, 99, 0.06); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- 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.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.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.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-text em { font-style: normal; color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > a:not(.btn) {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.15s ease;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--teal); }
.nav-links > a:not(.btn):hover::after { width: 100%; }
.btn-nav { padding: 11px 22px; font-size: 0.95rem; }

.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(--ink);
  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
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eef6f5 0%, #f7fbfa 55%, #eaf3f2 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 88% 12%, rgba(217, 160, 46, 0.16), transparent 60%),
    radial-gradient(50% 50% at 6% 90%, rgba(14, 90, 99, 0.10), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}
.hero-copy h1 span { color: var(--teal); font-style: italic; }
.hero-sub {
  margin-top: 22px;
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.meta-item svg { color: var(--teal); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 32, 39, 0.05);
}
.hero-frame img { width: 100%; height: auto; }
.hero-badge {
  position: absolute;
  left: -14px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-width: 280px;
}
.hero-badge span { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); line-height: 1.35; }
.hero-badge strong { display: block; color: var(--ink); font-weight: 700; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  background: var(--teal);
  color: #fff;
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 0.98rem;
}
.trust-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}
.about-accent {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  z-index: -1;
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); 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: 30px;
  font-weight: 500;
  color: var(--ink-soft);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  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;
}

/* ============================================================
   Mission
   ============================================================ */
.mission {
  background: linear-gradient(150deg, var(--teal-dark) 0%, var(--teal) 60%, #11656e 100%);
  color: #fff;
}
.mission-inner { display: flex; justify-content: center; }
.mission-card {
  max-width: 720px;
  text-align: center;
  padding: 12px 8px;
}
.mission-seal { margin: 0 auto 20px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
.mission-card h2 { color: #fff; margin-bottom: 18px; }
.mission-text { color: rgba(255,255,255,0.88); font-size: 1.18rem; max-width: 56ch; margin: 0 auto; }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.service-img {
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid var(--bg-tint);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin-bottom: 10px; color: var(--ink); }
.service-card p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.contact-copy h2 { margin-bottom: 18px; }
.contact-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; max-width: 46ch; }

.contact-details {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.detail dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-bright);
  margin-bottom: 4px;
}
.detail dd { font-weight: 600; color: var(--ink-soft); font-size: 1.02rem; }
.detail dd a:hover { color: var(--teal); }

.contact-panel { }
.panel-card {
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-tint));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
}
.panel-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
  margin-bottom: 20px;
}
.panel-card h3 { margin-bottom: 12px; }
.panel-card p { color: var(--muted); margin-bottom: 20px; }
.panel-link {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal);
}
.panel-link:hover { color: var(--teal-dark); }

/* ============================================================
   Non-discrimination notice
   ============================================================ */
.notice {
  background: var(--bg-tint);
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.notice-title {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.notice p { color: var(--muted); font-size: 0.92rem; max-width: 85ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  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.35rem; }
.footer-brand .brand-text em { color: var(--gold); }
.footer-brand p { margin-top: 12px; font-size: 0.96rem; 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.96rem; color: rgba(255,255,255,0.72); line-height: 1.5; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  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; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .hero-sub { max-width: 46ch; }
  .hero-visual { max-width: 560px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .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);
  }
  .nav-links > a:not(.btn)::after { display: none; }
  .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; }
  .trust-inner { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-badge { left: 8px; bottom: -16px; max-width: 240px; }
}
