/* ============================================================
   main.css — Global styles, CSS Variables, Typography
   Wekan Kasarani School, Mwiki
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Roboto:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --primary:        #FFD700;
  --primary-dark:   #C8A900;
  --primary-deeper: #8B6914;
  --bg-dark:        #1A1200;
  --bg-light:       #FFFBEA;
  --text-main:      #1C1C1C;
  --text-light:     #FFFFFF;
  --accent:         #FFF3B0;
  --border-color:   #E8D870;
  --shadow:         0 4px 16px rgba(0,0,0,0.10);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.14);
  --radius:         10px;
  --radius-lg:      18px;
  --transition:     0.25s ease;
  --nav-height:     70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-deeper);
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary-deeper);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

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

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Padding --- */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg-light);
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading .underline {
  display: inline-block;
  width: 64px;
  height: 4px;
  background: var(--primary);
  border-radius: 99px;
  margin: 0.5rem auto 0;
}

.section-heading p {
  color: #555;
  margin-top: 0.75rem;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary-deeper);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

/* --- Page Hero / Banner --- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2e1e00 100%);
  color: var(--text-light);
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(255,215,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a {
  color: var(--primary);
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold    { color: var(--primary-deeper); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
