/* MiVitality — base styles
   Palette sampled directly from the original WordPress theme's rendered
   screenshots: navy hero (#005387), green CTAs (#6EBA01), indigo icons/
   dividers (#4E5ED0), and the same accent link blue (#2EA3F2). */

:root {
  --color-navy: #005387;
  --color-green: #6eba01;
  --color-green-dark: #549001;
  --color-indigo: #4e5ed0;
  --color-indigo-deep: #3b38db;
  --color-link: #2ea3f2;
  --color-link-dark: #1c86d1;
  --color-teal: #1f8f7f;
  --color-teal-dark: #166b5f;
  --color-text: #333333;
  --color-text-muted: #5c6b6b;
  --color-bg: #ffffff;
  --color-border: #e6e6ec;
  --font-heading: "Montserrat", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --max-width: 1160px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: #1a2233;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.25em; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Buttons — solid green, uppercase, pill-shaped (matches every CTA in the
   original: "CONTACT US", "LEARN MORE", "SEND MESSAGE") */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2233;
}

.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] {
  color: var(--color-teal);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #1a2233;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero sections */
.hero {
  padding: 76px 0 68px;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
}

.hero h1 {
  color: #fff;
}

.hero__badge {
  width: 260px;
  margin: 0 auto 28px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 6px;
}

.hero__lead {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Tinted hero used on About / Products — matches the indigo-to-periwinkle
   gradient sampled from those pages' screenshots */
.hero--tinted {
  background: linear-gradient(135deg, var(--color-indigo-deep) 0%, #6980cf 100%);
  padding: 64px 0;
}

/* Slim page-heading bar for Contact (original has no big hero there —
   the map takes that space) */
.page-heading {
  padding: 32px 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-heading h1 {
  margin-bottom: 8px;
}

.page-heading p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section__intro {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section__intro--left {
  text-align: left;
  margin: 0 0 36px;
}

/* Small decorative divider line — indigo, used above key headings
   throughout the original theme */
.divider {
  width: 64px;
  height: 3px;
  background: var(--color-indigo);
  border: 0;
  margin: 0 auto 20px;
}

.section__intro--left .divider,
.divider--left {
  margin: 0 0 20px;
}

.heal-image {
  border-radius: var(--radius);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.badge-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25em;
}

.badge-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.badge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-indigo);
}

/* Icon-led feature grid — used for the home "Process" steps and the
   About "Our Facility" bullets. Plain, no card box, matching the source. */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .icon-grid { grid-template-columns: 1fr; }
}

.icon-grid__item svg {
  width: 48px;
  height: 48px;
  color: var(--color-indigo);
  margin-bottom: 14px;
}

.icon-grid__item h4 {
  margin-bottom: 6px;
}

.icon-grid__item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.products-lineup-image {
  border-radius: var(--radius);
}

/* Product write-ups */
.product-entry {
  margin-bottom: 32px;
}

.product-entry:last-child {
  margin-bottom: 0;
}

.product-entry h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1a2233;
}

.product-entry p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Combined "Ready to Create Your Own Brand?" + contact card section —
   appears once per page, full-bleed lab-photo background, exactly as in
   the original theme's global footer area. */
.contact-cta {
  padding: 64px 0 72px;
  background-image: url("../images/cta-your-brand.jpg");
  background-size: cover;
  background-position: center top;
}

.contact-cta__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-cta__grid { grid-template-columns: 1fr; }
}

.contact-cta__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.contact-cta__card p {
  color: var(--color-text-muted);
}

.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-green);
}

.contact-list a {
  color: var(--color-link);
}

.contact-list strong {
  color: #1a2233;
}

.map-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* Form */
.contact-form .form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdd0e0;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-link);
  outline-offset: 1px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
}

.form-status[data-state="success"] { color: var(--color-teal-dark); }
.form-status[data-state="error"] { color: #b3261e; }

/* Footer — the original ends in a bare black bar with no content; we
   keep it just as slim but put a real copyright line in it. */
.site-footer {
  background: #14161f;
  color: rgba(255, 255, 255, 0.65);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
  }

  .main-nav__list li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav__list a {
    display: block;
    padding: 16px 4px;
  }
}
