/* =============================================================================
   LANDING PAGES — Shared Stylesheet
   Clearview Screens & Liberty Awnings

   Extracted from inline <style> blocks in all lp-*.html pages.
   Contains styles shared across ALL landing pages. Page-specific styles
   (e.g. fabric replacement steps, french door options) remain inline.

   Load order:  styles.css → mobile-enhancements.css → landing-pages.css
   ============================================================================= */

/* ===== DESIGN TOKENS ===== */
:root {
    --navy: #1a3a5c;
    --navy-dark: #0f2840;
    --gold: #c9a227;
    --gold-light: #e8c84a;
    --cream: #faf8f3;
    --white: #ffffff;
    --gray: #6b7280;
    --text: #2d3748;
    --shadow: 0 4px 20px rgba(26, 58, 92, 0.12);
    --shadow-lg: 0 10px 40px rgba(26, 58, 92, 0.18);
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { font-family: 'Source Sans 3', sans-serif; font-size: 18px; line-height: 1.7; color: var(--text); background: var(--cream); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--navy); }

/* ===== TOP BAR ===== */
.top-bar { background: var(--navy-dark); color: var(--white); padding: 10px 15px; text-align: center; font-size: 14px; }
.top-bar a { color: var(--gold-light); text-decoration: none; font-weight: 600; margin: 0 10px; }

/* ===== HEADER ===== */
header { background: var(--white); padding: 5px 20px; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); height: 70px; }
.header-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 65px; width: auto; }
.company-name-desktop { display: block; }
.company-name-desktop img { height: 40px; width: auto; }
.mobile-company-name { display: none; }
.mobile-company-name img { height: 30px; width: auto; }

/* ===== NAVIGATION ===== */
nav { display: flex; gap: 10px; align-items: center; }
nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 8px; transition: all 0.3s; font-size: 15px; border: 2px solid transparent; }
nav a:hover { background: var(--cream); color: var(--gold); border-color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--navy-dark) !important; font-weight: 700 !important; border-color: var(--gold) !important; animation: ctaPulse 2s ease-in-out infinite; }
.nav-cta:hover { background: var(--gold-light) !important; border-color: var(--gold-light) !important; animation: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; z-index: 1001; background: none; border: none; }
.menu-toggle span { width: 28px; height: 3px; background: var(--navy); border-radius: 2px; transition: all 0.3s; display: block; }

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3); transform: scale(1); }
    50% { box-shadow: 0 6px 20px rgba(201, 162, 39, 0.6); transform: scale(1.03); }
}

/* ===== PAGE HERO ===== */
.page-hero { position: relative; height: 500px; overflow: hidden; }
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; background-size: cover; background-position: center 20%; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 40, 64, 0.7) 0%, rgba(26, 58, 92, 0.4) 50%, transparent 100%); z-index: 5; }
.hero-text { position: absolute; z-index: 10; top: 50%; left: 40px; transform: translateY(-50%); max-width: 550px; }
.hero-text .breadcrumb { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.hero-text .breadcrumb a { color: var(--gold-light); text-decoration: none; }
.hero-text h1 { font-size: clamp(32px, 4.5vw, 48px); color: var(--white); margin-bottom: 15px; line-height: 1.15; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-text h1 span { color: var(--gold-light); }
.hero-text p { font-size: 18px; color: rgba(255,255,255,0.95); margin-bottom: 25px; max-width: 450px; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 20; }
.hero-indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; box-shadow: 0 0 5px rgba(0,0,0,0.3); }
.hero-indicator.active { background: var(--gold); transform: scale(1.3); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 8px; font-size: 17px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4); }
.btn-call { background: #22c55e; color: white; }
.btn-call:hover { background: #16a34a; transform: translateY(-3px); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy-dark); }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--white); padding: 20px 15px; border-bottom: 1px solid #e5e5e5; }
.trust-items { max-width: 1000px; margin: 0 auto; display: flex; justify-content: center; gap: 35px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); font-weight: 600; }
.trust-item svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ===== CONTENT SECTIONS ===== */
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }

