/*
Theme Name: ANAI Marketing Child
Theme URI: https://anaisn.com/
Description: GeneratePress child theme for the anaisn.com marketing site. Udemy homepage anatomy in ANAI brand colors, fronting the my.anaisn.com portal. Figtree headings, Barlow Condensed display.
Author: ANAI Caribbean
Version: 1.1.2
Template: generatepress
Text Domain: anaisnmkt-child
*/

/* ===== Tokens: ANAI palette on a Udemy-style white ground ===== */
:root {
  --navy-ink:   #0A1224;
  --navy:       #122036;
  --royal:      #2B3990;
  --orange:     #F26522;
  --orange-deep:#C7440C;
  --sky:        #56B0DC;
  --sky-light:  #9AD3F0;
  --teal:       #178097;
  --teal-deep:  #0E6E82;
  --purple:     #A54FC0;
  --soft:       #F5F8FB;

  --ink:        #16202E;
  --muted:      #5A6475;
  --line:       #D9DEE7;
  --star:       #E59819;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 84rem;             /* 1344px, Udemy-wide */
  --pad-x: clamp(1rem, 3vw, 1.5rem);
  --shadow-card: 0 2px 8px rgba(10,18,36,0.08), 0 8px 24px -12px rgba(10,18,36,0.18);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.4em; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.mkt-container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.mkt-section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.mkt-section--soft { background: var(--soft); }
.mkt-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* ===== Buttons (Udemy: rectangular, decisive) ===== */
.mbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.3em;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.mbtn--primary { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.mbtn--primary:hover, .mbtn--primary:focus-visible { background: var(--teal-deep); border-color: var(--teal-deep); outline: none; }
.mbtn--outline { border-color: var(--teal); color: var(--teal-deep); background: #FFF; }
.mbtn--outline:hover, .mbtn--outline:focus-visible { background: rgba(23,128,151,0.08); outline: none; }
.mbtn--dark { background: var(--navy); border-color: var(--navy); color: #FFF; }
.mbtn--dark:hover, .mbtn--dark:focus-visible { background: var(--royal); border-color: var(--royal); outline: none; }
.mbtn--ghost-light { border-color: rgba(255,255,255,0.7); color: #FFF; }
.mbtn--ghost-light:hover, .mbtn--ghost-light:focus-visible { background: #FFF; color: var(--navy); outline: none; }

/* ===== Top nav (Udemy bar) ===== */
.mnav {
  position: sticky; top: 0; z-index: 60;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(10,18,36,0.12);
}
.mnav__inner {
  /* Full-viewport bar like Udemy — no container clamp */
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.55rem clamp(1rem, 2vw, 1.5rem);
}
.mnav__logo img { height: 40px; width: auto; }
.mnav__explore { position: relative; }
.mnav__explore > button {
  background: none; border: 0; font-weight: 600; font-size: 0.92rem; color: var(--ink);
  padding: 0.5em 0.4em; border-radius: 6px;
}
.mnav__explore > button:hover { color: var(--teal-deep); }
.mnav__menu {
  position: absolute; top: 100%; left: 0; z-index: 70;
  min-width: 15rem;
  background: #FFF; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 0.5rem 0;
  display: none;
}
.mnav__explore.is-open .mnav__menu { display: block; }
.mnav__menu a { display: block; padding: 0.55em 1.1em; font-size: 0.92rem; }
.mnav__menu a:hover { background: var(--soft); color: var(--teal-deep); }
.mnav__search {
  flex: 1; display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--teal); border-radius: 999px;
  height: 45px;
  padding: 0 1em;
  background: var(--soft);
}
.mnav__search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; }
.mnav__search input { border: 0; background: transparent; outline: none; width: 100%; font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0; line-height: 1.2; height: 100%; }
.mnav__links { display: flex; align-items: center; gap: 0.9rem; font-size: 0.85rem; font-weight: 600; }
.mnav__links a:hover { color: var(--teal-deep); }
.mnav .mbtn { font-size: 0.85rem; padding: 0.6em 1em; }
@media (max-width: 1080px) { .mnav__links .mnav__textlink { display: none; } }
@media (max-width: 760px)  { .mnav__search { display: none; } .mnav__explore { display: none; } }

/* ===== Hero promo carousel (image + overlaid white card) ===== */
.mhero { position: relative; overflow: hidden; }
.mhero__slides { display: flex; transition: transform 400ms ease; }
.mhero__slide { min-width: 100%; position: relative; }
.mhero__slide img { width: 100%; height: clamp(300px, 42vw, 440px); object-fit: cover; object-position: 70% 30%; }
.mhero__card {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: max(calc((100vw - var(--container)) / 2 + var(--pad-x)), var(--pad-x));
  max-width: 27rem;
  background: #FFF; border-radius: var(--r);
  box-shadow: 0 8px 30px rgba(10,18,36,0.25);
  padding: 1.6rem 1.7rem;
}
.mhero__card h1, .mhero__card .mhero__title {
  font-family: var(--font-display);
  font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 0.98; letter-spacing: 0.002em;
  color: var(--navy); margin: 0 0 0.35em;
}
.mhero__card p { font-size: 0.98rem; color: var(--ink); margin-bottom: 1em; }
.mhero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-ink); color: #FFF; border: 0;
  display: grid; place-items: center;
  padding: 0; line-height: 0;
  z-index: 5; opacity: 0.9;
}
.mhero__nav:hover { background: var(--royal); }
.mhero__nav--prev { left: 0.9rem; }
.mhero__nav--next { right: 0.9rem; }
.mhero__nav svg { display: block; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mhero__dots { position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.45rem; }
.mhero__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.55); padding: 0; }
.mhero__dot.is-active { background: var(--teal); }
@media (max-width: 640px) {
  .mhero__slide img { height: 380px; object-position: 75% 25%; }
  .mhero__card { left: 1rem; right: 1rem; max-width: none; top: auto; bottom: 2.4rem; transform: none; padding: 1.2rem 1.25rem; }
}

/* ===== Skills tabs + course cards ===== */
.mtabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.mtab {
  border: 1px solid var(--line); border-radius: 999px; background: #FFF;
  padding: 0.5em 1.1em; font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.mtab:hover { border-color: var(--navy); color: var(--navy); }
.mtab.is-active { background: var(--teal); border-color: var(--teal); color: #FFF; }
.mpanel { display: none; }
.mpanel.is-active { display: block; }

.mcourse-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .mcourse-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .mcourse-row { grid-template-columns: 1fr; } }

.mcourse {
  background: #FFF; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.mcourse:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.mcourse__thumb { position: relative; }
.mcourse__thumb img { width: 100%; height: 140px; object-fit: cover; }
.mcourse__body { padding: 0.75rem 0.9rem 0.95rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.mcourse__title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--ink); margin: 0; }
.mcourse__by { font-size: 0.76rem; color: var(--muted); }
.mcourse__rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; color: #8A5A00; }
.mcourse__stars { color: var(--star); letter-spacing: 0.05em; font-size: 0.8rem; }
.mcourse__count { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.mcourse__price { font-weight: 800; font-size: 0.95rem; color: var(--navy); margin-top: 0.25rem; }
.mbadge {
  display: inline-block; align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28em 0.6em; border-radius: 4px;
  margin-top: 0.35rem;
}
.mbadge--popular { background: #FDEAD7; color: #8A4A00; }
.mbadge--new { background: #E2F4EA; color: #0E6E4E; }
.mbadge--founding { background: #EFE2F7; color: #6D2E86; }

/* ===== Horizontal carousel row ===== */
.mcarousel { position: relative; }
.mcarousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 1fr);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 0.25rem;
}
.mcarousel__track::-webkit-scrollbar { display: none; }
.mcarousel__track > * { scroll-snap-align: start; }
.mcarousel__btn {
  position: absolute; top: 38%; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-ink); color: #FFF; border: 0;
  display: grid; place-items: center;
  padding: 0; line-height: 0; opacity: 0.92;
}
.mcarousel__btn:hover { background: var(--royal); }
.mcarousel__btn svg { display: block; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mcarousel__btn--prev { left: -12px; }
.mcarousel__btn--next { right: -12px; }

/* ===== Trust strip ===== */
.mtrust { text-align: center; }
.mtrust p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.mtrust__logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.4rem, 4vw, 3rem); flex-wrap: wrap; }
.mtrust__logos img { width: auto; opacity: 0.6; filter: grayscale(100%); }
.mtrust__logos img:hover { opacity: 0.85; }
/* Cropped logo files; heights tuned so visual weight matches (wide wordmarks lower) */
.mtrust__logos img { align-self: center; }        /* vertical centering on the row */
.mtrust__logos img:nth-child(1) { height: 57px; }  /* ANAI, slightly bigger */
.mtrust__logos img:nth-child(2) { height: 28px; }  /* Genikai wordmark, 2/3 size */
.mtrust__logos img:nth-child(3) { height: 42px; }  /* IKAIA wordmark */
.mtrust__logos img:nth-child(4) { height: 52px; }  /* TEEX */
.mtrust__logos img:nth-child(5) { height: 57px; }  /* Apexis lockup */
.mtrust__logos img:nth-child(6) { height: 57px; }  /* ASTI crest */
.mtrust__logos img:nth-child(7) { height: 50px; }  /* Port Protection */
.mtrust__logos img:nth-child(8) { height: 57px; }  /* USCIA seal */

/* ===== Goals split (learning focused on your goals) ===== */
.mgoals { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .mgoals { grid-template-columns: 1fr; } }
.mgoal {
  display: grid; grid-template-columns: 3rem 1fr; gap: 0.9rem;
  padding: 1rem; border-radius: var(--r); border: 1px solid transparent;
}
.mgoal.is-hi { border-color: var(--line); box-shadow: var(--shadow-card); }
.mgoal__icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
}
.mgoal__icon svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mgoal:nth-of-type(1) .mgoal__icon { background: rgba(242,101,34,0.13); color: var(--orange-deep); }
.mgoal:nth-of-type(2) .mgoal__icon { background: rgba(43,57,144,0.11); color: var(--royal); }
.mgoal:nth-of-type(3) .mgoal__icon { background: rgba(23,128,151,0.12); color: var(--teal-deep); }
.mgoal:nth-of-type(4) .mgoal__icon { background: rgba(165,79,192,0.12); color: var(--purple); }
.mgoal h3 { margin-bottom: 0.2em; }
.mgoal p { font-size: 0.9rem; color: var(--muted); }
.mgoals__fig { position: relative; }
.mgoals__fig img { border-radius: var(--r); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.mgoals__stat {
  position: absolute; right: -0.8rem; bottom: 1.6rem;
  background: var(--navy-ink); color: #FFF;
  border-radius: var(--r); padding: 1rem 1.2rem;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5);
}
.mgoals__stat strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--sky-light); }
.mgoals__stat span { font-size: 0.78rem; color: rgba(255,255,255,0.8); }

