/* ============================================================
   Integrity Quest Music Academy — Landing page
   Palette drawn from the logo itself. Signature: 4-color brand bar.
   ============================================================ */

/* ------------------- Tokens ------------------- */
:root {
  --iq-blue:        #1e3a8a;
  --iq-blue-dark:   #172554;
  --iq-blue-deep:   #0f1d5b;
  --iq-green:       #16a34a;
  --iq-green-dark:  #15803d;
  --iq-red:         #dc2626;
  --iq-red-dark:    #b91c1c;
  --iq-orange:      #f59e0b;
  --iq-orange-dark: #d97706;

  --iq-ink:         #0a0e27;
  --iq-ink-soft:    #334155;
  --iq-muted:       #64748b;
  --iq-border:      #e2e8f0;
  --iq-mist:        #f8fafc;
  --iq-white:       #ffffff;

  --iq-wa:          #25d366;
  --iq-wa-dark:     #128c7e;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script:  'Caveat', 'Brush Script MT', cursive;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow:    0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 72px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------- Reset ------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--iq-ink);
  background: var(--iq-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* Accessibility: skip link */
.skip {
  position: absolute; top: -100px; left: 8px;
  background: var(--iq-ink); color: var(--iq-white);
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--iq-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------- Utility: eyebrow ------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--iq-muted);
  margin-bottom: 1rem;
}
.eyebrow--script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--iq-blue);
  margin-bottom: .5rem;
}
.eyebrow--on-blue {
  color: rgba(255, 255, 255, 0.75);
}

/* ------------------- Chips ------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  color: var(--iq-white);
  background: var(--iq-ink);
}
.chip[data-c="orange"] { background: var(--iq-orange); }
.chip[data-c="green"]  { background: var(--iq-green); }
.chip[data-c="red"]    { background: var(--iq-red); }
.chip[data-c="blue"]   { background: var(--iq-blue); }

/* ------------------- Buttons ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.02rem;
  border-radius: var(--radius);
}
.btn--primary {
  background: var(--iq-green);
  color: var(--iq-white);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--iq-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--iq-blue);
  border-color: var(--iq-blue);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--iq-blue);
  color: var(--iq-white);
}
.btn--on-blue {
  background: transparent;
  color: var(--iq-white);
  border-color: rgba(255, 255, 255, 0.8);
}
.btn--on-blue:hover,
.btn--on-blue:focus-visible {
  background: var(--iq-white);
  color: var(--iq-blue);
}
.btn--wa {
  background: var(--iq-wa);
  color: var(--iq-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn--wa:hover,
.btn--wa:focus-visible {
  background: var(--iq-wa-dark);
  transform: translateY(-1px);
}

/* ------------------- Nav ------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--iq-border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}
.nav__logo img {
  height: 52px;
  width: auto;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  color: var(--iq-red);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: background .15s var(--ease);
}
.nav__phone:hover { background: rgba(220, 38, 38, 0.08); }
.nav__phone svg { flex-shrink: 0; }

/* Mobile: hide phone text in nav, show icon only */
@media (max-width: 640px) {
  .nav__logo img { height: 44px; }
  .nav__phone span { display: none; }
  .nav__phone { padding: .55rem; }
  .btn { padding: .65rem 1rem; font-size: .9rem; }
}

