/* ==========================================================================
   Qualified Pros: Coastal Luxury Design System
   Sleek, white, bright. Sky blue, warm sand. Generous whitespace.
   ========================================================================== */

:root {
  /* Brand color palette (3-tier grey-blue Coastal Luxury) */
  --qp-blue-deep: #264F75;        /* deep blue for buttons and logo wordmark */
  --qp-blue-mid: #356FA3;         /* mid blue for dark surfaces with white text (trust strip, book band, pros CTA) */
  --qp-brand-sky: #5089BF;        /* sky blue for italic accents and decorative elements (bars, dots, quote marks) */
  --qp-blue-light: #A8C4DD;       /* very light grey-blue for icon backgrounds */
  --qp-blue-bg: #EEF3F8;           /* almost-white pale grey-blue for section backgrounds */
  --qp-blue-hover: #173752;        /* darker for button hover and pressed states */
  --qp-sand: #F7F1E8;              /* warm pale sand */
  --qp-sand-deep: #E8DCC4;         /* deeper warm sand for borders/separators */
  --qp-ink: #1A1A2E;               /* deep ink for headings */
  --qp-text: #4A4A52;              /* body text, slightly lifted from ink */
  --qp-muted: #7B7E85;             /* meta, captions */
  --qp-line: #E5EAF0;              /* subtle borders */
  --qp-white: #FFFFFF;
  --qp-off-white: #FAFBFC;

  /* Typography (Playfair Display + Inter; italic serif handles accent words) */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-accent: 'Allura', cursive;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(15, 53, 89, 0.06), 0 8px 24px rgba(15, 53, 89, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(15, 53, 89, 0.10), 0 16px 40px rgba(15, 53, 89, 0.08);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--qp-text);
  background: var(--qp-white);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--qp-blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--qp-blue-deep); }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--qp-ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}

h4 {
  font-family: var(--font-sans);
  color: var(--qp-ink);
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

/* Script accent — for offset blue words inside headings */
h1 em, h2 em, h3 em,
.hero h1 em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 400;
  color: var(--qp-brand-sky);
  -webkit-text-stroke: 0.8px var(--qp-brand-sky);
  font-size: 1.5em;
  letter-spacing: 0;
  line-height: 0.85;
  display: inline-block;
  vertical-align: baseline;
  transform: translateY(0.1em);
}

p { margin: 0 0 1em; }
p.lede { font-size: 1.18rem; color: var(--qp-text); line-height: 1.65; font-weight: 400; }

ul { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--qp-brand-sky);
  margin-bottom: 1em;
  display: block;
}

/* Layout primitives */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(60px, 9vw, 110px) 0; }

.section-light { background: var(--qp-off-white); }
.section-blue { background: var(--qp-blue-bg); }
.section-sand { background: var(--qp-sand); }

.section-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--qp-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--qp-blue-deep);
  color: var(--qp-white);
  border-color: var(--qp-blue-deep);
}
.btn-primary:hover {
  background: var(--qp-blue-hover);
  border-color: var(--qp-blue-hover);
  color: var(--qp-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 53, 89, 0.20);
}

.btn-ghost {
  background: transparent;
  color: var(--qp-blue-deep);
  border-color: var(--qp-blue-deep);
}
.btn-ghost:hover {
  background: var(--qp-blue-deep);
  color: var(--qp-white);
}

.btn-light {
  background: var(--qp-white);
  color: var(--qp-blue-deep);
  border-color: var(--qp-blue-light);
  box-shadow: 0 1px 3px rgba(15, 53, 89, 0.12);
}
.btn-light:hover {
  border-color: var(--qp-blue-deep);
  color: var(--qp-blue-deep);
}