/* ===== Plans band ===== */
.mplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .mplans { grid-template-columns: 1fr; } }
.mplan { background: #FFF; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; }
.mplan--hi { border-top: 5px solid var(--orange); }
.mplan__name { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.6rem; }
.mplan__price { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: var(--navy); }
.mplan__price small { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; color: var(--muted); }
.mplan ul { list-style: none; padding: 0; margin: 0.9rem 0 1.3rem; display: grid; gap: 0.45rem; font-size: 0.88rem; color: var(--muted); }
.mplan li { padding-left: 1.2rem; position: relative; }
.mplan li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.5rem; height: 0.5rem; background: var(--orange); border-radius: 2px; }
.mplan .mbtn { margin-top: auto; width: 100%; }

/* ===== Testimonials ===== */
.mtestis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .mtestis { grid-template-columns: 1fr; } }
.mtesti { background: #FFF; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.4rem 1.2rem; }
.mtesti__quote { font-size: 0.95rem; line-height: 1.6; color: var(--ink); }
.mtesti__quote::before { content: "\201C"; font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 0.5; display: block; color: var(--orange); margin: 0.6rem 0 0.7rem; }
.mtesti__who { margin-top: 0.9rem; font-size: 0.8rem; font-weight: 700; color: var(--teal-deep); }
.mtesti__who span { display: block; font-weight: 400; color: var(--muted); }

/* ===== Report / trends banner ===== */
.mreport {
  border-radius: var(--r); overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background:
    radial-gradient(80% 70% at 90% 10%, rgba(255,255,255,0.14), transparent 55%),
    linear-gradient(135deg, var(--royal) 0%, #3F6EC2 55%, var(--sky) 100%);
  color: #FFF;
}
@media (max-width: 820px) { .mreport { grid-template-columns: 1fr; } }
.mreport__copy { padding: clamp(1.6rem, 4vw, 2.8rem); }
.mreport__copy h2 { color: #FFF; }
.mreport__copy p { color: rgba(255,255,255,0.9); font-size: 0.98rem; max-width: 46ch; }
.mreport__fig img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

/* ===== Business band + facilitator split ===== */
.mbiz {
  background:
    radial-gradient(90% 65% at 88% 8%, rgba(242,101,34,0.18), transparent 58%),
    linear-gradient(175deg, var(--navy-ink) 0%, #101B33 100%);
  color: #FFF;
}
.mbiz .mkt-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .mbiz .mkt-container { grid-template-columns: 1fr; } }
.mbiz h2 { color: #FFF; }
.mbiz p { color: rgba(255,255,255,0.85); }
.mbiz__logos { display: flex; gap: 1.4rem; align-items: center; margin-top: 1.4rem; }
.mbiz__logos img { height: 34px; width: auto; opacity: 0.9; }

.mteach { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .mteach { grid-template-columns: 1fr; } }
.mteach img { border-radius: var(--r); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }

/* ===== Mega footer ===== */
.mfooter { background: var(--navy-ink); color: rgba(255,255,255,0.85); margin-top: 2rem; }
.mfooter__top { border-bottom: 1px solid rgba(255,255,255,0.16); }
.mfooter__top .mkt-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; flex-wrap: wrap; }
.mfooter__top strong { color: #FFF; font-size: 1.02rem; }
.mfooter__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  padding: 2.2rem 0 2.4rem;
}
@media (max-width: 900px) { .mfooter__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .mfooter__grid { grid-template-columns: 1fr; } }
.mfooter h4 { color: #FFF; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.9rem; }
.mfooter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.88rem; }
.mfooter ul a:hover { color: var(--sky-light); }
.mfooter__bar { border-top: 1px solid rgba(255,255,255,0.16); }
.mfooter__bar .mkt-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.4rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.mfooter__logo { height: 17px; width: auto; opacity: 0.95; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 550ms ease, transform 550ms ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mhero__slides { transition: none; }
}

/* ===== GeneratePress integration ===== */
.home .site-content, .home .content-area, .home .site-main,
.home .inside-article, .home .entry-content {
  margin: 0 !important; padding: 0 !important; max-width: 100% !important;
}
.entry-content > .wp-block-html { margin: 0; }
body.page .entry-header { display: none; }
