/* Nashville Chat - Main Stylesheet */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        margin: 0.5rem 0;
    }
}

/* Main Content */
main {
    min-height: 60vh;
}

/* Hero Section (Index Page) */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240,249,255,0.8) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    color: var(--primary);
}

/* Page Hero (Other Pages) */
.page-hero {
    background: var(--bg-alt);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.page-hero .lead {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Sections */
.cta-section {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Button Base Styles */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    z-index: 1000;
    animation: pulse 2s infinite;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Content CTA Blocks */
.content-cta {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-top: 2rem;
}

/* Button Variants */
.cta-primary {
    background: var(--secondary);
    color: white;
}

.cta-primary:hover {
    background: #d97706;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step {
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Safety Section */
.safety-section {
    background: var(--bg-alt);
    padding: 4rem 0;
}

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

/* Index page sections needing consistent spacing */
.features,
.testimonials,
.how-it-works {
    padding: 4rem 0;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-section {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* About Page */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.check-icon {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-item span {
    color: var(--text);
    line-height: 1.6;
}

.feature-item strong {
    color: var(--text);
}

/* How It Works Page */
.steps-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step-detailed {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number-large {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Info Box */
.info-box {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.info-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text);
}

.info-box p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.info-box ul li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* FAQ Page */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Community Guidelines Page */
.guidelines-content {
    max-width: 800px;
    margin: 0 auto;
}

.guideline-section {
    margin-bottom: 2.5rem;
}

.guideline-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guideline-section > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.guideline-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.guideline-list li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.guideline-list li strong {
    color: var(--text);
}

.guideline-list.negative {
    list-style: none;
    padding-left: 0;
}

.guideline-list.negative li {
    background: #fef2f2;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border-left: 3px solid #dc2626;
    margin-bottom: 0.5rem;
}

.guideline-list.negative li strong {
    color: #991b1b;
}

/* Features Page */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-showcase-item {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon-large {
    width: 64px;
    height: 64px;
    stroke: var(--primary);
    margin: 0 auto 1.5rem;
}

.feature-showcase-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-showcase-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Policy Pages (Privacy & Terms) */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive adjustments for new layouts */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-detailed {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .step-number-large {
        margin: 0 auto;
    }
}
