/*
Theme Name: GPconnect
Theme URI: https://gpconnect.co.za
Author: GPconnect
Author URI: https://gpconnect.co.za
Description: Official GPconnect theme — connecting patients with GPs via WhatsApp.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gpconnect
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
}

a { color: #16a34a; text-decoration: none; }
a:hover { text-decoration: underline; color: #15803d; }

img { max-width: 100%; height: auto; }

/* ── TOP ACCENT BARS ── */
.top-bar       { height: 5px; background: #1a3c5e; width: 100%; }
.top-bar-green { height: 3px; background: #16a34a; width: 100%; }

/* ── SITE HEADER ── */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dde6ef;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(26,60,94,0.07);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-branding img.logo {
    width: 52px;
    height: 52px;
}

.brand-text .site-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a3c5e;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.brand-text .site-tagline {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-top: 2px;
}

/* ── NAVIGATION ── */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav ul li a {
    font-size: 14px;
    font-weight: 600;
    color: #1a3c5e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: #16a34a;
    border-bottom-color: #16a34a;
    text-decoration: none;
}

/* ── HERO SECTION ── */
.hero {
    background: linear-gradient(135deg, #1a3c5e 0%, #1e4d78 60%, #16a34a 100%);
    color: #ffffff;
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.hero h1 span { color: #4ade80; }

.hero p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: #16a34a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #15803d;
    color: #ffffff;
    text-decoration: none;
}

/* ── FEATURES STRIP ── */
.features {
    background: #f4f8fc;
    border-top: 3px solid #1a3c5e;
    border-bottom: 1px solid #dde6ef;
    padding: 60px 40px;
}

.features h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #1a3c5e;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #dde6ef;
    border-top: 3px solid #16a34a;
    border-radius: 0 0 6px 6px;
    padding: 28px 24px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a3c5e;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

/* ── MAIN CONTENT ── */
.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.page-header {
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 2px solid #16a34a;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a3c5e;
    letter-spacing: 0.3px;
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a3c5e;
    margin: 32px 0 12px;
}

.entry-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 0 10px;
    border-bottom: 1px solid #bbf7d0;
    padding-bottom: 4px;
}

.entry-content p {
    margin-bottom: 16px;
    color: #1e293b;
    line-height: 1.75;
}

.entry-content ul, .entry-content ol {
    margin: 0 0 16px 24px;
    color: #1e293b;
    line-height: 1.75;
}

.entry-content li { margin-bottom: 6px; }

/* ── INFO CARD (reused from cert style) ── */
.info-card {
    background: #f4f8fc;
    border: 1px solid #dde6ef;
    border-top: 3px solid #1a3c5e;
    border-radius: 0 0 6px 6px;
    padding: 24px 28px;
    margin: 24px 0;
}

/* ── CONTACT FORM AREA ── */
.contact-details {
    background: #f4f8fc;
    border: 1px solid #dde6ef;
    border-top: 3px solid #16a34a;
    border-radius: 0 0 6px 6px;
    padding: 28px;
    margin-top: 24px;
}

.contact-details p {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 10px;
}

.contact-details strong { color: #1a3c5e; }

/* ── SITE FOOTER ── */
.bottom-bar-green { height: 3px; background: #16a34a; width: 100%; }
.bottom-bar       { height: 5px; background: #1a3c5e; width: 100%; }

.site-footer {
    background: #1a3c5e;
    color: #94a3b8;
    padding: 40px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img { width: 36px; height: 36px; opacity: 0.9; }

.footer-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.footer-nav {
    margin-bottom: 16px;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 13px;
    margin: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-nav a:hover { color: #4ade80; text-decoration: none; }

.footer-copy {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .site-header { padding: 0 20px; flex-wrap: wrap; gap: 12px; min-height: auto; padding-top: 14px; padding-bottom: 14px; }
    .main-nav ul { gap: 16px; flex-wrap: wrap; }
    .hero { padding: 50px 20px; }
    .hero h1 { font-size: 28px; }
    .features { padding: 40px 20px; }
    .site-main { padding: 40px 20px; }
    .site-footer { padding: 30px 20px; }
}
