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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    padding: 20px 0;
}

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

.logo {
    display: flex;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid #333;
}

.logo-roommate {
    background: #333;
    color: #fff;
    padding: 8px 12px;
}

.logo-groups {
    background: #fff;
    color: #333;
    padding: 8px 12px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #666;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 24px 40px;
    max-width: 940px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 46px;
    font-weight: 400;
    font-style: italic;
    line-height: 56px;
    color: #333;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Cities Section */
.cities-section {
    max-width: 940px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.city-card {
    display: block;
    transition: transform 0.2s;
}

.city-card:hover {
    transform: translateY(-4px);
}

.city-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s;
}

.city-card:hover .city-image img {
    transform: scale(1.05);
}

.city-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.city-members {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.members-icon {
    width: 18px;
    height: 18px;
    color: #666;
}

/* View Rooms Section */
.view-rooms-section {
    background: #f2f2f2;
    padding: 60px 24px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.cities-links {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cities-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cities-column a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.cities-column a:hover {
    color: #666;
}

/* Stats Section */
.stats-section {
    padding: 80px 24px;
    background: #fff;
}

.stats-container {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.stat-highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(147, 197, 253, 0.5) 60%);
    padding: 0 4px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* Features Section */
.features-section {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: #333;
}

.feature-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #333;
}

.feature-text {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 24px;
    max-width: 940px;
    margin: 0 auto;
}

.section-title-dark {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.step-left {
    flex-direction: row;
}

.step-right {
    flex-direction: row-reverse;
}

.step-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    stroke: #333;
    stroke-width: 1.5;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.step-text {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Reviews Section */
.reviews-section {
    background: #f2f2f2;
    padding: 80px 24px;
}

.reviews-grid {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.review-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    max-width: 940px;
    margin: 0 auto;
}

.faq-container {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    display: flex;
    gap: 20px;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    stroke: #666;
}

.faq-content {
    flex: 1;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #fff;
    padding-top: 60px;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.7;
}

.footer-contact {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.footer-contact a {
    color: #2563eb;
}

.footer-contact a:hover {
    text-decoration: underline;
}

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

.social-link {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social-link:hover {
    background: #555;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #333;
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 940px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #333;
}

/* About Page Styles */
.about-hero {
    max-width: 940px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.about-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
}

.about-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Contact Form */
.contact-section {
    max-width: 940px;
    margin: 0 auto;
    padding: 80px 24px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #f9f9f9;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #555;
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    padding: 40px 24px 60px;
}

.blog-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 18px;
    color: #666;
}

.blog-section {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-image {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-image-content h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-image-blue {
    background: linear-gradient(135deg, #4a90a4 0%, #2d5a6b 100%);
}

.blog-image-teal {
    background: linear-gradient(135deg, #5ba4a4 0%, #3d7878 100%);
}

.blog-image-coral {
    background: linear-gradient(135deg, #e07a5f 0%, #c55a3f 100%);
}

.blog-image-olive {
    background: linear-gradient(135deg, #9a9a4a 0%, #6b6b2d 100%);
}

.blog-image-green {
    background: linear-gradient(135deg, #4a9a7a 0%, #2d6b4d 100%);
}

.blog-image-orange {
    background: linear-gradient(135deg, #e09a5f 0%, #c57a3f 100%);
}

.blog-card-content {
    padding: 20px;
}

.blog-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f2f2f2;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-date {
    font-size: 13px;
    color: #999;
}

/* Community Rules Page Styles */
.rules-section {
    max-width: 940px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.rules-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.rules-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
}

.rules-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rule-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
}

.rule-number {
    width: 48px;
    height: 48px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.rule-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cities-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .cities-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        flex-direction: column;
        gap: 40px;
    }

    .step {
        flex-direction: column !important;
        text-align: center;
    }

    .step-icon {
        margin: 0 auto;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

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

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

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cities-grid {
        grid-template-columns: 1fr;
    }

    .cities-links {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
        line-height: 36px;
    }
}
