/* =====================================================================
   David Reid Homes — Franchise recruitment site (demo)
   Design system. Premium, editorial, modern.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0d1620;   /* deep near-black navy */
  --ink-2:      #14222f;
  --ink-3:      #1c2d3c;
  --bg:         #ffffff;
  --bone:       #f6f2ea;   /* warm off-white */
  --bone-2:     #efe9dd;
  --green:      #668f80;   /* DRH brand green — primary CTA / info-pack action */
  --green-2:    #4d7a69;   /* deep green — hovers */
  --gold:       #b08948;   /* warm bronze/gold */
  --gold-2:     #c9a667;
  --gold-soft:  rgba(176,137,72,.12);
  --text:       #18222c;
  --muted:      #5b6671;
  --muted-2:    #8a949d;
  --line:       rgba(13,22,32,.12);
  --line-soft:  rgba(13,22,32,.07);
  --on-dark:    #eef1f4;
  --on-dark-mut:#9fb0bf;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 80px);
  --radius: 4px;
  --shadow: 0 24px 60px -28px rgba(13,22,32,.4);
  --shadow-soft: 0 18px 50px -30px rgba(13,22,32,.35);

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  font-weight: 380;
}
h2.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  opacity: .7;
}
.eyebrow.center { justify-content: center; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); line-height: 1.6; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; }
.pad { padding: clamp(72px, 9vw, 140px) 0; }
.pad-sm { padding: clamp(48px, 6vw, 90px) 0; }
.bg-bone { background: var(--bone); }
.bg-bone-2 { background: var(--bone-2); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .lead, .bg-ink p { color: var(--on-dark-mut); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxch { max-width: 62ch; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 14px 30px -14px rgba(176,137,72,.7); }
.btn-gold:hover { background: #9c7a3d; transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 14px 30px -14px rgba(102,143,128,.7); }
.btn-green:hover { background: var(--green-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.textlink {
  font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.textlink:hover { gap: .8rem; border-color: var(--gold); }

/* =====================================================================
   Header / Nav
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.site-header.scrolled {
  background: rgba(13,22,32,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 13px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: .85rem; color: #fff; }
.brand-logo {
  height: 100px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: height .4s var(--ease);
}
.site-header.scrolled .brand-logo { height: 46px; }
.brand-tag {
  font-family: var(--ff-body);
  font-size: .58rem; line-height: 1.3; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600; white-space: nowrap;
  padding-left: .85rem; border-left: 1px solid rgba(255,255,255,.22);
}
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.6rem); }
.nav-links { display: flex; gap: clamp(1.2rem, 2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .015em;
  color: rgba(255,255,255,.8); white-space: nowrap;
  padding: 6px 0; position: relative;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; width: 0; margin: 0 auto;
  background: var(--gold-2); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; padding-left: clamp(1.2rem, 2vw, 1.8rem); border-left: 1px solid rgba(255,255,255,.18); }
.nav-phone {
  font-size: .85rem; font-weight: 600; color: #fff; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav-phone:hover { color: var(--gold-2); }
.nav-phone .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-soft); flex-shrink: 0; }

.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; transition: .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding: 140px 0 90px;
}
.hero.compact { min-height: 72vh; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,22,32,.92) 0%, rgba(13,22,32,.72) 38%, rgba(13,22,32,.28) 75%, rgba(13,22,32,.45) 100%),
    linear-gradient(0deg, rgba(13,22,32,.6), rgba(13,22,32,0) 45%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { color: #fff; margin: 0 0 1.5rem; }
.hero .sub { font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: rgba(255,255,255,.86); max-width: 60ch; margin-bottom: 2.4rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.6);
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4; transform-origin: top;} 50%{ transform: scaleY(1); opacity:1; transform-origin: top;} }

/* =====================================================================
   Reveal animation
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue .line { animation: none; } }

/* =====================================================================
   Positioning band
   ===================================================================== */
.statement { font-family: var(--ff-display); font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.28; font-weight: 380; letter-spacing: -0.01em; }
.statement strong { font-weight: 600; color: inherit; }
.statement .gold { color: var(--gold); font-style: italic; }
.bg-ink .statement .gold { color: var(--gold-2); }

/* =====================================================================
   Cards grid (what you get)
   ===================================================================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 2.2rem 1.9rem;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--line); }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.5rem;
  background: var(--gold-soft); color: var(--gold);
}
.card .ic svg { width: 24px; height: 24px; stroke-width: 1.5; }
.card h3 { margin-bottom: .6rem; font-size: 1.28rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

/* feature card on dark */
.bg-ink .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.bg-ink .card h3 { color: #fff; }
.bg-ink .card p { color: var(--on-dark-mut); }
.bg-ink .card .ic { background: rgba(201,166,103,.14); color: var(--gold-2); }

/* =====================================================================
   Belief band (full-bleed dark w/ image)
   ===================================================================== */
.belief { position: relative; color: #fff; text-align: center; overflow: hidden; padding: clamp(90px,12vw,170px) 0; }
.belief-bg { position: absolute; inset: 0; z-index: 0; }
.belief-bg img { width: 100%; height: 100%; object-fit: cover; }
.belief-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13,22,32,.86), rgba(13,22,32,.78)); }
.belief-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.belief h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1rem; }
.belief .sub { color: var(--gold-2); font-size: clamp(1.1rem, 2vw, 1.5rem); font-family: var(--ff-display); font-style: italic; margin-bottom: 1.6rem; }
.belief p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 auto 3rem; }
.callouts { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; max-width: 760px; margin: 0 auto; }
.callout { text-align: center; }
.callout .ic { width: 46px; height: 46px; margin: 0 auto 1rem; color: var(--gold-2); display: grid; place-items: center; }
.callout .ic svg { width: 26px; height: 26px; stroke-width: 1.4; }
.callout h4 { font-size: 1.15rem; color: #fff; margin-bottom: .35rem; }
.callout p { font-size: .9rem; color: rgba(255,255,255,.72); margin: 0; }

/* =====================================================================
   "Is this you" profile panels
   ===================================================================== */
.profiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.profile {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.profile:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.profile .ph { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.profile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.profile:hover .ph img { transform: scale(1.06); }
.profile .ph .num { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-family: var(--ff-display); font-size: 2.4rem; color: #fff; opacity: .92; }
.profile .ph::after { content:""; position:absolute; inset:0; background: linear-gradient(rgba(13,22,32,0) 40%, rgba(13,22,32,.7)); }
.profile .bd { padding: 1.7rem 1.6rem 2rem; }
.profile h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.profile p { color: var(--muted); font-size: .96rem; margin: 0; }
.licence-line {
  margin-top: 40px; text-align: center;
  font-family: var(--ff-display); font-size: clamp(1.3rem,2.4vw,1.9rem);
  line-height: 1.35; max-width: 820px; margin-left: auto; margin-right: auto;
}
.licence-line strong { color: var(--gold); font-weight: 500; }

/* =====================================================================
   Feature rows (alternating)
   ===================================================================== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(60px, 8vw, 120px); }
.feature-row.rev .f-media { order: 2; }
.feature-row .f-media { position: relative; }
.feature-row .f-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-row .f-num {
  position: absolute; top: -28px; left: -10px; z-index: -1;
  font-family: var(--ff-display); font-size: clamp(5rem, 10vw, 9rem);
  color: var(--gold); opacity: .14; line-height: .8; font-weight: 500;
}
.feature-row .f-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.feature-row .f-body p { color: var(--muted); }
.feature-row .f-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1rem; }
.tick-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.tick-list li { position: relative; padding-left: 2rem; margin-bottom: .85rem; color: var(--muted); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.bg-ink .tick-list li { color: var(--on-dark-mut); }

/* =====================================================================
   Platform spotlight
   ===================================================================== */
.platform { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.platform .p-media { position: relative; }
.platform .p-media img { border-radius: 8px; box-shadow: var(--shadow); }
.platform .p-media { overflow: visible; }
.platform .glow { position: absolute; top: 0; right: 0; width: 55%; height: 55%; background: radial-gradient(circle, rgba(201,166,103,.4), transparent 70%); filter: blur(40px); z-index: 0; pointer-events: none; }

/* =====================================================================
   Stat strip
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.stat { text-align: center; padding: 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); height: 56%; width: 1px; background: rgba(255,255,255,.14); }
.stat .num { font-family: var(--ff-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-2); line-height: 1; font-weight: 400; }
.stat .lbl { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-top: .9rem; }

/* =====================================================================
   Testimonial slider
   ===================================================================== */
.slider { position: relative; }
.slides { overflow: hidden; border-radius: 6px; }
.slides-track { display: flex; transition: transform .7s var(--ease); }
.slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.slide .s-media { aspect-ratio: 1/1; }
.slide .s-media img { width: 100%; height: 100%; object-fit: cover; }
.slide .s-body { background: var(--ink); color: #fff; padding: clamp(34px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.slide .s-quote { font-family: var(--ff-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; color: #fff; margin-bottom: 1.8rem; }
.slide .s-quote::before { content: "\201C"; color: var(--gold-2); font-size: 2.4em; line-height: 0; vertical-align: -.45em; margin-right: .1em; }
.slide .s-meta { color: var(--gold-2); font-weight: 600; letter-spacing: .02em; }
.slide .s-meta span { display: block; color: var(--on-dark-mut); font-weight: 400; font-size: .9rem; margin-top: .35rem; letter-spacing: 0; }
.slide .s-desc { color: var(--on-dark-mut); font-size: .95rem; margin-top: 1.4rem; max-width: 46ch; }
.slider-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.8rem; }
.dots { display: flex; gap: 10px; }
.dot-btn { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); padding: 0; transition: .3s var(--ease); }
.dot-btn.active { background: var(--gold); width: 28px; border-radius: 5px; }
.arrows { display: flex; gap: 10px; }
.arrow-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; transition: .3s var(--ease); }
.arrow-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.arrow-btn svg { width: 20px; height: 20px; }

/* =====================================================================
   Team teaser
   ===================================================================== */
.team-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.team-card { text-align: center; }
.team-card .ph { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); margin-bottom: 1.3rem; }
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .9s var(--ease), filter .6s var(--ease); }
.team-card:hover .ph img { transform: scale(1.05); filter: none; }
.team-card h3 { font-size: 1.35rem; }
.team-card .role { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .04em; margin-top: .3rem; }
.team-card .cred { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

/* big team profiles (team page) */
.bio-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px,6vw,80px); align-items: center; }
.bio-row + .bio-row { margin-top: clamp(56px,7vw,110px); }
/* reversed rows: swap column widths too, so the image column stays .85fr (same size as non-reversed rows) */
.bio-row.rev { grid-template-columns: 1.15fr .85fr; }
.bio-row.rev .bio-media { order: 2; }
.bio-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 28%; border-radius: var(--radius); box-shadow: var(--shadow); }
/* keep faces well-framed when chest-up headshots crop into portrait/tall frames */
.team-card .ph img { object-position: center 28%; }
.bio-body .role { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .8rem; }
.bio-body h3 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin-bottom: 1.1rem; }
.bio-cred { margin-top: 1.6rem; padding: 1.1rem 1.4rem; border-left: 3px solid var(--gold); background: var(--bone); font-style: italic; color: var(--ink); }

/* =====================================================================
   Roadmap flow
   ===================================================================== */
.roadmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; }
.road-step { text-align: center; padding: 0 14px; position: relative; }
.road-step::before { content: ""; position: absolute; top: 27px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.road-step:first-child::before { display: none; }
.road-node {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.4rem;
  background: var(--bg); border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; position: relative; z-index: 2;
  font-family: var(--ff-display); font-size: 1.4rem; transition: .4s var(--ease);
}
.road-step:hover .road-node { background: var(--gold); color: #fff; transform: scale(1.08); }
.road-step h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.road-step p { font-size: .87rem; color: var(--muted); margin: 0; }
.bg-ink .road-step::before { background: rgba(255,255,255,.14); }
.bg-ink .road-node { background: var(--ink-2); }
.bg-ink .road-step h4 { color: #fff; }

/* vertical roadmap (opportunity page) */
.roadmap-v { max-width: 760px; margin: 0 auto; position: relative; }
.roadmap-v::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.rv-step { display: grid; grid-template-columns: 56px 1fr; gap: 1.6rem; align-items: start; padding-bottom: 2.6rem; position: relative; }
.rv-step:last-child { padding-bottom: 0; }
.rv-node { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--ff-display); font-size: 1.4rem; z-index: 2; }
.rv-body h4 { font-size: 1.3rem; margin-bottom: .4rem; }
.rv-body p { color: var(--muted); margin: 0; }

/* =====================================================================
   Comparison table
   ===================================================================== */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft); }
