/*
Theme Name: Anthony Gatune Foundation
Theme URI: https://anthonygatunefoundation.org
Author: Imperial Enterprise
Author URI: https://wa.me/+254703823398
Description: A custom WordPress theme for the Anthony Gatune Foundation - designed for Elementor page builder. Based on the original React/Tailwind design with immersive UI, impact statistics, and community-focused layouts.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anthony-gatune
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.4
Elementor Compatibility: 3.0+
*/

/* ============================================
   ANTHONY GATUNE FOUNDATION - WORDPRESS THEME
   ============================================ */

/* --- CSS Variables (Design System) --- */
:root {
  --color-primary: #0D6EFD;
  --color-secondary: #198754;
  --color-gold: #FFC107;
  --color-dark: #0D1B2A;
  --color-light: #F8F9FA;
  --color-white: #FFFFFF;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;
  --color-slate-400: #94A3B8;
  --color-slate-500: #64748B;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;
  --color-rose-500: #F43F5E;
  
  --font-heading: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Open Sans', ui-sans-serif, system-ui, sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,600;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-slate-600);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0b5ed7;
}

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

/* --- WordPress Core Alignment --- */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* --- Elementor Container Width --- */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1280px;
}

/* --- Custom Utility Classes for Elementor --- */

/* Background Colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-gold { background-color: var(--color-gold) !important; }
.bg-dark { background-color: var(--color-dark) !important; }
.bg-light { background-color: var(--color-light) !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-slate-50 { background-color: var(--color-slate-50) !important; }

/* Text Colors */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-dark { color: var(--color-dark) !important; }
.text-white { color: var(--color-white) !important; }
.text-slate-400 { color: var(--color-slate-400) !important; }
.text-slate-500 { color: var(--color-slate-500) !important; }
.text-slate-600 { color: var(--color-slate-600) !important; }

/* Font Families */
.font-heading { font-family: var(--font-heading) !important; }
.font-body { font-family: var(--font-body) !important; }

/* Font Weights */
.font-black { font-weight: 900 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-normal { font-weight: 400 !important; }

/* Tracking */
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

/* Text Transform */
.uppercase { text-transform: uppercase !important; }

/* Border Radius */
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }
.rounded-full { border-radius: var(--border-radius-full) !important; }
.rounded-3xl { border-radius: 24px !important; }

/* Box Shadows */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.shadow-2xl { box-shadow: var(--shadow-2xl) !important; }

/* Gradient Backgrounds */
.gradient-gold {
  background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%) !important;
}

.gradient-dark {
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2d42 100%) !important;
}

/* Buttons - Foundation Style */
.btn-foundation {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-foundation-primary {
  background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
  color: var(--color-dark);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-foundation-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
  color: var(--color-dark);
}

.btn-foundation-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-foundation-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

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

.btn-foundation-dark:hover {
  background-color: #1a2d42;
  color: var(--color-white);
}

/* Floating Impact Card Style */
.impact-card {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-slate-100);
  border-bottom: 4px solid var(--color-gold);
  padding: 2rem;
}

/* Section Spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Hero Overlay */
.hero-overlay {
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.4) 50%, rgba(13, 27, 42, 0.25) 100%);
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-top: 4px solid var(--color-primary);
}

.footer-bottom {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-slate-200);
  padding: 1.5rem 0;
  text-align: center;
}

/* Navigation */
.main-navigation {
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-slate-100);
}

.main-navigation a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-slate-700);
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--color-primary);
}

/* Widgets */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* WordPress Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
}

.gallery-icon img {
  border-radius: var(--border-radius-lg);
}

/* Screen Reader Text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Elementor Specific Overrides */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
  font-family: var(--font-heading);
}

.elementor-widget-text-editor {
  font-family: var(--font-body);
}
