﻿/* Qoleq - Modern SaaS UI Styles */

/* Brand Colors - Green Theme */
:root {
    --brand-primary: #10b981;
    --brand-primary-hover: #059669;
    --brand-primary-light: #d1fae5;
    --brand-dark: #065f46;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f0fdf4;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Section Spacing */
.section {
    padding: 1rem 0;
}

.section-lg {
    padding: 1rem 0;
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-feature {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

    .card-feature:hover {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
        border-color: var(--brand-primary-light);
    }

.feature-image {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--brand-primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

    .btn-secondary:hover {
        background: var(--bg-secondary);
        border-color: var(--brand-primary);
    }

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

    .btn-outline:hover {
        background: var(--brand-primary);
        color: white;
    }

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Pricing */
.pricing-grid {
    max-width: 1050px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-header {
    margin-bottom: 2rem;
}

.price {
    font-size: 2.75rem;
    margin: 0.75rem 0 0.25rem;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

    .pricing-list li {
        margin-bottom: 0.75rem;
        display: flex;
        gap: 0.5rem;
    }

/* Popular plan */
.pricing-popular {
    border: 2px solid var(--brand-primary);
    transform: translateY(-4px);
}

.ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Premium */
.pricing-premium {
    border: 2px solid var(--brand-primary-light);
}

/* Notes */
.pricing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: all 0.2s;
}

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

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

.form-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-required {
    color: var(--brand-primary);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--brand-primary-light);
    color: var(--brand-dark);
}

/* Hero Header */
.hero-header {
    display: flex;
    max-width: fit-content;
    margin: .5rem auto; /* center horizontally with spacing */
}

.hero-logo {
    width: 120px; /* adjust for hero size */
    height: auto; /* maintain aspect ratio */
}

/* Messages */
.message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.message-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--brand-primary);
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.message-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-themed {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
    border-bottom: none;
}

    .header-themed h1,
    .header-themed p {
        color: white;
    }

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-brand {
    color: var(--brand-primary);
}

.text-lg {
    font-size: 1.25rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 3rem;
}

.py-8 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Icon */
.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-visual {
    margin: 2rem auto;
    padding: 0 1rem;
}

    .hero-visual img {
        width: 100%;
        max-width: 720px;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 16px;
        object-fit: cover;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
    }

    .lead {
        font-size: 1.125rem;
    }

    .section {
        padding: 1rem 0;
    }

    .section-lg {
        padding: 0rem 0;
    }

    .container,
    .container-narrow {
        padding: 0 1rem;
    }

    .card,
    .card-feature {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .grid {
        gap: 1.5rem;
    }

    .hero-visual {
        padding: 0;
        margin: 1.5rem 0;
    }

        .hero-visual img {
            border-radius: 0;
        }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}