.compare .col-head { padding: 1.6rem; font-family: var(--ff-display); font-size: 1.3rem; }
.compare .c-left .col-head { background: var(--bone-2); color: var(--muted); }
.compare .c-right .col-head { background: var(--ink); color: #fff; }
.compare .c-right .col-head { position: relative; }
.compare .c-right .col-head::after { content: "The DRH Edge"; position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%); font-family: var(--ff-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.compare .row { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line-soft); font-size: .98rem; min-height: 92px; display: flex; align-items: center; }
.compare .c-left .row { background: #faf8f4; color: var(--muted); }
.compare .c-right .row { background: var(--bg); color: var(--ink); font-weight: 500; }
.compare .c-right .row { position: relative; padding-left: 3rem; }
.compare .c-right .row::before { content: ""; position: absolute; left: 1.6rem; top: 50%; margin-top: -3px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* =====================================================================
   Capped royalty graphic
   ===================================================================== */
.royalty { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.royalty-graphic { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2.4rem; box-shadow: var(--shadow-soft); }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 230px; margin-bottom: 1.4rem; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.bar .build { background: linear-gradient(var(--ink-3), var(--ink)); border-radius: 4px 4px 0 0; }
.bar .roy { background: var(--gold); border-radius: 4px 4px 0 0; margin-top: 3px; }
.bar .blbl { text-align: center; font-size: .72rem; color: var(--muted); margin-top: .6rem; }
.royalty-legend { display: flex; gap: 1.5rem; font-size: .82rem; color: var(--muted); }
.royalty-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.royalty-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cap-flag { margin-top: 1.2rem; padding: .9rem 1.1rem; background: var(--gold-soft); border-radius: var(--radius); font-size: .9rem; color: var(--ink); border-left: 3px solid var(--gold); }

/* =====================================================================
   Accordion (FAQ)
   ===================================================================== */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group-title { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; background: none; border: 0; text-align: left; padding: 1.5rem 3rem 1.5rem 0; position: relative; font-family: var(--ff-display); font-size: clamp(1.1rem,1.7vw,1.4rem); color: var(--ink); transition: color .3s; }
.acc-head:hover { color: var(--gold); }
.acc-head .pm { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }
.acc-head .pm::before, .acc-head .pm::after { content: ""; position: absolute; background: var(--gold); transition: .35s var(--ease); }
.acc-head .pm::before { left: 0; right: 0; top: 10px; height: 2px; }
.acc-head .pm::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.acc.open .pm::after { transform: rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-body-inner { padding: 0 3rem 1.7rem 0; color: var(--muted); }
.acc-body-inner a { color: var(--gold); border-bottom: 1px solid transparent; }
.acc-body-inner a:hover { border-color: var(--gold); }

/* =====================================================================
   Story cards / grid
   ===================================================================== */
.story-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,70px); align-items: center; }
.story-feature .sf-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.story-feature .sf-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.story-feature .sf-media img:first-child { grid-row: span 2; }
.beat { margin-bottom: 1.5rem; }
.beat h4 { font-family: var(--ff-body); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.beat p { color: var(--muted); margin: 0; }
.pullquote { font-family: var(--ff-display); font-size: clamp(1.3rem,2.2vw,1.7rem); line-height: 1.4; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 1.6rem; margin: 2rem 0 0; }
.pullquote cite { display: block; font-family: var(--ff-body); font-style: normal; font-size: .9rem; color: var(--gold); font-weight: 600; margin-top: 1rem; }

.story-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.story-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 130px 1fr; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.story-card .sc-ph { overflow: hidden; }
.story-card .sc-ph img { width: 100%; height: 100%; object-fit: cover; }
.story-card .sc-bd { padding: 1.5rem 1.6rem; }
.story-card h4 { font-size: 1.15rem; margin-bottom: .2rem; }
.story-card .reg { color: var(--gold); font-size: .8rem; font-weight: 600; margin-bottom: .7rem; }
.story-card p { font-size: .9rem; color: var(--muted); margin: 0 0 .8rem; }
.story-card q { font-style: italic; color: var(--ink); font-size: .92rem; }

.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.video-grid.v3 { max-width: 1000px; margin-inline: auto; }
.video-tile { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-tile:hover img { transform: scale(1.07); }
.video-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13,22,32,0) 45%, rgba(13,22,32,.82)); }
.video-tile .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2; transition: .3s var(--ease); }
.video-tile:hover .play { background: var(--gold); }
.video-tile .play svg { width: 20px; height: 20px; margin-left: 3px; color: var(--ink); }
.video-tile:hover .play svg { color: #fff; }
.video-tile .vmeta { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; }
.video-tile .vmeta strong { display: block; color: #fff; font-size: .95rem; }
.video-tile .vmeta span { font-size: .76rem; color: rgba(255,255,255,.7); }

/* YouTube modal player */
.yt-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
.yt-modal.show { display: flex; }
.yt-modal-backdrop { position: absolute; inset: 0; background: rgba(8,12,18,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); }
.yt-modal.show .yt-modal-backdrop { opacity: 1; }
.yt-modal-inner { position: relative; z-index: 2; width: min(980px, 100%); transform: scale(.95); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.yt-modal.show .yt-modal-inner { transform: scale(1); opacity: 1; }
.yt-modal-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.yt-modal-frame iframe, .yt-modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.yt-modal-close { position: absolute; top: -48px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .3s var(--ease), transform .3s var(--ease); }
.yt-modal-close:hover { background: var(--gold); transform: rotate(90deg); }
@media (max-width: 560px) { .yt-modal-close { top: -44px; } }

/* =====================================================================
   Final CTA + form
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem,3.6vw,3rem); margin-bottom: 1rem; }
.cta-copy p { color: var(--on-dark-mut); max-width: 46ch; }
.cta-copy .pack { margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem; }
.cta-copy .pack-thumb { width: 132px; height: auto; display: block; flex-shrink: 0; border-radius: 4px; box-shadow: 0 24px 46px -18px rgba(0,0,0,.65); transform: rotate(-2.5deg); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cta-copy .pack:hover .pack-thumb { transform: rotate(0) translateY(-6px); box-shadow: 0 30px 55px -18px rgba(0,0,0,.7); }
.cta-copy .pack-note { font-size: .85rem; color: var(--on-dark-mut); }

.form-card { background: #fff; color: var(--text); border-radius: 8px; padding: clamp(28px,3vw,42px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--ink); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 1rem; background: var(--bone); transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-card .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form-reassure { font-size: .82rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: #0a1119; color: var(--on-dark-mut); padding: clamp(56px,7vw,90px) 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .b-name { font-family: var(--ff-display); font-size: 1.5rem; color: #fff; }
.footer-logo { height: 88px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .b-sub { font-size: .58rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-2); margin-top: 10px; font-weight: 600; }
.footer-brand p { margin-top: 1.3rem; font-size: .92rem; max-width: 34ch; }
.foot-col h5 { color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.2rem; font-family: var(--ff-body); font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .7rem; }
.foot-col a { font-size: .92rem; transition: color .3s; }
.foot-col a:hover { color: var(--gold-2); }
.foot-contact div { margin-bottom: .9rem; font-size: .92rem; }
.foot-contact strong { color: #fff; display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; font-weight: 600; }
.foot-contact a { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 2rem; font-size: .82rem; }
.footer-bottom .demo-tag { color: var(--gold-2); font-weight: 600; }

/* =====================================================================
   Misc
   ===================================================================== */
.kicker-band { display: inline-flex; align-items: center; gap: .7rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 100px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.kicker-band .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.divider-quote { font-family: var(--ff-display); font-size: clamp(1.7rem,3.6vw,3rem); line-height: 1.3; text-align: center; max-width: 920px; margin: 0 auto; font-style: italic; }
.divider-quote .gold { color: var(--gold); }
.client-voice { max-width: 720px; margin: 0 auto; text-align: center; }
.client-voice .cv-quote { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.5rem,2.8vw,2.2rem); color: var(--ink); margin-bottom: 1rem; }
.client-voice cite { color: var(--gold); font-weight: 600; font-style: normal; }

/* =====================================================================
   Embedded franchise contact form — skin UIKit markup to match the site
   (the embed ships UIKit class names but no UIKit stylesheet, so we style
   them ourselves; !important + #id specificity to beat its injected styles)
   ===================================================================== */
#drh-franchise-form { font-family: var(--ff-body); }
#drh-franchise-form .uk-form-stacked,
#drh-franchise-form form { display: block; width: 100%; }
#drh-franchise-form .uk-margin { margin: 0 0 1.15rem !important; }
#drh-franchise-form .uk-margin-small-top { margin-top: .4rem !important; }
#drh-franchise-form .uk-form-label {
  display: block !important;
  font-family: var(--ff-body) !important;
  font-size: .74rem !important; font-weight: 600 !important;
  letter-spacing: .08em !important; text-transform: uppercase !important;
  color: var(--muted) !important; margin: 0 0 .5rem !important; line-height: 1.3 !important;
}
#drh-franchise-form .uk-input,
#drh-franchise-form .uk-textarea,
#drh-franchise-form .uk-select,
#drh-franchise-form input,
#drh-franchise-form textarea,
#drh-franchise-form select {
  width: 100% !important; box-sizing: border-box !important;
  padding: .85rem 1rem !important;
  border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
  background: var(--bone) !important; color: var(--ink) !important;
  font-family: var(--ff-body) !important; font-size: 1rem !important; line-height: 1.4 !important;
  height: auto !important; min-height: 0 !important; box-shadow: none !important;
  transition: border-color .25s var(--ease), background .25s var(--ease) !important;
}
#drh-franchise-form .uk-textarea,
#drh-franchise-form textarea { min-height: 104px !important; resize: vertical !important; }
#drh-franchise-form input::placeholder,
#drh-franchise-form textarea::placeholder { color: var(--muted-2) !important; opacity: 1 !important; font-family: var(--ff-body) !important; }
#drh-franchise-form input:focus,
#drh-franchise-form textarea:focus,
#drh-franchise-form select:focus { outline: none !important; border-color: var(--gold) !important; background: #fff !important; }
#drh-franchise-form .uk-text-muted { color: var(--muted) !important; }
#drh-franchise-form .uk-text-small { font-size: .82rem !important; line-height: 1.5 !important; }
#drh-franchise-form .uk-button,
#drh-franchise-form .uk-button-primary,
#drh-franchise-form button[type="submit"] {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: .5rem !important;
  width: 100% !important; margin-top: .5rem !important;
  background: var(--green) !important; color: #fff !important; border: 0 !important; border-radius: var(--radius) !important;
  padding: 1.05rem 1.9rem !important;
  font-family: var(--ff-body) !important; font-size: .82rem !important; font-weight: 600 !important;
  letter-spacing: .12em !important; text-transform: uppercase !important; line-height: 1 !important;
  cursor: pointer !important; box-shadow: 0 14px 30px -14px rgba(102,143,128,.7) !important;
  transition: background .3s var(--ease), transform .3s var(--ease) !important;
}
#drh-franchise-form .uk-button:hover,
#drh-franchise-form .uk-button-primary:hover,
#drh-franchise-form button[type="submit"]:hover { background: var(--green-2) !important; transform: translateY(-2px) !important; }
#drh-franchise-form .uk-width-1-1 { width: 100% !important; }
/* keep any embed-rendered heading readable on the white inline card */
#drh-franchise-form .drh-franchise-step-title { color: var(--ink) !important; }
#drh-franchise-form .drh-franchise-step-subtitle { color: var(--muted) !important; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .roadmap { grid-template-columns: repeat(3,1fr); row-gap: 40px; }
  .road-step:nth-child(-n+3)::before { display: none; }
  .video-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 84vw); background: var(--ink); flex-direction: column; align-items: stretch; justify-content: center; padding: 80px 40px; gap: 0; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: var(--shadow); }
  body.menu-open .nav { transform: none; }
  body.menu-open .nav-links, body.menu-open .nav-phone { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); white-space: normal; }
  .nav-cta { border-left: 0; padding-left: 0; margin-top: 1.6rem; }
  .nav-phone { font-size: 1.05rem; }
  .brand-logo { height: 62px; }
  .site-header.scrolled .brand-logo { height: 42px; }
  .nav .btn { margin-top: 1.2rem; justify-content: center; }
  .menu-toggle { z-index: 110; }

  .grid-2, .grid-3, .grid-4, .profiles, .callouts, .team-row, .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .feature-row, .feature-row.rev .f-media, .platform, .royalty, .story-feature, .bio-row, .bio-row.rev .bio-media, .compare, .cta-grid, .slide { grid-template-columns: 1fr; }
  .feature-row.rev .f-media, .bio-row.rev .bio-media { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px 16px; }
  .compare .c-left { display: none; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(3,1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .slide .s-media { aspect-ratio: 16/10; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .roadmap { grid-template-columns: 1fr; }
  .road-step::before { display: none !important; }
  .video-grid { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 100px 1fr; }
}
