/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║   PHI-BRIDGE.CSS — CALIBRATED Golden Ratio System                            ║
   ║   Version 2.0 — Competitive with Safelite, proportional with phi             ║
   ║                                                                              ║
   ║   Problem: Pure φ scaling gets too large too fast                            ║
   ║   Solution: Use √φ (1.272) for tighter progressions, capped maximums         ║
   ║                                                                              ║
   ║   √φ = 1.272 (square root of phi)                                            ║
   ║   This gives us phi relationships while keeping sizes practical              ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */

:root {
    /* ═══════════════════════════════════════════════════════════════════════════
       THE GOLDEN CONSTANTS
       ═══════════════════════════════════════════════════════════════════════════ */
    --phi: 1.618033988749895;
    --phi-root: 1.272019649514069;   /* √φ — gentler progression */
    --phi-inverse: 0.618033988749895;

    /* ═══════════════════════════════════════════════════════════════════════════
       SPACING — Using √φ for tighter, more practical spacing
       Base: 1rem (16px)
       ═══════════════════════════════════════════════════════════════════════════ */
    --space-0: 0;
    --space-1: 0.25rem;     /* 4px — micro */
    --space-2: 0.382rem;    /* 6.1px — φ⁻² */
    --space-3: 0.5rem;      /* 8px — half base */
    --space-4: 0.75rem;     /* 12px — practical small */
    --space-5: 1rem;        /* 16px — BASE ANCHOR */
    --space-6: 1.272rem;    /* 20.4px — √φ */
    --space-8: 1.618rem;    /* 25.9px — φ */
    --space-10: 2.058rem;   /* 32.9px — φ × √φ */
    --space-12: 2.618rem;   /* 41.9px — φ² */
    --space-16: 3.33rem;    /* 53.3px — φ² × √φ */
    --space-20: 4.236rem;   /* 67.8px — φ³ */
    --space-24: 5.387rem;   /* 86.2px — φ³ × √φ */

    /* ═══════════════════════════════════════════════════════════════════════════
       TYPOGRAPHY — Competitive sizes using √φ progression
       Comparing to Safelite: their H1 ≈ 32-36px, body ≈ 16px
       ═══════════════════════════════════════════════════════════════════════════ */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px — BODY TEXT */
    --text-md: 1.125rem;    /* 18px */
    --text-lg: 1.272rem;    /* 20.4px — √φ — lead text */
    --text-xl: 1.45rem;     /* 23.2px — subheadings */
    --text-2xl: 1.618rem;   /* 25.9px — φ — H4 */
    --text-3xl: 2.058rem;   /* 32.9px — H3 / Service page H1 */
    --text-4xl: 2.35rem;    /* 37.6px — H2 */
    --text-5xl: 2.618rem;   /* 41.9px — H1 on inner pages */
    --text-6xl: 3.33rem;    /* 53.3px — Homepage H1 ONLY */

    /* ═══════════════════════════════════════════════════════════════════════════
       LINE HEIGHTS — Golden ratio vertical rhythm
       ═══════════════════════════════════════════════════════════════════════════ */
    --leading-none: 1;
    --leading-tight: 1.2;       /* Headlines */
    --leading-snug: 1.35;       /* Subheadlines */
    --leading-normal: 1.5;      /* Body — slightly tighter than pure φ for readability */
    --leading-relaxed: 1.618;   /* φ — spacious body */
    --leading-loose: 1.8;       /* Extra spacious */

    /* ═══════════════════════════════════════════════════════════════════════════
       BORDER RADIUS — Subtle, professional
       ═══════════════════════════════════════════════════════════════════════════ */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.382rem;  /* 6.1px — φ⁻² */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-full: 9999px;

    /* ═══════════════════════════════════════════════════════════════════════════
       SHADOWS — Refined, phi-proportioned
       ═══════════════════════════════════════════════════════════════════════════ */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.12);

    /* ═══════════════════════════════════════════════════════════════════════════
       CONTAINERS — Practical widths
       ═══════════════════════════════════════════════════════════════════════════ */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GLOBAL BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

