/*
 * estimator-page.css
 * Shared styles for all 20 trade estimator HTML pages
 * Created: December 26, 2025
 * 
 * Used by: basement.html, bathroom.html, concrete.html, decks.html, doors.html,
 *          electrical.html, fencing.html, flooring.html, foundation.html, gutters.html,
 *          hvac.html, insulation.html, kitchen.html, painting-exterior.html,
 *          painting-interior.html, plumbing.html, roofing.html, siding.html,
 *          waterproofing.html, windows.html
 */

/* Accessibility: honor system motion preferences */
@media (prefers-reduced-motion: reduce) {
   *, *::before, *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
   }
}

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

:root {
   --color-text: #1a1a1a;
   --color-text-secondary: #1a1a1a;
   --color-text-tertiary: #1a1a1a;
   --color-bg: #ffffff;
   --color-bg-secondary: #ffffff;
   --color-bg-elevated: #ffffff;
   --color-border: #d2d2d7;
   --color-border-light: #e8e8ed;
   --color-accent: #0071e3;
   --color-accent-hover: #0077ed;
   --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
   --space-xs: 4px;
   --space-sm: 8px;
   --space-md: 16px;
   --space-lg: 24px;
   --space-xl: 40px;
   --space-2xl: 64px;
   --section-gap: 32px;
   --max-width: 980px;
   --content-width: 680px;
   --radius-sm: 8px;
   --radius-md: 12px;
   --radius-lg: 18px;
   --transition: 0.2s ease;
   --header-height: 48px;
}

@media (prefers-color-scheme: dark) {
   :root {
      --color-text: #ffffff;
      --color-text-secondary: #ffffff;
      --color-text-tertiary: #ffffff;
      --color-bg: #000000;
      --color-bg-secondary: #000000;
      --color-bg-elevated: #000000;
      --color-border: #3d3d3f;
      --color-border-light: #2c2c2e;
   }
}

/* Accessibility: honor high contrast preference */
@media (prefers-contrast: more) {
   :root {
      --color-text-secondary: #1a1a1a;
      --color-text-tertiary: #1a1a1a;
   }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
   :root {
      --color-text-secondary: #ffffff;
      --color-text-tertiary: #ffffff;
   }
}

html {
   font-size: 16px;
   scroll-behavior: smooth;
   -webkit-font-smoothing: antialiased;
   -webkit-text-size-adjust: 100%;
   text-size-adjust: 100%;
   scrollbar-width: none;
   -ms-overflow-style: none;
}

html::-webkit-scrollbar { display: none; }

body {
   font-family: var(--font-family);
   line-height: 1.5;
   color: var(--color-text);
   background-color: var(--color-bg);
}

h1 {
   font-size: clamp(28px, 6vw, 48px);
   font-weight: 400;
   letter-spacing: -0.015em;
   line-height: 1.4;
}

h2 {
   font-size: clamp(18px, 4vw, 21px);
   font-weight: 600;
   letter-spacing: -0.01em;
   line-height: 1.2;
}

h3 {
   font-size: clamp(16px, 3vw, 18px);
   font-weight: 600;
   letter-spacing: -0.01em;
   line-height: 1.4;
   color: var(--color-text);
}

p {
   font-size: 15px;
   color: var(--color-text-secondary);
}

a {
   color: var(--color-accent);
   text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
   width: 100%;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 var(--space-md);
}

section {
   min-height: 100vh;
   min-height: 100dvh;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   padding: var(--space-lg) 0;
}

/* Header */
.header {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: var(--header-height);
   background: var(--color-bg);
   border-bottom: 1px solid var(--color-border-light);
   z-index: 1000;
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   background: rgba(255,255,255,0.8);
}

@media (prefers-color-scheme: dark) {
   .header { background: rgba(0,0,0,0.8); }
}

.header__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 100%;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 var(--space-md);
}

