/* =======================
   RESET + BASE
======================= */

* {
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =======================
   LAYOUT
======================= */

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

.page-section,
.page-wrapper,
section {
    padding: 30px 0;
}

/* =======================
   HEADER
======================= */

header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0f766e;
}

.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* =======================
   BUTTONS
======================= */

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #0f766e;
    color: #fff;
}

.btn-light {
    background: #f3f4f6;
    color: #111827;
}

.btn-whatsapp {
    background: #16a34a;
    color: #fff;
}

.btn-small {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.btn-view {
    background: #0f766e;
    color: #fff;
}

.btn-call,
.btn-business {
    background: #f3f4f6;
}

/* ADMIN LINK */
.admin-link {
    background: #fef3c7;
    color: #92400e;
}

/* =======================
   TYPOGRAPHY
======================= */

.page-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title {
    color: #111827;
}

.page-desc,
.muted {
    color: #6b7280;
    line-height: 1.9;
    font-size: 14px;
}

/* =======================
   CARDS
======================= */

.card,
.category-card,
.business-card,
.offer-card,
.haraj-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: 0.2s;
}

.card:hover,
.category-card:hover,
.business-card:hover,
.offer-card:hover {
    transform: translateY(-4px);
}

/* =======================
   BADGES
======================= */

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.featured-badge {
    background: #dcfce7;
    color: #166534;
}

.mobile-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-badge {
    background: #eef2ff;
    color: #4338ca;
}

/* =======================
   GRID
======================= */

.categories-grid,
.businesses-grid,
.offers-grid,
.haraj-grid {
    display: grid;
    gap: 18px;
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.businesses-grid,
.offers-grid,
.haraj-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* =======================
   IMAGES
======================= */

.business-image,
.offer-image {
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

/* =======================
   HERO
======================= */

.home-hero {
    min-height: 500px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-content {
    width: 92%;
    max-width: 1100px;
    margin: auto;
}

.hero-title {
    font-size: 40px;
    margin-bottom: 12px;
}

.hero-text {
    margin-bottom: 20px;
}

/* =======================
   FORMS
======================= */

.form-wrapper {
    max-width: 900px;
    margin: 30px auto;
}

.form-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0f766e;
    outline: none;
}

/* =======================
   ADMIN TABLE
======================= */

.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f9fafb;
}

/* =======================
   FOOTER
======================= */

footer {
    margin-top: 40px;
    background: #111827;
    color: #d1d5db;
    padding: 20px;
    text-align: center;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 900px) {
    .hero-title {
        font-size: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}