/* Heartline.network — site styles
 * Bootstrap 5.3.x customizations and brand layer.
 *
 * Palette (from brand direction):
 *   cream/off-white background, deep navy text, heartline coral accent,
 *   soft teal secondary, warm gold highlight (sparingly).
 */

:root {
  --hl-cream:        #FBF7F2;
  --hl-cream-warm:   #F5EFE7;
  --hl-ink:          #14213D;        /* deep navy / charcoal text */
  --hl-ink-soft:     #3A4561;
  --hl-muted:        #6B7280;
  --hl-coral:        #E15D5D;        /* heartline accent */
  --hl-coral-deep:   #C44848;
  --hl-coral-soft:   #FBE8E8;
  --hl-teal:         #5FA4A4;
  --hl-teal-soft:    #E5F0F0;
  --hl-gold:         #D6A256;
  --hl-line:         #E8E1D6;

  --hl-radius:       14px;
  --hl-radius-lg:    22px;
  --hl-shadow-sm:    0 1px 2px rgba(20,33,61,.04), 0 2px 8px rgba(20,33,61,.04);
  --hl-shadow:       0 2px 6px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.06);

  --bs-body-bg:      var(--hl-cream);
  --bs-body-color:   var(--hl-ink);
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bs-link-color:   var(--hl-coral-deep);
  --bs-link-hover-color: var(--hl-coral);
  --bs-border-radius: var(--hl-radius);
}

html { height: 100%; background: var(--hl-cream); font-size: 18.5px; }
@media (max-width: 991.98px) { html { font-size: 17.5px; } }
@media (max-width: 575.98px) { html { font-size: 16.5px; } }
body {
  color: var(--hl-ink);
  background: var(--hl-ink); /* gap below content reads as footer, not a cream void */
  font-feature-settings: "ss01","cv01";
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
p { line-height: 1.7; }
/* Cream surface for actual content; main is content-height, never stretches. */
body > .hl-nav,
body > main,
body > .container { background: var(--hl-cream); }
body > main { flex: 0 0 auto; }
/* Footer pins to the bottom on short pages; the body's navy fills any space above it. */
body > .hl-footer { flex-shrink: 0; margin-top: auto; }

h1,h2,h3,h4,h5,h6 {
  font-family: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
  color: var(--hl-ink);
  line-height: 1.18;
}

h1 { font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.55rem); }

.lead, .hl-lead {
  color: var(--hl-ink-soft);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}

/* Defined-term treatment — keeps "LifeEvent Travel" reading as a concept, not a brand. */
.hl-term {
  font-style: italic;
  color: var(--hl-coral-deep);
  font-weight: 500;
  white-space: nowrap;
}
em.hl-term { font-style: italic; }

.text-muted, .hl-muted { color: var(--hl-muted) !important; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.4rem; }
.btn-lg { padding: .9rem 1.8rem; }
.btn-primary {
  --bs-btn-bg: var(--hl-coral);
  --bs-btn-border-color: var(--hl-coral);
  --bs-btn-hover-bg: var(--hl-coral-deep);
  --bs-btn-hover-border-color: var(--hl-coral-deep);
  --bs-btn-active-bg: var(--hl-coral-deep);
  --bs-btn-active-border-color: var(--hl-coral-deep);
  --bs-btn-disabled-bg: var(--hl-coral);
  --bs-btn-disabled-border-color: var(--hl-coral);
  color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: var(--hl-coral-deep);
  --bs-btn-border-color: var(--hl-coral);
  --bs-btn-hover-bg: var(--hl-coral);
  --bs-btn-hover-border-color: var(--hl-coral);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--hl-coral-deep);
  --bs-btn-active-border-color: var(--hl-coral-deep);
}
.btn-soft {
  background: #fff;
  color: var(--hl-ink);
  border: 1px solid var(--hl-line);
}
.btn-soft:hover { border-color: var(--hl-coral); color: var(--hl-coral-deep); }

/* Navbar */
.hl-nav {
  background: rgba(251,247,242,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--hl-line);
}
.hl-nav .navbar-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--hl-ink);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.hl-nav .navbar-brand .hl-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--hl-coral-soft);
  color: var(--hl-coral-deep);
}
.hl-nav .nav-link {
  color: var(--hl-ink-soft);
  font-weight: 500;
  padding: .55rem .9rem;
  border-radius: 999px;
}
.hl-nav .nav-link:hover { color: var(--hl-coral-deep); background: var(--hl-coral-soft); }
.hl-nav .nav-link.active { color: var(--hl-coral-deep); background: var(--hl-coral-soft); }

