/* CSS Variables - Design System */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(200, 15%, 20%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(200, 15%, 20%);
    --primary: hsl(195, 75%, 35%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-light: hsl(195, 60%, 92%);
    --secondary: hsl(42, 95%, 55%);
    --secondary-foreground: hsl(200, 15%, 20%);
    --secondary-light: hsl(42, 95%, 95%);
    --muted: hsl(200, 20%, 96%);
    --muted-foreground: hsl(200, 10%, 45%);
    --border: hsl(200, 15%, 88%);
    --radius: 0.75rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(195, 75%, 35%), hsl(195, 75%, 50%));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-hero {
    background: linear-gradient(135deg, hsl(195, 75%, 35%), hsl(195, 75%, 50%));
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: hsl(30, 95%, 50%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.99) 30%, rgba(255, 255, 255, 0) 100%), url(images/hero-housing.jpg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}

.hero-text {
    max-width: 80%;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border-radius: 9999px;
}

.hero-badge p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-white {
    background: var(--background);
}

.section-muted {
    background: var(--muted);
}

.section-gradient {
    background: linear-gradient(135deg, hsl(195, 75%, 35%), hsl(195, 75%, 50%));
    position: relative;
    overflow: hidden;
}

.section-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--background);
    max-width: 48rem;
    margin: 0 auto;
}

.section-subtitle-dark {
    font-size: 1.25rem;
    color: var(--foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.card:hover .card-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.card-icon svg {
    color: var(--primary);
}

.card:hover .card-icon svg {
    color: white;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Founder Section */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
}

.founder-image img {
    width: 100%;
    max-width: 28rem;
    margin: 0;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.founder-credentials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credential-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1rem;
    transition: box-shadow 0.3s;
}

.credential-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.credential-card svg {
    flex-shrink: 0;
    color: var(--secondary);
    margin-top: 0.25rem;
}

.credential-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.credential-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 72rem;
    margin: 2rem auto 0;
}

.team-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
    transition: all 0.3s;
}

.team-card:hover .team-image {
    border-color: var(--primary);
    transform: scale(1.05);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.team-role {
    margin: 0;
    color: var(--primary);
    font-weight: 500;
}

/* Social Proof / Logo Carousel Section */
.logo-carousel {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Community Section */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto 3rem;
}

.community-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}

.community-card:hover {
    transform: scale(1.05);
}

.community-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.community-icon svg {
    color: var(--primary);
}

.community-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.community-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    background: var(--foreground);
    color: var(--background);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-heading {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-list {
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close,
.modal-close-member {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--muted-foreground);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close-member:hover {
    color: var(--foreground);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-message {
    font-size: 1.125rem;
    color: var(--foreground);
    line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 768px) {
    .phone-link {
        display: flex;
    }

    .logo-title {
        font-size: 1.875rem;
    }

    .logo-subtitle {
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 4.4rem;
    }

    .hero-text {
        max-width: 50%;
        margin: 0;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .founder-grid {
        grid-template-columns: 1fr 1fr;
    }

    .founder-image {
        order: 1;
    }

    .founder-credentials {
        order: 2;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .community-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 425px) {
    .logo {
        max-width: 50%;
    }

    .logo-subtitle {
        font-size: 0.625rem;
        line-height: 1.2;
    }

    .logo-title {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .header-content {
        padding: 0.75rem 1rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-primary {
        font-size: 0.625rem;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }

    .btn-primary svg {
        width: 12px;
        height: 12px;
    }

    .btn-hero {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    .btn-outline {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}