/* Product Intro */
.product-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.product-intro-text h2 { font-size: 34px; margin-bottom: 20px; }
.product-intro-text p { font-size: 17px; color: var(--gray); margin-bottom: 18px; line-height: 1.8; }
.product-intro-image { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.product-intro-image img { width: 100%; height: auto; display: block; }

/* Features Grid */
.features-section { margin-bottom: 60px; }
.features-section h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.feature-card { background: var(--white); padding: 30px; border-radius: 16px; box-shadow: var(--shadow); transition: transform 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card h4 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.feature-card h4 svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }
.feature-card p { color: var(--gray); font-size: 16px; line-height: 1.7; }

/* Gallery */
.gallery-section { margin-bottom: 60px; }
.gallery-section h2 { text-align: center; font-size: 32px; margin-bottom: 15px; }
.gallery-section > p { text-align: center; color: var(--gray); margin-bottom: 30px; font-size: 17px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.gallery-item { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; cursor: pointer; transition: transform 0.3s; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Why ClearView */
.why-section { background: var(--navy); border-radius: 20px; padding: 50px; margin-bottom: 60px; color: var(--white); }
.why-section h2 { color: var(--white); text-align: center; font-size: 32px; margin-bottom: 15px; }
.why-section > p { text-align: center; opacity: 0.85; margin-bottom: 40px; font-size: 17px; max-width: 650px; margin-left: auto; margin-right: auto; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 40px; }
.why-card { text-align: center; }
.why-icon { width: 60px; height: 60px; background: rgba(201, 162, 39, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; border: 2px solid var(--gold); }
.why-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.why-card h4 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.why-card p { opacity: 0.8; font-size: 14px; line-height: 1.6; }
.why-stats { display: flex; justify-content: center; gap: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.15); }
.stat { text-align: center; }
.stat-number { display: block; font-size: 36px; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 13px; opacity: 0.8; }

/* Testimonials */
.testimonials-section { margin-bottom: 60px; }
.testimonials-section h2 { text-align: center; font-size: 32px; margin-bottom: 10px; }
.testimonials-section > p { text-align: center; color: var(--gray); margin-bottom: 30px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 16px; box-shadow: var(--shadow); }
.stars { color: var(--gold); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 15px; color: var(--gray); font-style: italic; line-height: 1.7; margin-bottom: 15px; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 15px; }
.testimonial-location { font-size: 13px; color: var(--gray); }

/* Service Areas */
.service-areas { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); border-radius: 20px; padding: 40px; text-align: center; color: var(--white); margin-bottom: 60px; }
.service-areas h2 { color: var(--white); font-size: 28px; margin-bottom: 12px; }
.service-areas > p { opacity: 0.9; margin-bottom: 25px; font-size: 16px; }
.areas-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-tag { background: rgba(255,255,255,0.12); padding: 8px 18px; border-radius: 25px; font-size: 14px; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); border-radius: 20px; padding: 50px; text-align: center; color: var(--white); margin-bottom: 60px; }
.cta-section h2 { color: var(--white); font-size: 34px; margin-bottom: 15px; }
.cta-section p { opacity: 0.9; max-width: 600px; margin: 0 auto 30px; font-size: 18px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Form Section */
.form-section { background: var(--cream); padding: 60px 20px; border-radius: 20px; margin-bottom: 60px; }
.service-form { max-width: 600px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.service-form h2 { text-align: center; margin-bottom: 30px; color: var(--navy); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 2px solid #b0b0b0; border-radius: 8px; font-size: 16px; font-family: 'Source Sans 3', sans-serif; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15); }
.form-group select { appearance: none; background: var(--white) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a5c' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.submit-btn { width: 100%; background: var(--gold); color: var(--navy-dark); border: none; padding: 16px; font-size: 18px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all 0.3s; font-family: 'Source Sans 3', sans-serif; }
.submit-btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4); }

/* Google Places Autocomplete */
.pac-container { border-radius: 8px; border: 1px solid #b0b0b0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-family: 'Source Sans 3', sans-serif; margin-top: 4px; }
.pac-item { padding: 8px 14px; font-size: 14px; cursor: pointer; }
.pac-item:hover { background: #f5f0e0; }
.pac-icon { display: none; }
.pac-item-query { font-weight: 600; color: #1a3a5c; }

/* Landing Resources */
.landing-resources { background: var(--cream); padding: 40px 20px; text-align: center; }
.resources-container { max-width: 600px; margin: 0 auto; }
.resources-container h3 { font-size: 22px; margin-bottom: 20px; color: var(--navy); }
.resources-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-resource { padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; }
.btn-brochure { background: var(--navy); color: var(--white); }
.btn-brochure:hover { background: var(--navy-dark); }
.btn-review-landing { background: var(--gold); color: var(--navy-dark); }
.btn-review-landing:hover { background: var(--gold-light); }

/* ===== FOOTER ===== */
footer { background: var(--navy-dark); color: var(--white); padding: 40px 15px 20px; }
.footer-content { max-width: 1100px; margin: 0 auto; }
.footer-brand { text-align: center; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-text { font-family: 'Playfair Display', serif; color: var(--white); font-size: 24px; margin-bottom: 10px; font-weight: 700; }
.footer-brand p { opacity: 0.7; font-size: 14px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-section h4 { color: var(--gold); font-size: 13px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: var(--white); opacity: 0.7; text-decoration: none; font-size: 13px; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; opacity: 0.6; }

/* ===== FLOATING CALL BUTTON ===== */
.floating-call { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #22c55e; color: white; padding: 14px 28px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 16px; z-index: 999; box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4); align-items: center; gap: 8px; }
.floating-call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; cursor: pointer; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; line-height: 1; z-index: 10000; }

/* ===== DESKTOP CONSTRAINTS ===== */
@media (min-width: 769px) {
    header, .trust-bar, .page-hero { max-width: 1200px; margin-left: auto; margin-right: auto; }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    .top-bar { display: none; }
    header { padding: 8px 15px; height: 60px; position: fixed; top: 0; left: 0; right: 0; }
    .logo-img { height: 50px; margin-top: 0; }
    .company-name-desktop { display: none; }
    .mobile-company-name { display: block; }
    .menu-toggle { display: flex; }
    nav { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; padding: 0; overflow-y: auto; z-index: 999; }
    nav.active { display: flex; }
    nav a { padding: 18px 25px; border-bottom: 1px solid #eee; font-size: 18px; }
    nav a.nav-cta { background: var(--gold); color: var(--navy-dark); margin: 20px; border-radius: 12px; text-align: center; justify-content: center; font-size: 20px; padding: 20px; }

    .page-hero { height: 50vh; min-height: 300px; max-height: 450px; margin-top: 60px; }
    .hero-text { left: 15px; right: 15px; max-width: 100%; }
    .hero-text h1 { font-size: 26px; }
    .hero-text p { font-size: 15px; margin-bottom: 18px; }
    .hero-cta { flex-direction: row; gap: 10px; }
    .hero-cta .btn { flex: 1; justify-content: center; text-align: center; padding: 12px 16px; font-size: 15px; }

    .trust-items { gap: 12px; }
    .trust-item { font-size: 12px; }
    .trust-item svg { width: 18px; height: 18px; }

    .content-wrap { padding: 30px 15px; }
    .product-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 35px; }
    .product-intro-text h2 { font-size: 24px; margin-bottom: 12px; }
    .product-intro-text p { font-size: 15px; margin-bottom: 12px; }

    .features-section { margin-bottom: 35px; }
    .features-section h2 { font-size: 24px; margin-bottom: 25px; }
    .features-grid { gap: 12px; }
    .feature-card { padding: 20px; }
    .feature-card h4 { font-size: 17px; }
    .feature-card p { font-size: 14px; }

    .gallery-section { margin-bottom: 35px; }
    .gallery-section h2 { font-size: 24px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .why-section { padding: 25px 15px; margin-bottom: 35px; }
    .why-section h2 { font-size: 24px; }
    .why-section > p { font-size: 15px; margin-bottom: 25px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 25px; }
    .why-card h4 { font-size: 16px; }
    .why-card p { font-size: 13px; }
    .why-stats { gap: 25px; flex-wrap: wrap; }
    .stat-number { font-size: 28px; }

    .testimonials-section { margin-bottom: 35px; }
    .testimonials-section h2 { font-size: 24px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
    .testimonial-card { padding: 20px; }

    .service-areas { padding: 25px 15px; margin-bottom: 35px; border-radius: 16px; }
    .service-areas h2 { font-size: 22px; }

    .cta-section { padding: 30px 15px; margin-bottom: 35px; border-radius: 16px; }
    .cta-section h2 { font-size: 24px; }
    .cta-section p { font-size: 15px; }
    .cta-buttons { flex-direction: row; gap: 10px; }
    .cta-buttons .btn { flex: 1; justify-content: center; padding: 14px 12px; font-size: 15px; }

    .form-section { padding: 30px 15px; margin-bottom: 35px; }
    .service-form { padding: 25px 15px; }
    .service-form h2 { font-size: 22px; margin-bottom: 20px; }

    .footer-columns { grid-template-columns: 1fr; gap: 20px; }
    .floating-call { display: flex; }

    .landing-resources { padding: 25px 15px; }
    .resources-buttons { gap: 10px; }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
