/* ============================================================
   MAIN.CSS — Shared base: variables, reset, typography, utilities
   Faculty of Peace Organization
   ============================================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --dark: #0B2430;
    --dark-lighter: #12333F;
    --accent-gold: #E8A838;
    --accent-gold-light: #F2C464;
    --sage: #7BAE7F;
    --sage-dark: #5A8A5E;
    --cream: #F5F2EB;
    --cream-dark: #EDE8DD;
    --white: #ffffff;
    --text: #2C3E50;
    --text-light: #6B7C8A;
    --sidebar-w: 300px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    overflow-x: clip;
    overflow-y: visible;
    background: var(--cream);
    min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

img, video, canvas { max-width: 100%; }

/* ============================================
   GLOBAL UTILITIES
   ============================================ */
.sec-pad { padding: 80px 0; }

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sage);
    margin-bottom: 14px;
}
.sec-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--sage);
    flex-shrink: 0;
}
.sec-label.gold { color: var(--accent-gold); }
.sec-label.gold::before { background: var(--accent-gold); }

.sec-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 18px;
    line-height: 1.2;
}
.sec-heading .acc { color: var(--accent-gold); }

.sec-center { text-align: center; }
.sec-center .sec-label { justify-content: center; }

/* Section dividers */
.sec-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(0,0,0,0.06), transparent); }
.dark-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent); }

/* ============================================
   SCROLLBAR & SELECTION
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

::selection { background: var(--accent-gold); color: var(--dark); }

/* ============================================
   RESPONSIVE — Global breakpoints
   ============================================ */
@media (max-width: 575.98px) {
    .sec-pad { padding: 50px 0; }
    .sec-label { font-size: 0.66rem; letter-spacing: 2px; gap: 8px; }
    .sec-label::before { width: 22px; }
}

/* iOS Safari: stop auto-zoom on form inputs */
@media (max-width: 767.98px) {
    input, select, textarea { font-size: 16px !important; }
}
