/* ============================================================
   Raine & Horne Gladstone — lead capture landing page (v2)
   Brand tokens: gold #FFB200 · charcoal #2B2B2B · white
   Headings: Archivo (stand-in for R&H custom grotesque)
   Body: Inter
   ============================================================ */

:root {
  --gold: #FFB200;
  --gold-deep: #E8A300;
  --charcoal: #2B2B2B;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --panel: #F4F4F5;
  --line: #E4E4E7;
  --white: #ffffff;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(20, 20, 22, .05), 0 18px 44px -14px rgba(20, 20, 22, .35);
  --font-head: "Archivo", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

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

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; }

section { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }

a { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  padding: 1rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.985); }

.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-deep); }

.btn-charcoal { background: var(--charcoal); color: var(--white); }
.btn-charcoal:hover { background: #1a1a1a; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .8rem;
}
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo-amp { color: var(--gold); font-weight: 800; padding: 0 .04em; }
.logo-office {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: rgba(255,255,255,.75);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--white);
  font-size: .95rem;
  white-space: nowrap;
}
.header-phone svg { color: var(--gold); flex-shrink: 0; }
.header-phone-label { color: rgba(255,255,255,.65); }
.header-phone strong { font-weight: 700; }
.header-phone:hover strong { color: var(--gold); }

/* ---------- Hero (conversion unit) ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(3rem, 2rem + 3.5vw, 5.5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(28,28,30,.9) 0%, rgba(28,28,30,.78) 48%, rgba(28,28,30,.5) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-trust {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255,178,0,.45);
  border-radius: 999px;
  padding: .42rem .9rem;
  margin-bottom: 1.3rem;
  background: rgba(28,28,30,.35);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero-sub {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 1.6rem;
}
.hero-sub strong { color: var(--gold); font-weight: 700; }

.hero-ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.hero-ticks li {
  position: relative;
  padding-left: 1.85rem;
  font-weight: 500;
  font-size: .98rem;
  color: rgba(255,255,255,.92);
}
.hero-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: 84px;
}
.form-head {
  background: var(--charcoal);
  color: var(--white);
  padding: 1.4rem 1.6rem 1.3rem;
}
.form-head h2 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.form-head p { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.5; }

.form-card form { padding: 1.4rem 1.6rem .3rem; }

.hidden-field { display: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.field { margin-bottom: .95rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .32rem;
}
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,178,0,.22);
}
.field input.is-invalid,
.field select.is-invalid { border-color: #d6453d; }

.field select:has(option[value=""]:checked) { color: var(--grey); }

.privacy-note {
  font-size: .78rem;
  color: var(--grey);
  padding: .85rem 1.6rem 1.3rem;
  line-height: 1.5;
}
.privacy-note a { color: var(--grey); text-decoration: underline; }

.form-success {
  padding: 2.4rem 1.8rem 2.6rem;
  text-align: center;
}
.success-amp {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.form-success h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.form-success h2:focus { outline: none; }
.form-success p { font-size: .92rem; color: var(--grey); }
.form-success a { color: var(--charcoal); font-weight: 600; white-space: nowrap; }

/* ---------- Proof band (market stats) ---------- */
.proof-band { background: var(--charcoal); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: rgba(255,255,255,.03);
}
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.7rem);
  color: var(--gold);
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.45; }
.stat-source {
  margin-top: 1.6rem;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Steps ---------- */
.steps { background: var(--white); }
.steps h2 { margin-bottom: 2.2rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--white);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: .9rem;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .45rem; }
.step-card p { font-size: .93rem; color: var(--grey); }

/* ---------- Social proof ---------- */
.social {
  position: relative;
  background: var(--panel);
  overflow: hidden;
}
.social-amp {
  position: absolute;
  right: -4rem;
  top: -4rem;
  font-family: var(--font-head);
  font-size: 26rem;
  font-weight: 800;
  line-height: 1;
  color: #E9E9EB;
  user-select: none;
  pointer-events: none;
}
.social-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.social-copy h2 { margin-bottom: 1rem; }
.social-copy p { color: var(--grey); max-width: 54ch; }
.social-copy strong { color: var(--charcoal); }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card p { font-size: .98rem; color: var(--charcoal); }
.quote-card footer {
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey);
}
.quote-card footer::before { content: "— "; color: var(--gold-deep); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--charcoal);
  text-align: center;
}
.final-cta h2 { color: var(--white); margin-bottom: 1rem; }
.final-cta p {
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto 1.8rem;
}
.final-cta p a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1c1e;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  padding: 2.6rem 0 2.8rem;
  font-size: .9rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.logo-footer .logo-word { font-size: 1.1rem; }
.site-footer a { color: var(--white); text-decoration: none; white-space: nowrap; }
.footer-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-decoration: underline;
}
.fine-print {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  max-width: 72ch;
  line-height: 1.6;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.sticky-cta .btn { flex: 1; padding: .8rem .5rem; font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .social-amp { font-size: 18rem; right: -6rem; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .sticky-cta { display: flex; }
  .header-phone-label { display: none; }
  .hero-ticks { display: none; }
  .hero-sub { margin-bottom: 1.4rem; }
  .stat-grid { gap: .8rem; }
  .stat-card { padding: 1.15rem 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