/* Custom navbar expansion at 1020px (Bootstrap's lg=992 is too early — links
   crowd the brand and the hamburger reads cleaner up to 1020px). Replicates
   the bits of navbar-expand-lg we need at our chosen breakpoint. */
.hl-navbar-1020 { flex-wrap: wrap; }
.hl-navbar-1020 > .container { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; }
.hl-navbar-1020 .navbar-toggler { display: inline-flex; align-items: center; padding: .35rem .55rem; }
.hl-navbar-1020 .collapse.navbar-collapse { display: none; flex-basis: 100%; }
.hl-navbar-1020 .hl-nav-actions { margin-left: auto; }

@media (min-width: 1021px) {
  .hl-navbar-1020 .navbar-toggler { display: none !important; }
  .hl-navbar-1020 .collapse.navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
    gap: .5rem;
  }
  .hl-navbar-1020 .navbar-nav {
    flex-direction: row;
    align-items: center;
  }
  .hl-navbar-1020 .navbar-nav .nav-link {
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }
  .hl-navbar-1020 .hl-nav-actions { margin-left: 0; }
}

/* Always-visible primary CTA — full label at md+, icon-only below md so it
   fits next to the brand and hamburger on phones. */
.hl-cta-btn { padding-inline: .9rem; }
.hl-cta-label { display: none; }
@media (min-width: 768px) { .hl-cta-label { display: inline; } }

/* Account / Sign-in button: hidden on phones (link lives in the offcanvas),
   visible from tablet up alongside the CTA. */
.hl-account-btn { display: none !important; }
@media (min-width: 768px) { .hl-account-btn { display: inline-flex !important; align-items: center; } }

/* Hero */
.hl-hero {
  position: relative;
  padding: clamp(2.25rem, 5vw, 4.25rem) 0 clamp(0.75rem, 1.25vw, 1.25rem);
  background:
    radial-gradient(ellipse 800px 400px at 80% -10%, rgba(225,93,93,.10), transparent 60%),
    radial-gradient(ellipse 700px 350px at 0% 100%, rgba(95,164,164,.10), transparent 60%),
    var(--hl-cream);
  overflow: hidden;
}
.hl-hero > .container > .row:last-child p:last-child,
.hl-hero p.lead:last-child { margin-bottom: 0; }
.hl-hero h1 .hl-accent { color: var(--hl-coral-deep); }
.hl-hero .hl-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--hl-coral-deep);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}
.hl-hero .hl-eyebrow .bi { color: var(--hl-coral); font-size: 1rem; }

/* Hero illustration */
.hl-hero-art {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  display: block;
}

/* Sections — generous vertical breathing room. */
section { padding: clamp(7rem, 14vw, 14rem) 0; }
.hl-section-soft { background: var(--hl-cream-warm); border-block: 1px solid var(--hl-line); }
.hl-section-white { background: #fff; border-block: 1px solid var(--hl-line); }

/* When a section follows the hero, soften the doubled vertical air without crushing it. */
.hl-hero + section { padding-top: clamp(3rem, 6vw, 5.5rem); }

/* The footer follows the last section directly — don't stack a giant padding *and* a footer. */
body > main > section:last-child { padding-bottom: clamp(3rem, 5vw, 5.5rem); }

/* Wider primary container — comfortable reading width on large screens. */
@media (min-width: 1200px) { .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1600px; } }

.hl-eyebrow-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--hl-coral-deep);
  margin-bottom: .65rem;
}

/* Cards — presentational; no hover state because they are not links */
.hl-card {
  background: #fff;
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius-lg);
  padding: 1.6rem;
  box-shadow: var(--hl-shadow-sm);
}
/* In grid-of-cards layouts the card is the only child of its column; let it
   stretch so neighbours line up. When stacked with siblings (a notice above
   a form, etc.) keep natural height. Bootstrap's .h-auto can override too. */
