/* ========================================
   Pierce Elementary Landing Page
   Purpose Design + Build
   ======================================== */

:root {
    --primary: #2D5A27;      /* Forest green */
    --primary-dark: #1E3D1A;
    --accent: #D4A84B;       /* Warm gold */
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #ffffff;
    --bg-alt: #f8f7f4;
    --border: #e5e5e5;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ========================================
   HERO
   ======================================== */
.hero {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 24px 120px;
    text-align: center;
    position: relative;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo img {
    height: 60px;
    width: auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   IMPACT TRACKER
   ======================================== */
.impact-tracker {
    background: var(--primary);
    color: white;
    padding: 60px 24px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.impact-tracker h2 {
    color: white;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 100px 24px;
    background: var(--bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 24px 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 100px 24px;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3,
.service-card p {
    padding: 0 24px;
}

.service-card h3 {
    padding-top: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.service-card .timeline {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p:last-child {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
    padding: 100px 24px;
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews {
    padding: 100px 24px;
    background: var(--bg-alt);
    text-align: center;
}

.reviews-header {
    margin-bottom: 48px;
}

.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-text {
    font-weight: 600;
    color: var(--text);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    text-align: left;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 16px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text);
}

.review-author {
    font-weight: 600;
    color: var(--primary);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 100px 24px;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    text-align: left;
    margin-bottom: 8px;
}

.about-tagline {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.trust-signals {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.trust-signals li {
    font-weight: 500;
    color: var(--text);
}

/* ========================================
   FORM
   ======================================== */
.estimate-form {
    padding: 100px 24px;
    background: var(--primary);
    color: white;
}

.estimate-form h2 {
    color: white;
}

.estimate-form .section-subtitle {
    color: rgba(255,255,255,0.8);
}

/* Embedded Form Styles */
.embedded-form {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.form-progress {
    height: 4px;
    background: rgba(0,0,0,0.1);
}

.form-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 20%;
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step-header {
    margin-bottom: 24px;
}

.step-indicator {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-step-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 8px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
    background: white;
    color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Option Cards */
.form-options {
    display: grid;
    gap: 10px;
}

.form-options.compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.form-option {
    cursor: pointer;
}

.form-option input {
    display: none;
}

.option-box {
    display: block;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.form-options.compact .option-box {
    padding: 12px;
    text-align: center;
}

.form-option:hover .option-box {
    border-color: var(--primary);
    background: #f9f9f9;
}

.form-option input:checked + .option-box {
    border-color: var(--primary);
    background: rgba(45, 90, 39, 0.08);
}

.option-title {
    display: block;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.option-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* File Upload */
.file-drop {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-drop:hover {
    border-color: var(--primary);
    background: #f9f9f9;
}

.file-drop.has-files {
    border-color: var(--primary);
    background: rgba(45, 90, 39, 0.05);
}

.file-drop input {
    display: none;
}

.file-drop-content {
    color: var(--text-light);
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

.file-drop strong {
    color: var(--primary);
}

.file-list {
    margin-top: 12px;
    text-align: left;
}

.file-item {
    display: inline-block;
    background: var(--bg-alt);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 4px;
    color: var(--text);
}

/* Form Navigation */
.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.form-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-btn-back {
    background: var(--bg-alt);
    color: var(--text);
    flex: 0.5;
}

.form-btn-back:hover {
    background: var(--border);
}

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

.form-btn-next:hover {
    background: var(--primary-dark);
}

.form-btn-submit {
    background: var(--accent);
    color: var(--primary-dark);
}

.form-btn-submit:hover {
    background: #c49a3d;
}

/* Success Screen */
.form-success {
    text-align: center;
    padding: 20px;
}

.success-check {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.success-contact a {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .form-step {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options.compact {
        grid-template-columns: 1fr 1fr;
    }

    .form-nav {
        flex-direction: column;
    }

    .form-btn-back {
        flex: 1;
        order: 2;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text);
    color: white;
    padding: 60px 24px 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 16px;
        background: var(--bg-alt);
        border-radius: var(--radius);
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .services-grid,
    .gallery-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-tagline {
        text-align: center;
    }

    .trust-signals {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}
