/* ==========================================================================
   start.adamcphillips.lawyer — intake funnel overrides (brandbook v2)
   Layered on top of styles.css. Palette: brandbook dark blue / blue / beige /
   gradient silver. Structure follows the seven landing-page elements from
   "Law Firm Growth Accelerator" (Demand Marketing, pp. 290-291):
     1 Benefits  2 Image  3 Features  4 Proof  5 Offer  6 Form  7 Trust
   Offer + Form sit above the fold; credentials come AFTER the benefit.
   ========================================================================== */

body.funnel { background: var(--white); }

/* ---------- minimal bar (no nav: no exit paths) ---------- */
.funnel-bar {
  background: rgba(12,49,71,.97);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid rgba(201,207,212,.22);
}
.funnel-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.funnel-bar .brand { display: flex; align-items: center; gap: 13px; }
.funnel-bar .brand img.crest { height: 50px; width: auto; }
.bar-phone { text-align: right; line-height: 1.25; }
.bar-phone span {
  display: block; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--silver); font-weight: 700;
}
.bar-phone strong { font-family: var(--display); font-weight: 400; font-size: 1.34rem; color: #fff; letter-spacing: .03em; }
.bar-phone:hover strong { color: var(--silver-hi); }
@media (max-width: 560px) {
  .bar-phone strong { font-size: 1.1rem; }
  .funnel-bar .brand .brand-text { display: none; }
}

/* ---------- hero: copy left, offer/form right ---------- */
.funnel-hero {
  position: relative; overflow: hidden;
  padding: 58px 0 72px;
  background:
    radial-gradient(ellipse 90% 90% at 88% -10%, rgba(31,70,92,.9), transparent 60%),
    linear-gradient(165deg, #0A2A3D 0%, var(--ink) 45%, #123B52 100%);
}
.funnel-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/images/silver-crest.png') no-repeat;
  background-size: min(60vw, 700px);
  background-position: left -180px bottom -160px;
  opacity: .06;
}
.funnel-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: start;
}
@media (max-width: 1000px) {
  .funnel-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .funnel-hero { padding: 40px 0 56px; }
}

.funnel-copy h1 {
  color: #fff;
  font-size: clamp(1.95rem, 3.9vw, 3rem);
  line-height: 1.16;
  margin-bottom: .55em;
}
.funnel-copy .lede {
  font-family: var(--serif);
  color: rgba(249,238,232,.92);
  font-size: 1.28rem;
  line-height: 1.58;
  max-width: 31em;
}

.benefit-list { list-style: none; padding: 0; margin: 30px 0 0; }
.benefit-list li {
  position: relative; padding-left: 34px; margin-bottom: 14px;
  color: rgba(249,238,232,.9); font-size: 1.03rem;
}
.benefit-list li strong { color: #fff; }
.benefit-list li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 16px; height: 1.5px; background: var(--silver);
}

/* 2 IMAGE - the lawyer is the product */
.funnel-photo { margin: 38px 0 0; max-width: 370px; position: relative; }
.funnel-photo::before {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201,207,212,.35);
  border-radius: var(--radius);
  pointer-events: none;
}
.funnel-photo img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.funnel-photo figcaption {
  position: relative;
  margin-top: 16px; color: rgba(249,238,232,.72); font-size: .88rem; line-height: 1.55;
}
.funnel-photo figcaption strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 1.12rem; color: #fff; letter-spacing: .04em;
}
@media (max-width: 1000px) { .funnel-photo { display: none; } }

/* ---------- 5 OFFER + 6 FORM ---------- */
.funnel-form { position: sticky; top: 96px; }
@media (max-width: 1000px) { .funnel-form { position: static; } }

.offer-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(4,16,25,.5);
  border: 1px solid rgba(201,207,212,.3);
}
.offer-head {
  background: var(--beige); border-bottom: 1px solid var(--line);
  padding: 28px 30px 24px; text-align: center;
}
.offer-flag {
  display: inline-block; background: var(--ink); color: var(--silver-hi);
  font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 2px; margin-bottom: 15px;
}
.offer-head h2 { font-size: 1.66rem; margin-bottom: .35em; }
.offer-head p { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.6; }