.header__logo {
   font-size: 14px;
   font-weight: 600;
   color: var(--color-text);
   text-decoration: none;
}

.header__logo:hover {
   text-decoration: none;
   opacity: 0.7;
}

/* Standardized: included from 8 files that had this fix */
.header__nav { position: relative; }

.header__link {
   font-size: 14px;
   font-weight: 500;
   opacity: 0.85;
   color: var(--color-text);
   text-decoration: none;
}

.header__link:hover {
   text-decoration: none;
   opacity: 0.7;
}

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: flex-start;
   gap: var(--space-sm);
   min-height: 44px;
   padding: 0 var(--space-lg);
   font-family: inherit;
   font-size: 15px;
   font-weight: 400;
   text-decoration: none;
   border: none;
   border-radius: 980px;
   cursor: pointer;
   transition: all var(--transition);
}

.btn--primary {
   background-color: var(--color-accent);
   color: white;
}

.btn--primary:hover {
   background-color: var(--color-accent-hover);
   text-decoration: none;
}

.btn--subtle {
   background-color: transparent;
   color: var(--color-text-secondary);
   min-height: auto;
   padding: var(--space-sm) var(--space-md);
   font-size: 14px;
}

.btn--subtle:hover { color: var(--color-accent); }

.btn--subtle svg {
   width: 14px;
   height: 14px;
   transition: transform var(--transition);
}

.btn--filled-secondary {
   background-color: var(--color-bg-secondary);
   color: var(--color-text);
}

.btn--filled-secondary:hover {
   background-color: var(--color-border-light);
   text-decoration: none;
}

/* Reveal animation */
.reveal {
   opacity: 0;
   transform: translateY(20px);
   transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
   opacity: 1;
   transform: translateY(0);
}

/* Hero section */
.hero {
   min-height: 100vh;
   min-height: 100dvh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) 32px;
}

.hero__content {
   text-align: center;
   max-width: 600px;
   margin: 0 auto;
}

.hero__eyebrow {
   font-size: 12px;
   font-weight: 400;
   color: var(--color-text-tertiary);
   margin-bottom: 20px;
   letter-spacing: 0.02em;
}

.hero__title {
   margin-bottom: var(--space-md);
   display: flex;
   flex-direction: column;
   gap: var(--space-sm);
}

.hero__title-primary {
   font-family: 'Libre Caslon Text', Georgia, serif;
   font-size: clamp(26px, 7vw, 56px);
   font-weight: 400;
   letter-spacing: -0.01em;
   line-height: 1.15;
}

.hero__title-secondary {
   font-size: clamp(18px, 4vw, 32px);
   font-weight: 600;
   letter-spacing: -0.01em;
   line-height: 1.2;
   margin-top: 12px;
   color: var(--color-text-secondary);
}

.hero__subtitle {
   font-size: 15px;
   line-height: 1.5;
   color: var(--color-text-secondary);
   margin-bottom: var(--space-md);
}

.hero__cta { margin-bottom: var(--space-md); }

.hero__features {
   max-width: 500px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: auto auto;
   justify-content: center;
   gap: var(--space-xs) 12px;
   font-size: 11px;
   color: var(--color-text-tertiary);
}

.hero__feature {
   display: flex;
   align-items: center;
   gap: 6px;
   white-space: nowrap;
}

.hero__feature svg {
   width: 14px;
   height: 14px;
   flex-shrink: 0;
   opacity: 0.6;
}

.hero__feature:first-child {
   order: 1;
   grid-column: 1 / -1;
   justify-self: center;
}

.hero__trust {
   font-size: 12px;
   line-height: 1.6;
   color: var(--color-text-tertiary);
   text-align: center;
   letter-spacing: 0.02em;
}

/* Estimator section */
.estimator {
   min-height: auto;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   padding: var(--space-lg) 0;
   background-color: var(--color-bg);
}

.estimator__container {
   max-width: 800px;
   margin: 0 auto;
   border-radius: var(--radius-lg);
   overflow: hidden;
   background-color: var(--color-bg);
}