.btn-large { padding: 17px 36px; font-size: 1rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--qp-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--qp-ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.nav-logo span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--qp-blue-deep);
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .nav-logo { font-size: 1.35rem; }
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--qp-text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--qp-blue-deep); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(80px, 12vw, 140px);
  background:
    radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(91, 163, 216, 0.10), transparent 60%),
    linear-gradient(180deg, var(--qp-white) 0%, var(--qp-blue-bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .lede { margin-bottom: 32px; max-width: 540px; }
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse 45% 30% at 50% 8%, rgba(255, 255, 255, 0.40), transparent 65%),
    radial-gradient(ellipse 50% 50% at 95% 20%, rgba(255, 220, 180, 0.22), transparent 55%),
    linear-gradient(180deg, #DEEAF5 0%, #C8DDF0 55%, #B8D2F2 100%);
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(38, 79, 117, 0.08),
    0 12px 32px -8px rgba(38, 79, 117, 0.18),
    0 28px 64px -16px rgba(38, 79, 117, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  overflow: hidden;
}
.hero-book {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(-2deg);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-book:hover { transform: rotate(0deg) scale(1.02); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  /* Portrait book needs a portrait frame on mobile; landscape (16/10) clipped the
     cover top/bottom. Match the desktop 4/5 so the full cover is always visible. */
  .hero-visual { aspect-ratio: 4 / 5; max-width: 360px; margin: 0 auto; }
}

/* Trust strip */
.trust-strip {
  background: var(--qp-blue-mid);
  color: var(--qp-white);
  padding: 22px 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.trust-strip-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { color: var(--qp-blue-light); flex-shrink: 0; }

/* Trade grid */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) {
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trade-grid { grid-template-columns: 1fr; }
}
.trade-card {
  background: var(--qp-white);
  border: 1px solid var(--qp-line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--qp-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 168px;
  justify-content: center;
}
.trade-card:hover {
  border-color: var(--qp-blue-mid);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  color: var(--qp-blue-deep);
}
.trade-card.trade-card-live {
  border-color: var(--qp-sand-deep);
  background: linear-gradient(180deg, var(--qp-white) 0%, var(--qp-sand) 200%);
}
.trade-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--qp-blue-mid);
}
.trade-card-icon svg { width: 100%; height: 100%; }
.trade-card-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.trade-card-status {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--qp-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.trade-card-live .trade-card-status { color: var(--qp-blue-mid); }

/* "How we pick" panel */
.pick-panel {
  background: var(--qp-white);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--qp-line);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.pick-panel h2 { margin-bottom: 24px; }
.pick-panel p { color: var(--qp-text); font-size: 1.1rem; margin: 0 auto; max-width: 640px; line-height: 1.7; }

/* Book block */
.book-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.book-intro-grid .book-mockup { margin: 0 auto; }
.book-form-wrap {
  max-width: 500px;
  margin: 32px auto 0;
}
.book-form-arrow {
  display: block;
  width: 104px;
  height: auto;
  margin: 14px auto 0;
  color: var(--qp-brand-sky);
}
.book-mockup {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, var(--qp-blue-deep) 0%, var(--qp-blue-mid) 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(15, 53, 89, 0.40), 0 18px 36px -18px rgba(15, 53, 89, 0.30);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 36px;
  color: var(--qp-white);
  max-width: 420px;
}
.book-mockup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.18), transparent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  z-index: 2;
}
.book-mockup.book-mockup-image {
  padding: 0;
  background: var(--qp-white);
  overflow: hidden;
  /* Physical book has square corners; cancel the CSS-mockup rounding. */
  border-radius: 0;
  /* Match the frame to the real cover's ratio (1154x1500) so the full
     cover always shows — no edge crop at any breakpoint. */
  aspect-ratio: 1154 / 1500;
}
/* Real cover art fills the frame edge-to-edge; suppress the decorative
   gradient "spine" meant for the CSS-drawn mockup. */
.book-mockup.book-mockup-image::before { display: none; }
.book-mockup.book-mockup-image img {
  width: 100%;
  height: 100%;
  /* contain guarantees the cover is never cropped, even if the source
     image's ratio changes; the frame above matches it so there's no letterbox. */
  object-fit: contain;
  display: block;
}
.book-mockup-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-size: 0.74rem;
  opacity: 0.85;
  font-weight: 500;
}
.book-mockup-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-style: italic;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 24px;
}
.book-mockup-byline {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  opacity: 0.82;
  letter-spacing: 0.02em;
}

@media (max-width: 800px) {
  .book-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-mockup { margin: 0 auto; }
}

