@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

/* ============================================
   Editorial design layer (loads AFTER style.css)
   Warm, cultural, logo-matched: white paper,
   serif headings, green/blue/red/gold accents.
   Remove this <link> to revert instantly.
   ============================================ */

:root {
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ink: #17140f;
    --paper: #fdfcf8;
    --paper-2: #f7f4ec;
    --line: #ece6d8;
    --muted: #6f685c;
}

/* Serif display headings */
.hero h1,
.section-title,
.card-title,
.card-title a,
.page-header h1,
.footer-brand span,
.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

/* ---- Navbar: solid light by default (hero is now light) ---- */
.navbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.navbar .brand-name { color: var(--ink); }
.navbar .brand-sub { color: var(--gold-dark); }
.navbar .nav-link { color: var(--muted); }
.navbar .nav-link:hover { color: var(--primary); background: var(--paper-2); }
.navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link.active::after { background: var(--primary); }
.navbar .lang-switch { border-color: #d9d1c1 !important; color: var(--muted) !important; }
.navbar .lang-switch:hover { border-color: var(--primary) !important; color: var(--primary) !important; }
.navbar-toggle span { background: var(--ink); }
.navbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(60,45,20,0.06); }

/* ---- Hero: light editorial ---- */
.hero { background: var(--paper); min-height: auto; }
.hero::before {
    background:
        radial-gradient(ellipse 68% 55% at 16% 12%, rgba(212,168,67,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 86% 88%, rgba(26,107,60,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0,61,165,0.05) 0%, transparent 55%);
}
.hero-particles { display: none; }
.hero-content { padding: 140px 24px 88px; }
.hero-badge { background: rgba(212,168,67,0.14); border-color: rgba(212,168,67,0.32); color: var(--gold-dark); }
.hero h1 { color: var(--ink); font-weight: 700; }
.hero h1 .highlight {
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
    font-style: italic;
}
.hero p { color: var(--muted); }
.hero-stats { border-top-color: var(--line); }
.hero-stat .number { color: var(--ink); font-family: var(--font-display); }
.hero-stat .label { color: #9a907e; }

/* ---- Buttons: crisp editorial ---- */
.btn { border-radius: 4px; letter-spacing: 0.4px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: #cfc6b4;
}
.btn-outline:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* ---- Section headings ---- */
.section-title { font-weight: 700; color: var(--ink); }
.section-badge { background: rgba(26,107,60,0.09); color: var(--primary); border-radius: 3px; }

/* ---- Cards: paper with hairline + colored top rule ---- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
}
.card:hover { box-shadow: 0 12px 32px rgba(60,45,20,0.10); transform: translateY(-3px); }
.card-title { font-weight: 700; }
.card-title a { color: var(--ink); }
.card-badge { border-radius: 3px; letter-spacing: 0.5px; }

/* ---- Inner page headers ---- */
.page-header { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-header h1 { color: var(--ink); }
.page-header .breadcrumb,
.page-header .breadcrumb a { color: var(--muted); }
.page-header .breadcrumb span { color: var(--ink); }

/* ---- Article body: warm reading ---- */
.article-content .content { color: #3f3a31; }

/* ---- Accent hairline echoing the logo hearts ---- */
.hero-accent-bar {
    background: linear-gradient(90deg,
        var(--primary) 0%, var(--primary) 25%,
        var(--red) 25%, var(--red) 50%,
        var(--blue) 50%, var(--blue) 75%,
        var(--gold) 75%, var(--gold) 100%);
    height: 3px;
}

/* ============================================
   Refinements — warmer, fancier, bigger logo
   ============================================ */

/* Warm parchment base so the page isn't flat white; cards stay white to pop */
body { background: #f4efe3; }
.section { background: transparent; }
.hero, .page-header { background: #fbf7ee; }
.card { background: #ffffff; }

/* Logo — larger, on a clean white medallion with a soft ring (fixes the
   off-white background mismatch and looks intentional/premium) */
.navbar-brand { gap: 14px; }
.brand-logo {
    width: 60px !important;
    height: 60px !important;
    background: #ffffff;
    padding: 4px;
    border: 1px solid var(--line);
    box-shadow: 0 3px 12px rgba(60,45,20,0.12);
}
.footer-logo-img {
    width: 66px !important;
    height: 66px !important;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.28);
}
.footer-brand { gap: 14px; align-items: center; }

/* Richer hero glow */
.hero::before {
    background:
        radial-gradient(ellipse 70% 58% at 15% 12%, rgba(212,168,67,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 62% 52% at 87% 88%, rgba(26,107,60,0.13) 0%, transparent 55%),
        radial-gradient(ellipse 50% 42% at 55% 45%, rgba(0,61,165,0.07) 0%, transparent 55%);
}

/* Fancy detail: fine gold rule beneath the navbar */
.navbar { border-bottom: 1px solid #e8dfcb; box-shadow: 0 1px 0 rgba(212,168,67,0.25); }

/* Section titles get a small gold flourish */
.section-title { position: relative; }

/* Warmer card hover */
.card:hover { box-shadow: 0 16px 40px rgba(60,45,20,0.13); }

/* ============================================
   Colour cohesion — warm deep-green footer +
   light mobile menu (was cool navy / dark)
   ============================================ */

/* Footer: warm deep green instead of cool navy, so it matches the
   warm parchment theme and the brand green */
.footer,
.footer-main { background: #0f3a22; }
.footer-bottom { background: #0a2c18; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #ffffff; }
.footer-desc,
.footer-col ul li a,
.contact-list li { color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col h4::after { background: var(--gold); }
.footer-social a { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.footer-social a:hover { background: var(--gold); color: #0f3a22; border-color: var(--gold); }

/* Mobile menu: warm light overlay to match the theme (was dark navy,
   which left the brand name dark-on-dark and clashed with the light nav) */
@media (max-width: 768px) {
    .navbar-menu { background: #fbf7ee !important; }
    .navbar-menu .nav-link { color: var(--ink) !important; }
    .navbar-menu .nav-link:hover,
    .navbar-menu .nav-link.active { color: var(--primary) !important; background: transparent !important; }
    .navbar-menu .lang-switch { border-color: #cfc6b4 !important; color: var(--ink) !important; }
    .navbar-toggle.active span { background: var(--ink) !important; }
}

/* ---- Amendments form: clearer, thicker borders ---- */
.amendment-text-block { border: 1.5px solid #ddd5c4; }
.amendment-text-block.proposed { border: 1.5px solid rgba(26,107,60,0.4); }
.opinion-choice label { border-width: 2px; border-color: #d6cdba; }
.amendment-card { border: 1.5px solid #e6dfce; }

/* ============================================
   Constitution accordion (Constitutional Vote)
   ============================================ */
.constitution-accordion { border: 1.5px solid #e6dfce; border-radius: 12px; overflow: hidden; background: #fff; }
.accordion-item + .accordion-item { border-top: 1.5px solid #e6dfce; }
.accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    text-align: left;
    transition: background 0.2s;
}
[dir="rtl"] .accordion-head { text-align: right; }
.accordion-head:hover { background: #faf6ee; }
.accordion-item.open .accordion-head { background: #f4efe3; color: var(--primary); }
.accordion-icon { transition: transform 0.25s; color: var(--gold-dark); font-size: 0.9rem; flex-shrink: 0; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-item.open .accordion-body { max-height: 4000px; }
.accordion-body-inner { padding: 6px 22px 22px; color: #45403500; color: #454035; line-height: 1.85; font-size: 0.98rem; }
.accordion-body-inner p { margin-bottom: 12px; }
.accordion-body-inner h2, .accordion-body-inner h3 { margin: 14px 0 8px; color: var(--ink); }
.accordion-body-inner ul, .accordion-body-inner ol { margin: 0 0 12px 20px; }
[dir="rtl"] .accordion-body-inner ul, [dir="rtl"] .accordion-body-inner ol { margin: 0 20px 12px 0; }

/* ============================================================
   LOGO PALETTE — white primary + community logo colours
   (loaded last, so these values govern the whole site)
   ============================================================ */
:root {
    /* Brand colours sampled from the logo */
    --primary:      #007A3D;   /* Sudan green */
    --primary-dark: #005C2E;
    --primary-light:#00A050;
    --red:          #E4002B;   /* Sudan red */
    --red-dark:     #B80022;
    --red-light:    #F0335A;
    --blue:         #0057B8;   /* Scotland blue */
    --blue-dark:    #003F87;
    --blue-light:   #1E74D6;
    --gold:         #F5B301;   /* the two stars */
    --gold-light:   #FFC72C;
    --gold-dark:    #A87A00;

    /* White-primary surfaces (replaces the warm parchment) */
    --ink:     #111318;
    --paper:   #FFFFFF;
    --paper-2: #F5F7F9;
    --line:    #E6EAEF;
    --muted:   #6B7480;
}

body { background: #FFFFFF; }
.hero, .page-header { background: #F7F9FB; }
.card { background: #FFFFFF; border-color: var(--line); }

/* Hero glow re-tinted to the logo colours */
.hero::before {
    background:
        radial-gradient(ellipse 68% 55% at 16% 12%, rgba(245, 179, 1, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 86% 88%, rgba(0, 122, 61, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 87, 184, 0.07) 0%, transparent 55%);
}
.hero-badge {
    background: rgba(245, 179, 1, 0.16);
    border-color: rgba(245, 179, 1, 0.36);
    color: var(--gold-dark);
}

/* Deep logo-green footer anchors the white page */
.footer, .footer-main { background: #00401F; }
.footer-bottom { background: #003017; }

/* Accordions pick up a soft green tint instead of parchment */
.accordion-item.open .accordion-head { background: rgba(0, 122, 61, 0.07); color: var(--primary); }
.accordion-head:hover { background: rgba(0, 122, 61, 0.04); }

/* Buttons / links use the logo green */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ============================================
   Survey page — long option texts read as blocks
   ============================================ */
body.page-survey .opinion-choices { flex-direction: column; gap: 12px; }
body.page-survey .opinion-choice { width: 100%; }
body.page-survey .opinion-choice label {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: start;
    font-weight: 500;
    line-height: 1.85;
    padding: 16px 18px;
}
body.page-survey .opinion-choice label i { margin-top: 4px; flex-shrink: 0; }
body.page-survey .opinion-choice label span { flex: 1; }

/* ============================================
   Membership page — responsive (mobile / tablet / pc)
   ============================================ */
@media (max-width: 820px) {
    body.page-membership .form-row { grid-template-columns: 1fr; }
    body.page-membership .contact-form-card { padding: 24px; }
}
@media (max-width: 560px) {
    body.page-membership .container { padding: 0 16px; }
    body.page-membership .contact-form-card { padding: 18px; }
    body.page-membership .btn-lg { width: 100%; justify-content: center; }
    body.page-membership .form-group label { font-size: 0.9rem; }
}