.estimator__iframe-container {
   position: relative;
   min-height: 600px;
   background-color: var(--color-bg);
}

.estimator__iframe {
   width: 100%;
   height: 450px;
   border: none;
   display: block;
   opacity: 0;
   transition: opacity 0.3s ease;
   background-color: var(--color-bg);
}

.estimator__loading {
   position: absolute;
   inset: 0;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   background-color: var(--color-bg);
}

.estimator__loading-spinner {
   width: 32px;
   height: 32px;
   border: 2px solid var(--color-border);
   border-top-color: var(--color-text-tertiary);
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.estimator__loading-text {
   margin-top: var(--space-md);
   font-size: 14px;
   color: var(--color-text-tertiary);
}

/* Content section */
.content {
   min-height: auto;
   display: block;
   padding: var(--space-2xl) 0;
   background-color: var(--color-bg);
}

.content__inner {
   max-width: var(--content-width);
   margin: 0 auto;
}

.content__header { margin-bottom: var(--space-xl); }

.content__header h2 {
   font-size: clamp(20px, 5vw, 32px);
   margin-bottom: var(--space-md);
}

.content__header p {
   font-size: 17px;
   line-height: 1.6;
   margin-bottom: var(--space-md);
}

.content__header p:last-child { margin-bottom: 0; }

.content__section { margin-bottom: var(--space-xl); }

.content__section h3 { margin-bottom: var(--space-md); }

.content__section p {
   font-size: 16px;
   line-height: 1.7;
   margin-bottom: var(--space-md);
   color: var(--color-text-secondary);
}

.content__section p:last-child { margin-bottom: 0; }

/* Standardized: using margin top AND bottom for consistency */
.content__callout {
   background-color: var(--color-bg-secondary);
   border-radius: 0;
   padding: var(--space-lg);
   margin: var(--space-lg) 0;
}

.content__callout-label {
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   color: var(--color-text-tertiary);
   margin-bottom: var(--space-sm);
}

.content__callout p {
   font-size: 15px;
   margin-bottom: 0;
   color: var(--color-text-secondary);
}

.content__callout p strong { color: var(--color-text); }

.content__credentials {
   padding-left: 2.5rem;
   margin-bottom: 1.5rem;
   list-style-type: disc;
}

.content__credentials li {
   margin-bottom: 0.75rem;
   line-height: 1.6;
}

.content__links {
   margin-top: var(--space-xl);
   padding-top: var(--space-lg);
   border-top: 1px solid var(--color-border-light);
}

.content__links p { font-size: 16px; line-height: 1.7; }

.content__inner > .content__byline {
   margin-top: var(--space-lg);
   margin-bottom: 0;
   font-size: 13px;
   font-weight: 400;
   color: var(--color-text-tertiary);
   letter-spacing: 0.01em;
   line-height: 1.4;
}

.content__bio {
   margin-top: var(--space-sm);
   margin-bottom: 0;
   font-size: 16px;
   font-weight: 400;
   letter-spacing: 0.01em;
   line-height: 1.7;
}

/* How it works section */
.how-it-works {
   min-height: auto;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   padding: var(--space-lg) 0;
   background-color: var(--color-bg);
}

.how-it-works__steps {
   display: grid;
   gap: var(--section-gap);
   max-width: 520px;
   margin: 0 auto;
}

.step { text-align: center; }

.step__number {
   font-size: 40px;
   font-weight: 600;
   color: var(--color-text);
   line-height: 1;
   margin-bottom: var(--space-sm);
   opacity: 0.15;
}

.step__title { margin-bottom: var(--space-sm); }

.step__description {
   font-size: 14px;
   line-height: 1.5;
   color: var(--color-text-secondary);
}

/* Learn section */
.learn {
   min-height: auto;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   padding: var(--space-lg) 0;
   background-color: var(--color-bg-secondary);
}

.learn__header {
   text-align: center;
   max-width: 480px;
   margin: 0 auto var(--space-md);
}

.learn__header h2 { margin-bottom: var(--space-sm); }

.learn__header p { font-size: 14px; }

.learn__toggle { text-align: center; }

.learn__content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.4s ease;
}

