/* ════════════════════════════════════════════════════════════
   index.css — Flash Frog Music
   Styles specific to the home page (index.php).
   Depends on: global.css, header.css, footer.css
   ════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════
   HERO — full viewport, split layout
══════════════════════════════════════ */
.hero {
  background: var(--white);
  color: var(--text-dark);
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero-inner {
  flex: 1;
  display: flex;
  align-items: stretch;
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter) 80px;
  box-sizing: border-box;
}

/* Left column — text, left edge aligns to page gutter */
.hero-left {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 56px 48px 0;
  text-align: left;
}
.hero-left-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: 1.06;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--green); }

.hero-sub {
  font-family: var(--font);
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Hero primary CTA */
.btn-hero-primary {
  background: var(--green);
  color: white;
  font-family: var(--font);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 400;
  padding: 14px 34px;
  border-radius: 32px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-normal);
  display: inline-block;
}
.btn-hero-primary:hover { background: #699838; color: white; }

/* Hero ghost CTA */
.btn-hero-ghost {
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 400;
  padding: 13px 34px;
  border-radius: 32px;
  border: 1px solid var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-normal);
  display: inline-block;
}
.btn-hero-ghost:hover { background: rgba(0, 0, 0, 0.06); color: var(--text-dark); }

.hero-trust {
  font-family: var(--font);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Right column — iPad centered in its half */
.hero-right {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.ipad-wrap {
  width: min(495px, 100%);
  max-width: 100%;
  flex-shrink: 1;
}
.ipad-svg-wrap {
  width: 100%;
  max-width: 100%;
  line-height: 0;
  position: relative;
  overflow: hidden;
}

/* Scroll-down bounce button */
.hero-scroll-btn {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--scroll-btn-bg);
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--transition-normal);
  z-index: 10;
  animation: bounce-down 1.8s ease-in-out infinite;
}
.hero-scroll-btn:hover { background: var(--scroll-btn-hover); }
.hero-scroll-btn svg   { width: 48px; height: 48px; }

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Hero responsive */
@media (max-width: 1080px) {
  .hero            { height: auto; min-height: auto; }
  .hero-inner      { flex-direction: column; align-items: center; padding: 0 var(--page-gutter) 80px; }
  .hero-left       { flex: none; width: 100%; padding: 48px 0 32px; align-items: center; text-align: center; }
  .hero-left-inner { align-items: center; }
  /* Suppress forced line-breaks that look bad when centered */
  .hero-sub br,
  .hero-trust br   { display: none; }
  .hero-sub        { text-align: center; }
  .hero-actions    { justify-content: center; }
  .hero-trust      { text-align: center; }
  .hero-right      { flex: none; width: 100%; padding: 0 0 80px; justify-content: center; }
  .ipad-wrap       { width: min(500px, 100%); flex-shrink: 1; }
}


/* ══════════════════════════════════════
   SECTION 1 — THE PROBLEM
   (also reused for SECTION 4 — THE RESULTS)
══════════════════════════════════════ */
.section-problem {
  background: var(--green);
  padding: var(--section-pad-v) 0;
  position: relative;
  overflow: hidden;   /* clip frog/lilypads to section bounds */
}
.problem-inner {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}
.problem-heading {
  font-family: var(--font);
  font-size: var(--fs-heading-md);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 48px;
  line-height: 1.1;
  text-align: center;
}
.problem-layout {
  display: flex;
  align-items: center;
  gap: 56px;
}
.problem-icon-wrap {
  flex-shrink: 0;
  width: clamp(140px, 17vw, 232px);
}
.problem-icon-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.problem-body {
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
}
.problem-body--centered { text-align: center; }
.problem-text-col       { flex: 1; }

/* Ensure text content sits above decorative elements */
.problem-heading,
.problem-layout {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .problem-layout    { flex-direction: column; gap: 32px; }
  .problem-icon-wrap { width: 160px; }
  .problem-body      { text-align: center; }
}


