/*
Theme Name:  Williams Lift Guide
Theme URI:   https://williamsliftguide.com
Author:      William
Description: Custom theme for WilliamsLiftGuide.com — includes logo, navigation, lead capture pages, and Stiltz referral funnel.
Version:     1.0.0
License:     GNU General Public License v2
Tags:        custom, lead-generation, home-lift, stiltz
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background: #ffffff;
}

a { color: #1a3a6e; text-decoration: none; transition: color .2s; }
a:hover { color: #c0a050; }

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

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #1a3a6e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(26,58,110,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 160px;
}

/* Logo */
.site-logo-link { display: flex; align-items: center; text-decoration: none; }
.site-logo-link img,
.site-logo-img {
    height: 144px;
    width: auto;
}

/* Nav */
.site-nav ul {
    display: flex;
    gap: 6px;
    align-items: center;
}

.site-nav ul li a {
    display: block;
    padding: 8px 14px;
    font-size: .92rem;
    font-weight: 600;
    color: #1a3a6e;
    border-radius: 6px;
    transition: background .2s, color .2s;
}

.site-nav ul li a:hover {
    background: #eef2fa;
    color: #1a3a6e;
}

.site-nav ul li.nav-cta a {
    background: #1a3a6e;
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
}

.site-nav ul li.nav-cta a:hover {
    background: #c0a050;
    color: #fff;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a3a6e;
    border-radius: 2px;
    transition: all .3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1a3a6e 0%, #0d2550 60%, #1a3a6e 100%);
    color: #fff;
    padding: 80px 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(192,160,80,.12);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #fff;
}

.hero h1 span { color: #c0a050; }

.hero p {
    font-size: 1.15rem;
    opacity: .9;
    margin-bottom: 32px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: .88rem;
    color: #fff;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.btn-primary {
    background: #c0a050;
    color: #1a2a1a;
}

.btn-primary:hover {
    background: #a8882e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192,160,80,.35);
}

.btn-secondary {
    background: #fff;
    color: #1a3a6e;
    border: 2px solid #1a3a6e;
}

.btn-secondary:hover {
    background: #1a3a6e;
    color: #fff;
}

.btn-full { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 17px 40px; font-size: 1.1rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    background: #f5f7fc;
    border-bottom: 1px solid #e0e8f5;
    padding: 18px 24px;
    text-align: center;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #1a3a6e;
    font-weight: 600;
}

.trust-item .trust-icon { font-size: 1.2rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 64px 24px; }
.section-alt { background: #f5f7fc; }
.section-dark { background: #1a3a6e; color: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p { font-size: 1.05rem; color: #555; max-width: 560px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.8); }

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid #dce6f5;
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(26,58,110,.12);
    transform: translateY(-2px);
}

.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: #1a3a6e; margin-bottom: 8px; }
.card p  { font-size: .92rem; color: #555; }

/* ============================================================
   LEAD FORM (homepage embedded)
   ============================================================ */
.home-form-section {
    background: #fff;
    padding: 64px 24px;
}

.home-form-inner {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #1a3a6e;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 12px 40px rgba(26,58,110,.12);
}

.home-form-inner h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a3a6e;
    margin-bottom: 8px;
    text-align: center;
}

.home-form-inner .form-sub {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
    font-size: .97rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0d2550;
    color: rgba(255,255,255,.8);
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img { height: 90px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-logo p { font-size: .9rem; color: rgba(255,255,255,.65); max-width: 280px; }

.footer-col h4 {
    color: #c0a050;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-col ul li a:hover { color: #c0a050; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 20px;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   PAGE CONTENT (inner pages)
   ============================================================ */
.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px;
}

.page-hero {
    padding: 52px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p  { font-size: 1.05rem; opacity: .9; }
.hero-navy  { background: #1a3a6e; }
.hero-gold  { background: #8a6a20; }
.hero-teal  { background: #0f6e56; }
.hero-steel { background: #3a5070; }

/* CTA box */
.cta-box {
    background: #f0f4ff;
    border: 1px solid #c0cee8;
    border-left: 5px solid #1a3a6e;
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}
.cta-box h3 { color: #1a3a6e; margin-bottom: 10px; font-size: 1.3rem; }
.cta-box p  { color: #444; margin-bottom: 20px; }

/* Comparison table */
.compare-table { overflow-x: auto; margin: 24px 0; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.compare-table th,
.compare-table td { padding: 12px 16px; border-bottom: 1px solid #e5e5e5; text-align: left; }
.compare-table thead th { background: #1a3a6e; color: #fff; font-weight: 600; }
.compare-table .col-stiltz { background: #f0f4ff; }
.compare-table thead .col-stiltz { background: #c0a050; color: #1a1a1a; }
.compare-table tbody tr:hover { background: #fafbff; }

/* Cost cards */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.cost-card {
    border: 1px solid #dce6f5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #fff;
}
.cost-card.featured {
    border: 2px solid #1a3a6e;
    background: #f0f4ff;
    position: relative;
}
.cost-card .cost-range { font-size: 1.5rem; font-weight: 800; color: #1a3a6e; margin-bottom: 6px; }
.cost-card strong { display: block; color: #1a1a2e; margin-bottom: 6px; }
.cost-card p { font-size: .88rem; color: #666; }
.cost-badge {
    background: #1a3a6e;
    color: #fff;
    font-size: .75rem;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-logo-link img,
    .site-logo-img { height: 100px; }
    .header-inner { min-height: 120px; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid #1a3a6e; padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .hero h1 { font-size: 1.8rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .home-form-inner { padding: 28px 20px; }
    .trust-bar-inner { gap: 16px; }
}

/* Bigger logo */
.site-logo-img { height: 144px; width: auto; }
.site-logo-link img { height: 144px; width: auto; }

/* Header taller to accommodate bigger logo */
.header-inner { padding: 16px 24px; }

/* Dark cards in navy section */
.dark-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