.learn__content.expanded { max-height: 2000px; }

.learn__inner { padding-top: var(--section-gap); }

/* Tabs */
.tabs {
   display: flex;
   justify-content: flex-start;
   gap: var(--space-xs);
   margin-bottom: var(--section-gap);
   flex-wrap: wrap;
}

.tab {
   padding: var(--space-sm) var(--space-md);
   font-size: 14px;
   font-weight: 500;
   color: var(--color-text-secondary);
   background: transparent;
   border: none;
   border-radius: 980px;
   cursor: pointer;
   transition: all var(--transition);
}

.tab:hover { color: var(--color-text); }

.tab.active {
   background-color: var(--color-bg);
   color: var(--color-text);
}

.panel { display: none; }

.panel.active {
   display: block;
   animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Table */
.table-container {
   max-width: 700px;
   margin: 0 auto;
   overflow-x: auto;
}

.table {
   width: 100%;
   border-collapse: collapse;
}

.table th, .table td {
   padding: var(--space-md);
   text-align: left;
   border-bottom: 1px solid var(--color-border-light);
}

.table th {
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.04em;
   color: var(--color-text-tertiary);
}

.table td {
   font-size: 14px;
   color: var(--color-text);
}

.table tr:last-child td { border-bottom: none; }

.table .price { font-weight: 600; }

.table .note {
   color: var(--color-text-secondary);
   font-size: 13px;
}

/* Cards */
.cards {
   display: grid;
   gap: var(--space-md);
   max-width: 700px;
   margin: 0 auto;
}

.card {
   background: var(--color-bg);
   border-radius: var(--radius-md);
   padding: var(--space-lg);
   text-align: center;
}

.card__title {
   font-size: 15px;
   font-weight: 600;
   margin-bottom: 2px;
}

.card__subtitle {
   font-size: 13px;
   color: var(--color-text-tertiary);
   margin-bottom: var(--space-md);
}

.card__price {
   font-size: 20px;
   font-weight: 600;
}

.learn__source {
   text-align: center;
   margin-top: var(--section-gap);
   font-size: 12px;
   color: var(--color-text-tertiary);
}

/* FAQ section */
.faq {
   min-height: auto;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   padding: var(--space-lg) 0;
   background-color: var(--color-bg);
}

.faq__header {
   text-align: center;
   max-width: 480px;
   margin: 0 auto var(--space-md);
}

.faq__header h2 { margin-bottom: var(--space-sm); }

.faq__header p { font-size: 14px; }

.faq__toggle { text-align: center; }

.faq__content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.4s ease;
}

.faq__content.expanded { max-height: 4000px; }

.faq__inner { padding-top: var(--section-gap); }

.faq__list {
   max-width: var(--content-width);
   margin: 0 auto;
}

.faq__item { border-bottom: 1px solid var(--color-border-light); }

.faq__item:last-child { border-bottom: none; }

.faq__question {
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: var(--space-md);
   padding: var(--space-md) 0;
   font-family: inherit;
   font-size: 15px;
   font-weight: 600;
   text-align: left;
   color: var(--color-text);
   background: none;
   border: none;
   cursor: pointer;
}

.faq__question:hover { color: var(--color-text-secondary); }

.faq__icon {
   flex-shrink: 0;
   width: 20px;
   height: 20px;
   color: var(--color-text-tertiary);
   transition: transform var(--transition);
}

.faq__item.open .faq__icon { transform: rotate(45deg); }

.faq__answer {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s ease;
}

.faq__item.open .faq__answer { max-height: 400px; }

