/* ============================================================
   FECUNDCIRCLE — Main Stylesheet
   Brand: Green #3a7d44 | Accent: #f0f5e8 | Dark: #1a2e1c
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --green-primary:   #3a7d44;
  --green-dark:      #1a2e1c;
  --green-mid:       #2d6035;
  --green-light:     #4e9e5a;
  --green-pale:      #eef5e8;
  --green-muted:     #c8dfc8;
  --yellow-accent:   #d4e84a;
  --yellow-warm:     #f0f060;
  --white:           #ffffff;
  --off-white:       #f8fdf4;
  --text-dark:       #0f1f11;
  --text-mid:        #3a4f3c;
  --text-light:      #6b8b6e;

  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  --shadow-sm:  0 2px 8px rgba(26,46,28,.08);
  --shadow-md:  0 8px 32px rgba(26,46,28,.12);
  --shadow-lg:  0 20px 60px rgba(26,46,28,.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --section-pad: 96px 24px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-primary);
  background: var(--green-pale);
  border: 1px solid var(--green-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-primary);
  border-radius: 50%;
}

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-pad); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(58,125,68,.35);
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(58,125,68,.45);
}

.btn-accent {
  background: var(--yellow-accent);
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(212,232,74,.4);
}
.btn-accent:hover {
  background: var(--yellow-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,232,74,.5);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.fc-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.fc-navbar.scrolled {
  background: rgba(26,46,28,.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.fc-navbar.transparent {
  background: transparent;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo-badge {
  width: 44px; height: 44px;
  background: var(--yellow-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--green-dark);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-cta { margin-left: 8px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--green-dark);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 20px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.nav-mobile a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-mobile .btn { margin-top: 12px; text-align: center; justify-content: center; }

/* ── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 60%, var(--green-light) 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--yellow-accent); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── FOOTER ────────────────────────────────────────────────── */
.fc-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 0;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 16px 0 24px;
  line-height: 1.7;
}
.footer-brand .nav-logo { margin-bottom: 0; }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
  transform: translateY(-3px);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--yellow-accent); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--yellow-accent); }

/* ── SCROLL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}


/* ============================================================
   LOGO FIX v3 — aggressive size control for WP custom logo
   The uploaded logo is a large circle graphic — we must
   constrain it at EVERY level: container, link, and img.
   ============================================================ */

/* ── NAVBAR LOGO CONTAINER ──────────────────────────────── */
.nav-logo {
  /* Contain the logo strictly within navbar height */
  height: 44px !important;
  max-width: 200px !important;
  overflow: hidden !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
}

/* WP wraps custom logo in <a class="custom-logo-link"> */
.nav-logo a,
.nav-logo .custom-logo-link {
  display: flex !important;
  align-items: center;
  height: 40px !important;
  max-width: 200px !important;
  overflow: hidden !important;
  line-height: 0;
}

/* The actual <img> tag — hard cap at 40px tall */
.nav-logo img,
.nav-logo .fc-nav-logo-img,
.nav-logo .custom-logo-link img,
.nav-logo .custom-logo {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex-shrink: 0;
}

/* ── FOOTER LOGO CONTAINER ──────────────────────────────── */
.footer-logo-link {
  display: block;
  margin-bottom: 16px;
  /* Clip the circle logo to a reasonable footer size */
  height: 56px;
  max-width: 200px;
  overflow: hidden;
  line-height: 0;
}

.footer-logo-link img,
.fc-footer-logo-img {
  display: block !important;
  height: 56px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* ── FOOTER TEXT FALLBACK (when no logo uploaded) ────── */
.footer-logo-text-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── HERO: hide any WP logo/branding that bleeds in ────── */
/* These elements come from some WP hooks / block themes */
.hero .site-title,
.hero .site-description,
.hero .site-branding,
.hero .wp-site-logo,
.hero .custom-logo-link,
.hero img.custom-logo,
.hero .wp-block-site-logo {
  display: none !important;
}

/* Also hide the standalone wp-site-logo block globally if it
   appears outside the navbar (some themes output it twice) */
body > .wp-site-logo,
body > img.custom-logo { display: none !important; }

/* Ensure hero layers are correct */
.hero                   { position: relative; overflow: hidden; }
.hero-inner             { position: relative; z-index: 2; }
.hero-dots              { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero::before,
.hero::after            { z-index: 1; pointer-events: none; }

/* ── NAV LOGO TEXT fallback ─────────────────────────── */
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo-badge {
  /* already defined above — override ensures correct size */
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  font-size: 0.65rem;
}

/* ── FOOTER BOTTOM BAR ───────────────────────────────── */
.footer-bottom-wrap {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--yellow-accent); }

/* ── ACTIVE NAV LINK ─────────────────────────────────── */
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}