/* ===============================================
   FREEREALTORTOOL.COM - LANDING PAGE STYLES
   =============================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    
    /* Announcement Banner Colors */
    --banner-bg-start: #f59e0b;
    --banner-bg-end: #ef4444;
    --banner-text: #ffffff;
    
    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-base: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed banner + nav */
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: #ffffff;
    overflow-x: hidden;
}

/* ===== SCROLLING ANNOUNCEMENT BANNER ===== */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--banner-bg-start) 0%, var(--banner-bg-end) 100%);
    color: var(--banner-text);
    overflow: hidden;
    z-index: 9999;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.banner-content {
    display: flex;
    white-space: nowrap;
}

.banner-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Make banner text bold and clear */
.banner-text {
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#spotsRemaining,
#spotsRemaining2,
#spotsRemaining3 {
    font-weight: 900;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 48px; /* Below announcement banner */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 120px; /* Extra padding for banner + nav */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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="%232563eb" opacity="0.1"/></svg>');
    opacity: 0.4;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.highlight {
    display: block;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Stats */
.stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 5px;
}

/* Floating Cards Animation */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 40px -5px rgba(0, 0, 0, 0.15);
}

.floating-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.floating-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.floating-card p {
    font-size: 14px;
    color: var(--gray-600);
}

.card-1 {
    top: 50px;
    left: 50px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite 1.5s;
}

.card-3 {
    bottom: 100px;
    left: 50px;
    animation: float 6s ease-in-out infinite 3s;
}

.card-4 {
    bottom: 100px;
    right: 50px;
    animation: float 6s ease-in-out infinite 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== FORMS ===== */
.signup-form {
    margin-top: 30px;
}

.form-group-inline {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: var(--transition);
    font-family: var(--font-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-notice {
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-notice i {
    color: var(--secondary);
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== TOOLS SECTION ===== */
.tools {
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tool-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.tool-icon i {
    font-size: 32px;
    color: white;
}

.tool-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.tool-card > p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-features {
    list-style: none;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 15px;
}

.tool-features i {
    color: var(--secondary);
    font-size: 14px;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: var(--gray-50);
}

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

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 28px;
    color: white;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

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

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: var(--gray-50);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.stars i {
    color: #fbbf24;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-title {
    font-size: 14px;
    color: var(--gray-600);
}

.social-proof {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    font-size: 18px;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.urgency-box {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.urgency-box i {
    color: #ef4444;
    font-size: 24px;
}

.urgency-box p {
    margin: 0;
    text-align: left;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-desc {
    color: var(--gray-300);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-400);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon i {
    font-size: 40px;
    color: white;
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.modal-content p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-bonus {
    background: var(--gray-50);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin: 20px 0;
}

.modal-content .btn {
    margin-top: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-title {
        font-size: 36px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Banner adjustments */
    .announcement-banner {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .navbar {
        top: 40px; /* Adjust for smaller banner */
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .form-group-inline {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .tools-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .modal-content {
        margin: 20px;
        padding: 40px 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .announcement-banner {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .navbar {
        top: 36px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}