.faq__answer-inner {
   padding-bottom: var(--space-md);
   font-size: 14px;
   line-height: 1.6;
   color: var(--color-text-secondary);
}

.faq__answer-inner p {
   margin-bottom: var(--space-md);
   font-size: 14px;
}

.faq__answer-inner p:last-child { margin-bottom: 0; }

/* CTA section */
.cta {
   min-height: auto;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   padding: var(--space-lg) 0;
   background-color: var(--color-bg-secondary);
}

.cta__grid {
   display: grid;
   gap: var(--section-gap);
   max-width: 600px;
   margin: 0 auto;
}

.cta__option { text-align: center; }

.cta__option h2 { margin-bottom: var(--space-sm); }

.cta__option p {
   font-size: 14px;
   margin-bottom: var(--space-lg);
}

.copy-wrap {
   position: relative;
   display: inline-block;
}

.copy-toast {
   position: absolute;
   bottom: 100%;
   left: 50%;
   transform: translateX(-50%);
   background-color: var(--color-text);
   color: white;
   font-size: 12px;
   padding: 4px 10px;
   border-radius: 4px;
   opacity: 0;
   transition: opacity var(--transition);
   pointer-events: none;
   margin-bottom: 8px;
   white-space: nowrap;
}

.copy-toast.show { opacity: 1; }

/* Footer */
.footer {
   min-height: auto;
   display: block;
   background-color: var(--color-bg);
   border-top: 1px solid var(--color-border-light);
   padding: var(--space-xl) 0;
}

.footer__content {
   border-top: 1px solid rgba(255,255,255,0.15);
   padding-top: 24px;
   margin-top: 24px;
   text-align: center;
   font-size: 12px;
   color: var(--color-text-tertiary);
}

.footer__row { margin-bottom: var(--space-md); }

.footer__row:last-child { margin-bottom: 0; }

.footer a, .footer button {
   text-decoration: none;
   color: var(--color-text-secondary);
   background: none;
   border: none;
   font-size: 12px;
   cursor: pointer;
   padding: 0;
}

.footer a:hover, .footer button:hover { color: var(--color-text); }

.footer__divider {
   margin: 0 var(--space-sm);
   color: var(--color-border);
}

.footer__columns {
   display: grid;
   grid-template-columns: 1fr;
   gap: var(--space-lg);
   text-align: left;
   margin-bottom: var(--space-xl);
}

.footer__column-title {
   font-size: 12px;
   font-weight: 600;
   color: var(--color-text);
   margin-bottom: var(--space-sm);
}

.footer__column a {
   display: block;
   margin-bottom: var(--space-xs);
}

.footer__expertise {
   color: var(--color-text-secondary);
   margin-bottom: var(--space-sm);
}

/* Screen reader only */
.sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

/* ============================================
   Trade Video - Facebook-style treatment
   Square, no border, matches text column width
   ============================================ */
.trade-video-wrap {
   position: relative;
   margin: var(--space-lg) 0;
}

.trade-video {
   display: block;
   width: 100%;
   height: auto;
   aspect-ratio: 1 / 1;
   object-fit: cover;
   border-radius: 0;
   border: none;
   box-shadow: none;
   background: #000;
}

.trade-video-avatar {
   position: absolute;
   bottom: 12px;
   left: 12px;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   border: none;
   object-fit: cover;
   pointer-events: none;
}

.trade-video-mute {
   position: absolute;
   top: 12px;
   right: 12px;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   border: none;
   background: rgba(0, 0, 0, 0.5);
   color: #fff;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   z-index: 2;
   transition: background 0.2s ease;
}

.trade-video-mute:hover {
   background: rgba(0, 0, 0, 0.7);
}

.trade-video-mute svg {
   width: 18px;
   height: 18px;
   fill: none;
   stroke: currentColor;
   stroke-width: 2;
   stroke-linecap: round;
   stroke-linejoin: round;
}

/* ============================================
   Responsive breakpoints
   ============================================ */
