/* EstateIntel Support Website Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Theme Variables - Light Mode Default */
    --primary: #0f766e; /* Deep Teal */
    --primary-light: #14b8a6; /* Teal Accent */
    --primary-dark: #115e59;
    --secondary: #0f172a; /* Slate 900 */
    --accent: #f59e0b; /* Amber */
    
    --bg-base: #f8fafc; /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #ffffff;
    
    --border: #e2e8f0;
    --border-focus: #14b8a6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s ease;
    
    --container-max: 1100px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-base: #0b0f19; /* Dark Slate Blue */
    --bg-surface: #141d2f;
    --bg-surface-hover: #1e293b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0b0f19;
    
    --border: #243249;
    --border-focus: #14b8a6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(var(--bg-surface), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

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

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Light theme shows sun icon, dark theme shows moon icon */
body:not([data-theme="dark"]) .moon-icon {
    display: block;
}
body:not([data-theme="dark"]) .sun-icon {
    display: none;
}
body[data-theme="dark"] .moon-icon {
    display: none;
}
body[data-theme="dark"] .sun-icon {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(15, 118, 110, 0.08) 0%, transparent 50%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-normal);
}

.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-input:focus + .search-icon {
    color: var(--primary-light);
}

/* Categories Grid */
.categories-section {
    padding: 80px 0 40px;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background-color: var(--primary-light);
    color: white;
    transform: scale(1.1);
}

.category-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 40px 0 80px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-header {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    gap: 16px;
}

.faq-header-text {
    flex: 1;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-normal), color var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-body {
    /* Set dynamically in JS, fallback for CSS transitions */
    max-height: 500px;
}

.faq-item.active .faq-content {
    border-top-color: var(--border);
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 48px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: none;
}

.no-results-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin: 0 auto 16px;
}

.no-results-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-results-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

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

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

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-normal);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--border-focus);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

.submit-btn {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

/* Success Modal/Banner */
.form-success-card {
    display: none;
    background-color: rgba(20, 184, 166, 0.08);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.success-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.success-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.reset-btn {
    padding: 8px 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.reset-btn:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--primary-light);
}

/* Static Pages Layout (Privacy Policy / Terms of Service) */
.document-layout {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.doc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.doc-back-link:hover {
    color: var(--primary-light);
}

.doc-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.doc-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.doc-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-content h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px;
    border-bottom: 1px solid rgba(var(--border), 0.5);
    padding-bottom: 8px;
}

.doc-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.doc-content ul, .doc-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--text-muted);
}

.doc-content li {
    margin-bottom: 8px;
}

/* App Info Callout Card */
.app-promo-card {
    background: linear-gradient(135deg, #115e59 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: white;
    text-align: center;
    margin: 80px 0 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.app-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.app-promo-title {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.app-promo-desc {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: black;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: 1px solid #334155;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.app-store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-light);
    color: white;
}

.app-store-badge svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.badge-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.badge-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.badge-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Footer */
.footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 48px 0;
    margin-top: 80px;
    color: var(--text-muted);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

.footer-brand {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-copy {
    font-size: 0.85rem;
    width: 100%;
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
