/* Load every brand weight the developer notes require.
   Kajabi only self-loads the two theme fonts in their default weights,
   so Light/Medium/SemiBold/Bold + italics are imported here explicitly. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Raleway:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

/* ==========================================================================
   AstroNavigations - global overrides
   Loaded after styles.css, so these rules win over the theme defaults.
   ========================================================================== */

/* 1. Cormorant Garamond everywhere -----------------------------------------
   Kajabi requests the font from Google Fonts because it is set in
   Settings > Style guide. These rules stop anything falling back. */
:root { --astro-font: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif; }

body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, a, li, span, blockquote, figcaption, label,
.btn, .link-list__link, .logo__text {
  font-family: var(--astro-font);
}

/* 2. Astro blocks ---------------------------------------------------------- */
[class*="block-type--astro_"] img { max-width: 100%; height: auto; }
[class*="block-type--astro_"] p,
[class*="block-type--astro_"] h1,
[class*="block-type--astro_"] h2,
[class*="block-type--astro_"] h3,
[class*="block-type--astro_"] h4 { overflow-wrap: break-word; }

/* Cards and testimonials fill their column so a row stays even, whatever the
   copy length. Works with the section's "Equal height blocks" setting. */
.block-type--astro_card > .block { height: 100%; }


/* 4. Bleed images sit flush on the section edge ---------------------------- */
.block-type--astro_media .astro-media { max-width: 100%; }

/* ==========================================================================
   5. HEADER - matches the hero nav bar in the design
   Kajabi's own Header section is used (Sections > Header), not a block.
   ========================================================================== */
.header {
  background-color: transparent;
  border-bottom: 1px solid rgba(201, 169, 110, .35);
}
.header .header__container { max-width: 1340px; }
.header .link-list__link,
.header .header__block a {
  text-transform: uppercase;
  letter-spacing: .16em;
  transition: color .18s ease;
}
.header .link-list__link:hover { color: #C9A96E; }

/* Gold pipe between the top-level menu items */
.header .link-list__links { display: flex; align-items: center; gap: 18px; }
.header .link-list__links > a + a::before,
.header .header__block .link-list__link + .link-list__link::before {
  content: "|";
  color: #C9A96E;
  opacity: .7;
  margin-right: 18px;
  display: inline-block;
}
.header .logo__image { width: 90px; }

/* Sticky state gets the solid navy so links stay readable over pale sections */
.header--sticky { border-bottom-color: rgba(201, 169, 110, .5); }
.astro-content__divider svg {
    color: #C9A96E;
    margin: inherit;
}
@media (max-width: 767px) {
  .header .link-list__links { justify-content: center; }
  .header .link-list__links > a + a::before { margin-right: 12px; }
}

/* ==========================================================================
   6. FOOTER - Kajabi's own Footer section (Sections > Footer)
   The menu is rendered through block.liquid, so it arrives carrying a grid
   class (col-6 = 50% width). That is what broke the row. Neutralised below.
   ========================================================================== */
.footer {
  background-image: url("astro-bg-hero-navy.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 992px) {
  .footer .footer__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 0 20px;
    max-width: 1340px;
  }
  .footer .footer__container > .footer__block { flex: 1 1 auto; margin: 0; min-width: 0; }
  .footer .footer__container > .footer__block--astro-sep { flex: 0 0 auto; }
  .footer .footer__container > .footer__block--astro-legal { flex: 0 0 100%; width: 100%; }
  /* grid classes have no business inside the footer row */
  .footer .footer__container > [class*="col-"] {
    width: auto !important;
    flex: 1 1 auto;
    padding: 0 !important;
    margin: 0 !important;
  }
}

.footer .link-list__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 34px; }
.footer .link-list__link { text-decoration: none; margin: 0 !important; transition: opacity .18s ease; }
.footer .link-list__link:hover { opacity: .78; }

@media (max-width: 991px) {
  .footer .footer__container { text-align: center; }
  .footer .footer__block { margin: 14px 0; }
}

/* ==========================================================================
   7. Scroll performance
   No scroll-behaviour rules anywhere in this file.
   ========================================================================== */
.section, .footer, .header { background-attachment: scroll; }

/* ==========================================================================
   8. v6 — Final client assets (Google Drive delivery, Aug 2026)
   Desktop backgrounds are set per-section via the "Astro background" picker.
   The rules below add the dedicated MOBILE backgrounds, the Section 2 edge
   constellations, the premium hover states and the mobile testimonial slider
   requested in the developer notes.
   ========================================================================== */

/* --- Mobile backgrounds (client-supplied 9:16 / mobile 4K files) ---------- */
@media (max-width: 767px) {
  #section-astro_hero         { background-image: url("astro-bg-hero-mobile.jpg") !important; background-position: center top; }
  #section-astro_video        { background-image: url("astro-bg-section2-mobile.jpg") !important; }
  #section-astro_about        { background-image: url("astro-bg-section3-mobile.jpg") !important; }
  #section-astro_testimonials { background-image: url("astro-bg-section4-mobile.jpg") !important; }
  #section-astro_optin        { background-image: url("astro-bg-section3-mobile.jpg") !important; }
  .footer                     { background-image: url("astro-bg-footer-mobile.jpg"); }
}

