/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    background: #fdfbf7;
    color: #1a1a1a;
    line-height: 1.7;
}

a { color: #a6804a; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 2px solid #a6804a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #a6804a;
}

.main-nav a {
    margin-inline-start: 1.5rem;
    color: #444;
    font-weight: 600;
}

/* ── Main ──────────────────────────────────────────────────────────────────── */
.main-content {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: #f0ebe0;
    border-top: 1px solid #d4b896;
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary  { background: #a6804a; color: #fff; }
.btn-outline  { background: transparent; border: 2px solid #a6804a; color: #a6804a; }
.btn-danger   { background: #c0392b; color: #fff; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #a6804a;
    box-shadow: 0 0 0 3px rgba(166,128,74,.15);
}

label { display: block; font-weight: 600; margin-bottom: 0.35rem; }

.form-group { margin-bottom: 1.25rem; }

/* ── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error   { background: #f8d7da; color: #721c24; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .nav-container { flex-direction: column; gap: 0.5rem; }
    .main-nav a:first-child { margin-inline-start: 0; }
}