/* =========================================================
   ZEN HOME CARE LLC — Brand Stylesheet
   Palette: navy (trust) + soft teal/green (comfort) + warm cream
   Type: Fraunces (display/warmth) + Work Sans (body/clarity)
   ========================================================= */

:root {
  --navy: #002B67;
  --navy-deep: #001A3E;
  --teal: #018995;
  --teal-light: #52CBD5;
  --teal-tint: #E7F7F8;
  --cream: #FAF8F4;
  --white: #FFFFFF;
  --text: #22323D;
  --text-muted: #5C6B74;
  --border: #DCE6E2;
  --warn-bg: #FFF6E9;
  --warn-border: #E8C77E;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 30px rgba(27, 58, 82, 0.10);
  --shadow-card: 0 4px 16px rgba(27, 58, 82, 0.08);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }

p { margin: 0 0 1em 0; }
p.lede { font-size: 1.15rem; color: var(--text-muted); }

a { color: var(--navy); text-decoration-color: var(--teal); text-underline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility: focus visibility everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- 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: 15px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-tertiary {
  background: var(--teal);
  color: var(--white);
}
.btn-tertiary:hover { background: #3f8977; }

.btn-block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.5em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--teal);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  background: transparent;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.main-nav.open { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
}
.main-nav a {
  display: block;
  padding: 14px 6px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.main-nav a[aria-current="page"] { color: var(--teal); }
.nav-cta { padding-top: 14px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
  }
  .main-nav a { border-bottom: none; padding: 10px 12px; }
  .nav-cta { padding-top: 0; margin-left: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--teal-tint) 0%, var(--cream) 100%);
}
.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--teal-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero-art { justify-self: center; width: min(320px, 70vw); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-art { justify-self: end; width: 100%; max-width: 420px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--teal-tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #D7E4E9; }

.section-head { max-width: 680px; margin: 0 0 40px 0; }
.eyebrow {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  color: var(--teal);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-navy .eyebrow { color: var(--teal-light); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }

.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--teal); }

/* ---------- Divider (signature arc motif, echoes the logo's cupped-hands curve) ---------- */
.arc-divider { display: block; width: 100%; height: 48px; }
.arc-divider path { fill: var(--cream); }
.section-alt + .section .arc-divider path,
.section .arc-divider.into-alt path { fill: var(--teal-tint); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C9D6DC;
  padding: 48px 0 28px;
}
.site-footer a { color: var(--teal-light); }
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-heading {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8FA3AC;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* ---------- Placeholder / confirm-me callouts ---------- */
.placeholder {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  color: #7A5B12;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
}
.notice-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-border);
  color: #7A5B12;
  font-size: 0.88rem;
  text-align: center;
  padding: 8px 16px;
}
.notice-banner strong { color: #5C4408; }

/* ---------- Misc content components ---------- */
.stat-row { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row .stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--navy); font-weight: 600; }
.stat .label { font-size: 0.85rem; color: var(--text-muted); }
.section-navy .stat .num { color: var(--teal-light); }
.section-navy .stat .label { color: #C9D6DC; }

.quote-card {
  background: var(--white);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
fieldset { border: none; padding: 0; margin: 0 0 18px 0; }
legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 10px; }

.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
table.simple th, table.simple td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
table.simple th { background: var(--teal-tint); color: var(--navy); font-family: var(--font-display); font-weight: 600; }

.badge {
  display: inline-block;
  background: var(--teal-tint);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin: 3px 6px 3px 0;
}

.sticky-mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  box-shadow: 0 -6px 18px rgba(27,58,82,0.08);
}
.sticky-mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: 0.92rem; }
@media (min-width: 860px) { .sticky-mobile-cta { display: none; } }
body { padding-bottom: 78px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }
