:root {
    --primary: #c81d25;
    --primary-dark: #98161c;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #ffffff;
    --soft: #f7f7f8;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 18px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.topbar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary), #ff4d4d);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.8rem;
}

.hero {
    padding: 80px 0;
    background:
        radial-gradient(circle at top right, rgba(200,29,37,0.08), transparent 30%),
        linear-gradient(180deg, #fff, #fafafa);
}

.hero-grid,
.split,
.footer-grid,
.cards-2,
.cards-3,
.projects-grid,
.stats-grid {
    display: grid;
    gap: 24px;
}

.hero-grid,
.split {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-3,
.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.hero h1,
.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.hero-card,
.card,
.project-card,
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
}

.card,
.project-body,
.stat-card {
    padding: 24px;
}

.project-card {
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.no-image {
    height: 240px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--muted);
}

.section {
    padding: 72px 0;
}

.light-bg {
    background: var(--soft);
}

.page-banner {
    padding: 70px 0 40px;
    background: linear-gradient(180deg, rgba(200,29,37,0.06), transparent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

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

.full-width {
    width: 100%;
}

form {
    display: grid;
    gap: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.auth-card,
.narrow {
    max-width: 620px;
    margin: 0 auto;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.site-footer {
    background: #111827;
    color: #fff;
    padding-top: 50px;
}

.site-footer a {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.fade-in,
.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
}

.fade-in.visible,
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .cards-2,
    .cards-3,
    .projects-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        display: none;
    }

    .main-nav.active {
        display: flex;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}