/* ==========================================================================
   Weinstein Legal Team — Attorney Referral Portal
   Palette drawn from the brand logo and the video's studio backdrop.
   ========================================================================== */

:root {
  --orange: #FAAD62;
  --orange-deep: #E8913D;
  --orange-tint: #FDF0E2;
  --slate: #415464;
  --slate-soft: #62778A;
  --ink: #1B242D;
  --stage: #232E38;
  --paper: #FFFFFF;
  --tint: #F2F5F7;
  --line: #E3E9ED;

  --font-display: "Manrope", -apple-system, "Helvetica Neue", sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;

  --container: 1080px;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.eyebrow-dark { color: var(--orange); }

.accent { color: var(--orange); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 17px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }

.btn-sm { padding: 12px 22px; font-size: 0.92rem; }

:is(a, button):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ==========================================================================
   Stage (hero) — continues the video's studio backdrop and warm key light
   ========================================================================== */

.stage {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 700px at 10% -8%, rgba(250, 171, 100, 0.26), transparent 62%),
    radial-gradient(900px 600px at 95% 20%, rgba(98, 119, 138, 0.25), transparent 65%),
    linear-gradient(168deg, var(--stage) 0%, var(--ink) 78%);
  overflow: hidden;
  padding-bottom: 96px;
}

/* faint studio grain */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.stage > * { position: relative; z-index: 1; }

/* ---------- topbar ---------- */

.topbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-logo img { width: 168px; height: auto; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar-phone {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.18s ease;
}
.topbar-phone:hover { color: var(--orange); }

/* ---------- hero copy ---------- */

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  text-align: center;
}

.hero-sub {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-outside {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.hero-outside:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- video player ---------- */

.player-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -20px rgba(0, 0, 0, 0.65);
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stage);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(27, 36, 45, 0) 55%, rgba(27, 36, 45, 0.45) 100%);
  border: 0;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.play-overlay.is-hidden { opacity: 0; pointer-events: none; }

.play-btn {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  padding-left: 6px;
  box-shadow: 0 18px 50px -10px rgba(250, 171, 100, 0.55);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover .play-btn { transform: scale(1.07); background: var(--orange-deep); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 104px 0; }

.section-light { background: var(--paper); }

.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 { color: var(--ink); }

.section-dark {
  color: #fff;
  background:
    radial-gradient(900px 560px at 12% -10%, rgba(98, 119, 138, 0.22), transparent 62%),
    linear-gradient(176deg, var(--stage) 0%, var(--ink) 80%);
}

.section-dark h2 { color: #fff; }

.container-narrow { max-width: 720px; }

.section-sub {
  max-width: 620px;
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--slate);
}

/* ---------- promise ---------- */

.promise-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.promise-card .keyline {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin-bottom: 20px;
}

.promise-card h3 { margin-bottom: 10px; }

.promise-card p { color: var(--slate); font-size: 1rem; }

/* ---------- stakes ---------- */

.stakes-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.stake-card .keyline-muted {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--slate-soft);
  margin-bottom: 20px;
}

.stake-card h3 { margin-bottom: 10px; }

.stake-card p { color: rgba(255, 255, 255, 0.72); font-size: 1rem; }

/* ---------- partner callout (outside Florida) ---------- */

.partner-callout {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 34px 38px;
}

.partner-callout h3 { margin-bottom: 8px; }

.partner-callout p {
  color: var(--slate);
  font-size: 1rem;
  max-width: 520px;
}

/* ---------- steps ---------- */

.steps {
  margin-top: 56px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.step { display: flex; flex-direction: column; gap: 18px; }

.step-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange-deep);
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 1rem; }

.areas {
  margin-top: 56px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.area-chip {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--orange-tint);
  border: 1px solid rgba(232, 145, 61, 0.35);
  padding: 9px 18px;
  border-radius: 999px;
}

/* ==========================================================================
   Closer — quote + booking on the dark stage
   ========================================================================== */

.closer {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 640px at 88% -6%, rgba(250, 171, 100, 0.16), transparent 60%),
    linear-gradient(196deg, var(--stage) 0%, var(--ink) 70%);
  padding: 112px 0 96px;
  overflow: hidden;
}

.quote { max-width: 820px; }

.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.quote em {
  font-style: normal;
  color: var(--orange);
}

.quote figcaption {
  margin-top: 26px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.book-head {
  margin-top: 110px;
  text-align: center;
}

.book-sub {
  max-width: 480px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.75);
}

.calendly-shell { margin-top: 48px; }

.calendly-inline-widget {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.calendly-fallback {
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.calendly-fallback a { color: var(--orange); }

.contact-ctas {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--paper);
  padding: 64px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { width: 190px; height: auto; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-contact a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--orange-deep); }

.footer-note {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--slate-soft);
}

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-group.in > * { opacity: 1; transform: none; }

.reveal-group.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group.in > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 880px) {
  .promise-grid, .steps, .stakes-grid { grid-template-columns: 1fr; gap: 40px; }
  .partner-callout { padding: 28px 26px; }
  .step { flex-direction: row; align-items: flex-start; gap: 22px; }
  .step-num { font-size: 2.6rem; }
  .book-head { margin-top: 80px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .topbar { padding: 20px 18px; }
  .topbar-logo img { width: 132px; }
  .topbar-phone { display: none; }
  .hero { padding: 40px 20px 44px; }
  .hero-ctas { flex-direction: column; }
  .contact-ctas { flex-direction: column; align-items: center; }
  .play-btn { width: 68px; height: 68px; }
  .footer-inner, .footer-contact { align-items: flex-start; }
  .closer { padding: 80px 0 72px; }
}