/* ══════════════════════════════════════
   SECTION 2 — PRACTICE PARTNER
══════════════════════════════════════ */
.section-partner {
  background: var(--white);
  padding: var(--section-pad-v) 0;
}
.partner-inner {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}
.partner-heading {
  font-family: var(--font);
  font-size: var(--fs-heading-md);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 16px;
  text-align: center;
}
.partner-heading .accent { color: var(--green); }
.partner-subhead {
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.55;
  max-width: 1100px;
  margin: 0 auto 56px;
  text-align: center;
}
.partner-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 320px;
}
.partner-card.flip { flex-direction: row-reverse; }
.partner-card-image {
  flex: 0 0 48%;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card-image-label {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  color: #c8c8ca;
}
.partner-card-text {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partner-card-title {
  font-family: var(--font);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}
.partner-card-body {
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.55;
}
.partner-card-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--blue);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.partner-card-link:hover { opacity: 0.75; }

@media (max-width: 1080px) {
  .section-partner              { padding: 60px 0; }
  .partner-inner                { padding: 0 var(--page-gutter); }
  .partner-card,
  .partner-card.flip            { flex-direction: column; }
  .partner-card-image           { flex: none; min-height: 200px; }
  .partner-card-text            { padding: 32px 28px; }
}


/* ══════════════════════════════════════
   SECTION 3 — THE TOOLS
══════════════════════════════════════ */
.section-tools {
  background: var(--gray);
  padding: var(--section-pad-v) 0;
}
.tools-inner {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}
.section-tools .section-eyebrow { color: var(--blue); }
.section-tools .section-heading { color: var(--dark); }
.section-tools .section-body    { color: #555; margin-bottom: 64px; }
.tools-intro { text-align: center; margin-bottom: 64px; }

.tool-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}
.tool-row:last-child  { margin-bottom: 0; }
.tool-row.flip        { flex-direction: row-reverse; }
.tool-text            { flex: 0 0 42%; }
.tool-visual          { flex: 1; }

/* Tool category tag */
.tool-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.tool-tag.blue   { background: rgba(33, 137, 227, 0.12); color: var(--blue); }
.tool-tag.orange { background: rgba(255, 130, 67, 0.12);  color: var(--orange); }
.tool-tag.purple { background: rgba(161, 88, 237, 0.12);  color: var(--purple); }
.tool-tag.teal   { background: rgba(77, 208, 216, 0.15);  color: var(--teal); }

.tool-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.tool-body {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}
.tool-body strong { font-weight: 600; color: var(--dark); }

/* Tool illustration placeholder */
.tool-illus {
  background: white;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 2px dashed #ddd;
  position: relative;
  overflow: hidden;
}
.tool-illus-label {
  font-size: 12px;
  color: #bbb;
  font-style: italic;
  text-align: center;
  padding: 0 24px;
}

/* Animated mini demo elements */
.illus-scrollbar {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.illus-line        { height: 4px; border-radius: 3px; background: var(--gray); }
.illus-line.active { background: var(--green); }

.illus-cursor {
  position: absolute;
  width: 2px;
  height: 70%;
  background: var(--green);
  border-radius: 2px;
  animation: cursor-sweep 3s ease-in-out infinite;
}
@keyframes cursor-sweep {
  0%   { left: 10%; opacity: 1; }
  80%  { left: 85%; opacity: 1; }
  100% { left: 10%; opacity: 0; }
}

.illus-loop-track {
  width: 70%;
  height: 10px;
  background: var(--gray);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.illus-loop-fill {
  position: absolute;
  left: 20%;
  width: 45%;
  height: 100%;
  background: var(--orange);
  border-radius: 6px;
  animation: loop-pulse 2.2s ease-in-out infinite;
}
@keyframes loop-pulse {
  0%   { left: 20%; width: 40%; }
  50%  { left: 15%; width: 50%; }
  100% { left: 20%; width: 40%; }
}

.illus-blocks {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.illus-block {
  width: 32px;
  border-radius: 6px;
  background: var(--purple);
}

.illus-coach-bubble {
  background: var(--green);
  color: white;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 20px 20px 20px 4px;
}
.illus-mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(33, 137, 227, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 28px;
}
.illus-wave span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--green);
  animation: wave-dance 0.8s ease-in-out infinite;
}
.illus-wave span:nth-child(2) { animation-delay: 0.1s; }
.illus-wave span:nth-child(3) { animation-delay: 0.2s; }
.illus-wave span:nth-child(4) { animation-delay: 0.3s; }
.illus-wave span:nth-child(5) { animation-delay: 0.15s; }
@keyframes wave-dance {
  0%, 100% { height: 6px; }
  50%       { height: 24px; }
}

@media (max-width: 1080px) {
  .tool-row,
  .tool-row.flip { flex-direction: column; gap: 32px; }
  .tool-text     { flex: none; width: 100%; }
}


/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.section-testimonials {
  background: var(--white);
  padding: var(--section-pad-v) 0;
  text-align: center;
  overflow: hidden;   /* hard-clip the carousel track at section level */
}
.testi-heading-wrap {
  max-width: var(--page-max);
  margin: 0 auto 56px;
  padding: 0 var(--page-gutter);
  text-align: center;
}
.testi-main-heading {
  font-family: var(--font);
  font-size: var(--fs-heading-md);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 0;
}
.testi-accent { color: var(--green); }

.testi-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 var(--page-gutter);
  max-width: var(--page-max);
  margin: 0 auto;
  overflow: hidden;
}
.testi-arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  transition: opacity var(--transition-normal), transform var(--transition-fast);
}
.testi-arrow:hover { opacity: 0.8; transform: scale(1.06); }
.testi-arrow svg   { width: 100%; height: 100%; display: block; }

