/* ============================================================
   DAVAB HEALTH SYSTEMS — stylesheet
   Type: Poppins (display) + Inter (body)
   Color: Navy #003366 / Green #2E8B57 / Black #0A0A0A / White
   ============================================================ */

:root{
  --navy: #003366;
  --navy-deep: #001F3F;
  --green: #2E8B57;
  --green-deep: #1E6B41;
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --mist: #F2F6F4;      /* pale green-tinted background, not grey */
  --frost: #EEF3F8;     /* pale blue-tinted background, not grey */
  --line: #0A0A0A;      /* rule color — solid, never grey */

  --display: "Poppins", "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; max-width: 62ch; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.on-dark{ color: var(--paper); }
.on-dark p{ color: var(--paper); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--navy-deep h1, .section--navy-deep h2, .section--navy-deep h3, .section--navy-deep h4,
.quality h1, .quality h2, .quality h3, .quality h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4{
  color: var(--paper);
}

/* ---------- scroll reveal animation ----------
   Hidden state only applies once JS confirms it can reveal things again
   (html.js-enabled, set inline in <head>). No JS => content is visible
   by default, so nothing ever gets stuck invisible. */
.js-enabled .reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled .reveal.is-visible{ opacity: 1; transform: translateY(0); }
.js-enabled .reveal-stagger > *{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-enabled .reveal-stagger.is-visible > *{ opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay: 0.03s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay: 0.11s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay: 0.43s; }
.reveal-stagger.is-visible > *:nth-child(7){ transition-delay: 0.51s; }
.reveal-stagger.is-visible > *:nth-child(8){ transition-delay: 0.59s; }
.reveal-stagger.is-visible > *:nth-child(9){ transition-delay: 0.67s; }
.reveal-stagger.is-visible > *:nth-child(10){ transition-delay: 0.75s; }
.reveal-stagger.is-visible > *:nth-child(11){ transition-delay: 0.83s; }
.reveal-stagger.is-visible > *:nth-child(12){ transition-delay: 0.91s; }

@keyframes floatY{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
@keyframes drift{
  0%, 100%{ transform: translate(0,0); }
  50%{ transform: translate(-10px, 12px); }
}
@keyframes dash{
  from{ stroke-dashoffset: 240; }
  to{ stroke-dashoffset: 0; }
}
@keyframes popIn{
  from{ opacity: 0; transform: scale(0.85); }
  to{ opacity: 1; transform: scale(1); }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translate(-2px,-2px); }
.btn svg{ width: 16px; height: 16px; flex: none; }

.btn--navy{ border-color: var(--navy); background: var(--navy); color: var(--paper); }
.btn--green{ border-color: var(--green); background: var(--green); color: var(--paper); }
.btn--outline{ background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline-ink{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover, .btn--outline-ink:hover{ background: var(--paper); color: var(--ink); }

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}
.brand{ display: flex; align-items: center; gap: 14px; }
.brand img{ height: 72px; width: auto; transition: transform 0.25s ease; }
.brand:hover img{ transform: scale(1.04); }
.brand-text{ font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.brand-text span{ display:block; color: var(--green); font-size: 0.68rem; letter-spacing: 0.08em; font-weight: 600; }

.nav-links{ display: flex; align-items: center; gap: 36px; }
.nav-links a{
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
}
.nav-links a::after{
  content:"";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--green);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after{ right: 0; }
.nav-cta{ display:flex; align-items:center; gap: 22px; }
.nav-cta .btn{ padding: 12px 22px; font-size: 0.88rem; }

.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span{ width: 26px; height: 2px; background: var(--ink); display:block; }

@media (max-width: 900px){
  .nav-links{
    position: absolute;
    top: 108px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 18px;
    display: none;
  }
  .nav-links.is-open{ display: flex; }
  .nav-cta .btn span{ display:none; }
  .menu-toggle{ display: flex; }
}

/* ---------- mountain divider ---------- */
.divider{ display:block; width: 100%; line-height: 0; }
.divider svg{ width: 100%; height: 64px; display:block; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding-top: 72px;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 560px;
}
.hero-eyebrow{
  font-family: var(--display);
  font-weight: 600;
  color: var(--green-deep);
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.hero h1{
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em{ font-style: normal; color: var(--navy); }
.hero p.lede{
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-ctas{ display:flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats{ display:flex; gap: 40px; }
.hero-stats div strong{ display:block; font-family: var(--display); font-size: 1.7rem; color: var(--navy); }
.hero-stats div span{ font-size: 0.85rem; }

.hero-art{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}
.hero-art img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero-art::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(0,51,102,0.55) 0%, rgba(0,51,102,0.08) 45%, rgba(46,139,87,0.28) 100%);
  mix-blend-mode: multiply;
}
.hero-art::before{
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--green);
  z-index: 3;
}
.hero-art .peak-badge{
  position: absolute;
  left: 24px;
  bottom: 24px;
  transform: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 4;
  animation: popIn 0.6s ease 0.4s both;
}
@media (prefers-reduced-motion: reduce){
  .hero-art{ animation: none; }
}

/* ---------- section shells ---------- */
.section{ padding: 96px 0; }
.section--tight{ padding: 72px 0; }
.section--navy{ background: var(--navy); }
.section--navy-deep{ background: var(--navy-deep); }
.section--mist{ background: var(--mist); }
.section--frost{ background: var(--frost); }

.eyebrow{
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.on-dark .eyebrow{ color: #7FD9A4; }
h2.h-lg{ font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 20px; }
.section-head{ max-width: 720px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- split layout (image + text) ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media{ order: 2; }
.split-media{ position: relative; }
.split-media img{ width: 100%; height: 100%; object-fit: cover; }
.split-media .frame{
  position: absolute;
  border: 3px solid var(--green);
  inset: 18px -18px -18px 18px;
  z-index: -1;
}
.split-media .imgbox{ position: relative; z-index: 1; }
.split h2{ margin-bottom: 18px; }

/* ---------- about acronym ---------- */
.acronym{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  margin-top: 40px;
}
.acronym div{
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 22px 14px;
  text-align: center;
}
.acronym div .letter{
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.acronym div .word{ font-size: 0.78rem; font-weight: 600; display:block; margin-top: 6px; }

/* ---------- specialty rows (What We Do) ---------- */
.spec-list{ border-top: 2px solid var(--ink); }
.spec-row{
  display: grid;
  grid-template-columns: 64px 260px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 2px solid var(--ink);
  align-items: start;
}
.spec-row .icon{ width: 48px; height: 48px; color: var(--green); }
.spec-row h3{ font-size: 1.2rem; padding-top: 6px; }
.spec-row p{ margin: 0; padding-top: 6px; }

@media (max-width: 760px){
  .spec-row{ grid-template-columns: 44px 1fr; }
  .spec-row h3{ grid-column: 2; }
  .spec-row p{ grid-column: 1 / -1; }
}

/* ---------- values grid ---------- */
.values-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ink);
}
.value-card{
  background: var(--paper);
  padding: 40px;
}
.value-card .icon{ width: 34px; height: 34px; color: var(--green); margin-bottom: 18px; }
.value-card h3{ font-size: 1.15rem; margin-bottom: 10px; }
.value-card p{ margin: 0; }

/* ---------- products grid ---------- */
.products-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink);
}
.product-card{
  background: var(--paper);
  padding: 34px 32px;
  transition: background 0.25s ease;
}
.product-card:hover{ background: var(--mist); }
.product-card .tri{
  width: 22px; height: 20px;
  margin-bottom: 16px;
}
.product-card h3{ font-size: 1.05rem; margin-bottom: 14px; letter-spacing: 0.01em; }
.product-card ul{ display:flex; flex-direction:column; gap: 10px; }
.product-card li{
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
}
.product-card li::before{
  content:"";
  position:absolute;
  left:0; top: 8px;
  width: 8px; height: 8px;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
@media (max-width: 980px){ .products-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .products-grid{ grid-template-columns: 1fr; } }

/* ---------- stat strip ---------- */
.stat-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  margin: 44px 0 0;
}
.stat-strip div{
  padding: 28px 20px;
  border-right: 2px solid var(--paper);
  text-align: center;
}
.stat-strip div:last-child{ border-right: none; }
.stat-strip strong{ font-family: var(--display); font-size: 2.1rem; display:block; color: var(--green); }
.stat-strip span{ font-size: 0.85rem; }

/* ---------- quality banner ---------- */
.quality{
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}
.quality .wrap{ position: relative; z-index: 2; padding: 110px 32px; max-width: 780px; }
.quality h2{ font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.quality-mark{
  position: absolute;
  right: -60px; top: -80px;
  width: 480px; height: 480px;
  opacity: 0.14;
}

/* ---------- careers list ---------- */
.reason-list{ display:flex; flex-direction:column; gap: 22px; margin: 32px 0 40px; }
.reason-list li{ display:flex; gap: 16px; align-items:flex-start; }
.reason-list .tick{ width: 22px; height: 22px; flex:none; margin-top: 3px; color: var(--green); }
.reason-list.on-dark .tick{ color: #7FD9A4; }

.photo-band{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4px;
}
.photo-band img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- FAQ accordion ---------- */
.faq-list{ border-top: 2px solid var(--ink); }
.faq-item{ border-bottom: 2px solid var(--ink); }
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .num{ color: var(--navy); margin-right: 16px; }
.faq-q .plus{
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:"";
  position:absolute; background: var(--ink);
}
.faq-q .plus::before{ left:2px; right:2px; top:50%; height:2px; transform: translateY(-50%); }
.faq-q .plus::after{ top:2px; bottom:2px; left:50%; width:2px; transform: translateX(-50%); transition: opacity .15s; }
.faq-item.is-open .plus::after{ opacity: 0; }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p{ padding-bottom: 26px; max-width: 74ch; }
.faq-item.is-open .faq-a{ max-height: 400px; }

/* ---------- contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info h2{ margin-bottom: 18px; }
.contact-detail{ margin: 28px 0; padding-top:20px; border-top: 2px solid var(--ink); }
.contact-detail strong{ display:block; font-family: var(--display); margin-bottom: 6px; }
.contact-detail a{ font-size: 1.05rem; }
.contact-detail a:hover{ color: var(--green-deep); }

form.davab-form{ display:flex; flex-direction:column; gap: 20px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display:flex; flex-direction:column; gap: 8px; }
.field label{ font-family: var(--display); font-weight: 600; font-size: 0.88rem; }
.field input, .field select, .field textarea{
  border: 2px solid var(--ink);
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--green);
}
.field textarea{ resize: vertical; min-height: 130px; }
.hp-field{ position: absolute; left: -9999px; }
.form-note{ font-size: 0.85rem; margin-top: 4px; }
.form-success{
  display:none;
  border: 2px solid var(--green);
  padding: 18px 20px;
  font-weight: 600;
}

@media (max-width: 900px){
  .split, .contact-grid{ grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media{ order: 0; }
  .values-grid, .stat-strip{ grid-template-columns: 1fr; }
  .acronym{ grid-template-columns: repeat(5,1fr); }
  .acronym div .letter{ font-size: 1.5rem; }
  .photo-band{ grid-template-columns: 1fr; }
  .hero .wrap{ grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px;}
  .hero-art{ order:-1; max-width: 340px; margin: 0 auto; }
  .form-row{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .acronym{ grid-template-columns: repeat(5,1fr); }
  .acronym div{ padding: 12px 4px; }
  .acronym div .word{ font-size: 0.6rem; }
  .wrap{ padding: 0 20px; }
}

/* ---------- footer ---------- */
.site-footer{ background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.footer-top{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 2px solid var(--paper);
}
.footer-brand .brand{ margin-bottom: 16px; }
.footer-brand p{ color: var(--paper); max-width: 40ch; }
.footer-col h4{ color: var(--paper); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul{ display:flex; flex-direction:column; gap: 12px; }
.footer-col a{ color: var(--paper); }
.footer-col a:hover{ color: #7FD9A4; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 26px; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: var(--paper);
}
@media (max-width: 760px){ .footer-top{ grid-template-columns: 1fr; } }
