/* Diaz Exteriors — app-page funnel layer (planner / consultation / builder).
   Mirrors the playbook visual system (Navy #0E2738 · Copper #B47645 ·
   Warm Ivory #F4EFE8) WITHOUT loading playbook.css wholesale: playbook's
   mobile-nav rules conflict with the app pages' renderShell() nav
   (hamburger lives inside nav[data-nav]; playbook hides .topbar nav ≤768px).
   Values below are copied 1:1 from playbook.css; class names reused where
   they do not collide with styles.css. Loaded AFTER styles.css. */

:root {
  --f-navy: #0E2738;
  --f-navy-2: #1a3a52;
  --f-copper: #B47645;
  --f-copper-dark: #8f5c33;
  --f-ivory: #F4EFE8;
  --f-line: #ddd5c4;
  --f-muted: #5f6b75;
}

/* ---------- photo hero (matches .hero-photo on service pages) ---------- */
.funnel-hero {
  position: relative; background-size: cover; background-position: center;
  color: #fff; padding: 72px 0;
}
.funnel-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(14,39,56,.80), rgba(14,39,56,.62));
}
.funnel-hero .shell { position: relative; z-index: 1; }
.funnel-hero .eyebrow { color: var(--f-copper); }
.funnel-hero h1 { color: #fff; }
.funnel-hero .lede { color: #d8cfbd; }
.funnel-hero .lede strong { color: #fff; }
.funnel-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- trust badge strip (matches .trust-strip) ---------- */
.trust-strip {
  background: #fff; border-bottom: 1px solid var(--f-line); padding: 20px 0;
}
.trust-strip ul {
  display: flex; justify-content: center; gap: 16px 40px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0; text-align: center;
}
.trust-strip li { font-size: 14px; font-weight: 600; color: var(--f-navy); }

/* ---------- buttons (playbook .btn-copper / .btn-outline) ---------- */
.btn-copper, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; min-height: 48px; cursor: pointer;
}
/* Next pass §3: button FILLS are deep copper #975C30; #B47645 is accent only. */
.btn-copper { background: #975C30; color: #fff; border-color: #975C30; }
.btn-copper:hover { background: #7E4D26; border-color: #7E4D26; color: #fff; }
/* Correction pass §4: the white treatment was GLOBAL here, so pages that
   load this sheet without playbook.css (consultation, planner) rendered
   white-on-ivory controls on light backgrounds — consultation's
   inspiration Clear/Edit measured 1.14:1 in a browser. Mirror playbook.css:
   light is the default context (navy text/border, navy fill on hover); the
   white treatment is scoped to the dark photo hero (.funnel-hero). */
.btn-outline { background: transparent; color: var(--f-navy); border-color: var(--f-navy); }
.btn-outline:hover { background: var(--f-navy); color: #fff; }
.funnel-hero .btn-outline { color: #fff; border-color: #fff; }
.funnel-hero .btn-outline:hover { background: #fff; color: var(--f-navy); }

/* ---------- honest photo label (matches playbook .photo-tag) ---------- */
.photo-tag {
  display: inline-block; font-size: 11px; color: var(--f-muted);
  letter-spacing: .04em; margin-top: 8px; font-style: italic; font-weight: 400;
}

/* ---------- planner: photo service cards ----------
   Keeps styles.css .trade-grid label contract (input[name=trade] inside,
   :has(input:checked) highlight). Replaces the SVG icons with photos. */
.trade-grid > label { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.trade-grid > label img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--f-line);
}
.trade-grid > label .trade-copy { padding: 14px 16px 16px; }
.trade-grid > label strong { margin-top: 0; }
.trade-grid input { top: 12px; right: 12px; z-index: 2;
  box-shadow: 0 0 0 3px rgba(255,255,255,.85); border-radius: 4px; }

/* ---------- builder: photo mode cards ----------
   Keeps .tool-card / .mode-pick / [data-mode] contract used by builder.mjs. */
.tool-card { padding: 0; overflow: hidden; }
.tool-card img {
  width: 100%; height: 170px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--f-line);
}
.tool-card .tool-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool-card h3 { margin: 0; }
.tool-card p { margin: 0; }
.tool-card.selected { border-color: var(--f-copper-dark); box-shadow: inset 0 0 0 2px var(--f-copper-dark); }
.tool-card .mode-pick { align-self: flex-start; }

/* ---------- app section rhythm ---------- */
.funnel-section { padding: 56px 0; }
.funnel-lede { font-size: 18px; color: #3d4850; max-width: 60ch; }

/* ---------- consultation form polish (fields/logic untouched) ---------- */
#consult-form.panel, #takeoff-form { scroll-margin-top: 20px; }
.funnel-note {
  font-size: 14px; color: var(--f-muted); max-width: 68ch; margin: 0 0 18px;
}

@media (max-width: 768px) {
  .funnel-hero { padding: 48px 0; }
  .funnel-section { padding: 40px 0; }
  .trade-grid > label img { height: 100px; }
  .tool-card img { height: 150px; }
}
