/* ================================================================
   RAWSO Equipment Rentals — Design System
   Mobile-first field portal for construction foremen
   ================================================================ */

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
    /* Brand */
    --accent:           #F36E22;
    --accent-hover:     #d85d15;
    --accent-subtle:    rgba(243, 110, 34, 0.08);

    /* Neutral Scale (Warm Charcoal) */
    --foreground:       #1F2323;
    --secondary:        #4a5553;
    --muted:            #677473;
    --faint:            #94a3a1;
    --border:           #e2e5e4;
    --surface:          #ffffff;
    --surface-raised:   #f8f9f8;
    --background:       #f5f6f5;

    /* Typography — larger base for field use */
    --font-sans:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --text-sm:          0.875rem;     /* 14px */
    --text-base:        1rem;         /* 16px — iOS zoom threshold */
    --text-lg:          1.125rem;     /* 18px */
    --text-xl:          1.5rem;       /* 24px */
    --text-2xl:         2rem;         /* 32px */

    /* Touch-friendly spacing */
    --touch-min:        56px;
    --space-1:          0.25rem;
    --space-2:          0.5rem;
    --space-3:          0.75rem;
    --space-4:          1rem;
    --space-6:          1.5rem;
    --space-8:          2rem;

    /* Border Radius */
    --radius-sm:        4px;
    --radius-md:        6px;
    --radius-lg:        10px;
    --radius-xl:        14px;

    /* Shadows */
    --shadow-sm:        0 1px 2px rgba(31, 35, 35, 0.05);
    --shadow-md:        0 4px 12px rgba(31, 35, 35, 0.08);
    --shadow-lg:        0 8px 24px rgba(31, 35, 35, 0.12);

    /* Transitions */
    --transition-fast:  0.15s ease;
    --transition-base:  0.2s ease;
}

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

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    font-size: var(--text-base);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent iOS Safari auto-zoom on form inputs */
input, select, textarea {
    font-size: 1rem;
}

/* ── Page Header ────────────────────────────────────────────────── */
.page-header {
    background: var(--surface);
    text-align: center;
    padding: var(--space-8) var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
}

.logo {
    max-height: 40px;
    width: auto;
    margin-bottom: var(--space-4);
}

.greeting {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
}

/* ── Form Card Grid ─────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 500px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Form Cards ─────────────────────────────────────────────────── */
.form-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    min-height: var(--touch-min);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-2);
    border-left: 4px solid var(--accent);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

a.form-card {
    text-decoration: none;
    color: var(--foreground);
    cursor: pointer;
}

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

a.form-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.form-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    border-left-color: var(--border);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.coming-soon {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    display: none;
}

.form-card.disabled .coming-soon {
    display: inline-block;
}

/* ── Placeholder Pages ──────────────────────────────────────────── */
.placeholder-page {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-8);
    text-align: center;
}

.placeholder-page h1 {
    font-size: var(--text-xl);
    color: var(--foreground);
    margin-bottom: var(--space-4);
}

.placeholder-message {
    font-size: var(--text-base);
    color: var(--muted);
}

.back-link {
    color: var(--accent);
    font-size: var(--text-base);
    font-weight: 500;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: var(--space-6);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-hover);
}
