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

:root {
  --green-dark: #475929;
  --green-mid: #5c7330;
  --green-darker: #3a4a22;
  --green-light: #6a8340;
  --green-accent: #7ba328;
  --gold: #c9a227;
  --gold-light: #e6c060;
  --brown-dark: #3b1f0d;
  --brown-mid: #6b3a1e;
  --cream: #f8f5ef;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #777;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
  --site-max: 1200px;
  --site-gutter: clamp(1.25rem, 4.5vw, 3rem);
  --site-side: max(var(--site-gutter), calc((100vw - var(--site-max)) / 2));
}

/* Centered page content — max width with side breathing room */
.container {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--text-dark); background: var(--white); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.intro, .numbers, .pillars, .chain, .cta-band, .home-dynamic, .blog-page, .contact-main {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ─── TOPBAR ─── */
.topbar {
  background: var(--green-dark);
  color: #bbb;
  font-size: 12.5px;
  padding: 7px var(--site-side);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: #bbb; transition: color 0.2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background:var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.topbar-social a:hover { background: var(--gold); color: var(--brown-dark); }

/* ─── LOGO & BRAND (used in main nav — layout in nav.css) ─── */
.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo-emblem {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2.5px solid var(--green-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--cream);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-emblem-inner {
  font-family: 'Playfair Display', serif;
  font-size: 10px; font-weight: 700;
  color: var(--green-dark);
  text-align: center; line-height: 1.2;
  letter-spacing: 0.5px;
}
.logo-emblem-leaf {
  font-size: 18px; line-height: 1;
  margin-bottom: 2px;
}
.nav-brand { line-height: 1.2; }
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--green-dark); letter-spacing: 0.5px;
}
.nav-brand-sub {
  font-size: 10px; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 2px;
}

/* ─── SECTION BASE ─── */
section { padding: 80px var(--site-side); }
section.hero-carousel {
  padding: 0;
}
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green-accent);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700;
  color: var(--green-dark); margin-bottom: 14px; line-height: 1.15;
}
.section-subtitle {
  font-size: 16px; color: var(--text-light);
  line-height: 1.75; max-width: 640px;
}
.centered { text-align: center; }
.centered .section-subtitle { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; padding: 13px 30px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  border-radius: 2px; transition: all 0.2s; cursor: pointer;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-darker); }
.btn-gold { background: var(--gold); color: var(--brown-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent; color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
button.btn-primary { font-family: inherit; }
.btn-outline-white {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ─── HOME HERO ─── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--site-max);
  margin-left: var(--site-side);
  margin-right: auto;
  padding: 90px 0 80px;
  padding-right: var(--site-gutter);
  box-sizing: border-box;
}

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--gold);
  box-sizing: border-box;
  width: min(var(--site-max), calc(100vw - 2 * var(--site-side)));
  margin-left: auto;
  margin-right: auto;
  padding: 50px var(--site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--brown-dark);
}
.cta-band p { font-size: 15px; color: var(--brown-mid); margin-top: 6px; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--green-dark);
  padding: 70px var(--site-side);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(106,171,40,0.15) 0%, transparent 65%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero-breadcrumb {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.page-hero-breadcrumb a { color: var(--gold-light); }
.page-hero-breadcrumb span { margin: 0 8px; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 50px; font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: 18px;
}
.page-hero p {
  font-size: 17px; color: rgba(255,255,255,0.78);
  line-height: 1.7; max-width: 620px;
}
.page-hero-decor {
  position: absolute; right: var(--site-side); top: 50%;
  transform: translateY(-50%);
  font-size: 160px; opacity: 0.06;
  line-height: 1; pointer-events: none;
}

/* ─── FOOTER (TAHA-style) ─── */
.site-footer {
  --footer-cream: #e8e9d8;
  --footer-accent: #7ba328;
  --footer-maroon: #3d1016;
  background: var(--green-dark);
  color: var(--footer-cream);
  margin-top: 110px;
  padding: 0 var(--site-side) 28px;
  position: relative;
}
.site-footer-wrap {
  max-width: var(--site-max);
  margin: 0 auto;
}

/* Floating logo + contact bar */
.footer-float {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  margin-top: -88px;
  margin-bottom: 42px;
  align-items: stretch;
}
.footer-logo-panel {
  background: var(--footer-accent);
  border-radius: 14px 0 0 14px;
  padding: 28px 20px 24px;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
}
.footer-logo-leaf {
  margin-bottom: 8px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
}
.footer-logo-tagline {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 10px;
  opacity: 0.95;
  letter-spacing: 0.2px;
}
.footer-contact-panel {
  background: var(--footer-cream);
  border-radius: 0 14px 14px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 22px 28px;
  color: var(--green-dark);
  min-height: 168px;
  align-items: center;
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid rgba(71, 89, 41, 0.12);
}
.footer-contact-item:last-child { border-right: none; }
.footer-contact-icon {
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.footer-contact-item span {
  font-size: 12px;
  line-height: 1.5;
  color: #3a4528;
}
.footer-contact-item a {
  color: inherit;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--footer-accent); }

/* Link columns */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(232, 233, 216, 0.88);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

/* Action panel */
.footer-action-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 36px;
  align-items: start;
  padding: 32px 36px 36px;
  margin-bottom: 28px;
  border: 1px dashed rgba(232, 233, 216, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.footer-action-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--footer-cream);
  margin-bottom: 16px;
  line-height: 1.35;
}
.footer-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.footer-join-btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.footer-join-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--footer-cream);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social-btn:hover {
  background: var(--gold-light);
  color: var(--brown-dark);
  transform: translateY(-2px);
}
.footer-newsletter-form {
  display: flex;
  gap: 0;
  max-width: 100%;
}
.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  color: var(--white);
  font-size: 14px;
  outline: none;
  border-radius: 4px 0 0 4px;
  font-family: inherit;
}
.footer-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.footer-newsletter-form input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
}
.footer-newsletter-form button {
  padding: 12px 28px;
  background: var(--footer-maroon);
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  font-family: inherit;
  transition: background 0.2s;
}
.footer-newsletter-form button:hover { background: #521620; }

/* Credits */
.footer-credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(232, 233, 216, 0.65);
}
.footer-site-by { text-transform: none; letter-spacing: 0; font-size: 12px; }
.footer-credit-script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0;
  text-transform: none;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ─── BACK TO TOP ─── */
