/* ============================================================
   revisall.css — Shared Design System
   Link this file on every Revisall page.
   Google Fonts import belongs in your _Layout.cshtml:
  
   ============================================================ */

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
    --rv-primary:        #E27226;
    --rv-primary-dark:   #C9621F;
    --rv-primary-light:  #806D61;
    --rv-dark:           #2C2C2C;
    --rv-dark-2:         #2A2A2A;
    --rv-dark-3:         #232323;
    --rv-light:          #C5BAAA;
    --rv-cream:          #FAF7F4;
    --rv-cream-2:        #F3EDE6;
    --rv-border:         #EDE6DD;
    --rv-text-muted:     #6B5F56;
    --rv-white:          #FFFFFF;
    --rv-error:          #dc2626;
    --rv-success:        #16a34a;
}

/* ══════════════════════════════════════════════
   BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--rv-dark);
    background: var(--rv-cream);
}

h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; }

/* ══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════════════ */
.rv-label {
    font-family: 'Sora', sans-serif;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rv-primary);
    margin-bottom: .55rem;
    display: block;
}

.rv-section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--rv-dark);
    line-height: 1.15;
    margin-bottom: .7rem;
}
.rv-section-title.light { color: var(--rv-white); }

.rv-section-intro {
    color: var(--rv-text-muted);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.rv-body-text {
    color: var(--rv-text-muted);
    font-size: .97rem;
    line-height: 1.75;
    max-width: 620px;
}
.rv-body-text.light { color: var(--rv-light); }

hr.rv-divider {
    border: none;
    border-top: 1.5px solid var(--rv-border);
    margin: 0;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.rv-btn-primary {
    background: var(--rv-primary);
    color: white;
    border: none;
    border-radius: .45rem;
    padding: .65rem 1.6rem;
    font-weight: 700;
    font-size: .9rem;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: background .15s, transform .12s;
    cursor: pointer;
}
.rv-btn-primary:hover {
    background: var(--rv-primary-dark);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}
.rv-btn-primary:active { transform: none; }
.rv-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.rv-btn-ghost {
    background: transparent;
    color: var(--rv-light);
    border: 1.5px solid #3e3e3e;
    border-radius: .45rem;
    padding: .65rem 1.6rem;
    font-weight: 600;
    font-size: .9rem;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: border-color .15s, color .15s;
}
.rv-btn-ghost:hover {
    border-color: var(--rv-light);
    color: white;
    text-decoration: none;
}

.rv-btn-white {
    background: white;
    color: var(--rv-primary);
    border: none;
    border-radius: .45rem;
    padding: .7rem 1.8rem;
    font-weight: 700;
    font-size: .95rem;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: transform .12s, box-shadow .12s;
}
.rv-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    color: var(--rv-primary);
    text-decoration: none;
}

.rv-btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,.45);
    border-radius: .45rem;
    padding: .7rem 1.6rem;
    font-weight: 600;
    font-size: .95rem;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: border-color .15s, background .15s;
}
.rv-btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,.08);
    color: white;
    text-decoration: none;
}

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.rv-crumb {
    font-size: .8rem;
    color: var(--rv-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1.4rem;
}
.rv-crumb a { color: var(--rv-primary); text-decoration: none; font-weight: 500; }
.rv-crumb a:hover { text-decoration: underline; }
.rv-crumb .sep { color: #555; }

/* ══════════════════════════════════════════════
   SHARED CARDS
══════════════════════════════════════════════ */

/* Generic light card */
.rv-card {
    background: white;
    border: 1.5px solid var(--rv-border);
    border-radius: .75rem;
    padding: 1.4rem;
    height: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.rv-card:hover {
    border-color: var(--rv-primary);
    box-shadow: 0 4px 24px rgba(44,44,44,.06);
}

/* Generic dark card */
.rv-card-dark {
    background: #363636;
    border: 1.5px solid #444;
    border-radius: .75rem;
    padding: 1.4rem;
    height: 100%;
    transition: border-color .15s, transform .15s;
}
.rv-card-dark:hover {
    border-color: var(--rv-primary);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   STAT STRIP  (shared — subjects & detail pages)
══════════════════════════════════════════════ */
.rv-stat-strip {
    background: var(--rv-dark);
    border-radius: .8rem;
    display: flex;
    text-align: center;
    overflow: hidden;
}

.rv-stat-item {
    flex: 1;
    padding: 1.3rem .75rem;
    border-right: 1px solid #3a3a3a;
}
.rv-stat-item:last-child { border-right: none; }

.rv-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--rv-primary);
    line-height: 1;
}
.rv-stat-lbl {
    font-size: .72rem;
    color: var(--rv-light);
    margin-top: .3rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .rv-stat-strip { flex-wrap: wrap; }
    .rv-stat-item  { flex: 0 0 50%; border-right: none; border-bottom: 1px solid #3a3a3a; }
    .rv-stat-item:last-child,
    .rv-stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ══════════════════════════════════════════════
   SUBJECT PILLS  (other subjects strip)
══════════════════════════════════════════════ */
.subject-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #363636;
    border: 1.5px solid #444;
    border-radius: 2rem;
    padding: .4rem 1.05rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--rv-light);
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.subject-pill:hover {
    border-color: var(--rv-primary);
    color: var(--rv-primary);
    background: rgba(226,114,38,.1);
    text-decoration: none;
}

/* ══════════════════════════════════════════════
   FORM ELEMENTS  (shared — request demo etc.)
══════════════════════════════════════════════ */
.rv-label-text {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    color: var(--rv-dark);
    margin-bottom: .35rem;
    display: block;
}
.rv-label-text .req { color: var(--rv-primary); margin-left: .1rem; }

.rv-input,
.rv-select,
.rv-textarea {
    width: 100%;
    background: var(--rv-cream);
    border: 1.5px solid var(--rv-border);
    border-radius: .45rem;
    padding: .65rem .9rem;
    font-size: .9rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--rv-dark);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    appearance: none;
}
.rv-input:focus,
.rv-select:focus,
.rv-textarea:focus {
    border-color: var(--rv-primary);
    box-shadow: 0 0 0 3px rgba(226,114,38,.12);
    background: white;
}
.rv-input::placeholder,
.rv-textarea::placeholder { color: #b0a49a; }
.rv-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.rv-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23806D61' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

.rv-input.input-error,
.rv-select.input-error,
.rv-textarea.input-error {
    border-color: var(--rv-error);
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.rv-field-error {
    font-size: .78rem;
    color: var(--rv-error);
    margin-top: .3rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* ══════════════════════════════════════════════
   ALERT
══════════════════════════════════════════════ */
.rv-alert-error {
    background: rgba(220,38,38,.07);
    border: 1.5px solid rgba(220,38,38,.2);
    border-radius: .6rem;
    padding: .85rem 1.1rem;
    color: #b91c1c;
    font-size: .88rem;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

/* ══════════════════════════════════════════════
   SHARED CTA BLOCK  (reusable on any page)
══════════════════════════════════════════════ */
.rv-cta-section { background: var(--rv-dark-3); padding: 4.5rem 0; }

.rv-cta-inner {
    background: var(--rv-primary);
    background-image: radial-gradient(ellipse 70% 120% at 105% 50%, rgba(255,255,255,.1) 0%, transparent 55%);
    border-radius: 1rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.rv-cta-inner h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: .7rem;
}
.rv-cta-inner .rv-cta-sub {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 1.6rem;
}

.rv-cta-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.rv-cta-points li {
    color: rgba(255,255,255,.9);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.rv-cta-points li::before {
    content: "✓";
    background: rgba(255,255,255,.2);
    width: 1.2rem; height: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 800;
    flex-shrink: 0;
}

.rv-cta-proof {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.rv-cta-proof .rv-proof-text  { color: rgba(255,255,255,.7); font-size: .82rem; }
.rv-cta-proof .rv-proof-badge {
    background: rgba(255,255,255,.15);
    border-radius: 2rem;
    padding: .25rem .8rem;
    font-size: .78rem;
    font-weight: 600;
    color: white;
}
