/* ==========================================================================
   Components — Buttons, content sections, logos, stats for yanjaa.com
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  z-index: -1;
  transition: background 0.25s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-16px);
}

.btn:hover::before {
  opacity: 1;
  transform: translateY(16px);
}

/* Squiggle shapes container */
.btn-squiggles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  overflow: visible;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover .btn-squiggles {
  transform: translate(-50%, calc(-50% + 16px));
}

.btn-squiggle {
  position: absolute;
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.15s ease;
  transform-origin: center center;
  margin-left: -0.4em;
  margin-top: -0.4em;
}

/* Button variants */
.btn--primary {
  color: var(--deep-forest);
  border-color: var(--turquoise);
}

.btn--primary::after {
  background: var(--turquoise);
}

.btn--primary::before {
  background: var(--orchid);
}

/* Deluxe — masterclass CTA: champagne fill so it pops on the dark hero,
   peacock gradient revealed on hover */
.btn--deluxe {
  color: #3a2c10;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--deluxe::after {
  background: linear-gradient(135deg, #c9a55a, #e8cc8a);
}

.btn--deluxe:hover {
  color: var(--text-on-dark);
}

.btn--deluxe::before {
  background: var(--gradient-deluxe);
}

.btn--outline {
  color: var(--text-on-dark);
  border-color: currentColor;
}

.btn--outline:hover {
  color: var(--deep-forest);
}

.btn--outline::after {
  background: transparent;
}

.btn--outline:hover::after {
  background: var(--text-on-dark);
}

.btn--outline::before {
  background: var(--amber);
}

.btn--gold {
  color: #6b4423;
  border-color: var(--amber);
}

.btn--gold::after {
  background: var(--amber);
}

.btn--gold::before {
  background: var(--turquoise);
}

.btn--lavender {
  color: #512843;
  border-color: var(--lavender);
}

.btn--lavender::after {
  background: var(--lavender);
}

.btn--lavender::before {
  background: var(--amber);
}

/* ---------- Content Sections (Comedy, Memory, Coding) ---------- */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.content-section--reverse .content-section__text {
  order: 2;
}

.content-section--reverse .content-section__image,
.content-section--reverse .content-section__video {
  order: 1;
}

.content-section__text {
  max-width: 550px;
}

.content-section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.content-section__title {
  margin-bottom: 1.5rem;
}

.content-section__description {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.content-section__image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.content-section__image--wide {
  aspect-ratio: 4/3;
}

.content-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section__image:hover img {
  transform: scale(1.05);
}

.content-section__image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid currentColor;
  border-radius: 1rem;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* Video embed with cropped sides */
.content-section__video {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 400px;
}

.content-section__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.content-section__video::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid currentColor;
  border-radius: 1rem;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Press Logo Banner ---------- */
.logos-banner {
  padding: 2.5rem 0;
  background: var(--warm-white);
  border-top: 1px solid rgba(13, 107, 88, 0.1);
  border-bottom: 1px solid rgba(13, 107, 88, 0.1);
  overflow: hidden;
  position: relative;
}

.logos-banner__wrapper {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.logos-banner__track {
  display: flex;
  width: max-content;
  animation: scrollLogos 30s linear infinite;
}

.logos-banner__grid {
  display: flex;
  align-items: center;
  gap: 3rem 4rem;
  padding: 0 2rem;
}

.logos-banner__item {
  height: 45px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logos-banner__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

/* ---------- About Preview / Stats ---------- */
.about-preview {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-preview__title {
  margin-bottom: 2rem;
}

.about-preview__text {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.about-preview__achievements {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-color: rgba(128, 128, 128, 0.25);
}

.about-preview__stat {
  text-align: center;
}

.about-preview__stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  font-weight: 700;
  color: var(--turquoise);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-preview__stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ---------- Contact Cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--warm-white);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(13, 107, 88, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.contact-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.contact-card__title {
  margin-bottom: 1rem;
}

.contact-card__description {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Kit Form (styled) ---------- */
.kit-form-wrapper {
  max-width: 600px;
  margin: 2rem auto 0;
}

.kit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kit-form__field {
  width: 100%;
}

.kit-form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-on-light);
  transition: border-color 0.3s ease;
}

.kit-form__input:focus {
  outline: none;
  border-color: var(--turquoise);
}

.kit-form__input::placeholder {
  color: var(--text-muted-light);
}

.kit-form__submit {
  align-self: center;
}

/* Status line under any Kit form. Carries its own background so it reads on
   the light contact section and the dark newsletter band alike. */
.kit-message {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.kit-message--error {
  background: #fde8e2;
  color: #a3301a;
}

.kit-message--success {
  background: #d8f3ef;
  color: #0f6b66;
}

/* ---------- Bio Blocks (Media page) ---------- */
.bio-section {
  max-width: 800px;
  margin: 0 auto;
}

.bio-section__title {
  margin-bottom: 2rem;
}

.bio-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bio-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bio-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bio-block__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bio-block__count {
  font-weight: 400;
  opacity: 0.5;
  margin-left: 0.5rem;
}

.bio-block__copy {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

.bio-block__text {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
  white-space: pre-line;
}

/* ---------- Photo Grid (Media page) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.photo-grid__item {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-grid__item:hover img {
  transform: scale(1.05);
}

/* ---------- Video Reel (Media page) ---------- */
.video-reel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
}

.video-reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Coaching Features ---------- */
.coaching-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.coaching-feature {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
}

.coaching-feature__title {
  margin-bottom: 0.75rem;
  color: var(--turquoise);
}

.coaching-feature__text {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Coaching Audience ---------- */
.coaching-audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.coaching-audience__item {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.coaching-audience__item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.coaching-audience__item p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .coaching-features {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 2rem auto 0;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 2rem auto 0;
  }
  .content-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-section--reverse .content-section__text,
  .content-section--reverse .content-section__image,
  .content-section--reverse .content-section__video {
    order: unset;
  }

  .content-section__text {
    max-width: 100%;
    text-align: center;
  }

  .content-section__image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about-preview__achievements {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .coaching-audience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .logos-banner__grid {
    gap: 1.5rem 2rem;
  }

  .logos-banner__item {
    height: 24px;
  }
}

/* ---------- Utility: CTA Group ---------- */
.cta-group {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FAQ Items ---------- */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-item p {
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ---------- Quote Highlight ---------- */
.quote-highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

/* ---------- Newsletter Section (site-wide) ---------- */
.newsletter {
  background: var(--deep-forest);
  color: var(--text-on-dark);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.newsletter__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.newsletter__text {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter__input {
  flex: 1 1 160px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  transition: border-color 0.3s ease;
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--turquoise);
}

.newsletter__input::placeholder {
  color: var(--text-muted-dark);
}

.newsletter__submit {
  flex-shrink: 0;
}

.newsletter__proof {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__input {
    flex: 1 1 auto;
  }
}

/* ---------- Name Demo ("Let's start with mine") ---------- */
.name-demo {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.name-demo__title {
  margin: 0.75rem 0 1.5rem;
}

.name-demo__phonetic {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  vertical-align: middle;
  opacity: 0.55;
  white-space: nowrap;
}

.name-demo__lead {
  margin-bottom: 2.5rem;
}

.name-demo__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.name-demo__step {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(13, 107, 88, 0.06);
  border: 1px solid rgba(13, 107, 88, 0.12);
}

.name-demo__syllable {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--forest-green);
}

.name-demo__step p {
  margin: 0;
  line-height: 1.6;
}

.name-demo__payoff {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(31, 184, 176, 0.12);
  margin-bottom: 2rem;
}

.name-demo__text {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 640px) {
  .name-demo__steps {
    grid-template-columns: 1fr;
  }

  .name-demo__phonetic {
    display: block;
    margin-top: 0.5rem;
  }
}
