/* Faith Sync - Site Styles
 * Modern design with sage green accent & warm slate neutrals
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Warm Slate Neutrals (gray-brown tones) */
    --slate-50: #faf9f7;
    --slate-100: #f5f3f0;
    --slate-200: #e8e4df;
    --slate-300: #d4cfc8;
    --slate-400: #a8a198;
    --slate-500: #7d756b;
    --slate-600: #5c564e;
    --slate-700: #454039;
    --slate-800: #2d2a26;
    --slate-900: #1a1816;

    /* Sage Green Accent */
    --sage-50: #f6f7f4;
    --sage-100: #e8ebe3;
    --sage-200: #d4dac9;
    --sage-300: #b5c0a5;
    --sage-400: #95a382;
    --sage-500: #5f735f;
    --sage-600: #4d5e4d;
    --sage-700: #3d4a3d;
    --sage-800: #323d32;
    --sage-900: #2a322a;

    /* Primary Colors */
    --accent: #a68b6a;
    --accent-light: #b9a082;
    --accent-dark: #91785a;

    /* Semantic Colors */
    --success: #5f735f;
    --success-light: #e8ebe3;
    --warning: #b5851a;
    --warning-light: #fef6e0;
    --error: #9e3b3b;

    /* Background & Surface */
    --bg: #ffffff;
    --bg-alt: var(--slate-50);
    --bg-dark: var(--slate-800);
    --surface: #ffffff;

    /* Text */
    --text: var(--slate-800);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-500);
    --text-on-dark: var(--slate-100);
    --text-on-accent: #ffffff;

    /* Borders & Shadows */
    --border: var(--slate-200);
    --border-light: var(--slate-100);
    --shadow-color: rgba(45, 42, 38, 0.08);
    --shadow: 0 1px 3px var(--shadow-color);
    --shadow-md: 0 4px 12px var(--shadow-color);
    --shadow-lg: 0 8px 24px var(--shadow-color);

    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 200ms ease;
}

/* ========================================
   Base & Typography
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

p { margin-bottom: 1rem; color: var(--text-secondary); }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.5rem; color: var(--text-secondary); }
strong { font-weight: 700; color: var(--text); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ========================================
   Navigation
   ======================================== */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}
.nav-logo:hover { color: var(--text); text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
    background: var(--accent);
    color: var(--text-on-accent) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   Page Header (Legal/Support Pages)
   ======================================== */
.header {
    background: var(--slate-800);
    color: var(--text-on-dark);
    padding: 2rem 1rem;
    text-align: center;
}
.header h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-on-dark); }
.header .subtitle { opacity: 0.8; font-size: 1rem; }

.logo { width: 80px; height: 80px; margin: 0 auto 1rem; }
.logo img { width: 100%; height: 100%; object-fit: contain; }

/* ========================================
   Hero Section (Landing)
   ======================================== */
.hero {
    background: var(--slate-50);
    color: var(--text);
    padding: 10rem 2rem 8rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(95, 115, 95, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text); letter-spacing: -0.02em; }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 600px; margin-inline: auto; color: var(--text-secondary); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.app-badges { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }
.app-badge { height: 50px; transition: transform var(--transition); }
.app-badge:hover { transform: scale(1.05); }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }

.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--text-on-accent); }

.btn-secondary {
    background: var(--slate-200);
    color: var(--text);
    border: 2px solid var(--slate-300);
}
.btn-secondary:hover { background: var(--slate-300); color: var(--text); }

.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--text-on-accent); }

/* ========================================
   Container & Cards
   ======================================== */
.container { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.card h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }

/* ========================================
   Section Titles
   ======================================== */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.section-title p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-inline: auto; }

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

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sage-300); }

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--sage-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}
.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    stroke-width: 1.5;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    background: var(--slate-800);
    color: var(--text-on-dark);
    padding: 6rem 2rem;
}
.how-it-works .section-title h2 { color: var(--text-on-dark); }
.how-it-works .section-title p { color: var(--slate-400); }

.steps { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.step { text-align: center; }
.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-accent);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-on-dark); }
.step p { color: var(--slate-400); font-size: 0.95rem; }

/* ========================================
   Pricing Section
   ======================================== */