.testi-viewport {
  flex: 1;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.testi-track {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.testi-slide {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  min-height: 200px;
}
.testi-placeholder {
  font-family: var(--font);
  font-size: clamp(17px, 1.9vw, 27px);
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  margin: 0;
}

/* Testimonial card (for when reviews are added) */
.testi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  max-width: 820px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.testi-stars     { display: flex; gap: 4px; justify-content: center; }
.testi-stars svg { width: 20px; height: 20px; fill: #f5a623; }
.testi-quote {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 24px);
  color: var(--dark);
  line-height: 1.55;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.testi-name {
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}
.testi-role {
  font-family: var(--font);
  font-size: var(--fs-body-sm);
  font-weight: 300;
  color: #999;
  text-align: left;
}

/* Dot navigation */
.testi-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 40px;
}
.testi-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--gray);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-normal), transform var(--transition-fast);
}
.testi-dot--active                    { background: var(--green); }
.testi-dot:hover:not(.testi-dot--active) { transform: scale(1.1); }

@media (max-width: 700px) {
  .testi-carousel-wrap { gap: 14px; padding: 0 20px; }
  .testi-heading-wrap  { padding: 0 20px; }
  .testi-arrow         { width: 52px; height: 52px; }
  .testi-card          { padding: 32px 24px; }
  .testi-dots          { gap: 16px; margin-top: 28px; }
  .testi-dot           { width: 20px; height: 20px; }
}


/* ══════════════════════════════════════
   CTA BAND
══════════════════════════════════════ */
.cta-band {
  background: var(--white);
  padding: var(--section-pad-v) 0;
  text-align: center;
}
.cta-inner {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--fs-heading-md);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.cta-band h2 .accent { color: var(--green); }
.cta-band p {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--text-dark);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 400;
}
.btn-cta-primary {
  background: var(--green);
  color: white;
  font-family: var(--font);
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 400;
  padding: 17px 52px;
  min-width: 260px;
  border-radius: 32px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-normal);
  display: inline-block;
}
.btn-cta-primary:hover { background: #699838; color: white; }


/* ── Phone (≤ 480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
  /* Hero */
  .hero-inner    { padding: 0 var(--page-gutter) 56px; }
  .hero-left     { padding: 32px 0 24px; }
  .hero-actions  { flex-direction: column; align-items: center; width: 100%; gap: 12px; }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; text-align: center; padding: 14px 24px; }
  .ipad-wrap     { width: 100%; }

  /* Section gutters */
  .problem-inner,
  .partner-inner,
  .tools-inner,
  .cta-inner     { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }

  /* Partner cards */
  .partner-card-text { padding: 24px var(--page-gutter); }

  /* Testimonials */
  .testi-carousel-wrap { gap: 8px; padding: 0 12px; }
  .testi-arrow         { width: 40px; height: 40px; }
  .testi-dots          { gap: 12px; margin-top: 20px; }
  .testi-dot           { width: 16px; height: 16px; }
}