.offer-card form { padding: 28px 30px 32px; }
.btn-xl { padding: 20px 34px; font-size: .88rem; }

.trust-points { list-style: none; padding: 0; margin: 22px 0 0; }
.trust-points li {
  position: relative; padding-left: 26px; margin-bottom: 8px;
  font-size: .9rem; color: var(--body);
}
.trust-points li::before {
  content: '\2713'; position: absolute; left: 0; top: -1px;
  color: var(--navy); font-weight: 700;
}

.or-call {
  text-align: center; margin: 20px 0 0;
  color: rgba(249,238,232,.8); font-size: .96rem;
}
.or-call a { color: var(--silver-hi); font-weight: 700; }

/* ---------- 4 PROOF ---------- */
.proof { background: var(--beige); border-bottom: 1px solid var(--line); padding: 52px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.proof-quote p {
  margin: 10px 0 0;
  font-family: var(--serif); font-style: italic;
  font-size: 1.08rem; line-height: 1.6;
}

/* ---------- 3 FEATURES ---------- */
.features { padding: 76px 0; }
.features-head { max-width: 44em; margin: 0 auto 44px; text-align: center; }
.features-head p { font-family: var(--serif); color: var(--muted); font-size: 1.18rem; line-height: 1.6; }
.feature-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
@media (max-width: 760px) { .feature-facts { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.feature-facts div {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 16px; border-top: 2px solid var(--silver-mid);
  background: #fff;
}
.feature-facts strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 1.95rem; color: var(--ink); line-height: 1;
}
.feature-facts span {
  display: block; margin-top: 10px; font-size: .72rem; color: var(--muted);
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}

/* ---------- closer ---------- */
.closer {
  position: relative;
  background:
    radial-gradient(ellipse 70% 130% at 50% -40%, rgba(31,70,92,.9), transparent 60%),
    linear-gradient(170deg, #0A2A3D, var(--ink));
  color: #fff; text-align: center; padding: 80px 0;
  overflow: hidden;
}
.closer::before {
  content: ''; position: absolute; left: 50%; bottom: -190px; width: 540px; height: 540px;
  transform: translateX(-50%);
  background: url('/images/silver-crest.png') no-repeat center / contain;
  opacity: .06; pointer-events: none;
}
.closer .wrap { position: relative; z-index: 2; }
.closer h2 { color: #fff; max-width: 26em; margin: 0 auto .5em; }
.closer p { font-family: var(--serif); color: rgba(249,238,232,.88); font-size: 1.22rem; margin-bottom: 30px; }
.closer-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) { .closer-actions .btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.funnel-footer {
  background: #0A2A3D; color: rgba(249,238,232,.6);
  padding: 44px 0; font-size: .9rem; text-align: center;
  border-top: 1px solid rgba(201,207,212,.16);
}
.funnel-footer a { color: rgba(249,238,232,.78); }
.funnel-footer a:hover { color: #fff; }
.funnel-footer p { margin: 0 0 8px; }
.funnel-footer .disclaimer {
  margin-top: 16px; font-size: .76rem; color: rgba(249,238,232,.4);
  line-height: 1.65; max-width: 72em; margin-left: auto; margin-right: auto;
}

/* ---------- thank you page ---------- */
.ty { text-align: center; padding: 96px 0 88px; }
.ty .mark {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--beige); color: var(--navy);
  border: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 28px;
}
.ty h1 { margin-bottom: .4em; }
.ty p { max-width: 34em; margin: 0 auto 1em; font-size: 1.06rem; }

/* ---------- v6 hero: full-bleed photo, edge to edge, nav floating on top ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.2%, -1.8%); }
}
/* nav floats transparent over the photo - no bar, no border, no spacing */
.funnel-bar.overlay-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  transition: background .35s ease, border-color .35s ease;
}
/* at the top of the page the photo is light: dark logo + dark phone */
.overlay-bar .brand img.crest { filter: brightness(.28); transition: filter .35s ease; }
.overlay-bar .brand-text strong, .overlay-bar .bar-phone strong { color: var(--ink); text-shadow: none; transition: color .35s ease; }
.overlay-bar .brand-text span, .overlay-bar .bar-phone span { color: rgba(12,49,71,.72); transition: color .35s ease; }
/* once scrolling, the bar floats on dark blue with the light treatment */
.overlay-bar.scrolled {
  background: rgba(12,49,71,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,207,212,.22);
}
.overlay-bar.scrolled .brand img.crest { filter: none; }
.overlay-bar.scrolled .brand-text strong, .overlay-bar.scrolled .bar-phone strong { color: #fff; }
.overlay-bar.scrolled .brand-text span, .overlay-bar.scrolled .bar-phone span { color: var(--silver); }

.hero-v6 {
  position: relative;
  padding: 0;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: #0A2A3D;
}
.hero-v6::before { content: none; }
.hero-pic { display: contents; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  filter: saturate(.85) contrast(1.05);
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* scrim: dark left for the headline, subtle center, gently darker right under the form */
.hero-v6::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(102deg, rgba(7,30,44,.93) 0%, rgba(7,30,44,.6) 26%, rgba(7,30,44,.12) 48%, rgba(7,30,44,.28) 72%, rgba(7,30,44,.5) 100%),
    linear-gradient(to top, rgba(7,30,44,.82) 0%, rgba(7,30,44,0) 34%);
}
.hero-grid-v6 {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding-top: 78px;
  padding-bottom: 28px;
}
.hero-headline {
  align-self: end;
  padding-bottom: 2vh;
  max-width: 30em;
  text-align: left;
}
.hero-headline h1 {
  color: #fff;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  line-height: 1.14;
  margin: 0 0 22px;
  animation: riseIn .9s ease-out .2s both;
  text-shadow: 0 2px 30px rgba(3,14,22,.55);
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--silver-hi);
  font-size: 1.22rem;
  margin: 0;
  animation: riseIn .9s ease-out .55s both;
}
.hero-sub::before {
  content: ''; display: block;
  width: 54px; height: 1px; margin-bottom: 18px;
  background: linear-gradient(90deg, #EFF2F4, rgba(169,178,186,0));
}
.hero-v6 .funnel-form { position: static; animation: riseIn 1s ease-out .4s both; }
.hero-v6 .offer-card { box-shadow: 0 44px 110px rgba(3,14,22,.65); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-headline h1, .hero-sub, .hero-v6 .funnel-form { animation: none; }
}
@media (max-width: 1000px) {
  .hero-grid-v6 {
    display: flex; flex-direction: column;
    gap: 30px;
    padding-top: 38svh;
    align-items: stretch;
  }
  .hero-headline { padding-bottom: 0; align-self: flex-start; }
  /* photo fills the top of the screen only; its own bottom dissolves into the navy */
  .hero-bg {
    height: 64svh; object-position: center 16%;
    -webkit-mask-image: linear-gradient(to bottom, black 58%, transparent 96%);
            mask-image: linear-gradient(to bottom, black 58%, transparent 96%);
  }
  .hero-v6::after {
    height: 64svh;
    background: linear-gradient(to bottom, rgba(7,30,44,.05) 32%, rgba(7,30,44,.6) 60%, rgba(7,30,44,0) 96%);
  }
}

/* keep the entire hero in one viewport on laptop heights */
@media (min-width: 1001px) and (max-height: 960px) {
  .hero-v6 .offer-head { padding: 18px 24px 14px; }
  .hero-v6 .offer-head p { font-size: .88rem; }
  .hero-v6 .offer-flag { margin-bottom: 10px; padding: 6px 13px; }
  .hero-v6 .offer-card form { padding: 18px 24px 20px; }
  .hero-v6 .field { margin-bottom: 8px; }
  .hero-v6 .field label { margin-bottom: 4px; }
  .hero-v6 .field input, .hero-v6 .field select, .hero-v6 .field textarea { padding: 9px 12px; }
  .hero-v6 .field textarea { min-height: 68px; }
  .hero-v6 .btn-xl { padding: 15px 26px; }
  .hero-v6 .trust-points { margin-top: 12px; }
  .hero-v6 .trust-points li { margin-bottom: 5px; font-size: .84rem; }
  .hero-v6 .form-note { margin-top: 10px; font-size: .74rem; }
  .hero-headline h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 0; }
  .hero-sub { display: none; }
}

.proof-quote .quote-by {
  margin: 14px 0 0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-family: var(--sans, inherit); font-style: normal;
}