#btt {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  cursor: pointer; border: none; z-index: 400;
}
#btt:hover { background: var(--green-darker); }
#btt.visible { opacity: 1; pointer-events: all; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.anim.d1 { animation-delay: 0.1s; }
.anim.d2 { animation-delay: 0.2s; }
.anim.d3 { animation-delay: 0.3s; }
.anim.d4 { animation-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .footer-float { grid-template-columns: 180px 1fr; }
  .footer-action-box { grid-template-columns: 1fr 1fr; }
  .footer-action-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  section { padding-top: 60px; padding-bottom: 60px; }
  .site-footer { margin-top: 80px; }
  .page-hero { padding-top: 50px; padding-bottom: 50px; }
  .page-hero h1 { font-size: 36px; }
  .section-title { font-size: 30px; }
  .page-hero-decor { display: none; }
  .cta-band { padding: 40px var(--site-gutter); text-align: center; justify-content: center; }
  .hero-content { padding-top: 70px; padding-bottom: 60px; }
}
@media (max-width: 768px) {
  .footer-float {
    grid-template-columns: 1fr;
    margin-top: -60px;
  }
  .footer-logo-panel {
    border-radius: 14px 14px 0 0;
    min-height: auto;
    padding: 24px 20px;
  }
  .footer-contact-panel {
    border-radius: 0 0 14px 14px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
    min-height: auto;
  }
  .footer-contact-item {
    border-right: none;
    border-bottom: 1px solid rgba(71, 89, 41, 0.12);
    padding-bottom: 18px;
  }
  .footer-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-links { grid-template-columns: 1fr; gap: 28px; }
  .footer-action-box {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 28px;
  }
  .footer-action-newsletter { grid-column: auto; }
}
@media (max-width: 600px) {
  .topbar-left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-credits { flex-direction: column; align-items: flex-start; }
}
