* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #FFFFFF;
}

a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.brand h1 {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.brand p {
    color: var(--light-text);
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-btn-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
}

.contact-btn {
    padding: 10px 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    white-space: nowrap;
}

.contact-btn-call {
    background: var(--primary-color);
    border-right: 1px solid rgba(255,255,255,0.25);
}
.contact-btn-call:hover { background: var(--accent-color); color: #fff; }

.contact-btn-whatsapp {
    background: #25D366;
}
.contact-btn-whatsapp:hover { background: #1DA851; color: #fff; }

.header-address {
    font-size: 0.85rem;
    color: var(--light-text);
    max-width: 260px;
}

/* ── Hero Banner ──────────────────────────────────────── */
.hero-banner {
    width: 100%;
    line-height: 0; /* removes the tiny gap under inline images */
}
.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.storefront-photo {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .storefront-photo { max-height: 320px; border-radius: 10px; }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 50px 0; }
.section.bg-light { background: var(--secondary-color); }
.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 30px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.service-card .icon { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 12px; }
.service-card h4 { font-size: 1rem; color: var(--text-color); }

/* Doctor timetable */
.timetable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.timetable th, .timetable td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.timetable th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}
.timetable tr:last-child td { border-bottom: none; }
.timetable .doc-name { font-weight: 600; color: var(--primary-color); }
.timetable .doc-specialty { color: var(--light-text); font-size: 0.9rem; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    background: #14211F;
    color: #cfe8e6;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}
.site-footer h4 { color: #fff; margin-bottom: 10px; }
.site-footer p { font-size: 0.9rem; color: #b7d4d1; }
.map-embed {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 8px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #9ac4c0;
}
.footer-bottom a { color: #cfe8e6; text-decoration: underline; }

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-header .container { flex-direction: column; text-align: center; }
    .header-actions { flex-direction: column; width: 100%; }
    .header-address { max-width: none; }
    .contact-btn-group { width: 100%; }
    .contact-btn { flex: 1; justify-content: center; }
    .timetable, .timetable thead { display: block; }
    .timetable tr { display: block; margin-bottom: 12px; border-bottom: 2px solid var(--primary-color); }
    .timetable th { display: none; }
    .timetable td { display: block; border: none; padding: 6px 18px; }
    .timetable td:before { content: attr(data-label); font-weight: 600; color: var(--primary-color); display: block; font-size: 0.75rem; text-transform: uppercase; }
}

/* ── Admin dashboard ──────────────────────────────────── */
.admin-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}
.admin-header {
    background: var(--primary-color);
    color: #fff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-header a { color: #fff; }
.admin-main { max-width: 1000px; margin: 25px auto; padding: 0 20px; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 25px;
}
.card h2 { color: var(--primary-color); margin-bottom: 18px; font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.form-group input, .form-group select {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 0.9rem;
}
.btn {
    padding: 12px 24px; border: none; border-radius: 6px; cursor: pointer;
    font-weight: 600; font-size: 0.95rem;
}
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--accent-color); }
.queue-table { width: 100%; border-collapse: collapse; }
.queue-table th, .queue-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 0.9rem; }
.queue-table th { background: var(--secondary-color); color: var(--primary-color); }
.token-badge {
    display: inline-block; background: var(--primary-color); color: #fff;
    padding: 3px 10px; border-radius: 12px; font-weight: 700; font-size: 0.85rem;
}
.alert { padding: 14px; border-radius: 6px; margin-bottom: 18px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}
.login-card {
    background: #fff; padding: 40px; border-radius: 12px; width: 100%; max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.login-card h2 { color: var(--primary-color); margin-bottom: 20px; text-align: center; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