/* GHL form embed slot styling */
.form-slot {
  background: var(--qp-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-slot.form-slot-bordered {
  border: 1px dashed var(--qp-blue-light);
  background: var(--qp-off-white);
}
.form-slot-placeholder {
  text-align: center;
  padding: 40px 24px;
  color: var(--qp-muted);
}
.form-slot-placeholder strong { color: var(--qp-blue-deep); display: block; margin-bottom: 8px; font-size: 1rem; }
.form-slot-placeholder code {
  display: inline-block;
  background: var(--qp-blue-bg);
  color: var(--qp-blue-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Calvin's note */
.calvin-section { padding: clamp(36px, 5vw, 60px) 0; }
.calvin-block {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.calvin-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}
.calvin-card {
  flex: 1;
  background: var(--qp-white);
  border-left: 4px solid var(--qp-brand-sky);
  border-radius: var(--radius-md);
  padding: 28px 34px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 680px) {
  .calvin-block { flex-direction: column; gap: 16px; }
  .calvin-photo { width: 110px; height: 110px; }
  .calvin-card { padding: 24px 26px; }
}
.calvin-card p {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--qp-ink);
  margin-bottom: 16px;
}
.calvin-card .quote-mark { margin-bottom: 12px; }
.calvin-card cite {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--qp-muted);
  font-style: normal;
  letter-spacing: 0.02em;
}
.calvin-card cite strong { color: var(--qp-ink); font-weight: 600; }

/* For pros mini block */
.pros-cta {
  background: var(--qp-blue-mid);
  color: var(--qp-white);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.pros-cta h2 { color: var(--qp-white); margin-bottom: 16px; }
.pros-cta h2 em { color: var(--qp-sand); }
.pros-cta p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 28px; }
.pros-cta .btn-light { border-color: rgba(255,255,255,0.25); }

/* Footer */
.site-footer {
  background: var(--qp-white);
  color: var(--qp-text);
  padding: 64px 0 32px;
  font-size: 0.92rem;
  border-top: 1px solid var(--qp-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 { color: var(--qp-ink); font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--qp-text); }
.site-footer a:hover { color: var(--qp-blue-mid); }
.footer-brand .nav-logo { color: var(--qp-ink); display: inline-flex; margin-bottom: 14px; }
.footer-brand .nav-logo span { color: var(--qp-blue-deep); }
.footer-brand p { max-width: 280px; line-height: 1.65; color: var(--qp-muted); }
.footer-bottom {
  border-top: 1px solid var(--qp-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--qp-muted);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ==========================================================================
   Profile pages
   ========================================================================== */

.profile-hero {
  background: linear-gradient(180deg, var(--qp-white) 0%, var(--qp-blue-bg) 100%);
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(36px, 4.5vw, 60px);
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.profile-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #DEEAF5 0%, #C8DDF0 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.profile-portrait::before {
  content: "PRO PHOTO";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(15, 53, 89, 0.35);
  font-weight: 600;
}
.profile-portrait.has-image::before { display: none; }
.profile-portrait img.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}
.profile-portrait-tag {
  position: relative;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--qp-text);
  border-left: 3px solid var(--qp-brand-sky);
  z-index: 2;
}
.profile-portrait-tag strong { color: var(--qp-ink); display: block; }

.profile-hero-meta { font-family: var(--font-sans); }
.profile-hero-meta .eyebrow { color: var(--qp-blue-mid); }
.profile-hero h1 { margin-bottom: 6px; }
.profile-hero h1 .business {
  display: block;
  font-family: var(--font-accent);
  font-style: normal;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: var(--qp-brand-sky);
  -webkit-text-stroke: 0.8px var(--qp-brand-sky);
  letter-spacing: 0.01em;
  margin-top: 4px;
  text-transform: none;
  line-height: 1;
}
.profile-trade-tag {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--qp-text);
  margin: 12px 0 24px;
}
.profile-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--qp-blue-deep);
  margin: 8px 0 24px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.profile-phone:hover { color: var(--qp-blue-mid); }
.profile-phone svg { color: var(--qp-blue-mid); flex-shrink: 0; }

@media (max-width: 900px) {
  .profile-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-portrait { max-width: 420px; aspect-ratio: 1 / 1; }
}

/* Compact profile hero: video-forward layout (video + CTAs above the fold) */
.profile-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.profile-identity-left {
  display: flex;
  align-items: center;
  gap: 22px;
}
.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--qp-white);
  box-shadow: var(--shadow-card);
}
.profile-identity .eyebrow { margin-bottom: 4px; }
.profile-identity h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.profile-identity .profile-phone {
  margin: 0;
  flex-shrink: 0;
}
.profile-hero .video-block { margin: 0; }
.profile-hero .video-frame { max-width: 100%; }
.profile-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
@media (max-width: 760px) {
  .profile-identity { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .profile-identity-left { flex-direction: column; text-align: center; gap: 14px; }
}

/* Video block */
.video-block {
  text-align: center;
}
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--qp-blue-mid);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 163, 216, 0.25), transparent 60%);
}
.video-play {
  position: relative;
  z-index: 2;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--qp-blue-deep);
}
.video-play svg { width: 32px; height: 32px; margin-left: 4px; }
.video-caption {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qp-muted);
}