.pricing { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured { border: 2px solid var(--accent); transform: scale(1.02); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 3rem; font-weight: 700; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .description { color: var(--text-muted); margin-bottom: 1.5rem; }

.pricing-features { text-align: left; margin-bottom: 2rem; }
.pricing-features li {
    list-style: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pricing-features li::before { content: "\2713"; color: var(--success); font-weight: 700; font-size: 1.1rem; }
.pricing-card .btn { width: 100%; }

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials { background: var(--bg-alt); padding: 6rem 2rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }

.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.testimonial-card p { font-style: italic; margin-bottom: 1.5rem; font-size: 1.05rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--sage-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 1.25rem;
}
.testimonial-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.testimonial-info span { color: var(--text-muted); font-size: 0.9rem; }

/* ========================================
   CTA Section
   ======================================== */
.cta {
    background: var(--slate-800);
    color: var(--text-on-dark);
    padding: 6rem 2rem;
    text-align: center;
}
.cta h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-on-dark); }
.cta p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; color: var(--slate-400); }

/* ========================================
   Contact Card & Info
   ======================================== */
.contact-card {
    background: var(--slate-700);
    color: var(--text-on-dark);
    text-align: center;
    padding: 2.5rem;
}
.contact-card h2 { color: var(--text-on-dark); border-bottom-color: var(--accent); }
.contact-card p { color: var(--slate-300); }
.contact-card a { color: var(--sage-300); font-weight: 600; }
.contact-card a:hover { color: var(--sage-200); }

.email-button {
    display: inline-block;
    background: var(--accent);
    color: var(--text-on-accent) !important;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 1rem;
    transition: all var(--transition);
}
.email-button:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--accent-dark); }

.contact-info {
    background: var(--slate-800);
    color: var(--text-on-dark);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}
.contact-info p { color: var(--slate-300); margin-bottom: 0.5rem; }
.contact-info p:last-child { margin-bottom: 0; }
.contact-info a { color: var(--sage-300); }

/* ========================================
   Highlight Boxes
   ======================================== */
.highlight {
    background: var(--sage-50);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.highlight strong { color: var(--accent-dark); }

.warning {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.warning strong { color: var(--warning); }

.response-time {
    background: var(--success-light);
    border-left: 4px solid var(--success);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.response-time strong { color: var(--success); }

/* ========================================
   FAQ & Quick Links
   ======================================== */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item:first-child { padding-top: 0; }
.faq-question { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.faq-answer { color: var(--text-muted); margin-bottom: 0; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.quick-link {
    display: block;
    background: var(--bg-alt);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}
.quick-link:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick-link-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.quick-link-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    stroke-width: 1.5;
}
.quick-link-title { font-weight: 600; color: var(--text); }

/* ========================================
   Table of Contents & Misc
   ======================================== */
.toc { background: var(--bg-alt); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.toc ol { margin-bottom: 0; }
.toc li { margin-bottom: 0.25rem; }
.toc a { color: var(--accent); }

.last-updated { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ========================================
   Footer
   ======================================== */
.footer { background: var(--slate-800); color: var(--text-on-dark); padding: 4rem 2rem 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-weight: 700; font-size: 1.25rem; color: var(--text-on-dark); }

.footer-section h4 { color: var(--text-on-dark); margin-bottom: 1rem; font-size: 1rem; }
.footer-section a { display: block; color: var(--slate-400); padding: 0.25rem 0; font-size: 0.95rem; }
.footer-section a:hover { color: var(--sage-300); text-decoration: none; }
.footer-section p { color: var(--slate-400); }

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: 0.9rem; color: var(--slate-500); margin-bottom: 0; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--slate-500); font-size: 0.9rem; }
.footer-links a:hover { color: var(--sage-300); }

.footer-simple { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-simple p { margin-bottom: 0.5rem; }
.footer-simple p:last-child { margin-bottom: 0; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .nav { padding: 1rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }

    .hero { padding: 6rem 1.5rem 4rem; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .header h1 { font-size: 1.5rem; }

    .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
    .section-title h2 { font-size: 1.75rem; }
    .card, .contact-card { padding: 1.5rem; }
    .pricing-card.featured { transform: none; }
    .cta h2 { font-size: 1.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .app-badges { flex-direction: column; align-items: center; }
}