/* --- Footer: final 4K background (desktop) -------------------------------- */
@media (min-width: 768px) {
  .footer { background-image: url("astro-bg-footer-4k.jpg"); }
}

/* --- Section 2: edge constellations, desktop only, half visible -----------
   The supplied SVG holds BOTH edge constellations on one full-width canvas.
   Overscanning the layer to 114% pushes each motif partly outside the section
   edge, exactly as shown in the Canva preview. Hidden on mobile per the note. */
#section-astro_video { overflow: hidden; position: relative; }
@media (min-width: 992px) {
  #section-astro_video::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 114%;
    height: 100%;
    background: url("astro-constellation-edge.svg") no-repeat center / 100% auto;
    pointer-events: none;
    z-index: 0;
  }
  #section-astro_video .container { position: relative; z-index: 1; }
}

/* --- Premium hover: reading cards get a soft gold glow -------------------- */
.block-type--astro_card .astro-card {
  transition: box-shadow .28s ease, border-color .28s ease, transform .28s ease;
}
.block-type--astro_card .astro-card:hover {
  border-color: #E4C892 !important;
  box-shadow: 0 0 26px rgba(201, 169, 110, .38);
}

/* --- Premium hover: CTA buttons (hero + free guide) ----------------------- */
#section-astro_hero .btn,
#section-astro_optin .btn {
  transition: box-shadow .25s ease, filter .25s ease;
}
#section-astro_hero .btn:hover,
#section-astro_optin .btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 20px rgba(201, 169, 110, .5);
}

/* --- Section 4: card hierarchy on mobile (mark → name → reading → text) --- */
@media (max-width: 767px) {
  #section-astro_testimonials .astro-quote__meta { order: -1; padding-top: 0; margin-bottom: 12px; }
}

/* --- Section 4: one-card-at-a-time swipe slider on mobile ------------------
   The wrapper + dots are created by the initialiser at the end of scripts.js */
.astro-tslider { display: block; }
@media (max-width: 767px) {
  .astro-tslider {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 14px;
    padding: 4px 2px 8px;
  }
  .astro-tslider::-webkit-scrollbar { display: none; }
  .astro-tslider > .block-type--astro_quote {
    flex: 0 0 88% !important;
    max-width: 88% !important;
    scroll-snap-align: center;
    float: none !important;
  }
  .astro-tslider-dots { display: flex; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 4px; }
  .astro-tslider-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(201, 169, 110, .35);
    transition: background .2s ease, transform .2s ease;
  }
  .astro-tslider-dots span.is-active { background: #C9A96E; transform: scale(1.2); }
}
@media (min-width: 768px) {
  .astro-tslider { display: contents; }
  .astro-tslider-dots { display: none; }
}

/* ==========================================================================
   9. v6.1 — Hero typography corrections (per Hero Developer Note)
   ========================================================================== */

/* Navigation menu: Raleway | Medium | White (Cormorant global rule excluded) */
.header .link-list__link,
.header .header__block a,
.header .mobile-menu a {
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500;
  color: #FFFFFF;
}
.header .link-list__link:hover { color: #C9A96E; }

/* Main supporting text: Cormorant Garamond | Medium */
#section-astro_hero .astro-content__body,
#section-astro_hero .astro-content__body p { font-weight: 500; }

/* Reading titles / descriptions: Regular */
#section-astro_hero .astro-card__title { font-weight: 400; }
#section-astro_hero .astro-card__body  { font-weight: 400; }

/* START YOUR NAVIGATION + GET THE FREE GUIDE: Cormorant Garamond | Bold */
#section-astro_hero .btn,
#section-astro_optin .btn {
  font-family: var(--astro-font) !important;
  font-weight: 700;
}

/* ==========================================================================
   10. v6.2 — Full typography pass (weights per the developer notes)
   ========================================================================== */

/* Section 2 — body copy: Cormorant SemiBold */
#section-astro_video .astro-content__body,
#section-astro_video .astro-content__body p { font-weight: 600; }

/* Section 3 — body copy: Cormorant Bold */
#section-astro_about .astro-content__body,
#section-astro_about .astro-content__body p { font-weight: 700; }

/* Section 4 — reading type under the name: SemiBold, review text Regular */
#section-astro_testimonials .astro-quote__role { font-weight: 600; }
#section-astro_testimonials .astro-quote__body { font-weight: 400; }

/* Section 5 — italic subtitle SemiBold, "Free PDF • Instant access" Medium */
#section-astro_optin .astro-content__subheading { font-weight: 600; }
#section-astro_optin .astro-content__note { font-weight: 500; }

/* Footer — Cormorant system: SemiBold for wordmark / nav / contact / email,
   Medium for the copyright line, Medium/SemiBold for legal links, all gold */
.footer .astro-fbrand__word,
.footer .link-list__link,
.footer .astro-fcontact__title,
.footer .astro-fcontact__value { font-weight: 600; }
.footer .astro-flegal__copy { font-weight: 500; }
.footer .astro-flegal__link { font-weight: 500; }
.footer .astro-fcontact__extra { font-weight: 500; }

/* Eyebrows that the notes put in Raleway keep their letter-spacing crisp */
#section-astro_about .astro-content__eyebrow,
#section-astro_testimonials .astro-content__eyebrow,
#section-astro_optin .astro-content__eyebrow { font-family: "Raleway", sans-serif; }