.row > [class*="col"] > .hl-card:only-child { height: 100%; }
/* When a card *is* a link, opt in with .hl-card-link */
a.hl-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s ease, border-color .18s ease;
}
a.hl-card-link:hover { border-color: var(--hl-coral); background-color: #FFFBF8; color: inherit; }
a.hl-card-link.alt:hover { border-color: var(--hl-teal); }
.hl-card .hl-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--hl-coral-soft);
  color: var(--hl-coral-deep);
  font-size: 1.25rem;
  margin-bottom: .9rem;
}
.hl-card.alt .hl-icon { background: var(--hl-teal-soft); color: var(--hl-teal); }
.hl-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.hl-card p { color: var(--hl-ink-soft); margin: 0; }

/* Step cards (numbered) */
.hl-step {
  background: #fff;
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius-lg);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  box-shadow: var(--hl-shadow-sm);
}
.hl-step .hl-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--hl-ink);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  margin-bottom: .9rem;
}
.hl-step h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.hl-step p { color: var(--hl-ink-soft); margin: 0; }

/* Two-column "Is / Is Not" */
.hl-two-col {
  background: #fff;
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius-lg);
  padding: 1.75rem;
  height: 100%;
}
.hl-two-col h3 {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.hl-two-col ul { list-style: none; padding: 0; margin: 0; }
.hl-two-col li {
  padding: .55rem 0;
  border-top: 1px dashed var(--hl-line);
  color: var(--hl-ink-soft);
}
.hl-two-col li:first-child { border-top: 0; }
.hl-two-col.is h3 { color: var(--hl-teal); }
.hl-two-col.is h3 .bi { color: var(--hl-teal); }
.hl-two-col.isnot h3 { color: var(--hl-coral-deep); }
.hl-two-col.isnot h3 .bi { color: var(--hl-coral-deep); }

/* End-of-page CTA card — visually distinct, warm, with a clear focal anchor. */
.hl-cta-card {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 600px 240px at 50% 0%, rgba(225,93,93,.10), transparent 70%),
    var(--hl-cream-warm);
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius-lg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--hl-shadow);
  max-width: 760px;
  margin-inline: auto;
}
.hl-cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--hl-coral);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(225,93,93,.25);
}
.hl-cta-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 .65rem;
  line-height: 1.2;
  color: var(--hl-ink);
}
.hl-cta-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--hl-ink-soft);
  margin: 0 auto 1.5rem;
  max-width: 56ch;
  line-height: 1.6;
}
.hl-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* Structured clauses (used on disclosure / privacy / terms) */
.hl-clauses {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hl-clause {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hl-line);
}
.hl-clause:first-child { border-top: 0; padding-top: 0; }
.hl-clause:last-child  { padding-bottom: 0; }
.hl-clause-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--hl-coral-soft);
  color: var(--hl-coral-deep);
  font-size: 1.25rem;
}
.hl-clause-lead {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hl-ink);
  margin: 0 0 .35rem;
  line-height: 1.3;
}
.hl-clause-text {
  color: var(--hl-ink-soft);
  font-size: 1.025rem;
  line-height: 1.7;
}

@media (max-width: 575.98px) {
  .hl-clause { flex-direction: column; gap: .6rem; }
  .hl-clause-icon { width: 36px; height: 36px; font-size: 1.05rem; }
}

/* Disclaimer alert */
.hl-disclaimer {
  background: var(--hl-teal-soft);
  border: 1px solid #cbe2e2;
  border-radius: var(--hl-radius);
  padding: 1rem 1.25rem;
  color: var(--hl-ink-soft);
  font-size: .95rem;
}
.hl-disclaimer .bi { color: var(--hl-teal); margin-right: .35rem; }

/* Forms */
.form-label { font-weight: 600; color: var(--hl-ink); }
.form-control, .form-select {
  border-radius: 12px;
  border-color: var(--hl-line);
  padding: .75rem 1rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hl-coral);
  box-shadow: 0 0 0 .2rem rgba(225,93,93,.18);
}
.form-text { color: var(--hl-muted); font-size: 0.95rem; }
.small, small { font-size: 0.92rem; }
textarea.form-control { min-height: 7.5rem; line-height: 1.55; }

/* Checkboxes & radios — larger, brand-coloured. Standard Bootstrap layout:
   the form-check sits flush at the parent's content edge, padding-left
   reserves the lane for the input, and Bootstrap's float pulls it out of
   flow so the label starts at the padding boundary. */
