/* ========================================
   GLOBAL BASE STYLES – HIGH PERFORMANCE FRAMEWORK
   ======================================== */

:root {
  --primary: #173e94;
  --secondary: #576991;
  --background: #e7ebf4;
  --accent: #facc15;
  --text-dark: #0b1020;
  --text-light: #f9fafb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================================
   HEADER (BASE – PRODUCT PAGES)
   ======================================== */

header {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;      /* ⬅️ stack brand + mobile nav */
  align-items: stretch;        /* ⬅️ let them both span full width */
  color: #ffffff;
  border-bottom: 4px solid var(--accent);
}


.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  height: 48px;
}

/* ========================================
   HOMEPAGE HEADER OVERRIDES
   ======================================== */

.site-header {
  background: linear-gradient(120deg, #173e94, #576991);
  border-bottom: 4px solid #f5c242;
  color: #fff;
  position:sticky;
  top:0px;
}

.site-header .brand {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header .brand-logo {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: #e5ecff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

.nav-cta-group {
  display: flex;
  gap: 0.75rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

/* primary pill (also used everywhere as main CTA) */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* simple outlined button (used in header) */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #f9fafb;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* small pill used in header */
.btn.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* utility button sizes */
.btn-full {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.btn-large {
  padding: 0.9rem 2.5rem;
  font-size: 1.05rem;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* ========================================
   NEXT-STEP BANNER (USED ON BOOK PAGES)
   ======================================== */

.next-step-banner {
  display: none;
  max-width: 768px;
  margin: 0 auto 2rem auto;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.next-step-banner h2 {
  margin: 0 0 0.5rem 0;
}

.next-step-banner p {
  margin: 0.15rem 0;
}

/* ========================================
   CLAIM SECTION / SINGLE CLAIM WRAPPER
   (Journal landing)
   ======================================== */

.claim {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.5fr 1.5fr;
  gap: 3rem;
  background: #fff;
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .claim {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.25rem 1.5rem;
  }
}

.singleclaim {
  max-width: 1100px;
  width: 100%;
  margin: 2.5rem auto;
  background: #ffffff;
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.singleclaim h1 {
  font-size: 2rem;
  line-height: 1.25;
  color: #0b1120;
  margin: 0 0 1rem;
}

.singleclaim p {
  color: #4b5563;
  font-size: 1rem;
  max-width: 680px;
  margin: 0.5rem 0 1rem;
}

.singleclaim .claim-subtitle {
  font-size: 1.05rem;
}

.singleclaim .claim-list {
  text-align: left;
  max-width: 700px;
  margin: 1rem auto 1.5rem;
}

.singleclaim .claim-list li {
  margin-bottom: 0.4rem;
}

.singleclaim .builder-insight {
  max-width: 700px;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .singleclaim {
    padding: 2.25rem 1.5rem;
    margin: 2rem 1rem;
  }

  .singleclaim h1 {
    font-size: 1.6rem;
  }
}

.claim-copy h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

.claim-copy h1 span {
  color: var(--primary);
}

.claim-subtitle {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #334155;
}

.claim-list {
  margin: 1.5rem 0 1.25rem 1.25rem;
  list-style-type: disc;
  color: #1e293b;
}

.builder-insight blockquote {
  font-style: italic;
  font-size: 1rem;
  margin-top: 1.25rem;
  color: #0f172a;
}

.builder-insight cite {
  display: block;
  font-size: 0.9rem;
  color: #475569;
  margin-top: 0.5rem;
}

.claim-note {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: #475569;
}

.claim-card h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--primary);
}
.claim-card h3 {
  text-align: center;
  margin-top: 1rem;
  color: var(--primary);
}
/* ========================================
   FORM + JOURNAL VISUAL
   ======================================== */

.form-and-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.journal-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.journal-mockup {
  max-width: 300px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
}

/* ========================================
   HPF FORM STYLES
   ======================================== */

.form-container {
  background: rgba(10, 15, 30, 0.98);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form-container iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .form-container {
    margin-top: 1.5rem;
  }
}

.hpf-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

.hpf-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.hpf-form input,
.hpf-form select {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background-color: #020617;
  color: #f9fafb;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.08s ease;
  width: 100%;
  box-sizing: border-box;
}

.hpf-form input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.hpf-form input:hover,
.hpf-form select:hover {
  border-color: #c4d0ff;
  background-color: #02081b;
}

.hpf-form input:focus,
.hpf-form select:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.6),
    0 0 0 6px rgba(250, 204, 21, 0.07);
  background-color: #020617;
  transform: translateY(-1px);
}

.hpf-form button[type="submit"] {
  margin-top: 0.5rem;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #0b1020;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
  position: relative;
  animation: hpfGlowPulse 2.4s ease-in-out infinite;
}

.hpf-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  filter: brightness(1.03);
}

.hpf-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
}

.hpf-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
  box-shadow: none;
}

#hpfFormMsg {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* Secure note */

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.secure-note .icon {
  font-size: 0.9rem;
  line-height: 1.2;
}

/* ========================================
   WHY SECTION (JOURNAL PAGE)
   ======================================== */

.why-section {
  margin-top: 4rem;
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  max-width: 1100px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.why-inner h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.why-item p {
  color: #334155;
}

/* ========================================
   FOOTER (JOURNAL PAGE)
   ======================================== */

footer {
  margin-top: auto;
  background: var(--primary);
  color: #ffffff;
  padding: 1rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

/* ========================================
   ENTRANCE ANIMATIONS
   ======================================== */

.claim-copy,
.form-and-visual {
  opacity: 0;
  animation: hpfFadeUp 0.7s ease-out forwards;
}

.claim-copy {
  animation-delay: 0.05s;
}

.form-and-visual {
  animation-delay: 0.18s;
}

@keyframes hpfFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile spacing refinements */

@media (max-width: 900px) {
  .form-and-visual {
    width: 100%;
  }

  .journal-mockup {
    max-width: 260px;
    margin-bottom: 0.5rem;
  }
}

/* Glow pulse for submit button */

@keyframes hpfGlowPulse {
  0% {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7),
      0 0 0 0 rgba(250, 204, 21, 0.2);
  }
  50% {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95),
      0 0 0 6px rgba(250, 204, 21, 0.08);
  }
  100% {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7),
      0 0 0 0 rgba(250, 204, 21, 0.2);
  }
}

