/* ============================================================
   Talk the Talk English — custom styles
   Tailwind utilities cover the base; this file adds the
   brand-specific components, transitions and motifs.
   ============================================================ */

:root {
  --cobalt: #0A3DFF;
  --fuchsia: #D81B72;
  --teal: #0097A7;
  --ink: #0A0A0A;
  --charcoal: #1F1F23;
  --cool: #F2F4F8;
  --icy: #C7D8FF;
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "cv11"; }

/* Selection */
::selection { background: var(--cobalt); color: #fff; }

/* ---------- Header ---------- */
#site-header {
  background: rgba(242, 244, 248, 0.75);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--icy);
  box-shadow: 0 4px 24px -16px rgba(10, 61, 255, 0.25);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--icy);
}
.mobile-link:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 24px -8px rgba(10, 61, 255, 0.5);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #0a32d6;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(10, 61, 255, 0.6);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--cobalt);
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--cobalt);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--cobalt); color: #fff; }

/* ---------- Package cards ---------- */
.package-card {
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 18px;
  padding: 24px;
  transition: background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.package-card:hover {
  background: var(--icy);
  border-color: var(--cobalt);
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -24px rgba(10, 61, 255, 0.35);
}

.tag-fuchsia {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fuchsia);
  background: rgba(216, 27, 114, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

ul.text-charcoal\/80 li.check,
.check {
  position: relative;
  padding-left: 22px;
  list-style: none;
}
.check::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: var(--cobalt);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ---------- Pain points ---------- */
.pain-box {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--fuchsia);
  border-radius: 12px;
  padding: 28px 26px;
  transition: background .25s ease, transform .25s ease;
}
.pain-box:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

/* ---------- Segment cards ---------- */
.segment-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 18px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.segment-card:hover {
  transform: translateY(-4px);
  border-color: var(--cobalt);
  box-shadow: 0 24px 40px -24px rgba(10, 61, 255, 0.35);
}
.seg-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--icy);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.explore-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e9f1;
  border-radius: 18px;
  padding: 28px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -24px rgba(10, 61, 255, 0.25);
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -36px;
  right: -10px;
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
  color: rgba(216, 27, 114, 0.10);
  pointer-events: none;
}
.testimonial-card .stars { color: #f5b301; letter-spacing: 2px; }
.testimonial-card .quote {
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.testimonial-card .avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--icy);
  color: var(--cobalt);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.testimonial-card .result {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--cobalt);
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 2px solid var(--cobalt);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s;
}
.carousel-btn:hover { background: var(--cobalt); color: #fff; }
.carousel-btn:active { transform: scale(.95); }

/* ---------- About credentials ---------- */
.cred {
  background: #fff;
  border: 1px solid var(--icy);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
}
.cred-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  line-height: 1;
  color: var(--cobalt);
  letter-spacing: 0.02em;
}
.cred-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq-item { padding: 0; }
.faq-item button {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}
.faq-item button .chev {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .2s;
  flex-shrink: 0;
}
.faq-item.open button .chev {
  transform: rotate(45deg);
  background: var(--cobalt);
  color: #fff;
}
.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item .answer-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: rgba(31, 31, 35, 0.85);
  line-height: 1.65;
  max-width: 60ch;
}
.faq-item.open .answer { max-height: 400px; }

/* ---------- Contact form ---------- */
.field span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid #d8dce6;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(10, 61, 255, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  width: 100%;
  transition: color .2s;
}
.contact-item:hover { color: #fff; }

/* ---------- Modal ---------- */
#modal.open { display: block; }
#modal .pkg-detail h3 { font-family: "Bebas Neue", sans-serif; }

.session-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--icy);
  border-radius: 14px;
  background: var(--cool);
}
.session-block .num {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Misc ---------- */
.no-scroll { overflow: hidden; }