/* MW Community Health & Transportation
   Colors and type match the original Divi site's global settings. */
:root {
  --green: #2d5a3d;
  --heading: #4a5c4c;
  --body: #1c2b1e;
  --gold: #c9a84c;
  --cream: #f6f3ea;
  --sand: #ece6d5;
  --sage: #b5c9b8;
  --teal-deep: #134e4e;
  --teal: #206c6b;
  --teal-section: #144e4f;
  --forest: #14302e;
  --forest-card: #213b39;
  --orange: #c66330;
  --orange-light: #dd8a52;
  --footer-text: #e4bd94;
  --shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
  --inset: inset 0 0 18px 0 rgba(0, 0, 0, 0.3);
  --sans: 'Inter', Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 500 14px/1.7 var(--serif);
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold); }
.gold { color: var(--gold); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 80%; max-width: 1080px; margin: 0 auto; }

/* Header */
.site-header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 0 32px 0 30px; }
.logo img { height: 72px; width: auto; }
.site-nav ul { display: flex; gap: 25px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font: 600 15px/1 var(--serif); color: var(--green); text-decoration: none; transition: opacity 0.4s; }
.site-nav a:hover { opacity: 0.7; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  font: 500 18px/1.7 var(--sans);
  color: #fff;
  text-decoration: none;
  padding: 0.3em 1em;
  border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: 0 12px 16px -12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-orange { background: var(--orange); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-light); }
.btn-teal { background: var(--teal); border-width: 0; padding: 0.35em 1em; }
.btn-teal:hover { background: #2b908e; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #111; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 112px 0 44px; }
.hero h1 .gold { display: block; }
.hero h1 { max-width: 620px; font-size: 3.6rem; font-weight: 700; line-height: 1; color: #fff; margin-bottom: 52px; }
.hero-lead { max-width: 620px; font-size: 1.16rem; line-height: 1.8; color: rgba(255, 255, 255, 0.85); margin-bottom: 20px; }
.hero-actions { display: grid; grid-template-columns: repeat(2, 395px); max-width: 100%; margin-bottom: 28px; }
.hero-actions .btn { justify-self: start; }
.hero-note { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

/* Stats strip */
.stats { position: relative; z-index: 10; background: var(--teal-deep); box-shadow: var(--shadow); padding: 14px 0; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 32px 28px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat h3 { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-light); margin-bottom: 6px; }
.stat p { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }

/* Sections */
.section { position: relative; padding: 64px 0 54px; }
.bg-sand { background: var(--sand); }
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); color: #fff; }
.bg-teal { background: var(--teal-section); color: #fff; }
.inset { box-shadow: var(--inset); }
.raised { z-index: 10; box-shadow: var(--shadow); }

.eyebrow { font: 500 14px/1.7 var(--sans); text-transform: uppercase; letter-spacing: 2px; color: var(--teal-deep); margin-bottom: 4px; }
.eyebrow-teal { color: var(--teal); }
.eyebrow-orange { color: var(--orange-light); }
.eyebrow-gold { color: var(--gold); }

.section h2 { font-size: 43px; font-weight: 700; line-height: 1.1; color: var(--heading); }
.bg-forest h2, .bg-teal h2 { color: #fff; }
.intro-text { font-size: 17px; line-height: 1.8; margin-top: 1.8em; }
.muted { color: var(--heading); }
.bg-forest .intro-text { color: rgba(255, 255, 255, 0.85); }
.section-intro { margin-bottom: 56px; }
.narrow { max-width: 68%; }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); gap: 59px; }
.card { color: var(--body); background: #fff; border-radius: 15px; padding: 28px 32px; box-shadow: var(--shadow); }
.card .icon { display: block; height: 40px; width: 50px; fill: var(--green); margin-bottom: 18px; }
.card h3 { font-size: 19px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.card p { font-size: 16px; line-height: 1.5; }

.card-dark { background: var(--forest-card); border: 1px solid rgba(255, 255, 255, 0.14); padding: 28px 32px 40px; }
.card h4 { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-light); }
.card-dark h3 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.card-dark p { color: rgba(255, 255, 255, 0.85); }
.card-dark a { color: var(--gold); text-decoration: none; font-size: 17px; }

.card-shift { padding: 34px 32px; }
.card-shift h3 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.card-shift p { font-size: 17px; }

.center-intro { max-width: 70%; margin: 0 auto 64px; text-align: center; }
.center-intro p:last-child { font-size: 17px; line-height: 1.8; color: rgba(255, 255, 255, 0.85); margin-top: 18px; }
.card-action { display: flex; flex-direction: column; }
.card-action .icon { fill: var(--teal); }
.card-action h3 { color: var(--teal); }
.card-action p { flex: 1; margin-bottom: 30px; }
.card-action .btn { align-self: center; }

/* About */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: 5.5%; align-items: start; }
.founder-photo { position: relative; width: 90%; }
.founder-photo img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.badge {
  position: absolute; right: -16px; bottom: -6px;
  background: #fff; color: var(--body);
  font: 700 14px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  padding: 11px 16px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.about-text h2 { margin-top: 2px; }
.about-text > p { font-size: 17px; line-height: 1.8; }
.pledge {
  margin-top: 32px; background: #fff; padding: 26px 30px; border-radius: 15px;
  border-left: 5px solid var(--orange-light); box-shadow: var(--shadow);
}
.pledge h4 { font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 4px; }
.pledge p { font-size: 15px; }

/* Screenings */
.screenings-title { max-width: 820px; }
.physician { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; margin: 40px 0 56px; }
.physician img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.physician .intro-text { margin: 0; }
.tests { align-items: start; }
.tests .card { padding: 34px 32px; }
.tests h3 { font-size: 24px; margin-bottom: 6px; }
.tests .card > p { font-size: 17px; margin-bottom: 20px; }
.test-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.test-table th, .test-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--sage); }
.test-table tr > :first-child { width: 40%; padding-right: 20px; }
.test-table thead th {
  font: 500 13px/1.5 var(--sans); text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--teal-deep); padding-top: 0; border-bottom: 2px solid var(--teal-deep);
}
.test-table tbody th { font: 700 16px/1.5 var(--sans); color: var(--heading); }
.test-table tbody tr:last-child > * { border-bottom: 0; }
.next-steps {
  margin-top: 40px; background: #fff; padding: 26px 30px; border-radius: 15px;
  border-left: 5px solid var(--orange-light); box-shadow: var(--shadow);
}
.next-steps h3 { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 4px; }
.next-steps p { font-size: 17px; line-height: 1.8; }

