/* ==========================================================================
   Health Secure Solution — stylesheet
   Brand colors sampled from the previous site:
   olive #6a760c / dark olive #4c5409 / cream background #faf9f4
   ========================================================================== */

:root {
  --olive: #6a760c;
  --olive-dark: #4c5409;
  --olive-light: #eef1df;
  --olive-tint: #f4f6ea;
  --ink: #23261f;
  --muted: #5c6259;
  --cream: #faf9f4;
  --white: #ffffff;
  --border: #e4e3d8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 38, 31, 0.08);
  --font-head: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--muted); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--olive-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--tint { background: var(--olive-tint); }
.section--dark {
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark p { color: var(--white); }

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--olive); color: var(--white); }
.btn--primary:hover { background: var(--olive-dark); box-shadow: 0 10px 20px rgba(106,118,12,0.28); }
.btn--outline { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn--outline:hover { background: var(--olive); color: var(--white); }
.btn--light { background: var(--white); color: var(--olive); }
.btn--light:hover { background: var(--olive-light); }

/* Topbar */
.topbar {
  background: var(--olive);
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  font-size: 0.8rem;
}
.topbar__social a:hover { background: rgba(255,255,255,0.15); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  font-family: "Alex Brush", "Brush Script MT", cursive;
  font-size: 2rem;
  color: var(--olive);
  line-height: 1;
}
.logo span {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav__links a:hover,
.nav__links a.active { color: var(--olive); border-color: var(--olive); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--olive-dark) 0%, var(--olive) 55%, #838f1c 100%);
  color: var(--white);
  padding: 100px 0 120px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero::before { width: 420px; height: 420px; top: -180px; right: -120px; }
.hero::after { width: 260px; height: 260px; bottom: -140px; left: -60px; background: rgba(255,255,255,0.06); }
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Simple page banner (interior pages) */
.page-banner {
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin: 0; }
.page-banner .crumb { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 8px; }

/* Cards */
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card__body { padding: 26px 26px 30px; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--olive-light);
  color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

/* Photo slot at the top of a card — swap the placeholder <div> for an <img> once a real photo is ready */
.card__photo {
  height: 170px;
  background: var(--olive-light);
  color: var(--olive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative branded card header — used where there's no photo yet.
   Olive gradient + soft dot texture + a large icon, so it reads as an
   intentional design choice rather than an empty placeholder. */
.card__photo--deco {
  position: relative;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}
.card__photo--deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.card__photo--deco::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  right: -40px;
  bottom: -50px;
}
.card__photo--deco svg {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
}

/* Stats */
.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { min-width: 160px; }
.stat__num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* Carrier logo strip */
.carrier-strip { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.carrier-strip__label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.carrier-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.carrier-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.carrier-strip__item img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--olive-light);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame__placeholder {
  color: var(--olive);
  text-align: center;
  padding: 24px;
  font-family: var(--font-head);
  font-size: 0.95rem;
}
.photo-frame__placeholder svg { margin-bottom: 10px; }

/* Showcase panel for the homepage — a big, crisp TEXT rendition of the logo
   (same font as the header) on a rich gradient, rather than upscaling the
   small raster logo file, which is what caused the blur. */
.logo-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--olive-dark) 0%, var(--olive) 60%, #838f1c 100%);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px;
}
.logo-showcase::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -120px; right: -80px;
}
.logo-showcase::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -90px; left: -50px;
}
.logo-showcase__card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 34px 46px;
  box-shadow: 0 24px 48px rgba(20, 24, 6, 0.22);
}
.logo-showcase__card img {
  display: block;
  width: 250px;
  max-width: 60vw;
  height: auto;
}

/* FAQ — native <details>/<summary>, no JS required */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 24px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--olive);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 20px;
  margin: -6px 0 0;
}

/* CTA band */
.cta-band {
  background: var(--olive-light);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: #20241a;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer .logo { color: var(--white); }
.site-footer .logo span { color: rgba(255,255,255,0.55); }
.site-footer p { color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--olive-light); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--olive); border-color: var(--olive); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Contact form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6259' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  color: var(--ink);
}
select:invalid { color: #767c73; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--olive);
  background-color: var(--white);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.9rem; }
.form-status.success { color: var(--olive-dark); }
.form-status.error { color: #a13a2a; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-item .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--olive-light);
  color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; font-family: var(--font-head); font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.contact-info-item span, .contact-info-item a { font-size: 1.02rem; }

/* Modal (Get a Quote) */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,22,15,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted);
  line-height: 1;
}
.modal h3 { margin-bottom: 6px; }
.modal .form-grid { grid-template-columns: 1fr; }

/* Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar__contact { gap: 12px; font-size: 0.78rem; }
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 22px;
    transition: right 0.25s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
  }
  .nav__links.open { right: 0; }
  .nav__toggle { display: block; }
  .nav__cta .btn { padding: 10px 16px; font-size: 0.82rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .stats { justify-content: center; text-align: center; }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card__tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--olive-light);
  color: var(--olive-dark);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.blog-card h3 { margin: 0; }
.blog-card p { margin: 0; }
.blog-card .btn { align-self: flex-start; margin-top: 6px; }

.article-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 {
  margin-top: 40px;
  margin-bottom: 14px;
}
.article-body p {
  margin-bottom: 18px;
}
.article-body ul {
  margin: 0 0 18px 20px;
  padding: 0;
}
.article-body li {
  margin-bottom: 10px;
  color: var(--ink);
}
.article-cta {
  margin-top: 40px;
  padding: 30px;
  background: var(--olive-tint);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { margin-bottom: 18px; color: var(--muted); }

.check-list {
  margin: 2px 0 22px;
  padding: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.check-list li::before {
  content: "\2713";
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
}

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