/* ================================================================
   SUBAITA FOUNDATION — Global Stylesheet
   ================================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --green:        #1a6b3c;
  --green-dark:   #0d3d22;
  --green-light:  #2d9e5f;
  --green-muted:  #e8f4ee;
  --gold:         #d4921e;
  --gold-light:   #f0b040;
  --gold-pale:    #fdf3e0;
  --cream:        #faf7f2;
  --dark:         #0f1a12;
  --mid:          #2e4835;
  --muted:        #5a7060;
  --border:       rgba(26,107,60,0.12);
  --white:        #ffffff;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.14);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 900; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { font-size: 0.97rem; color: var(--muted); line-height: 1.8; }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.bg-white    { background: var(--white); }
.bg-cream    { background: var(--cream); }
.bg-green    { background: var(--green); }
.bg-dark     { background: var(--dark); }
.em-green    { color: var(--green); font-style: normal; }
.em-gold     { color: var(--gold); font-style: normal; }

/* ── SECTION LABEL ── */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.label::before { content: ''; width: 28px; height: 2px; background: var(--green); flex-shrink: 0; }
.label.white   { color: rgba(255,255,255,0.7); }
.label.white::before { background: rgba(255,255,255,0.4); }
.label.center  { justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 40px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary  { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,146,30,0.38); }
.btn-green    { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,107,60,0.35); }
.btn-outline  { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 120px 0 64px;
  background: linear-gradient(150deg, var(--green-dark) 0%, var(--green) 55%, var(--green-light) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 60%, rgba(212,146,30,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,146,30,0.15); border: 1px solid rgba(212,146,30,0.4);
  color: var(--gold-light); padding: 5px 16px; border-radius: 30px;
  font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 18px;
}
.page-badge::before { content: '●'; font-size: 7px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero h1 em { color: var(--gold-light); font-style: normal; }
.page-hero > .container > .page-hero-inner > p {
  font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 560px; line-height: 1.75;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: linear-gradient(135deg, var(--dark), var(--green));
  padding: 52px 0;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
  text-align: center; gap: 0;
}
.stat-item { padding: 12px 24px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900;
  color: var(--gold-light); line-height: 1; display: block;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--mid); letter-spacing: 0.3px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; color: var(--dark); background: var(--cream);
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); background: var(--white); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── TESTIMONIAL ── */
.testi-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px;
  border: 1px solid var(--border); transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-quote { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--green); opacity: 0.25; line-height: 1; margin-bottom: 12px; }
.testi-text { font-size: 0.9rem; color: var(--mid); line-height: 1.8; font-style: italic; margin-bottom: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 900; color: var(--white);
}
.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--dark); }
.testi-role { font-size: 0.75rem; color: var(--muted); margin-top: 1px; }

/* ── NEWS CARD ── */
.news-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--border); transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,0.45); }
.news-body { padding: 22px 22px 26px; }
.news-cat {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 3px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 10px;
}
.cat-green  { background: rgba(26,107,60,0.1); color: var(--green); }
.cat-gold   { background: rgba(212,146,30,0.12); color: #a06a10; }
.cat-purple { background: rgba(124,77,170,0.1);  color: #7c4daa; }
.cat-blue   { background: rgba(37,98,184,0.1);   color: #2562b8; }
.news-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: 8px; }
.news-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.news-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--muted); }
.news-meta a { color: var(--green); font-weight: 700; }
.news-meta a:hover { text-decoration: underline; }

/* ── NEWSLETTER ── */
.newsletter-section { background: var(--green); padding: 64px 0; text-align: center; }
.newsletter-section h2 { color: var(--white); margin-bottom: 10px; }
.newsletter-section p { color: rgba(255,255,255,0.7); margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; }
.nl-form { display: flex; max-width: 460px; margin: 0 auto; border-radius: 50px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.22); }
.nl-form input { flex: 1; padding: 15px 22px; border: none; outline: none; font-size: 0.92rem; background: var(--white); color: var(--dark); min-width: 0; }
.nl-form button { padding: 15px 24px; background: var(--gold); border: none; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--dark); cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.nl-form button:hover { background: var(--gold-light); }

/* ================================================================
   LOGO
   ================================================================ */
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 2px 10px rgba(212,146,30,0.35);
}
.logo-icon svg { width: 26px; height: 26px; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 900; color: var(--white); letter-spacing: 0.2px; }
.logo-tagline { font-size: 0.6rem; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 1px; }
/* Dark version */
.logo-dark .logo-name { color: var(--dark); }
.logo-dark .logo-tagline { color: var(--muted); }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(13,61,34,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(13,61,34,0.99); box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500;
  padding: 6px 14px; border-radius: 30px; transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--gold-light); background: rgba(212,146,30,0.12); }
.nav-cta {
  background: var(--gold) !important; color: var(--dark) !important;
  font-weight: 700 !important; padding: 7px 18px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,146,30,0.4); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  background: rgba(10,25,15,0.99); backdrop-filter: blur(16px);
  padding: 16px 5% 28px; flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold-light); }
.mobile-nav .mob-cta {
  margin-top: 18px; background: var(--gold); color: var(--dark) !important;
  padding: 14px 24px; border-radius: 30px; text-align: center;
  font-weight: 700; border-bottom: none !important;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand-text { font-size: 0.86rem; line-height: 1.75; margin-top: 16px; opacity: 0.58; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h6 { font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; opacity: 0.42; flex-wrap: wrap; gap: 10px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .section    { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .form-row   { grid-template-columns: 1fr; }
  .nl-form    { flex-direction: column; border-radius: 16px; }
  .nl-form input  { text-align: center; padding: 14px; border-radius: 0; }
  .nl-form button { padding: 14px; border-radius: 0; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: 1px solid rgba(255,255,255,0.1); border-top: none !important; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1) !important; }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1) !important; border-right: none; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 100px 0 52px; }
}

@media (max-width: 480px) {
  .container { padding: 0 4%; }
  .navbar { padding: 0 4%; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  .btn-lg { padding: 14px 28px; }
}