/* Quote block */
.quote-block {
  background: var(--qp-sand);
  text-align: center;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  font-style: normal;
  line-height: 0.6;
  color: var(--qp-brand-sky);
  margin-bottom: 20px;
  display: block;
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--qp-ink);
  font-style: normal;
  font-weight: 400;
  max-width: 820px;
  margin: 0 auto 28px;
}
.quote-block cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--qp-text);
  letter-spacing: 0.02em;
}
.quote-block cite strong { color: var(--qp-ink); font-weight: 600; }

/* Quote with feature photo (bigger pro headshot beside the quote) */
.quote-feature {
  display: flex;
  align-items: center;
  gap: 52px;
}
.quote-feature .quote-photo {
  width: 340px;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.quote-feature .quote-content { flex: 1; text-align: left; }
.quote-feature .quote-content .quote-mark { margin-left: -4px; }
.quote-feature .quote-content blockquote { max-width: none; margin: 0 0 28px; }
.quote-lead {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--qp-muted);
  font-size: 1.02rem;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .quote-feature { flex-direction: column; gap: 28px; }
  .quote-feature .quote-photo { width: 240px; }
  .quote-feature .quote-content { text-align: center; }
  .quote-feature .quote-content blockquote { margin: 0 auto 28px; }
  .quote-feature .quote-content .quote-mark { margin-left: 0; }
}

/* Services + area split */
.services-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.services-grid--pro {
  grid-template-columns: 2fr 1fr;
  column-gap: 64px;
  row-gap: 0;
  grid-template-areas:
    "head head"
    "list area";
}
.services-grid--pro .services-grid-head { grid-area: head; margin-bottom: 48px; }
.services-grid--pro .services-list { grid-area: list; }
.services-grid--pro .area-card { grid-area: area; }
.services-list { font-size: 1.05rem; }
.services-list ul { list-style: none; padding: 0; }
.services-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--qp-line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.services-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--qp-brand-sky);
  flex-shrink: 0;
  margin-top: 10px;
}
.area-card {
  background: var(--qp-blue-bg);
  border-radius: var(--radius-md);
  padding: 32px;
}
.area-card h3 { margin-top: 0; }
.area-card p { color: var(--qp-text); margin-bottom: 0; }

@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid--pro {
    grid-template-columns: 1fr;
    row-gap: 32px;
    grid-template-areas:
      "area"
      "head"
      "list";
  }
  .services-grid--pro .services-grid-head { margin-bottom: 0; }
}

/* Featured-in-book band */
.book-band {
  background: var(--qp-blue-mid);
  color: var(--qp-white);
}
.book-band .container-narrow {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(36px, 5vw, 64px);
  align-items: center;
  text-align: left;
}
.book-band h2 { color: var(--qp-white); margin-top: 0; }
.book-band h2 em { color: var(--qp-sand); }
.book-band p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 0 28px; font-size: 1.08rem; }
.book-band .btn-light { background: var(--qp-white); border-color: var(--qp-white); }
.book-band-thumb {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: center;
  width: clamp(240px, 24vw, 320px);
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 28px 56px -18px rgba(0, 0, 0, 0.60),
    0 12px 24px -12px rgba(0, 0, 0, 0.40);
  transform: rotate(-2deg);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.book-band-thumb:hover { transform: rotate(0deg) scale(1.04); }
@media (max-width: 720px) {
  .book-band .container-narrow {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 24px;
  }
  .book-band-thumb {
    grid-column: 1;
    grid-row: auto;
    margin: 0 auto;
  }
  .book-band p { margin: 0 auto 28px; }
}

/* Contact section on profile */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-top: 0; }
.contact-info p { color: var(--qp-text); }
.contact-info .profile-phone { font-size: 1.6rem; margin-top: 24px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Generic trade page (no pro assigned yet) — e.g. kitchen
   ========================================================================== */
.trade-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}
.trade-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 16px;
}
.trade-hero .eyebrow { color: var(--qp-blue-mid); }
.trade-hero .lede { color: var(--qp-text); margin-bottom: 0; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 820px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--qp-white);
  border: 1px solid var(--qp-line);
  box-shadow: var(--shadow-card);
}
.portfolio-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.portfolio-grid figcaption {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--qp-text);
  padding: 12px 16px;
}
.portfolio-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--qp-muted);
  max-width: 620px;
  margin: 18px auto 0;
}

