/* ========================================
   K&D Pools Maintenance Site - Main Styles
   ======================================== */

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pool-dark) 0%, var(--pool-blue) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 0.875rem;
}

/* Problems Section */
.problems-section {
    background: var(--neutral-50);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: var(--neutral-600);
    line-height: 1.6;
}

.problems-cta {
    text-align: center;
}

/* Plans Section */
.plans-section {
    background: var(--white);
}

.plan-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border: 2px solid var(--neutral-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--neutral-200);
}

.toggle-btn.active {
    background: var(--pool-blue);
    color: var(--white);
    border-color: var(--pool-blue);
}

.plans-container {
    display: none;
}

.plans-container.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--pool-blue);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.15);
    transform: translateY(-5px);
}

.plan-card.featured {
    border-color: var(--pool-blue);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.2);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    border-bottom: 2px solid var(--neutral-100);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.75rem;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pool-blue);
}

.period {
    font-size: 1.125rem;
    color: var(--neutral-600);
}

.plan-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

.plan-features li:last-child {
    border-bottom: none;
}

.check {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.125rem;
}

.times {
    color: var(--neutral-300);
    font-weight: 700;
    font-size: 1.125rem;
}

.plan-cta {
    text-align: center;
}

.plan-cta .btn {
    width: 100%;
}

/* Seasonal Plans */
.seasonal-plans {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.seasonal-card {
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.seasonal-card.featured {
    border-color: var(--pool-blue);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.2);
}

.seasonal-card h3 {
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.seasonal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pool-blue);
    margin-bottom: 1rem;
}

.seasonal-savings {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.seasonal-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.seasonal-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.seasonal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.seasonal-card .btn {
    width: 100%;
}

/* Timeline Section */
.timeline-section {
    background: var(--neutral-50);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--pool-light) 0%, var(--pool-blue) 100%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 4px solid var(--pool-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-icon.spring {
    border-color: #10b981;
}

.timeline-icon.summer {
    border-color: #f59e0b;
}

.timeline-icon.fall {
    border-color: #ef4444;
}

.timeline-icon.winter {
    border-color: var(--pool-blue);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    font-size: 1.75rem;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.timeline-month {
    color: var(--pool-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content > p {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.timeline-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.timeline-checklist li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--neutral-600);
    font-size: 0.95rem;
}

.timeline-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--neutral-200);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--pool-blue);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--pool-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* Service Area Section */
.service-area-section {
    background: var(--neutral-50);
}

.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.area-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.area-card:hover {
    border-color: var(--pool-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 145, 178, 0.15);
}

.area-card h3 {
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.area-card p {
    color: var(--neutral-600);
}

/* Form Section */
.form-section {
    background: var(--neutral-50);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pool-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--neutral-200);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pool-blue);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-actions {
    margin-top: 2rem;
}

.form-actions .btn {
    width: 100%;
}

.form-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    font-size: 2rem;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Upsell Section */
.upsell-section {
    background: var(--white);
}

.upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.upsell-card {
    background: var(--neutral-50);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid var(--neutral-100);
    transition: all 0.3s ease;
}

.upsell-card:hover {
    border-color: var(--pool-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(8, 145, 178, 0.15);
}

.upsell-card h3 {
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.upsell-card p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Mobile Sticky CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.mobile-cta .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--neutral-200);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--neutral-200);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pool-light);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--neutral-200);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--neutral-200);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--pool-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 100px;
    }

    .timeline-icon {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
    }

    .mobile-cta {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .problem-card,
    .plan-card,
    .upsell-card {
        padding: 1.5rem;
    }

    .form-wrapper {
        padding: 1.5rem 1rem;
    }

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .hero,
    .mobile-cta,
    .footer,
    .btn {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