/* Respect reduced-motion */

@media (prefers-reduced-motion: reduce) {
  .claim-copy,
  .form-and-visual,
  .hpf-form button[type="submit"] {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================
   FOUNDATIONS / PRODUCT PAGES – HERO + SECTIONS
   ======================================== */

/* Shared hero wrapper for Foundations + Home */

.hero--foundations,
.hero--home {
  width: 100%;
  background: #f5f6fb;
  padding: 3.5rem 1.5rem;
}

.hero--foundations .hero-grid,
.hero--home .hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 3rem;
  align-items: stretch;
}

.hero--foundations .hero-content,
.hero--home .hero-content {
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.text-highlight {
  color: var(--primary);
}

.hero--foundations h1,
.hero--home h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.hero--foundations .hero-subtitle,
.hero--home .hero-subtitle {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #222;
}

.hero--foundations .hero-bullets,
.hero--home .hero-bullets {
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style-type: disc;
  display: grid;
  gap: 0.35rem;
  color: #1f2933;
}

.hero--foundations .hero-cta-group,
.hero--home .hero-cta-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero--home .hero-cta-group {
  /* homepage: center CTAs on larger screens */
  justify-content: flex-start;
}

.hero--foundations .cta-note,
.hero--home .hero-note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #4b5563;
  opacity: 0.9;
}

.quote-card {
  margin-top: 1.35rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.quote-card footer {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
}

/* Product side card (shared) */

.hero--foundations .hero-side,
.hero--home .hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero--foundations .product-panel,
.hero--home .product-panel {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero--foundations .product-image,
.hero--home .product-image {
  width: 100%;
  max-width: 180px;
  align-self: center;
  display: block;
  border-radius: 0.75rem;
}

.product-image {
  display: block;
  max-height: 480px;
  max-width: 320px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

@media (max-width: 768px) {
  .product-image {
    max-height: 320px;
    max-width: 220px;
  }
}

.hero--foundations .product-info,
.hero--home .product-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero--foundations .product-title,
.hero--home .product-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
}

.hero--foundations .product-subtitle,
.hero--home .product-subtitle {
  font-size: 0.95rem;
  color: #444;
}

.hero--foundations .product-price-row,
.hero--home .product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.hero--foundations .product-price,
.hero--home .product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.hero--foundations .product-meta,
.hero--home .product-meta {
  font-size: 0.9rem;
  color: #666;
}

.hero--foundations .product-points,
.hero--home .product-points {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  list-style-type: disc;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #333;
}

.hero--foundations .product-assurance,
.hero--home .product-assurance {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #555;
  opacity: 0.9;
}

/* Hero responsive */

@media (max-width: 900px) {
  .hero--foundations .hero-grid,
  .hero--home .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero--foundations .hero-content,
  .hero--home .hero-content {
    max-width: 680px;
    margin: 0 auto;
  }

  .hero--foundations .hero-side,
  .hero--home .hero-side {
    margin-top: 1.75rem;
  }

  .hero--foundations .product-panel,
  .hero--home .product-panel {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero--foundations .product-image,
  .hero--home .product-image {
    max-width: 240px;
    margin: 0 auto 1rem;
  }

  .hero--foundations .product-price-row,
  .hero--home .product-price-row {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  .hero--foundations,
  .hero--home {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero--foundations h1,
  .hero--home h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero--foundations .hero-subtitle,
  .hero--home .hero-subtitle {
    font-size: 1rem;
  }

  .hero--foundations .hero-bullets,
  .hero--home .hero-bullets {
    margin-top: 1rem;
  }

  .hero--foundations .hero-cta-group,
  .hero--home .hero-cta-group {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero--foundations .hero-cta-group .btn-primary,
  .hero--home .hero-cta-group .btn-primary {
    width: 100%;
    text-align: center;
  }

  .hero--foundations .product-panel,
  .hero--home .product-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero--foundations h1,
  .hero--home h1 {
    font-size: 1.6rem;
  }

  .hero--foundations .hero-subtitle,
  .hero--home .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero--foundations .hero-bullets li,
  .hero--home .hero-bullets li {
    font-size: 0.95rem;
  }

  .hero--foundations .product-panel,
  .hero--home .product-panel {
    padding: 1.25rem;
    border-radius: 0.9rem;
  }

  .hero--foundations .product-image,
  .hero--home .product-image {
    max-width: 200px;
  }

  .hero--foundations .product-price-row,
  .hero--home .product-price-row {
    font-size: 0.95rem;
  }
}

/* ========================================
   GENERIC SECTIONS (FOUNDATIONS + HOME)
   ======================================== */

.section {
  width: 100%;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.section-alt {
  background: #f5f6fb;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}
.section-header h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.section-header p {
  color: #334155;
  font-size: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.benefit-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: #334155;
  line-height: 1.6;
}

/* Feature list */

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #333;
  line-height: 1.6;
}

/* Combo grid */

.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.combo-item {
  background: #e7ebf4;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  border-left: 6px solid var(--primary);
}

.combo-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.combo-item p {
  color: #333;
  line-height: 1.6;
}

.combo-item-ul{
    padding-top: 1.25rem;
}

/* Guarantee card */

.guarantee-card {
  background: linear-gradient(135deg, #173e94, #576991);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(23, 62, 148, 0.2);
  max-width: 800px;
  margin: 2rem auto;
}

.guarantee-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.guarantee-card p {
  line-height: 1.7;
  opacity: 0.95;
}

/* Final CTA */

.final-cta {
  text-align: center;
  padding: 4rem 1rem;
}

.final-cta-inner {
  max-width: 800px;
  margin: 1rem auto;
  text-align: center;
}

.final-cta-inner .btn {
  display: inline-block;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.final-cta p {
  color: #333;
  margin-bottom: 1.5rem;
}

.final-cta .cta-note {
  font-size: 0.95rem;
  color: #4b5563;
  opacity: 0.9;
  margin-top: 0.75rem;
}

/* Section mobile tweaks */

@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .feature-item {
    padding: 1.25rem;
  }

  .feature-item h3 {
    font-size: 1.15rem;
  }

  .combo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .combo-item {
    padding: 1.25rem;
    border-left-width: 4px;
  }

  .guarantee-card {
    padding: 1.75rem 1.25rem;
    margin: 1.5rem auto;
  }

  .guarantee-card h2 {
    font-size: 1.5rem;
  }

  .final-cta {
    padding: 3rem 1.5rem;
  }

  .final-cta h2 {
    font-size: 1.75rem;
  }

  .final-cta-inner {
    padding: 0 0.25rem;
  }
}

@media (max-width: 480px) {
  .feature-item {
    padding: 1rem;
  }

  .feature-item p {
    font-size: 0.95rem;
  }

  .combo-item {
    padding: 1rem;
  }

  .guarantee-card {
    border-radius: 1rem;
    padding: 1.5rem 1rem;
  }

  .guarantee-card h2 {
    font-size: 1.35rem;
  }

  .guarantee-card p {
    font-size: 0.95rem;
  }

  .final-cta h2 {
    font-size: 1.5rem;
  }

  .final-cta p {
    font-size: 0.95rem;
  }
}

/* ========================================
   SITE FOOTER (FOUNDATIONS / HOME)
   ======================================== */

.site-footer {
  margin-top: auto;
  background: var(--primary);
  color: #ffffff;
  padding: 1rem 0;
  text-align: center;
}

.site-footer .footer-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========================================
   HPF STACK (BOOK STRIP)
   ======================================== */

.hpf-stack {
  margin-top: 3rem;
}

.section-header .hpf-stack-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.75rem;
}
.hpf-stack-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.hpf-stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: stretch;
}

.hpf-stack-item {
  flex: 1 1 220px;
  max-width:400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  min-height: 500px;
  text-align: center;
}

.hpf-stack-image {
  display: block;
  max-height: 260px;
  max-width: 180px;
  width: auto;
  height: auto;
  margin: 0 auto 0.75rem auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

.hpf-stack-meta {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 0.75rem 0;
}

.hpf-stack-sub {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0 0 0.75rem 0;
  font-style:italic;
}

.hpf-stack-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  padding: 0.45rem;
  margin-top: auto;
}

.hpf-stack-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
/* ========================================
   MOBILE NAV / HAMBURGER
   ======================================== */

.site-header .brand {
  justify-content: space-between;
}

/* Hamburger button base */
.nav-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: transparent;
}

/* Icon inside the button */
.nav-toggle-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: #f9fafb;
}


/* Mobile nav panel (hidden by default) */
.mobile-nav {
  display: none;
  width: 100%;                                  /* ⬅️ full width */
  box-sizing: border-box;
  background: linear-gradient(120deg, #173e94, #576991);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 4px solid #f5c242;
  padding: 0.75rem 1.5rem 1rem;
}

.mobile-nav-links,
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  color: #e5ecff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-nav-links a:hover {
  text-decoration: underline;
}

/* When nav is open */
.site-header.nav-open .mobile-nav {
  display: block;
}


/* ============================
   RESPONSIVE BEHAVIOR
   ============================ */

@media (max-width: 768px) {
  /* Hide desktop nav/CTAs, show hamburger */
  .main-nav,
  .nav-cta-group {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .brand {
    padding-right: 1rem;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav,
  .nav-cta-group {
    display: flex;
  }
}
