/* =========================================================
   FIGOPEC International - Theme: Gold / White / Green
   ========================================================= */

:root {
    --gold: #C9971F;
    --gold-dark: #A87B12;
    --gold-light: #F3D98B;
    --green: #14532D;
    --green-light: #1E7A44;
    --white: #FFFFFF;
    --off-white: #FAF8F3;
    --ink: #1F2A24;
    --gray: #6B7A72;
    --border: #E4DDC9;
    --danger: #B3261E;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(20, 83, 45, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background: var(--off-white);
    color: var(--ink);
    line-height: 1.55;
}

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--green);
    margin-top: 0;
}

/* ---------- Top navigation ---------- */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.brand-text {
    font-family: Georgia, serif;
    font-weight: bold;
    color: var(--green);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.brand-text span {
    display: block;
    font-size: 0.62rem;
    color: var(--gold-dark);
    font-weight: normal;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 0.92rem;
}

.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--green); text-decoration: none; }

.role-badge {
    background: var(--green);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Layout containers ---------- */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 10px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
}

.btn-green {
    background: var(--green);
    color: var(--gold-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }

/* ---------- Forms ---------- */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--green);
    font-size: 0.9rem;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="time"], input[type="number"],
input[type="file"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--off-white);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--gold);
    background: var(--white);
}

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.checkbox-row input { width: auto; margin: 0; }
.checkbox-row label { margin: 0; font-weight: normal; color: var(--ink); }

.auth-box {
    max-width: 420px;
    margin: 50px auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    border-top: 5px solid var(--gold);
}

.auth-box .brand { justify-content: center; margin-bottom: 20px; }

/* ---------- Alerts / flashes ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.alert-success { background: #E5F4EA; color: var(--green); border: 1px solid var(--green-light); }
.alert-error   { background: #FBE9E7; color: var(--danger); border: 1px solid var(--danger); }
.alert-info    { background: #FCF3DD; color: var(--gold-dark); border: 1px solid var(--gold); }

/* ---------- Badges / points / status ---------- */
.points-pill {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--green);
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1.1rem;
}

.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.status-live { background: var(--green-light); }
.status-off  { background: var(--gray); }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--green); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }

/* ---------- Hero (landing page) ---------- */
.hero {
    text-align: center;
    padding: 70px 20px 50px;
    background: linear-gradient(180deg, var(--off-white), var(--white));
}

.hero img.logo-large {
    height: 170px;
    width: auto;
    border-radius: 0;
    border: none;
    margin-bottom: 10px;
}

.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.hero p { color: var(--gray); max-width: 560px; margin: 0 auto 26px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; }

footer {
    text-align: center;
    padding: 24px;
    color: var(--gray);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .nav-links { gap: 10px; font-size: 0.85rem; }
    .hero h1 { font-size: 1.6rem; }
}

/* =========================================================
   PUBLIC HOMEPAGE SECTIONS
   ========================================================= */

.home-section {
    padding: 60px 20px;
}

.home-section.alt {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-section.green {
    background: var(--green);
    color: var(--white);
}

.home-section.green h2, .home-section.green h3, .home-section.green h4 {
    color: var(--gold-light);
}

.home-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.home-section.green .eyebrow { color: var(--gold-light); }

.section-title {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.section-lead {
    color: var(--gray);
    max-width: 700px;
    margin-bottom: 30px;
    font-size: 1.02rem;
}

.home-section.green .section-lead { color: #D9E8DF; }

.tagline-big {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    color: var(--green);
    font-weight: bold;
    margin: 16px 0;
}

.home-section.green .tagline-big { color: var(--gold-light); }

.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
    border-top: 4px solid var(--gold);
}

.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { color: var(--gray); margin: 0; font-size: 0.92rem; }

.service-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 18px;
    border-left: 5px solid var(--green);
}

.service-block .service-number {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.service-block ul { margin: 10px 0; padding-left: 20px; color: var(--gray); }
.service-block li { margin-bottom: 4px; }

.pillar-card {
    text-align: center;
    padding: 20px;
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-weight: bold;
    margin-bottom: 10px;
}

.audience-pill {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}

.audience-pill h4 { margin-bottom: 6px; font-size: 1rem; }
.audience-pill p { color: var(--gray); font-size: 0.88rem; margin: 0; }

.cta-banner {
    background: linear-gradient(135deg, var(--green), #0D3A1F);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--radius);
    margin: 40px auto;
    max-width: 1100px;
}

.cta-banner h2 { color: var(--gold-light); }
.cta-banner p { color: #D9E8DF; max-width: 600px; margin: 0 auto 24px; }

.certificate-box {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.certificate-box img {
    max-width: 220px;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.certificate-details h3 { margin-bottom: 8px; }
.certificate-details p { color: var(--gray); margin: 4px 0; font-size: 0.92rem; }
.certificate-details strong { color: var(--green); }

.site-footer-rich {
    background: var(--green);
    color: #D9E8DF;
    padding: 40px 20px 20px;
}

.site-footer-rich .home-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.site-footer-rich h4 { color: var(--gold-light); margin-bottom: 10px; }
.site-footer-rich a { color: #D9E8DF; }
.site-footer-rich a:hover { color: var(--gold-light); }
.site-footer-rich .footer-links a { display: block; margin-bottom: 6px; font-size: 0.9rem; }

.nav-anchor-links {
    display: flex;
    gap: 16px;
    font-size: 0.88rem;
}

@media (max-width: 700px) {
    .certificate-box { flex-direction: column; text-align: center; }
    .home-section { padding: 40px 16px; }
    .section-title { font-size: 1.5rem; }
}