/* Short phones - tighten but keep readable */
@media (max-height: 700px) {
   .hero { padding-top: calc(var(--header-height) + var(--space-sm)); padding-bottom: var(--space-md); }
   .hero__eyebrow { margin-bottom: var(--space-md); }
   .hero__title { margin-bottom: 12px; }
   .hero__title-secondary { margin-top: var(--space-sm); }
   .hero__subtitle { margin-bottom: 12px; }
   .hero__cta { margin-bottom: 12px; }
   .trade-video-wrap { margin: var(--space-md) 0; }
   .content__header { margin-bottom: var(--space-lg); }
   .content__section { margin-bottom: var(--space-lg); }
}

/* Small phones - golden ratio hero spacing (base 8px, phi scale: 8/13/21/34/55) */
@media (max-width: 479px) {
   .hero__eyebrow { margin-bottom: 21px; }
   .hero__title { margin-bottom: 13px; }
   .hero__title-secondary { margin-top: 13px; }
   .hero__subtitle { margin-bottom: 34px; }
   .hero__cta { margin-bottom: 21px; }
   .hero__features {
      grid-template-columns: 1fr;
      gap: 10px;
      max-width: 280px;
   }
   .hero__feature:first-child {
      grid-column: auto;
   }
}

/* Small phones - h2 sizing handled by base clamp */

@media (min-width: 480px) {
   .container { padding: 0 var(--space-lg); }
   .hero { padding-left: var(--space-lg); padding-right: var(--space-lg); padding-bottom: 40px; }
   .hero__eyebrow { margin-bottom: 24px; }
   .hero__title { margin-bottom: 20px; }
   .hero__title-secondary { margin-top: 16px; }
   .hero__subtitle { font-size: 16px; margin-bottom: 20px; }
   .hero__cta { margin-bottom: 20px; }
   .hero__features {
      max-width: 400px;
      margin: 0 auto;
      font-size: 12px;
      gap: var(--space-xs) 16px;
   }
   .content__header h2 { margin-bottom: var(--space-lg); }
   .content__callout { padding: var(--space-lg) var(--space-xl); }
}

@media (min-width: 640px) {
   .hero { padding-bottom: 48px; }
   .hero__eyebrow { font-size: 13px; margin-bottom: 28px; }
   .hero__title { margin-bottom: var(--space-lg); }
   .hero__title-secondary { margin-top: 20px; }
   .hero__subtitle { font-size: 17px; margin-bottom: var(--space-lg); }
   .hero__cta { margin-bottom: var(--space-lg); }
   .hero__features { font-size: 13px; gap: var(--space-xs) var(--space-lg); }
   .btn { min-height: 48px; font-size: 16px; }
   .cards { grid-template-columns: repeat(3, 1fr); }
   .estimator__iframe { height: 480px; }
   .footer__columns { grid-template-columns: repeat(3, 1fr); }
   .trade-video-wrap { margin: var(--space-xl) 0; }
   .trade-video-avatar { width: 40px; height: 40px; bottom: 14px; left: 14px; }
   .trade-video-mute { width: 40px; height: 40px; top: 14px; right: 14px; }
   .trade-video-mute svg { width: 20px; height: 20px; }
   .content__section { margin-bottom: var(--space-2xl); }
   .content__section h3 { margin-bottom: var(--space-lg); }
}

@media (min-width: 768px) {
   .hero__eyebrow { font-size: 14px; margin-bottom: 32px; }
   .hero__title-secondary { margin-top: 24px; }
   .hero__subtitle { font-size: 18px; }
   .how-it-works__steps { max-width: none; grid-template-columns: repeat(3, 1fr); }
   .estimator__iframe { height: 500px; }
   .content__section p { font-size: 17px; }
   .content__links p { font-size: 17px; }
   .content__bio { font-size: 17px; }
   .btn { min-height: 50px; font-size: 17px; }
   .content__header h2 { margin-bottom: var(--space-xl); }
   .content__callout { margin: var(--space-xl) 0; }
   .trade-video-avatar { width: 44px; height: 44px; bottom: 16px; left: 16px; }
   .trade-video-mute { width: 44px; height: 44px; top: 16px; right: 16px; }
   .trade-video-mute svg { width: 22px; height: 22px; }
}

