/* ===========================================================
   Neighborhood Services — stylesheet
   Palette: deep teal + warm gold, on a soft paper background
   =========================================================== */

:root {
    --teal-950: #0f3730;
    --teal-800: #1b4b43;
    --teal-700: #236156;
    --gold-500: #e8a33d;
    --gold-600: #cf8a26;
    --paper: #faf6ee;
    --paper-dim: #f0ead9;
    --ink: #24291f;
    --ink-soft: #565f4f;
    --line: #dcd4bd;
    --white: #ffffff;
    --danger: #b3452f;
    --success: #2f7a4f;
    --radius: 14px;
    --shadow: 0 4px 14px rgba(15, 55, 48, 0.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--teal-950);
    margin: 0 0 .4em;
    letter-spacing: .2px;
}

a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout shell ---------- */
.site-header {
    background: var(--teal-950);
    color: var(--paper);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.site-header .brand {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--gold-500);
}
.site-header .brand span { color: var(--paper); }
.site-header nav a {
    color: var(--paper);
    margin-left: 18px;
    font-size: .95rem;
}
.site-header nav a:hover { color: var(--gold-500); text-decoration: none; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 22px 60px;
}

.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--ink-soft);
    font-size: .85rem;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

/* ---------- Flash messages ---------- */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .95rem;
}
.flash.success { background: #e4f3e8; color: var(--success); border: 1px solid #bfe2c8; }
.flash.error   { background: #fbe8e3; color: var(--danger);  border: 1px solid #f0c5b8; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--teal-950), var(--teal-700));
    color: var(--paper);
    border-radius: var(--radius);
    padding: 46px 36px;
    margin-bottom: 34px;
}
.hero h1 { color: var(--white); font-size: 2.1rem; }
.hero p { color: #d9e6df; max-width: 560px; margin: 10px 0 0; }

/* ---------- Category / service grids ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 18px 0 36px;
}

.card-btn {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s ease, border-color .12s ease;
    color: inherit;
}
.card-btn:hover {
    transform: translateY(-3px);
    border-color: var(--gold-500);
    text-decoration: none;
}
.card-btn .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.card-btn .title { font-weight: 600; font-size: 1.05rem; color: var(--teal-950); }
.card-btn .desc { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.card-btn .price { font-size: .8rem; color: var(--gold-600); margin-top: 8px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 560px;
    box-shadow: var(--shadow);
}
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .9rem; color: var(--teal-950); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=time], input[type=number], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .95rem;
    background: var(--paper);
    font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.help-text { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

.btn {
    display: inline-block;
    background: var(--gold-500);
    color: var(--teal-950);
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
    margin-top: 18px;
}
.btn:hover { background: var(--gold-600); text-decoration: none; }
.btn.secondary { background: transparent; border: 1px solid var(--teal-800); color: var(--teal-800); }
.btn.danger { background: var(--danger); color: var(--white); }
.btn.small { padding: 6px 12px; font-size: .82rem; margin-top: 0; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; }
th { background: var(--teal-950); color: var(--paper); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--paper-dim); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge.pending   { background: #fbeecb; color: #8a6412; }
.badge.confirmed { background: #d7ecf0; color: #1b5f6c; }
.badge.completed { background: #dcefe1; color: var(--success); }
.badge.cancelled { background: #f6dcd5; color: var(--danger); }

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: var(--teal-950);
    color: var(--paper);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar .brand { padding: 0 22px 18px; font-family: Georgia, serif; font-size: 1.2rem; color: var(--gold-500); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px;}
.admin-sidebar a {
    display: block;
    padding: 11px 22px;
    color: #d9e6df;
    font-size: .92rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--teal-700); color: var(--white); text-decoration: none; }
.admin-main { flex: 1; padding: 30px 34px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-left: 4px solid var(--gold-500); }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--teal-950); font-family: Georgia, serif; }
.stat-card .label { font-size: .82rem; color: var(--ink-soft); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px;}
.section-title { display:flex; align-items:center; justify-content:space-between; margin-top: 34px;}

.inline-form { display: inline; }

.pill-nav { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.pill-nav a { padding: 6px 14px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); font-size: .85rem; color: var(--ink); }
.pill-nav a.active { background: var(--teal-950); color: var(--white); border-color: var(--teal-950); }

@media (max-width: 720px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
    .admin-sidebar .brand { display:none; }
    .admin-sidebar a { padding: 8px 14px; white-space: nowrap; }
}
