/*
Theme Name: Baro Somali
Theme URI: https://barosomali.com
Author: Said Mohamed Hussein
Author URI: https://barosomali.com
Description: Modern, responsive premium WordPress theme for Baro Somali - Online Somali Language Learning Academy. Includes custom page templates (Home, About, Services, Resources, Bookshop, Contact), WhatsApp direct checkout, audio pronunciation labs, and interactive lesson booking.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baro-somali
Tags: education, language-learning, one-on-one, custom-header, custom-menu, featured-images, full-width-template, translation-ready, theme-options
*/

/**
 * Baro Somali Theme Stylesheet
 * Responsive CSS3 with custom design tokens
 */

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #ECFDF5;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --accent-dark: #D97706;
  --navy: #0B192C;
  --navy-light: #1E293B;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --emerald: #059669;
  --emerald-light: #ECFDF5;
  --emerald-dark: #047857;
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body.barosomali-body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.max-w-md { max-width: 600px; margin: 0 auto; }
.max-w-lg { max-width: 800px; margin: 0 auto; }
.max-w-3xl { max-width: 900px; margin: 0 auto; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--slate-900);
}

.text-white { color: #FFFFFF !important; }
.text-sky { color: var(--primary) !important; }
.text-primary { color: var(--primary); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-500 { color: #64748B; }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.highlight-text {
  color: var(--primary);
}

.section-py {
  padding: 80px 0;
}

.bg-white { background-color: #FFFFFF; }
.bg-light { background-color: #F8FAFC; }
.bg-navy { background-color: var(--navy); }

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--slate-600);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), #1E40AF);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  display: block;
}

.logo-sub {
  font-size: 11px;
  color: var(--slate-600);
  font-weight: 500;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  transition: 0.3s;
}

.mobile-drawer {
  display: none;
  background: white;
  border-top: 1px solid var(--slate-200);
  padding: 20px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 20px;
}

.mobile-nav-links li a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  text-decoration: none;
  color: var(--slate-800);
  border-bottom: 1px solid var(--slate-100);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--slate-900);
  border-color: var(--slate-200);
}
.btn-secondary:hover {
  background: var(--slate-100);
}

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

.btn-white {
  background: white;
  color: var(--navy);
  font-weight: 800;
}
.btn-white:hover {
  background: var(--slate-100);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.w-full { width: 100%; }

/* Hero Section */
.hero-section {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

.hero-title {
  font-size: 46px;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--slate-900);
}

.hero-description {
  font-size: 18px;
  color: var(--slate-600);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-audio-preview {
  padding-top: 10px;
}

.audio-play-btn {
  background: white;
  border: 1px solid var(--slate-200);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.audio-play-btn:hover {
  background: var(--slate-100);
  border-color: var(--primary);
  color: var(--primary);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  border: 1px solid var(--slate-200);
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
}

.hero-floating-badge p {
  font-size: 12px;
  color: var(--slate-300);
}

/* Trust Strip */
.trust-strip-section {
  background: var(--navy);
  color: white;
  padding: 22px 0;
  border-top: 1px solid #1E293B;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.align-center {
  align-items: center;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 8px -2px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px -4px rgba(0,0,0,0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.bg-sky { background: var(--primary-light); color: var(--primary); }
.bg-blue { background: #E0E7FF; color: #4338CA; }
.bg-gold { background: var(--gold-light); color: var(--gold); }
.bg-emerald { background: var(--emerald-light); color: var(--emerald-dark); }

/* Course & Service Cards */
.course-card, .service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.popular-card {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
}

.level-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.tag-emerald { background: var(--emerald-light); color: var(--emerald-dark); }
.tag-sky { background: var(--primary-light); color: var(--primary-dark); }
.tag-purple { background: var(--purple-light); color: var(--purple); }
.tag-gold { background: var(--gold-light); color: var(--gold); }
.tag-blue { background: #DBEAFE; color: #1E40AF; }
.tag-teal { background: #CCFBF1; color: #0F766E; }

.card-desc {
  color: var(--slate-600);
  font-size: 14px;
  margin: 12px 0 20px;
}

.card-checklist {
  list-style: none;
  font-size: 13px;
  color: var(--slate-700);
  margin-bottom: 24px;
}

.card-checklist li {
  margin-bottom: 8px;
}

.who-box {
  background: var(--slate-50);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  margin-bottom: 16px;
}

.curriculum-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--slate-800);
}

/* Steps */
.step-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.step-num, .step-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Testimonials */
.testimonial-card {
  background: #132238;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.star-rating {
  color: #FBBF24;
  margin-bottom: 16px;
}

.quote {
  font-style: italic;
  color: var(--slate-200);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.author-info strong {
  display: block;
  font-size: 14px;
  color: white;
}
.author-info span {
  font-size: 12px;
  color: var(--slate-300);
}

/* Images & About */
.rounded-image {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.teacher-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin: 0 auto 16px;
  display: block;
}

.teacher-role-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
}

.mission-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: var(--radius-sm);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-900);
}

.faq-toggle-icon {
  font-size: 20px;
  color: var(--primary);
  font-weight: 800;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Resources Page Explorer */
.resource-filter-controls {
  margin-bottom: 40px;
}

.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto 20px;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 14px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.category-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  background: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.level-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
}

.phrase-preview-box {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phrase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.phrase-row .trans {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
}

.audio-play-btn-mini {
  background: white;
  border: 1px solid var(--slate-200);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Contact & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--slate-700);
}

.req { color: #EF4444; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--slate-50);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}
.alert-box.success {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald);
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-tags span {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
}

/* CTA Banner */
.cta-banner-section {
  background: linear-gradient(135deg, var(--primary), #1E40AF);
  color: white;
  padding: 80px 0;
}

.cta-title {
  color: white;
  font-size: 38px;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--primary-light);
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--slate-300);
  padding: 70px 0 30px;
  border-top: 1px solid #1E293B;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-tagline {
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact-item {
  font-size: 13px;
  color: var(--slate-300);
  margin-bottom: 6px;
}

.footer-heading {
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  font-size: 12px;
  color: #64748B;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