html {
    font-size: 16px;
    line-height: var(--leading-normal);
}

body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY — Properly sized headings
   ═══════════════════════════════════════════════════════════════════════════════ */

h1, .h1 {
    font-size: var(--text-5xl);      /* 2.618rem = 41.9px — competitive with Safelite */
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    font-weight: 800;
}

h2, .h2 {
    font-size: var(--text-4xl);      /* 2.35rem = 37.6px */
    line-height: var(--leading-tight);
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    font-weight: 700;
}

h3, .h3 {
    font-size: var(--text-3xl);      /* 2.058rem = 32.9px */
    line-height: var(--leading-snug);
    margin-top: var(--space-10);
    margin-bottom: var(--space-5);
    font-weight: 700;
}

h4, .h4 {
    font-size: var(--text-2xl);      /* 1.618rem = 25.9px */
    line-height: var(--leading-snug);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

h5, .h5 {
    font-size: var(--text-xl);       /* 1.45rem = 23.2px */
    line-height: var(--leading-normal);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

h6, .h6 {
    font-size: var(--text-lg);       /* 1.272rem = 20.4px */
    line-height: var(--leading-normal);
    margin-top: var(--space-5);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-5);   /* 1rem */
    max-width: 70ch;
}

/* Lead/intro paragraphs */
.lead, .hero-lead, .section-intro, .answer-lead {
    font-size: var(--text-lg);       /* 1.272rem — NOT massive */
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SECTION — Compact like Safelite
   ═══════════════════════════════════════════════════════════════════════════════ */

.section-hero {
    padding: var(--space-10) 0;      /* 2.058rem — compact */
}

.section-hero h1 {
    font-size: clamp(1.75rem, 4vw, var(--text-5xl)); /* Responsive, max 41.9px */
    margin-bottom: var(--space-5);
    max-width: 20ch;                 /* Force line breaks for readability */
    margin-left: auto;
    margin-right: auto;
}

.section-hero .hero-lead {
    font-size: var(--text-base);     /* 1rem — body size, not oversized */
    max-width: 60ch;
    margin: 0 auto var(--space-6);
    opacity: 0.95;
}

.section-hero .hero-cta {
    gap: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTIONS — Balanced spacing
   ═══════════════════════════════════════════════════════════════════════════════ */

.section {
    padding: var(--space-12) 0;      /* 2.618rem = 41.9px top/bottom */
}

.section-compact {
    padding: var(--space-8) 0;       /* 1.618rem */
}

/* Section h2s - centered only for hero/CTA, left for content */
.section-hero h2,
.section-cta h2 {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-8);
}

.section:not(.section-hero):not(.section-cta) h2 {
    text-align: left;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARDS — Safelite-competitive proportions
   ═══════════════════════════════════════════════════════════════════════════════ */

.card,
.service-card,
.price-item,
.type-card,
.faq-item,
.criteria-col,
.testimonial-card,
.objection-intercept {
    padding: var(--space-6);         /* 1.272rem = 20.4px */
    border-radius: var(--radius-lg);
}

.card h3,
.service-card h3,
.faq-item h3 {
    font-size: var(--text-xl);       /* 1.45rem = 23.2px */
    margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRICING TABLE — Clean, compact
   ═══════════════════════════════════════════════════════════════════════════════ */

.pricing-row {
    padding: var(--space-4) var(--space-5);
}

.vehicle-type {
    font-size: var(--text-base);
    font-weight: 700;
}

.price-range {
    font-size: var(--text-lg);       /* 1.272rem — prominent but not huge */
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROCESS STEPS — Compact timeline
   ═══════════════════════════════════════════════════════════════════════════════ */

.process-step {
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.step-number {
    width: 2.25rem;                  /* 36px — smaller circle */
    height: 2.25rem;
    font-size: var(--text-base);
}

.step-title {
    font-size: var(--text-lg);       /* 1.272rem */
    margin-bottom: var(--space-2);
}

.step-content p {
    font-size: var(--text-sm);       /* 0.875rem — tighter body in steps */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FAQ — Tighter layout
   ═══════════════════════════════════════════════════════════════════════════════ */

.faq-item {
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.faq-item h3 {
    font-size: var(--text-lg);       /* 1.272rem */
    margin-bottom: var(--space-3);
}

.faq-item p {
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DETAILS/SUMMARY (Objection Intercept)
   ═══════════════════════════════════════════════════════════════════════════════ */

.objection-intercept {
    margin-bottom: var(--space-4);
}

.objection-intercept summary {
    padding: var(--space-4);
    font-size: var(--text-base);
}

.intercept-content {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GRIDS — Balanced gaps
   ═══════════════════════════════════════════════════════════════════════════════ */

.services-grid,
.card-grid,
.vehicle-grid,
.types-grid,
.criteria-grid,
.areas-grid,
.testimonials-grid,
.why-grid {
    gap: var(--space-6);             /* 1.272rem */
}

.footer-grid {
    gap: var(--space-8);             /* 1.618rem */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS — Compact, professional
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn {
    padding: var(--space-3) var(--space-5); /* 0.5rem × 1rem */
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    gap: var(--space-2);
}

.btn-lg, .btn-large {
    padding: var(--space-4) var(--space-6); /* 0.75rem × 1.272rem */
    font-size: var(--text-base);
}

.btn-sm, .btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CTA SECTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.section-cta,
.prefooter-cta {
    padding: var(--space-10) 0;
}

.section-cta h2 {
    font-size: var(--text-3xl);      /* 2.058rem */
}

.cta-buttons {
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.cta-note {
    font-size: var(--text-sm);
    margin-top: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LISTS
   ═══════════════════════════════════════════════════════════════════════════════ */

ul, ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-5);
}

li {
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════════ */

.site-footer {
    padding: var(--space-12) 0 var(--space-8);
}

.footer-heading {
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
}

.footer-menu li {
    margin-bottom: var(--space-2);
}

.footer-menu a {
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════════════════ */

.breadcrumb {
    padding: var(--space-3) 0;
}

.breadcrumb ol {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════════════════════ */

.top-bar {
    font-size: var(--text-xs);
    padding: var(--space-2) 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SERVICE AREAS
   ═══════════════════════════════════════════════════════════════════════════════ */

.areas-grid {
    gap: var(--space-8);
}

.area-col strong {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
    display: block;
}

.area-col ul {
    padding-left: 0;
    list-style: none;
}

.area-col li {
    margin-bottom: var(--space-2);
}

.area-col a {
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADAS SUMMARY BOX
   ═══════════════════════════════════════════════════════════════════════════════ */

.adas-summary-box {
    padding: var(--space-5);
}

.adas-summary-box .box-heading {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.adas-summary-box p {
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MID-PAGE CTA
   ═══════════════════════════════════════════════════════════════════════════════ */

.mid-page-cta {
    padding: var(--space-5) var(--space-6);
}

.mid-page-cta p {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   VEHICLE LIST INLINE
   ═══════════════════════════════════════════════════════════════════════════════ */

.vehicle-list-inline {
    gap: var(--space-3);
}

.vehicle-list-inline a {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --space-10: 1.618rem;
        --space-12: 2.058rem;
        --space-16: 2.618rem;
        --space-20: 3.33rem;
    }

    h1, .h1 {
        font-size: var(--text-3xl);  /* 2.058rem on mobile */
    }

    h2, .h2 {
        font-size: var(--text-2xl);  /* 1.618rem */
    }

    h3, .h3 {
        font-size: var(--text-xl);   /* 1.45rem */
    }

    .section {
        padding: var(--space-8) 0;
    }

    .section-hero {
        padding: var(--space-6) 0;
    }

    .section-hero h1 {
        font-size: clamp(1.5rem, 6vw, var(--text-3xl));
    }
}
