/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-logo h2 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
    margin: 0;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.nav-logo a:hover {
    color: #92400e;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #92400e;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(146, 64, 14, 0.4);
}

.secondary-button {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #e2e8f0;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(146, 64, 14, 0.3);
    position: relative;
    overflow: hidden;
}

.rotating-circle {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spinOnce 2s ease-out forwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-logo {
    width: 60px;
    height: 60px;
    position: absolute;
}

@keyframes spinOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rebase-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Logo animation */
.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: logo-shine 3s ease-in-out infinite;
}

@keyframes logo-shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.connection-lines {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px dashed #cbd5e1;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

/* Stats Section */
.stats {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-item p {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* Section Styles */
.housing-crisis, .services, .about, .contact {
    padding: 100px 0;
}

.housing-crisis {
    background: #f8fafc;
}

.services {
    background: white;
}

.about {
    background: #1a1a1a;
    color: white;
}

.contact {
    background: #f8fafc;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 48px;
    margin-bottom: 32px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.about .text-content h2 {
    color: white;
}

.text-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 24px;
}

.about .text-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Crisis Visual */
.crisis-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.chart-container {
    display: flex;
    gap: 16px;
    align-items: end;
    height: 200px;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(to top, #ef4444, #f97316);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scaleY(1.1);
}

.chart-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Services Visual */
.services-visual {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.2s ease;
}

.service-icon:hover {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    color: white;
    -webkit-text-fill-color: white;
    transform: translateY(-4px);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 48px;
    margin-bottom: 32px;
    color: white;
    font-weight: 700;
    letter-spacing: -1px;
}

.about-content p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 48px;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -1px;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #475569;
}

.contact-item i {
    color: #92400e;
    width: 20px;
}

.contact-item a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #92400e;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.submit-button {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.5);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 24px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 15px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-section ul li a:hover {
    color: #0066ff;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #0066ff;
    transform: translateY(-2px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-section a:hover {
    color: #92400e;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 32px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Center the check icon vertically in the hero section on mobile */
    .hero-visual {
        align-items: center;
        justify-content: center;
        margin-top: 40px;
    }

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

    /* Hide the "2,000+ People Helped" stat on mobile */
    .hidden-mobile {
        display: none;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-content.reverse {
        direction: ltr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .text-content h2 {
        font-size: 36px;
    }

    .about-content h2 {
        font-size: 36px;
    }

    .contact-info h2 {
        font-size: 36px;
    }

    /* Move services visual below the What We Offer section */
    .services-visual {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 40px;
        order: 2;
    }

    .services .text-content {
        order: 1;
    }

    .services .image-content {
        order: 2;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button, .secondary-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .text-content h2 {
        font-size: 32px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .contact-info h2 {
        font-size: 32px;
    }

    .contact-form {
        padding: 24px;
    }
} 