/* ------------------- Hero ------------------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 0;
  background: var(--iq-white);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1.1fr;
    column-gap: clamp(2.5rem, 5vw, 4rem);
    row-gap: 1.5rem;
    align-items: center;
  }
  /* Explicit placement: intro top-left, body bottom-left, media spans both rows on the right */
  .hero__intro  { grid-column: 1; grid-row: 1; }
  .hero__body   { grid-column: 1; grid-row: 2; }
  .hero__media  { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

.hero__intro,
.hero__body { min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--iq-ink);
}
.hero__title-accent {
  color: var(--iq-blue);
  display: inline-block;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--iq-ink-soft);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero__instruments {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.hero__media {
  display: flex;
  justify-content: center;
}

/* ------------------- Hero YouTube frame ------------------- */
.hero__yt {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--iq-blue-dark);
  box-shadow: var(--shadow-lg);
}
.hero__yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Facade: thumbnail + play button. Swaps to a real iframe on click,
   so no YouTube network traffic happens until the visitor engages. */
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--iq-blue-dark);
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}
.yt-facade:hover .yt-thumb,
.yt-facade:focus-visible .yt-thumb {
  transform: scale(1.03);
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform .18s var(--ease), filter .18s var(--ease);
  pointer-events: none;
}
.yt-play svg {
  width: 100%;
  height: 100%;
  display: block;
}
.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}
.yt-facade::after {
  /* Subtle dark gradient at the bottom so the play button doesn't compete
     with any lower-third burn-in text in the thumbnail. */
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Mobile hero: center-align everything */
@media (max-width: 899px) {
  .hero__inner {
    text-align: center;
  }
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas,
  .hero__instruments {
    justify-content: center;
  }
}

/* ------------------- Signature: brand bar ------------------- */
.brand-bar {
  display: flex;
  height: 8px;
  width: 100%;
}
.brand-bar__seg {
  flex: 1;
  background: var(--seg-c, var(--iq-ink));
  transform-origin: left center;
  transform: scaleX(0);
  animation: seg-in .5s var(--ease) forwards;
}
.brand-bar__seg:nth-child(1) { animation-delay: .10s; }
.brand-bar__seg:nth-child(2) { animation-delay: .20s; }
.brand-bar__seg:nth-child(3) { animation-delay: .30s; }
.brand-bar__seg:nth-child(4) { animation-delay: .40s; }
@keyframes seg-in {
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-bar__seg {
    animation: none;
    transform: scaleX(1);
  }
}

/* ------------------- Steps section ------------------- */
.steps {
  background: linear-gradient(180deg, var(--iq-blue) 0%, var(--iq-blue-deep) 100%);
  color: var(--iq-white);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
}
.steps__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.steps__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 3rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
  text-align: left;
}
@media (min-width: 720px) {
  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-card {
  background: var(--iq-white);
  color: var(--iq-ink);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.step-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--num-c, var(--iq-blue));
  margin-bottom: .5rem;
  letter-spacing: -0.02em;
}
.step-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 .5rem;
  color: var(--iq-blue);
}
.step-card__body {
  margin: 0;
  color: var(--iq-ink-soft);
  font-size: 1rem;
}
.step-card__body strong { color: var(--iq-ink); }

.steps__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* ------------------- Testimonials ------------------- */
.testimonials {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--iq-white);
}
.testimonials__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.testimonials__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 auto 2.5rem;
  color: var(--iq-ink);
  max-width: 22ch;
}
.testimonials__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  align-items: start; /* mixed landscape + portrait cards sit at their natural heights */
  justify-items: center;
}
@media (min-width: 720px) {
  .testimonials__grid {
    /* auto-fit lets 1 card center, 2 cards go side-by-side, 3+ cards fill */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: var(--container);
    gap: 1.75rem;
  }
}
.testimonial-card {
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
}
.testimonial-card--portrait {
  max-width: 360px; /* narrower cap so 9:16 doesn't get overly tall */
}
.testimonial-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--iq-blue-dark);
  box-shadow: var(--shadow-lg);
}
.testimonial-card--portrait .testimonial-card__frame {
  aspect-ratio: 9 / 16;
}

/* ------------------- FAQ ------------------- */
.faq {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--iq-mist);
}
.faq__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.faq__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 auto 2.5rem;
  color: var(--iq-ink);
  max-width: 20ch;
}
.faq__list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  background: var(--iq-white);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.faq-item:hover {
  box-shadow: var(--shadow);
}
.faq-item[open] {
  box-shadow: var(--shadow);
}
.faq-item__q {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--iq-ink);
  list-style: none;
  outline: none;
}
.faq-item__q::-webkit-details-marker {
  display: none;
}
.faq-item__q::marker {
  display: none;
  content: "";
}
.faq-item__q:focus-visible {
  outline: 3px solid var(--iq-blue);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-item__icon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--iq-blue);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
  line-height: 1;
  width: 1.5rem;
  text-align: center;
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__a {
  padding-top: .9rem;
  color: var(--iq-ink-soft);
  font-size: .98rem;
  line-height: 1.6;
}
.faq-item__a p {
  margin: 0;
}

/* ------------------- Final CTA ------------------- */
.final-cta {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--iq-mist);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(
    to right,
    var(--iq-orange) 0%, var(--iq-orange) 25%,
    var(--iq-green) 25%, var(--iq-green) 50%,
    var(--iq-red) 50%, var(--iq-red) 75%,
    var(--iq-blue) 75%, var(--iq-blue) 100%
  );
}
.final-cta__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.final-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .75rem;
  color: var(--iq-ink);
}
.final-cta__lead {
  color: var(--iq-ink-soft);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}
.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* ------------------- Footer ------------------- */
.footer {
  background: var(--iq-blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.footer__brand img {
  height: 80px;
  width: auto;
  background: var(--iq-white);
  border-radius: var(--radius);
  padding: .5rem;
}
.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iq-white);
  margin: 0 0 .75rem;
}
.footer__list li { margin-bottom: .35rem; }
.footer__list a,
.footer__text {
  color: rgba(255, 255, 255, 0.85);
  transition: color .15s var(--ease);
}
.footer__list a:hover { color: var(--iq-white); }
.footer__text { margin: 0; font-style: normal; line-height: 1.55; }
.footer__base {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 1.25rem var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: .85rem;
  text-align: center;
}
.footer__base p { margin: 0; }

/* ------------------- Motion preferences ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
