/* CECRESOL — Coopérative d'Épargne et de Crédit Sove Lavi
   Mobile-first, Fintech Modern, Bilingual FR/CR
   Palette: #1B5E20 (vert) | #F9A825 (or) | #FFFFFF | #F5F5F5
*/

/* ═══════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════ */
:root {
  --green-dark:    #1B5E20;
  --green-mid:     #2E7D32;
  --green-light:   #4CAF50;
  --green-pale:    #E8F5E9;
  --gold:          #F9A825;
  --gold-dark:     #F57F17;
  --gold-light:    #FFF8E1;
  --white:         #FFFFFF;
  --grey-light:    #F5F5F5;
  --grey-mid:      #EEEEEE;
  --grey-text:     #757575;
  --grey-dark:     #424242;
  --black:         #1A1A1A;
  --danger:        #C62828;
  --info:          #0277BD;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-full:   9999px;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition:    0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--grey-dark); }

.text-green { color: var(--green-dark); }
.text-gold  { color: var(--gold-dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 0.75rem auto 0; font-size: 1.1rem; }

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: var(--radius-full);
  margin: 1rem auto;
}
.divider-left { margin-left: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline-green:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* ═══════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: var(--transition);
  border: 1px solid var(--grey-mid);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card-icon.gold-bg { background: var(--gold-light); }

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-logo {
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -1px;
}
.navbar-brand-text .brand-name {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 1.1rem;
  line-height: 1.1;
}
.navbar-brand-text .brand-tagline {
  font-size: 0.7rem;
  color: var(--grey-text);
  letter-spacing: 0.5px;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--grey-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--green-dark);
  font-size: 1.5rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
    align-items: stretch;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 0.75rem 1rem; }
  .navbar-actions { gap: 0.5rem; }
  .navbar-actions .btn-sm { display: none; }
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, #388E3C 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(249,168,37,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--gold); }
.hero-slogan {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════════════════════ */
.stats-section {
  background: var(--green-dark);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.stat-item .stat-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════════════ */
.services-section { background: var(--grey-light); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { color: var(--green-dark); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.testimonials-section { background: var(--white); }
.testimonial-card {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-size: 5rem;
  color: var(--green-dark);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-style: italic;
  color: var(--grey-dark);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; color: var(--green-dark); }
.testimonial-role { font-size: 0.8rem; color: var(--grey-text); }

/* ═══════════════════════════════════════════════════════
   BRANCH CARDS
═══════════════════════════════════════════════════════ */
.branch-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.branch-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.branch-card-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.branch-badge {
  background: var(--gold);
  color: var(--green-dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}
.branch-card-body { padding: 1.25rem; }
.branch-info { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: flex-start; }
.branch-info-icon { color: var(--green-dark); flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   FORMS & TABS
═══════════════════════════════════════════════════════ */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--grey-mid);
  margin-bottom: 2rem;
  overflow-x: auto;
  gap: 0;
}
.tab-btn {
  padding: 1rem 1.75rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  color: var(--grey-text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
}
.tab-btn.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}
.tab-btn:hover { color: var(--green-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-section {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid var(--grey-mid);
}
.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green-pale);
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--grey-dark);
  margin-bottom: 0.4rem;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(27,94,32,0.12);
}
.form-control::placeholder { color: #BDBDBD; }
.form-control.error { border-color: var(--danger); }
.form-help { font-size: 0.8rem; color: var(--grey-text); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }

.upload-zone {
  border: 2px dashed var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--grey-light);
}
.upload-zone:hover { border-color: var(--green-dark); background: var(--green-pale); }
.upload-zone input[type=file] { display: none; }
.upload-icon { font-size: 2rem; color: var(--green-dark); margin-bottom: 0.5rem; }

.signatory-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.signatory-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem;
  font-size: 0.85rem;
  text-align: left;
}
.signatory-table td { padding: 0.75rem; border-bottom: 1px solid var(--grey-mid); font-size: 0.9rem; }
.signatory-table tr:hover td { background: var(--green-pale); }

/* ═══════════════════════════════════════════════════════
   ALERTS & MESSAGES
═══════════════════════════════════════════════════════ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: #E8F5E9; border-left: 4px solid var(--green-dark); color: var(--green-dark); }
.alert-info    { background: #E3F2FD; border-left: 4px solid var(--info); color: var(--info); }
.alert-warning { background: var(--gold-light); border-left: 4px solid var(--gold-dark); color: var(--gold-dark); }
.alert-danger  { background: #FFEBEE; border-left: 4px solid var(--danger); color: var(--danger); }

/* ═══════════════════════════════════════════════════════
   BADGES & CHIPS
═══════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-green  { background: var(--green-pale); color: var(--green-dark); }
.badge-gold   { background: var(--gold-light); color: var(--gold-dark); }
.badge-grey   { background: var(--grey-mid); color: var(--grey-dark); }

/* ═══════════════════════════════════════════════════════
   TRANSPARENCY / TABLE
═══════════════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--grey-mid);
  color: var(--grey-dark);
}
.data-table tr:hover td { background: var(--green-pale); }
.data-table tr:last-child td { border-bottom: none; }
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249,168,37,0.1) 0%, transparent 60%);
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 1rem auto 2rem; font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo-box {
  width: 40px;
  height: 40px;
  background: var(--green-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 1rem;
}
.footer-brand-name {
  font-weight: 800;
  color: var(--white);
  font-size: 1.1rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-btn:hover { background: var(--green-dark); color: var(--white); }
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.footer-contact-item span:first-child { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--gold); }
.brh-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249,168,37,0.15);
  border: 1px solid rgba(249,168,37,0.3);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 7rem 0 4rem;
  margin-top: 70px;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; margin-top: 0.75rem; font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   PORTAL FEATURES
═══════════════════════════════════════════════════════ */
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-item h4 { color: var(--green-dark); margin-bottom: 0.25rem; font-size: 0.95rem; }
.feature-item p { font-size: 0.875rem; }

/* ═══════════════════════════════════════════════════════
   SEARCH BOX
═══════════════════════════════════════════════════════ */
.search-box {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 480px;
}
.search-box input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
}
.search-box button {
  padding: 0.875rem 1.5rem;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.search-box button:hover { background: var(--green-mid); }

/* ═══════════════════════════════════════════════════════
   SUCCESS MODAL
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}
.modal h3 { color: var(--green-dark); margin-bottom: 0.75rem; }
.modal p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-text);
}

/* ═══════════════════════════════════════════════════════
   LOADING SPINNER
═══════════════════════════════════════════════════════ */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 500;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-stats { gap: 1.25rem; }
  .cta-section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .tabs-nav { border-bottom: none; flex-direction: column; }
  .tab-btn { border-bottom: 1px solid var(--grey-mid); border-radius: var(--radius-sm); }
  .tab-btn.active { background: var(--green-pale); }
}

/* ═══════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════ */
@media print {
  .navbar, .hero-actions, .cta-section, .footer, .scroll-top { display: none; }
  .page-header { padding-top: 1rem; margin-top: 0; }
}
