@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --red-primary:   #B91C1C;
    --red-dark:      #7F1D1D;
    --red-light:     #FEF2F2;
    --sidebar-bg:    #1E1E2D;
    --bg-body:       #F1F5F9;
    --bg-card:       #FFFFFF;
    --text-primary:  #1E293B;
    --text-muted:    #64748B;
    --border:        #E2E8F0;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --radius:        8px;
    --radius-lg:     12px;
}

/* ── Base ─────────────────────────────────────── */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
h1:focus { outline: none; }

a {
    color: var(--red-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--red-dark); text-decoration: underline; }

p { color: var(--text-primary); }

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.5rem 1.25rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
#radbtn {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
    border-radius: var(--radius);
    font-weight: 500;
}
.btn-light {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-muted);
}
.btn-light:hover { background-color: var(--bg-body); }

/* ── Forms ────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    display: block;
}
.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
    width: 100%;
}
.form-control:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
    outline: none;
}
.valid.modified:not([type=checkbox]) { outline: 2px solid #16A34A; outline-offset: 1px; }
.invalid { outline: 2px solid var(--red-primary); outline-offset: 1px; }
.validation-message { color: var(--red-primary); font-size: 0.8rem; margin-top: 0.25rem; }
.radmsg { color: var(--red-primary); font-weight: 500; padding: 0.5rem 0; }

/* ── Select dropdown ──────────────────────────── */
.btn-rad {
    background-color: var(--red-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.btn-rad:hover { background-color: var(--red-dark); }

/* ── Page layout (flex row) ───────────────────── */
.rad-page {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* ── Card-style layout divs ───────────────────── */
.layoutleftdiv {
    flex: 1 1 45%;
    min-width: 260px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.layoutrightdiv {
    flex: 1 1 45%;
    min-width: 240px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.layoutrightdiv-trans {
    flex: 1 1 40%;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.layoutleftdiv66 {
    flex: 1 1 58%;
    min-width: 260px;
    padding: 0.5rem 0;
}
.layoutrightdiv34 {
    flex: 1 1 30%;
    min-width: 220px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
/* ── About highlight box ──────────────────────── */
#rad-aboutcontent2 {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-md);
    border: none;
    float: none;
    clear: both;
}

/* ── Contact info block ───────────────────────── */
.rad-contact {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-top: 1rem;
}
.rad-contact p {
    padding: 0.6rem 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}
.rad-contact p:last-child { border-bottom: none; }

/* ── Services page container ──────────────────── */
.container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    position: relative;
    text-align: left;
}
.top-left  { margin-top: 0.5rem; font-weight: 500; }
.bottom-left { color: var(--text-muted); margin-top: 0.25rem; font-size: 0.9rem; }

/* ── Social icons ─────────────────────────────── */
.radsocialhref {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.radsocialhref:hover { border-color: var(--red-primary); background-color: var(--red-light); }
.radsocialimg { width: 22px; height: 22px; }

/* ── LinkedIn badge ───────────────────────────── */
.LI-profile-badge { margin: 0.5rem 0.75rem 0.5rem 0; }

/* ── Footer ───────────────────────────────────── */
.fixed-bottom {
    background-color: var(--bg-card) !important;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    padding: 0.6rem 1rem;
}

/* ── Content padding ──────────────────────────── */
.content { padding-top: 1.5rem; padding-bottom: 5rem; }

/* ── Blazor error UI ──────────────────────────── */
#blazor-error-ui {
    background: #FFF7ED;
    border-top: 2px solid #F97316;
    bottom: 0; left: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    display: none;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.875rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: 0.6rem; }

/* ── Hero block ───────────────────────────────── */
.rad-hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.rad-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.rad-hero-sub {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 580px;
}
.btn-outline {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: var(--radius);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ── Section label ────────────────────────────── */
.rad-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red-primary);
    margin: 2rem 0 0.75rem;
}

/* ── Page intro ───────────────────────────────── */
.rad-page-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ── Cards ────────────────────────────────────── */
.rad-card {
    flex: 1 1 220px;
    min-width: 220px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.rad-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.rad-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.rad-card p { font-size: 0.92rem; color: var(--text-muted); }
.rad-card ul { font-size: 0.88rem; color: var(--text-muted); padding-left: 1.1rem; margin: 0.5rem 0; }
.rad-card li { margin-bottom: 0.25rem; }
.rad-card a { font-size: 0.875rem; font-weight: 500; }

.rad-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}
.rad-step-num {
    background: var(--red-primary);
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ── Divider ──────────────────────────────────── */
.rad-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ── CTA block ────────────────────────────────── */
.rad-cta-block {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}
.rad-cta-block h2 { color: #fff; margin-bottom: 0.5rem; }
.rad-cta-block p  { color: rgba(255,255,255,0.88); margin-bottom: 1.25rem; }
.rad-cta-block .btn-outline {
    border: 2px solid rgba(255,255,255,0.7);
}

/* ── Blog grid ────────────────────────────────── */
.rad-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.rad-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.rad-blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--red-primary);
    text-decoration: none;
    color: inherit;
}
.rad-blog-date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
}
.rad-blog-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.rad-blog-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}
.rad-blog-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--red-primary);
    margin-top: auto;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 640px) {
    .rad-page { flex-direction: column; }
    .layoutleftdiv, .layoutrightdiv, .layoutleftdiv66,
    .layoutrightdiv34, .layoutrightdiv-trans {
        min-width: 100%;
        width: 100%;
    }
}