/* Blog */
.blog-intro { font-size: 17px; margin-top: 12px; }
.coming-soon { font-size: 30px; font-weight: 400; color: var(--heading); margin-top: 36px; }
.coming-soon-note { font-size: 14px; margin-top: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 59px; }
.contact-text h2 { margin-top: 2px; }
.contact-text .intro-text { margin-top: 18px; }
.contact-list { margin: 40px 0 0; font: 15px/1.5 var(--sans); }
.contact-list div { display: grid; grid-template-columns: 135px 1fr; padding: 16px 0 12px; }
.contact-list div:not(:last-child) { border-bottom: 1px solid var(--sage); }
.contact-list dt { text-transform: uppercase; letter-spacing: 2px; color: var(--teal-deep); }
.contact-list dd { margin: 0; color: var(--body); }
.contact-list a { color: inherit; text-decoration: none; }

.contact-form {
  align-self: start; margin-top: 43px; padding: 20px; background: var(--cream);
  border-radius: 15px; box-shadow: var(--shadow); display: grid; gap: 15px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: 14px/1.7 var(--serif); color: rgba(28, 43, 30, 0.8);
  background: var(--sand); border: 0; border-radius: 8px; padding: 12px 16px;
}
.contact-form ::placeholder { color: rgba(28, 43, 30, 0.6); }
.contact-form select {
  appearance: none; color: rgba(28, 43, 30, 0.6); cursor: pointer;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.contact-form select:valid { color: rgba(28, 43, 30, 0.8); }
.contact-form textarea { resize: none; height: 150px; }
.contact-form [aria-invalid="true"] { outline: 2px solid var(--orange); }
.btn-submit { justify-self: center; width: 90%; font-size: 17px; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
.btn-icon { width: 17px; height: 17px; fill: currentColor; vertical-align: -2px; margin-left: 0.3em; }
.form-status { margin: 0; font-size: 15px; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--orange); }
.form-status.is-success { color: var(--green); font-weight: 700; }

/* Footer */
.site-footer { background: #171717; color: var(--footer-text); padding: 15px 0 15px; font-size: 14px; }
.site-footer a { color: var(--footer-text); font-weight: 700; text-decoration: none; }
.site-footer a:hover { opacity: 0.7; }

/* Tablet: Divi switches to the mobile menu below 981px */
@media (max-width: 980px) {
  .wrap { width: 90%; }
  .menu-toggle {
    display: block; position: relative; width: 32px; height: 32px; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute; left: 6px; width: 20px; height: 2px; background: var(--green); content: "";
  }
  .menu-toggle span { top: 14px; }
  .menu-toggle span::before { top: -6px; left: 0; }
  .menu-toggle span::after { top: 6px; left: 0; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 3px solid var(--green); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); padding: 5%;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 12px 5%; font-size: 15px; border-bottom: 1px solid rgba(0, 0, 0, 0.03); }
  .narrow, .center-intro { max-width: 100%; }
  .hero-actions { grid-template-columns: repeat(2, auto); justify-content: start; gap: 24px; }
}

/* Phone */
@media (max-width: 767px) {
  .wrap { width: 85%; }
  .header-inner { padding: 0 20px; }
  .logo img { height: 56px; }
  .hero-content { padding: 40px 0 28px; text-align: center; }
  .hero h1 { font-size: 2.6rem; text-align: left; margin-bottom: 140px; }
  .hero h1 .gold { margin-top: 10px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .hero-actions .btn { justify-self: center; }
  .stats-row, .cards-3, .cards-2, .about, .contact { grid-template-columns: 1fr; }
  .about { gap: 0; }
  .cards-2 { gap: 22px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .founder-photo { margin: 0 auto 60px; }
  .site-footer { text-align: center; }
  .contact-list div { grid-template-columns: 100px 1fr; }
  .physician { grid-template-columns: 1fr; gap: 24px; }
  .physician img { width: 60%; margin: 0 auto; }
  .tests .card { padding: 28px 22px; }
  /* Tables stack on phones: test name above its description, header row stacked the same way */
  .test-table, .test-table thead, .test-table tbody, .test-table tr, .test-table th, .test-table td { display: block; width: auto; }
  .test-table tr > :first-child { width: auto; padding: 14px 0 2px; border-bottom: 0; }
  .test-table tr > :last-child { padding: 0 0 14px; }
  .test-table thead tr > :first-child { padding-top: 0; }
  .test-table thead th:last-child { padding-bottom: 8px; }
}