/* ==========================================================================
   Apply page
   ========================================================================== */

/* Benefit grid (what featured pros get) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .benefit-grid { grid-template-columns: 1fr; }
}
.benefit-card {
  background: var(--qp-white);
  border: 1px solid var(--qp-line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
}
.benefit-card:hover { border-color: var(--qp-blue-mid); box-shadow: var(--shadow-card); }
.benefit-card .benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--qp-blue-bg);
  color: var(--qp-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-card .benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--qp-ink);
  letter-spacing: 0;
}
.benefit-card p {
  font-size: 0.96rem;
  color: var(--qp-text);
  margin: 0;
  line-height: 1.6;
}

/* Standards card (who we look for) */
.standards-card {
  background: var(--qp-white);
  border: 1px solid var(--qp-line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4vw, 56px);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.standards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.standards-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--qp-line);
  font-size: 1.05rem;
  color: var(--qp-text);
}
.standards-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.standards-list li:first-child { padding-top: 0; }
.standards-list .standards-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--qp-blue-bg);
  color: var(--qp-blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.standards-list .standards-check svg { width: 14px; height: 14px; stroke-width: 3; }

/* Process steps */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 760px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-list { grid-template-columns: 1fr; }
}
.process-step {
  background: var(--qp-white);
  border: 1px solid var(--qp-line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--qp-brand-sky);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--qp-ink);
}
.process-step p {
  font-size: 0.92rem;
  color: var(--qp-text);
  margin: 0;
  line-height: 1.55;
}

/* Apply form section */
.apply-form-section {
  background: var(--qp-blue-bg);
  text-align: center;
}
.apply-form-section h2 { margin-bottom: 8px; }
.apply-form-section .form-slot {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
}

/* Apply page bottom CTA */
.bottom-note {
  text-align: center;
  font-size: 1.02rem;
  color: var(--qp-text);
  max-width: 580px;
  margin: 0 auto;
}
.bottom-note strong { color: var(--qp-ink); display: block; margin-bottom: 8px; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; }

/* ==========================================================================
   Legal pages (privacy, terms)
   ========================================================================== */
.legal-hero {
  background: linear-gradient(180deg, var(--qp-white) 0%, var(--qp-blue-bg) 100%);
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 3.5vw, 44px);
}
.legal-hero h1 { margin-bottom: 0; }
.legal-updated {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--qp-muted);
}
.legal-body .legal-updated {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--qp-line);
}
.legal-body { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.legal-body h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 40px 0 12px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.legal-body p { margin: 0 0 16px; line-height: 1.7; color: var(--qp-text); }
.legal-body ul { margin: 0 0 16px; padding-left: 1.35em; }
.legal-body li { margin-bottom: 8px; line-height: 1.65; color: var(--qp-text); }
.legal-body a { color: var(--qp-blue-mid); }
.legal-note {
  background: var(--qp-blue-bg);
  border-left: 3px solid var(--qp-brand-sky);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 32px;
  font-size: 0.95rem;
}
.legal-note p { margin: 0; }

/* ==========================================================================
   Book request modal (button-triggered popup)
   ========================================================================== */
.qp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.qp-modal.is-open { display: flex; }
.qp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, 0.6);
}
.qp-modal-box {
  position: relative;
  z-index: 1;
  background: var(--qp-white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.qp-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--qp-white);
  border: 1px solid var(--qp-line);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--qp-ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.qp-modal-close:hover { color: var(--qp-blue-mid); }

/* ==========================================================================
   Apply page: tighter vertical rhythm (pro audience, less airy than the
   homeowner pages)
   ========================================================================== */
.apply-page .hero { padding: clamp(36px, 5vw, 56px) 0; }
.apply-page section { padding: clamp(32px, 4vw, 54px) 0; }
.apply-page .section-head { margin-bottom: 28px; }
