/* =========================================================
   Your Health Plan Man — static site stylesheet
   ========================================================= */

:root {
  --red: #e2402f;
  --red-dark: #c33323;
  --dark: #262b33;
  --text: #5f6572;
  --gray-bg: #f4f6f8;
  --border: #e7e9ec;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(38, 43, 51, 0.08);
  --radius: 10px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.3;
  margin: 0 0 16px;
}

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

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

.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--gray-bg);
}

.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-heading h2 { font-size: 32px; }
.section-heading p { margin: 12px 0 0; }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  font-size: 15px;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red); }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img { height: 56px; width: auto; }
.topbar-contacts {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-text .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dark);
  display: block;
}
.contact-text a { font-weight: 600; color: var(--text); }
.contact-text a:hover { color: var(--red); }

/* ---------- Nav ---------- */
.navbar {
  background: var(--gray-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  align-items: center;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: block;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--dark);
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--red);
}
.nav-list .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px 0;
  border-radius: 0 0 6px 6px;
}
.nav-list li:hover .submenu { display: block; }
.nav-list .submenu li a {
  padding: 10px 20px;
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--text);
}
.nav-list .submenu li a:hover { color: var(--red); background: var(--gray-bg); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,28,.35), rgba(20,22,28,.55));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 24px;
}
.hero h1 {
  color: var(--white);
  font-size: 40px;
  background: rgba(20, 22, 28, .55);
  padding: 22px 30px;
  border-radius: 6px;
  display: inline-block;
}
.hero .btn { margin-top: 26px; font-size: 17px; padding: 16px 40px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.about-grid h2 { font-size: 32px; }
.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.about-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
}
.about-bio {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--gray-bg);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  font-style: italic;
}
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Plans ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
  border-top: 4px solid var(--red);
}
.plan-card h3 { font-size: 22px; }

/* ---------- Endorsed by ---------- */
.endorsed {
  text-align: center;
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #f2b8ae 0%, #e2402f 60%, #c9281c 100%);
}
.endorsed h2 {
  color: #23262d;
  font-size: 36px;
  max-width: 780px;
  margin: 0 auto;
}
.endorsed-logo {
  margin-top: 34px;
}
.endorsed-logo img {
  max-width: 460px;
  width: 90%;
  margin: 0 auto;
}
.endorsed-photo {
  margin-top: 30px;
}
.endorsed-photo img {
  max-width: 340px;
  width: 70%;
  margin: 0 auto;
}
.endorsed-show-photo {
  margin-top: 48px;
}
.endorsed-show-photo img {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border: 3px solid rgba(0,0,0,.15);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.endorsed-name {
  margin-top: 18px;
  color: var(--red-dark);
  font-size: 34px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

/* ---------- Approach cards ---------- */
.approach-section {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(226, 64, 47, 0.05) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(38, 43, 51, 0.05) 0, transparent 45%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}
.approach-section .container { position: relative; z-index: 1; }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.approach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.approach-card h3 { font-size: 19px; margin-bottom: 6px; }
.approach-card .subtitle {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ---------- 3 keys ---------- */
.keys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.keys-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--dark);
}
.keys-list li span.num {
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.keys-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.keys-banner {
  margin-bottom: 30px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 26px;
  border-radius: var(--radius);
}
.keys-banner h3 { color: var(--white); margin: 0; letter-spacing: .04em; }

/* ---------- Video ---------- */
.video-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-wrap h3 {
  text-align: center;
  margin-top: 26px;
  font-size: 20px;
}

/* ---------- Testimonials ---------- */
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-card h4 { font-size: 16px; margin-bottom: 10px; color: var(--red); }
.testimonial-quote { font-style: italic; margin-bottom: 18px; }
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gray-bg);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-person strong { display: block; color: var(--dark); }
.testimonial-person span { font-size: 13px; }
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.testimonial-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  color: var(--red);
}
.testimonial-controls button:hover { background: var(--red); color: var(--white); }

/* ---------- Blog list ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card .date {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; flex: 1; }
.blog-card .read-more {
  margin-top: 14px;
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer-bar {
  background: #14161b;
  color: #cfd2d8;
}
.footer-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 26px 24px;
}
.footer-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  padding: 18px 22px;
}
.footer-bar-icon {
  flex-shrink: 0;
  color: var(--red);
}
.footer-bar-icon svg { width: 30px; height: 30px; fill: currentColor; }
.footer-bar-item h4 {
  color: #9aa0ab;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.footer-bar-item p { margin: 0; color: #fff; font-weight: 700; font-size: 18px; }
.footer-bar-item p a:hover { color: var(--red); }

.footer-main {
  background: #1a1e24;
  color: #b8bcc4;
  padding: 54px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo img { height: 44px; margin-bottom: 16px; }
.footer-main h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--red); font-weight: 700; }

/* ---------- Blog post page ---------- */
.post-hero {
  background: var(--gray-bg);
  padding: 50px 0;
  text-align: center;
}
.post-hero .date { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.post-hero h1 { font-size: 32px; margin-top: 10px; }
.post-body {
  max-width: 760px;
  margin: 0 auto;
}
.post-body img { border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); }
.post-body p { font-size: 17px; margin-bottom: 20px; }
.post-cta {
  margin-top: 40px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-weight: 700;
}
.post-nav a:hover { color: var(--red); }
.breadcrumb {
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--text);
}
.breadcrumb a:hover { color: var(--red); }

/* ---------- Thank You page ---------- */
.thank-you-section { padding: 90px 0; }
.thank-you-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.thank-you-content h1 {
  font-size: 40px;
  color: var(--red);
  margin-bottom: 18px;
}
.thank-you-lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.thank-you-note {
  font-size: 16px;
  margin-bottom: 30px;
}
.thank-you-contacts {
  display: inline-block;
  text-align: left;
  margin: 0 auto 34px;
  padding: 26px 34px;
  background: var(--gray-bg);
  border-radius: var(--radius);
}
.thank-you-contacts li {
  font-size: 16px;
  padding: 6px 0;
}
.thank-you-contacts li a { color: var(--red); font-weight: 600; }
.thank-you-contacts li a:hover { color: var(--red-dark); }
.thank-you-blessing {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red-dark); }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Get Quote Now page (tabs) ---------- */
.quote-tabs {
  max-width: 900px;
  margin: 0 auto;
}
.quote-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.quote-tab-btn {
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.quote-tab-btn:hover { border-color: var(--red); color: var(--red); }
.quote-tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.quote-tab-panel { display: none; }
.quote-tab-panel.active {
  display: block;
  animation: quoteFadeIn .25s ease;
}
@keyframes quoteFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.quote-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  font-size: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .keys-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-contacts { display: none; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .navbar.open .nav-list { display: flex; }
  .nav-list > li > a { padding: 16px 24px; }
  .nav-list .submenu {
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 14px;
  }
  .nav-list li.open .submenu { display: block; }
  .approach-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; padding: 16px 18px; }
  .section { padding: 50px 0; }
}
