/* ============================================================
   The Interior Academy — Resource Page
   Design system extracted from the live IDA ClickFunnels funnel
   (warm blush-cream ground, dusty-rose accent, charcoal serif heads)
   ============================================================ */

:root {
  /* Palette — pulled from funnel screenshots, tune against CF theme */
  --cream:        #F4EBE6;
  --cream-2:      #EFE0DA;
  --cream-deep:   #E7D3CB;
  --rose:         #D4A99D;   /* CF rose accent — EXACT from page source: a{color:rgb(212,169,157)} */
  --rose-hover:   #9C3131;   /* CF emphasis maroon — EXACT: .elHeadline b{color:rgb(156,49,49)} */
  --rose-soft:    #E4C9C3;   /* CF announcement-bar tint */
  --ink:          #2B2724;   /* primary text */
  --ink-soft:     #5B524C;
  --line:         #E2D2CA;
  --white:        #FFFFFF;
  --tp-green:     #00B67A;   /* Trustpilot */

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --gap:  clamp(1rem, 2.5vw, 2rem);
  --radius: 14px;
  --shadow: 0 18px 50px -28px rgba(43, 39, 36, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-hover);
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

/* ---------- Top announcement bar ---------- */
.topbar {
  background: var(--ink);
  color: #F3E9E4;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .55rem 1rem;
}
.topbar strong { color: var(--rose-soft); }

/* ---------- Brand header ---------- */
.masthead { text-align: center; padding: 1.6rem 1rem .4rem; }
.brandmark { display: inline-block; line-height: 0; }
.brandmark .logo { height: 62px; width: auto; }

/* ---------- Sections ---------- */
section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.4rem, 3vw, 2.4rem); text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lead { max-width: 60ch; margin: 0 auto 2rem; }

/* ---------- Video frame (drop-in for Vidalytics / Shade embed) ---------- */
.video-frame {
  position: relative;
  width: 100%;
  background: var(--cream-deep) radial-gradient(circle at 50% 45%, rgba(255,255,255,.5), transparent 60%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.video-frame.portrait { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.video-frame > iframe,
.video-frame > video,
.video-frame > div[data-vidalytics] { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .placeholder {
  text-align: center; color: var(--ink-soft); padding: 1.4rem; font-size: .85rem;
}
.video-frame .play {
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(212,169,157,.96); display: grid; place-items: center; margin: 0 auto .8rem;
  box-shadow: 0 10px 30px -10px rgba(156,49,49,.35);
}
.video-frame .play::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 20px solid var(--white);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.hero-video { max-width: 760px; margin: 0 auto; }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.stars { color: var(--tp-green); font-size: 1.35rem; letter-spacing: .12em; }
.trust-strip .score { font-size: .9rem; color: var(--ink-soft); }
.press {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: .6rem;
}
.press span {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em;
  color: var(--ink); opacity: .55;
}
.press .label { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; width: 100%; text-align: center; margin-bottom: .2rem; }

/* ---------- FAQ — 2 × 4 grid, each video its own clean cell ---------- */
.faq-stack {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.4rem);
}
.faq-block { text-align: center; }
.faq-block .n {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rose-hover); margin-bottom: .5rem;
}
.faq-block h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem); max-width: 26ch; margin: 0 auto .9rem;
  min-height: 3.3em; display: flex; align-items: center; justify-content: center;
}
.faq-block .video-frame { box-shadow: var(--shadow); }

/* ---------- Reviews wall ---------- */
.reviews {
  columns: 3 300px;
  column-gap: 1.4rem;
}
.review {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 12px 34px -30px rgba(43,39,36,.5);
}
.review .stars { font-size: 1rem; }
.review h4 { font-family: var(--serif); font-size: 1.05rem; margin: .5rem 0 .4rem; }
.review p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.review .meta { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .78rem; color: var(--ink-soft); }
.review .badge { color: var(--tp-green); font-weight: 600; }

/* ---------- Case studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.case-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 14px 40px -30px rgba(43,39,36,.5);
}
.case-card .ba { aspect-ratio: 4/3; background: var(--cream-deep); display: grid; place-items: center; color: var(--ink-soft); font-size: .8rem; }
.case-card .body { padding: 1.1rem 1.2rem 1.4rem; }
.case-card .name { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 .15rem; }
.case-card .role { font-size: .82rem; color: var(--rose-hover); letter-spacing: .03em; }
.case-card p { font-size: .9rem; color: var(--ink-soft); margin: .7rem 0 0; }
.slot { opacity: .72; border-style: dashed; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--cream-deep), var(--cream));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.btn {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  box-shadow: 0 14px 34px -16px rgba(166,111,111,.8);
}
.btn:hover { background: var(--rose-hover); transform: translateY(-1px); }
.cta-band .lead { max-width: 52ch; margin-inline: auto; }
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--rose-hover); margin-top: 1.4rem; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 2.4rem 1rem 3rem; color: var(--ink-soft); font-size: .8rem; }
footer .brandmark { margin-bottom: 1rem; }
footer .brandmark .logo { height: 46px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin: .8rem 0; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
footer nav a { color: var(--ink-soft); text-decoration: none; }
footer nav a:hover { color: var(--rose-hover); }
.legal-disclaimer { max-width: 760px; margin: 1.2rem auto; font-size: .68rem; line-height: 1.5; color: #8C837C; text-transform: none; letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .reviews { columns: 1; }
  .faq-stack { grid-template-columns: 1fr; }
}
