/* Landing Page Specific Styles */

/* Ensure page scrolling works */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.hero-grid .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-form {
    display: flex;
    align-items: flex-start;
}

.hero-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.hero-container.hero-grid {
    overflow: visible;
}

.hero-form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.hero-form .hubspot-form-embed {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    height: 480px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

/* Hide HubSpot branding footer */
.hubspot-form-embed .hs-form__virality-link,
.hubspot-form-embed .hs-form-footer,
.hubspot-form-embed .hubspot-link__container,
.hubspot-form-embed a[href*="hubspot.com/products/free-form-builder"] {
    display: none !important;
}

/* Reduce spacing after hero */
section.hero {
    padding-top: 7rem;
    padding-bottom: 2rem;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
}

section.hero#home {
    overflow: visible !important;
}

.hero-container {
    min-height: auto !important;
    height: auto !important;
}

.hero-form-container {
    max-height: none !important;
}

.community-showcase {
    padding-top: 2rem;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.landing-nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1rem;
}

.landing-nav .nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-nav .logo {
    height: 60px;
    width: auto;
}

.landing-nav .nav-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.landing-nav .nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-nav .nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.landing-nav .nav-login-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

/*Problems Section*/
.problems {
    padding-top: 4rem;
}

/* Footer */
.landing-footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.landing-footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-footer .footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.landing-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.landing-footer .footer-phone a {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer .footer-phone a:hover {
    color: var(--primary);
}

.landing-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Hide hero action buttons */
.hero-actions {
    display: none;
}

.hero-note {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .landing-nav-container {
        height: 70px;
        padding: 0 1rem;
    }
    
    .landing-nav .logo {
        height: 50px;
    }

    .landing-nav .nav-login-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .landing-footer {
        padding: 2rem 0 1.5rem;
    }
    
    .landing-footer .footer-logo {
        height: 40px;
    }
    
    .hero-form-container {
        padding: 1rem;
    }
    
    .hero-form-title {
        font-size: 1.25rem;
    }
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.showcase-item.animate-hidden,
.problem-card.animate-hidden,
.solution-feature.animate-hidden,
.faq-item.animate-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.showcase-item.animate-visible,
.problem-card.animate-visible,
.solution-feature.animate-visible,
.faq-item.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   STICKY CTA BUTTON
   =========================================== */
.sticky-cta {
    position: fixed;
    bottom: -80px;
    right: 20px;
    left: auto;
    transform: none;
    z-index: 999;
    transition: bottom 0.3s ease-out;
}

.sticky-cta.visible {
    bottom: 24px;
}

.sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
    animation: pulse-shadow 2s infinite;
}

.sticky-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Hide on larger screens, show on scroll */
@media (min-width: 769px) {
    .sticky-cta {
        display: block;
    }
}

/* ===========================================
   COMPARISON TABLE
   =========================================== */
.comparison {
    padding: 5rem 0;
    background: var(--bg-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
    background: var(--bg-dark);
    color: white;
    font-weight: 600;
    font-family: var(--font-display);
    position: sticky;
    top: 0;
}

.comparison-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.comparison-table thead th.highlight-col {
    background: var(--primary);
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.comparison-table td.highlight-col {
    background: rgba(59, 130, 246, 0.08);
    font-weight: 500;
}

.comparison-table .check {
    color: #22c55e;
    font-weight: 700;
    margin-right: 0.25rem;
}

.comparison-table .cross {
    color: #ef4444;
    font-weight: 700;
    margin-right: 0.25rem;
}

.comparison-table .partial {
    color: #f59e0b;
    font-weight: 700;
    margin-right: 0.25rem;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq {
    padding: 5rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-answer strong {
    color: var(--primary);
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem;
    }
}

/* Comparison Responsive */
@media (max-width: 768px) {
    .comparison {
        padding: 3rem 0;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 1rem;
    }
}

/* Sticky CTA Mobile */
@media (max-width: 480px) {
    .sticky-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