.form-check {
  padding-left: 1.8rem;
  margin-left: 0;
  min-height: 1.75rem;
  margin-bottom: .5rem;
}
.form-check .form-check-input {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .2rem;
  margin-left: -1.8rem;
  background-color: #fff;
  border: 2px solid #c8c2b6;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.form-check-input[type="checkbox"] { border-radius: 6px; }
.form-check-input[type="radio"]    { border-radius: 50%; }
.form-check-input:hover {
  border-color: var(--hl-coral);
}
.form-check-input:focus {
  border-color: var(--hl-coral);
  box-shadow: 0 0 0 .2rem rgba(225,93,93,.20);
  outline: 0;
}
.form-check-input:checked {
  background-color: var(--hl-coral);
  border-color: var(--hl-coral);
}
.form-check-input:checked:focus {
  box-shadow: 0 0 0 .2rem rgba(225,93,93,.30);
}
/* Bootstrap's checked-checkmark/dot SVG — restated in coral-friendly white. */
.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' d='M6 10l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 1.05rem 1.05rem;
  background-position: center;
  background-repeat: no-repeat;
}
.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2' fill='%23fff'/%3E%3C/svg%3E");
}
.form-check-input:disabled,
.form-check-input[disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.form-check-input.is-invalid {
  border-color: #dc3545;
}
.form-check-label {
  padding-top: .15rem;
  padding-right: .75rem;
  cursor: pointer;
  color: var(--hl-ink);
}
.form-check-label a { color: var(--hl-coral-deep); }

.hl-form-card {
  background: #fff;
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: var(--hl-shadow);
}
.hl-honey { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; }

.hl-or {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--hl-muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.hl-or::before, .hl-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hl-line);
}
.hl-or > span { white-space: nowrap; }

/* FAQ accordion — comfortable, generous, easy to read at a glance */
.accordion-button {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.55vw, 1.35rem);
  line-height: 1.4;
  color: var(--hl-ink);
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--hl-radius-lg) !important;
}
.accordion-button::after {
  width: 1.4rem;
  height: 1.4rem;
  background-size: 1.4rem;
}
.accordion-button:not(.collapsed) {
  color: var(--hl-coral-deep);
  background: var(--hl-coral-soft);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(225,93,93,.18); }
.accordion-item {
  background: transparent;
  border: 1px solid var(--hl-line);
  border-radius: var(--hl-radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--hl-shadow-sm);
}
.accordion-item:last-child { margin-bottom: 0; }
.accordion-body {
  color: var(--hl-ink-soft);
  background: #fff;
  font-size: 1.075rem;
  line-height: 1.75;
  padding: 0.5rem 1.75rem 1.75rem;
  border-radius: 0 0 var(--hl-radius-lg) var(--hl-radius-lg);
}

@media (max-width: 575.98px) {
  .accordion-button { padding: 1.15rem 1.25rem; font-size: 1.1rem; }
  .accordion-body   { padding: 0.5rem 1.25rem 1.35rem; font-size: 1rem; }
}

/* Footer */
.hl-footer {
  background: var(--hl-ink);
  color: #d8def0;
  padding: 3rem 0 1.5rem;
}
.hl-footer h4 {
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}
.hl-footer a { color: #cbd2e8; text-decoration: none; }
.hl-footer a:hover { color: #fff; }
.hl-footer ul { list-style: none; padding: 0; margin: 0; }
.hl-footer ul li { padding: .25rem 0; }
.hl-footer .hl-tagline { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: #fff; }
.hl-footer .hl-fine {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: #99a4c4;
  font-size: .85rem;
}

/* Utility */
.hl-rule {
  height: 1px;
  background: var(--hl-line);
  border: 0;
}
.hl-bg-coral-soft { background: var(--hl-coral-soft); }
.hl-bg-teal-soft  { background: var(--hl-teal-soft); }
.hl-text-coral    { color: var(--hl-coral-deep); }
.hl-text-teal     { color: var(--hl-teal); }

/* Step cards and is/is-not panels are presentational — no hover state. */

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .hl-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hl-hero-art { max-width: 360px; margin: 1.5rem auto 0; }
}
