/* WhereToPark — Modern Clean Design */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #10b981;
    --text: #111827;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.brand-icon { font-size: 1.5rem; }
.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

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

.nav-user {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Main Content ────────────────────────────── */
.main-content {
    min-height: calc(100vh - 140px);
}

/* ── Footer ──────────────────────────────────── */
.footer {
    background: var(--bg-dark);
    color: #d1d5db;
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer .brand-text { color: #fff; font-size: 1.1rem; }
.footer-tagline { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-copy { font-size: 0.85rem; color: #9ca3af; }

/* ── Hero Section ────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 5rem 4rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
    min-height: 520px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.parking-map-placeholder {
    width: 340px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-light), #bfdbfe);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px solid #bfdbfe;
    box-shadow: var(--shadow-lg);
}

.map-icon { font-size: 4rem; }
.map-label { font-size: 1rem; font-weight: 600; color: var(--primary); }

/* ── Features Section ────────────────────────── */
.features {
    padding: 5rem 4rem;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.feature-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── CTA Section ─────────────────────────────── */
.cta-section {
    padding: 5rem 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: #fff;
}

.cta-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.cta-section .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* ── Page Header ─────────────────────────────── */
.page-header {
    padding: 4rem 4rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.page-subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* ── About Page ──────────────────────────────── */
.about-section {
    padding: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.about-text h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    gap: 0.5rem;
}

.stat-number { font-size: 2rem; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

.how-it-works {
    padding: 4rem;
    background: var(--bg-secondary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

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

.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.step-content p { color: var(--text-muted); line-height: 1.7; }

.tech-section {
    padding: 4rem;
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

/* ── Login Page ──────────────────────────────── */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon { font-size: 3rem; display: block; margin-bottom: 0.75rem; }
.login-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.login-header p { color: var(--text-muted); font-size: 0.95rem; }

.login-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Alerts ──────────────────────────────────── */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }

    .features,
    .cta-section,
    .about-section,
    .how-it-works,
    .tech-section { padding: 3rem 1.5rem; }

    .about-grid { grid-template-columns: 1fr; }
    .about-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }

    .navbar { padding: 1rem; }
    .navbar-menu { gap: 1rem; }

    .page-header { padding: 2.5rem 1.5rem 1.5rem; }
    .page-header h1 { font-size: 1.75rem; }
}