@media (min-width: 1024px) {
   .hero__subtitle { font-size: 19px; }
   .faq__question { font-size: 17px; padding: var(--space-lg) 0; }
   .estimator__iframe { height: 520px; }
   .content__section p { font-size: 17px; }
   .content__header { margin-bottom: var(--space-2xl); }
   .content__section { margin-bottom: var(--space-2xl); }
}
/* Full-height sections with scroll indicator */
.section-full {
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.scroll-chevron {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.scroll-chevron:hover { opacity: 0.7; }

.scroll-chevron svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@media (max-height: 500px) {
    .section-full { min-height: auto; }
    .scroll-chevron { display: none; }
}

/* Hide chevron when content panel is expanded */
.panel-expanded .scroll-chevron { display: none; }


/* Story Navigation - Desktop top bar (768px+) */
.story-nav-top { position: fixed; top: var(--header-height); left: 0; right: 0; height: 40px; z-index: 999; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(255,255,255,0.72); border-bottom: 1px solid var(--color-border-light); transform: translateY(-100%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; pointer-events: none; display: none; }
.story-nav-top--visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (prefers-color-scheme: dark) { .story-nav-top { background: rgba(0,0,0,0.72); } }
@media (min-width: 1024px) { .story-nav-top { display: block; } }
.story-nav-top__track { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0 auto; padding: 0 var(--space-sm); gap: 0; }
.story-nav-top__item { padding: var(--space-xs) var(--space-sm); font-size: 12px; font-weight: 500; color: var(--color-text-tertiary); white-space: nowrap; opacity: 0.4; transition: opacity var(--transition); cursor: pointer; border: none; background: none; font-family: inherit; line-height: 1; }
.story-nav-top__item:hover { opacity: 0.7; }
.story-nav-top__item--active { opacity: 1; color: var(--color-text); font-weight: 600; }
.story-nav-top__separator { flex-shrink: 0; width: 1px; height: 14px; background: var(--color-border); margin: 0 var(--space-xs); opacity: 0.5; }
@media (min-width: 1024px) { .story-nav-top__item { font-size: 13px; padding: var(--space-xs) var(--space-md); } }
@media (min-width: 1280px) { .story-nav-top__item { padding: var(--space-xs) var(--space-lg); } }


/* Story Navigation - Mobile bottom pill (<768px) */
.story-pill { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); z-index: 998; opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; pointer-events: none; }
.story-pill--visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .story-pill { display: none; } }
.story-pill__button { display: flex; align-items: center; gap: 10px; padding: 10px 18px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(255,255,255,0.12); border: 1px solid var(--color-border-light); border-radius: 980px; cursor: pointer; font-family: inherit; box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: box-shadow var(--transition); min-height: 44px; }
.story-pill__button:active { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }
@media (prefers-color-scheme: dark) { .story-pill__button { background: rgba(0,0,0,0.15); border-color: var(--color-border); box-shadow: 0 2px 20px rgba(0,0,0,0.2); } }
.story-pill__progress { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.story-pill__progress-ring { transform: rotate(-90deg); width: 20px; height: 20px; }
.story-pill__progress-bg { fill: none; stroke: var(--color-border-light); stroke-width: 2; }
.story-pill__progress-fill { fill: none; stroke: var(--color-text); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 50.27; stroke-dashoffset: 50.27; transition: stroke-dashoffset 0.4s ease; opacity: 0.5; }
.story-pill__label { font-size: 13px; font-weight: 500; color: var(--color-text); white-space: nowrap; line-height: 1; }
.story-pill__chevron { width: 12px; height: 12px; flex-shrink: 0; color: var(--color-text-tertiary); opacity: 0.4; transition: transform 0.3s ease; }
.story-pill--sheet-open .story-pill__chevron { transform: rotate(180deg); }


/* Story Navigation - Mobile bottom sheet */
.story-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.2); z-index: 997; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.story-sheet-backdrop--visible { opacity: 1; pointer-events: auto; }
.story-sheet { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(255,255,255,0.92); border-top: 1px solid var(--color-border-light); border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
.story-sheet--visible { transform: translateY(0); }
@media (prefers-color-scheme: dark) { .story-sheet-backdrop { background: rgba(0,0,0,0.4); } .story-sheet { background: rgba(0,0,0,0.92); } }
.story-sheet__handle { width: 36px; height: 4px; background: var(--color-border); border-radius: 2px; margin: 8px auto 0; opacity: 0.4; }
.story-sheet__list { padding: var(--space-md) var(--space-lg) var(--space-xl); list-style: none; }
.story-sheet__item { display: flex; align-items: center; gap: var(--space-md); padding: 14px 0; border-bottom: 1px solid var(--color-border-light); cursor: pointer; min-height: 48px; }
.story-sheet__item:last-child { border-bottom: none; }
.story-sheet__item:active { opacity: 0.6; }
.story-sheet__position { font-size: 11px; font-weight: 500; color: var(--color-text-tertiary); opacity: 0.3; width: 20px; text-align: right; flex-shrink: 0; }
.story-sheet__item--active .story-sheet__position { opacity: 1; color: var(--color-text); }
.story-sheet__name { font-size: 15px; font-weight: 400; color: var(--color-text-secondary); }
.story-sheet__item--active .story-sheet__name { font-weight: 600; color: var(--color-text); }
.story-sheet__divider { height: 1px; background: var(--color-border); margin: var(--space-sm) 0; opacity: 0.2; padding: 0; min-height: auto; border: none; }

/* Story nav scroll margins for desktop */
@media (min-width: 768px) { .content__section[id^="beat-"] { scroll-margin-top: calc(var(--header-height) + 40px + var(--space-lg)); } #pricing, #faq { scroll-margin-top: calc(var(--header-height) + 40px + var(--space-lg)); } }

/* Witness line */
.witness-line { font-size: 15px; font-style: italic; color: var(--color-text-tertiary); margin-top: var(--space-lg); opacity: 0.6; }


/* Trade directory grid */
.estimator-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.estimator-list__item {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s;
}
.estimator-list__item:hover {
    border-color: var(--color-primary);
}

/* Contractor section */
.contractor-section {
   padding: var(--space-md) 0 0;
   background-color: var(--color-bg);
}

.contractor-section__inner {
   max-width: var(--content-width);
   margin: 0 auto;
}

.contractor-section__heading {
   font-size: clamp(20px, 5vw, 32px);
   color: var(--color-text);
   margin-bottom: var(--space-md);
}

.contractor-section__details {
   font-size: 15px;
   line-height: 1.7;
   color: var(--color-text);
}

.contractor-section__details p {
   margin-bottom: var(--space-sm);
}

.contractor-section__details p:last-child {
   margin-bottom: 0;
}

.contractor-section__name {
   font-family: 'Inter', sans-serif;
   font-size: 17px;
   font-weight: 600;
   margin-top: var(--space-lg);
   margin-bottom: var(--space-md);
   display: flex;
   align-items: center;
   gap: 12px;
}

.contractor-section__credentials {
   font-size: 14px;
   line-height: 1.8;
   color: var(--color-text);
   opacity: 0.85;
}

.contractor-section__promise {
   margin-top: var(--space-md);
   font-size: 14px;
   color: var(--color-text);
   opacity: 0.7;
   letter-spacing: 0.01em;
}

.contractor-section__cta {
   margin-top: var(--space-md);
}
