/*
Theme Name: Heartsmiles Group
Theme URI: https://heartsmilesgroup.com
Author: Heartsmiles Group
Author URI: https://heartsmilesgroup.com
Description: A premium, world-class WordPress theme for Heartsmiles Group - a multinational organization encompassing consulting, agriculture, and mental health services. Features modern design, multi-brand color system, and comprehensive functionality.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heartsmiles
Tags: business, corporate, multi-purpose, responsive, modern

Heartsmiles Group - Client-centricity. Innovation. Impact.
*/

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: #1f2933;
    font-size: 16px;
    overflow-x: hidden;
    background-color: #f9fafb;
}

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

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: 0.02em;
}

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

p {
    margin-bottom: 1rem;
}

/* ========================================
   COLOR VARIABLES & BRAND SYSTEM
======================================== */
:root {
    /* Group Colors (core palette) */
    --group-primary: #478559;   /* Green Treeline */
    --group-secondary: #F7C331; /* Citrus */
    --group-accent: #f43a09;    /* Brightly Orange Number 2 */
    
    /* Consult Colors (navy techy) */
    --consult-primary: #091f36;  /* Purple Shadow / deep navy */
    --consult-secondary: #163a5f; /* lighter navy */
    --consult-accent: #F7C331;   /* citrus accent */
    
    /* Farms Colors (green-focused) */
    --farms-primary: #478559;   /* primary green */
    --farms-secondary: #6aa378; /* softer green */
    --farms-accent: #F7C331;    /* citrus highlight */
    
    /* Foundation Colors (orange / citrus / navy contrast) */
    --foundation-primary: #f43a09;  /* bright orange */
    --foundation-secondary: #F7C331; /* citrus */
    --foundation-accent: #091f36;   /* deep navy accent */
    
    /* Neutral Colors */
    --dark: #091f36;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* ========================================
   LAYOUT CONTAINERS
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background: #f9f9f9;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(14px);
}

.site-header.scrolled {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.header-top {
    background: var(--group-primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

  .site-logo img {
      height: 120px;
      width: auto;
  }

  .hero-logo img,
  .brand-logo img {
      height: 120px;
      width: auto;
      display: block;
      margin: 0 auto;
  }

.site-logo h1 {
    font-size: 1.8rem;
    color: var(--group-primary);
    margin: 0;
}

.site-logo p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--group-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.main-navigation li {
    position: relative;
}

.main-navigation .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.main-navigation li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .dropdown li {
    display: block;
}

.main-navigation .dropdown a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-light);
}

  .main-navigation .dropdown a:hover {
      background: #f9f9f9;
      padding-left: 25px;
  }
  
  /* Mega menu for Our Organizations (fallback menu) */
  .main-navigation .mega-organizations {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
      padding: 20px;
      min-width: 640px;
  }
  
  .main-navigation .mega-organizations .mega-item {
      padding: 10px 15px;
      border-radius: 10px;
      background: #f9fafb;
  }
  
  .main-navigation .mega-organizations .mega-item.consult {
      border-top: 3px solid var(--consult-primary);
  }
  
  .main-navigation .mega-organizations .mega-item.farms {
      border-top: 3px solid var(--farms-primary);
  }
  
  .main-navigation .mega-organizations .mega-item.foundation {
      border-top: 3px solid var(--foundation-primary);
  }
  
  .main-navigation .mega-organizations .menu-description {
      font-size: 0.85rem;
      color: var(--gray);
      margin-top: 5px;
  }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
}

/* ========================================
   HERO SECTION / SLIDER
======================================== */
  .hero-slider {
      position: relative;
      height: 600px;
      overflow: hidden;
      background: radial-gradient(circle at top left, rgba(247, 195, 49, 0.18), transparent 55%), radial-gradient(circle at bottom right, rgba(71, 133, 89, 0.16), transparent 55%);
  }

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

  .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(9, 31, 54, 0.96) 0%, rgba(71, 133, 89, 0.9) 40%, rgba(247, 195, 49, 0.9) 100%);
      background-size: 200% 200%;
      animation: heroGradientShift 14s ease-in-out infinite;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .hero-content {
      text-align: center;
      color: var(--white);
      max-width: 900px;
      padding: 0 20px;
      animation: fadeInUp 0.9s ease-out both;
  }

  @keyframes fadeInUp {
      from {
          opacity: 0;
          transform: translateY(30px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes heroGradientShift {
      0% {
          background-position: 0% 50%;
      }
      50% {
          background-position: 100% 50%;
      }
      100% {
          background-position: 0% 50%;
      }
  }

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    letter-spacing: 0.03em;
}

  .btn-primary {
      background: var(--group-accent);
      color: var(--white);
      box-shadow: 0 10px 25px rgba(244, 58, 9, 0.35);
  }

  .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 40px rgba(244, 58, 9, 0.45);
  }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--group-primary);
}

.btn-consult {
    background: var(--consult-primary);
    color: var(--white);
}

.btn-consult:hover {
    background: var(--consult-secondary);
}

.btn-farms {
    background: var(--farms-primary);
    color: var(--white);
}

.btn-farms:hover {
    background: var(--farms-secondary);
}

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

.btn-foundation:hover {
    background: var(--foundation-secondary);
}

/* ========================================
   ORGANIZATION CARDS (HOME PAGE)
======================================== */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.org-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(26px);
}

.org-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.org-card-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.org-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.org-card-body {
    padding: 30px;
}

.org-card h3 {
    margin-bottom: 10px;
}

.org-card .slogan {
    font-style: italic;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.org-card p {
    margin-bottom: 20px;
}

/* Brand-specific card styling */
.org-card.consult .org-card-header {
    background: linear-gradient(135deg, var(--consult-primary), var(--consult-accent));
}

.org-card.consult h3 {
    color: var(--consult-primary);
}

.org-card.farms .org-card-header {
    background: linear-gradient(135deg, var(--farms-primary), var(--farms-accent));
}

.org-card.farms h3 {
    color: var(--farms-primary);
}

.org-card.foundation .org-card-header {
    background: linear-gradient(135deg, var(--foundation-primary), var(--foundation-accent));
}

.org-card.foundation h3 {
    color: var(--foundation-primary);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(26px);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.value-item .icon {
    font-size: 3rem;
    color: var(--group-primary);
    margin-bottom: 15px;
}

.value-item h4 {
    color: var(--group-primary);
    margin-bottom: 10px;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.5s ease;
    border-top: 4px solid transparent;
    opacity: 0;
    transform: translateY(26px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-card.consult {
    border-top-color: var(--consult-primary);
}

.service-card.consult h3 {
    color: var(--consult-primary);
}

.service-card.farms {
    border-top-color: var(--farms-primary);
}

.service-card.farms h3 {
    color: var(--farms-primary);
}

.service-card.foundation {
    border-top-color: var(--foundation-primary);
}

.service-card.foundation h3 {
    color: var(--foundation-primary);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ========================================
   TEAM SECTION
======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.5s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(26px);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-member-photo {
    width: 100%;
    height: 300px;
    background: var(--gray-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.team-member-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3) 100%);
}

.team-member-info {
    padding: 25px;
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ========================================
   PUBLICATIONS SECTION
======================================== */
.publications-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--group-primary);
    color: var(--white);
    border-color: var(--group-primary);
}

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

  .publication-card {
      background: rgba(255, 255, 255, 0.98);
      border-radius: 16px;
      padding: 30px;
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
      border: 1px solid rgba(148, 163, 184, 0.16);
      position: relative;
      overflow: hidden;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.5s ease;
      opacity: 0;
      transform: translateY(26px);
  }

  .publication-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
      border-color: rgba(251, 146, 60, 0.6);
  }

.publication-type {
    display: inline-block;
    padding: 5px 15px;
    background: var(--group-primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.publication-card h4 {
    margin-bottom: 10px;
}

.publication-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ========================================
   CAREERS SECTION
======================================== */
.careers-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.career-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.career-section h3 {
    color: var(--group-primary);
    margin-bottom: 20px;
}

.career-section .icon {
    font-size: 2.5rem;
    color: var(--group-primary);
    margin-bottom: 20px;
}

/* ========================================
   MEDIA SECTION
======================================== */
.media-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

  .media-card {
      background: rgba(255, 255, 255, 0.98);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
      border: 1px solid rgba(148, 163, 184, 0.18);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.5s ease;
      opacity: 0;
      transform: translateY(26px);
  }

  .media-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
      border-color: rgba(56, 189, 248, 0.8);
  }

.media-thumbnail {
    width: 100%;
    height: 200px;
    background: var(--gray-light);
    background-size: cover;
    background-position: center;
}

.media-content {
    padding: 25px;
}

.media-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-section h3 {
    color: var(--group-primary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--group-primary);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p,
.contact-item a {
    color: var(--gray-dark);
}

.contact-item a:hover {
    color: var(--group-primary);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--group-primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   FOOTER
======================================== */
  .site-footer {
      background: rgba(2, 6, 23, 0.94);
      color: var(--white);
      padding: var(--spacing-xl) 0 var(--spacing-md);
  }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--group-primary);
    padding-left: 5px;
}

  .footer-logo {
      margin-bottom: 20px;
  }

  .footer-logo img {
      height: 80px;
      width: auto;
      display: block;
  }
  
  .newsletter-embed {
      margin: 15px 0;
  }

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--group-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
  .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      background: var(--group-primary);
      color: var(--white);
      border: none;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .back-to-top.show {
      opacity: 1;
      visibility: visible;
      animation: floatPulse 1.8s ease-in-out infinite;
  }

  @keyframes floatPulse {
      0% {
          transform: translateY(0);
          box-shadow: 0 12px 20px rgba(15, 23, 42, 0.18);
      }
      50% {
          transform: translateY(-4px);
          box-shadow: 0 18px 28px rgba(15, 23, 42, 0.26);
      }
      100% {
          transform: translateY(0);
          box-shadow: 0 12px 20px rgba(15, 23, 42, 0.18);
      }
  }
  
  .callback-button {
      position: fixed;
      right: 30px;
      bottom: 95px;
      z-index: 998;
      background: var(--group-primary);
      color: var(--white);
      border-radius: 999px;
      padding: 12px 22px;
      font-weight: 600;
      font-size: 0.9rem;
      box-shadow: 0 16px 35px rgba(15, 23, 42, 0.4);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  }
  
  .callback-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 24px 45px rgba(15, 23, 42, 0.45);
      background: var(--group-secondary);
  }

.back-to-top:hover {
    background: var(--dark);
    transform: translateY(-5px);
}

/* ========================================
   PAGE HEADERS
======================================== */
  .page-header {
      background: linear-gradient(135deg, var(--group-primary) 0%, var(--group-accent) 100%), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
      color: var(--white);
      padding: 80px 0;
      text-align: center;
      position: relative;
      overflow: hidden;
      min-height: 600px;
      display: flex;
      align-items: center;
  }

  .page-header h1 {
      color: var(--white);
      font-size: 3rem;
      margin-bottom: 15px;
  }

.page-header .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
}

  /* Brand-specific page headers */
  .page-header.consult {
      background:
          linear-gradient(135deg, rgba(9, 31, 54, 0.96) 0%, rgba(22, 58, 95, 0.9) 40%, rgba(247, 195, 49, 0.9) 100%),
          url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

  .page-header.farms {
      background:
          linear-gradient(135deg, rgba(71, 133, 89, 0.96) 0%, rgba(106, 163, 120, 0.9) 40%, rgba(247, 195, 49, 0.9) 100%),
          url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

  .page-header.foundation {
      background:
          linear-gradient(135deg, rgba(244, 58, 9, 0.96) 0%, rgba(247, 195, 49, 0.9) 40%, rgba(9, 31, 54, 0.9) 100%),
          url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

  .page-header.media {
      background:
          linear-gradient(135deg, rgba(9, 31, 54, 0.96) 0%, rgba(247, 195, 49, 0.85) 45%, rgba(15, 23, 42, 0.96) 100%),
          url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

  .page-header.publications {
      background:
          linear-gradient(135deg, rgba(9, 31, 54, 0.96) 0%, rgba(71, 133, 89, 0.9) 40%, rgba(244, 58, 9, 0.9) 100%),
          url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

  .page-header.careers {
      background:
          linear-gradient(135deg, rgba(9, 31, 54, 0.96) 0%, rgba(244, 58, 9, 0.9) 40%, rgba(247, 195, 49, 0.9) 100%),
          url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

  .page-header.contact {
      background:
          linear-gradient(135deg, rgba(9, 31, 54, 0.96) 0%, rgba(71, 133, 89, 0.9) 35%, rgba(244, 58, 9, 0.9) 100%),
          url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=1600&h=650&fit=crop&q=80');
      background-size: cover;
      background-position: center;
  }

/* ========================================
   BREADCRUMBS
======================================== */
.breadcrumbs {
    padding: 15px 0;
    background: #f9f9f9;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumbs a {
    color: var(--gray);
}

.breadcrumbs a:hover {
    color: var(--group-primary);
}

.breadcrumbs .separator {
    color: var(--gray);
}

.breadcrumbs .current {
    color: var(--dark);
    font-weight: 600;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center {
    text-align: center;
}

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

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

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

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
  .mb-3 { margin-bottom: var(--spacing-md); }
  .mb-4 { margin-bottom: var(--spacing-lg); }
  .mb-5 { margin-bottom: var(--spacing-xl); }

  /* ========================================
     GENERIC PAGE PLACEHOLDER LAYOUT
  ======================================== */
  .page-placeholder {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
      gap: 40px;
      align-items: center;
  }

  .page-placeholder-media img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 18px;
      box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  }

  .page-placeholder-copy h2 {
      margin-bottom: 15px;
  }

  .page-placeholder-copy ul {
      margin-top: 10px;
      padding-left: 20px;
      list-style: disc;
  }
  
  .partners-strip {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: center;
      margin-top: 10px;
  }
  
  .partners-strip .partners-label {
      font-weight: 600;
      color: var(--gray-dark);
      margin-right: 10px;
  }
  
  .partners-strip .partner-pill {
      padding: 6px 14px;
      border-radius: 999px;
      background: #f3f4f6;
      font-size: 0.85rem;
      color: var(--gray-dark);
  }

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    
    .hero-overlay {
        animation: none !important;
    }
    
    .back-to-top.show {
        animation: none !important;
    }
    
    .org-card,
    .service-card,
    .team-member,
    .value-item,
    .publication-card,
    .media-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-slider {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .tagline {
        font-size: 1.2rem;
    }
    
    .page-header {
        min-height: 420px;
        padding: 100px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .organizations-grid,
    .services-grid,
    .team-grid,
    .publications-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .main-navigation .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile */
  @media (max-width: 480px) {
      h1 { font-size: 1.75rem; }
      h2 { font-size: 1.5rem; }
      
      .hero-slider {
          height: 400px;
      }
      
      .hero-content h1 {
          font-size: 2rem;
      }
      
      .hero-content .tagline {
          font-size: 1.1rem;
      }
      
      .page-header {
          min-height: 360px;
          padding: 90px 0;
      }
      
      .page-header h1 {
          font-size: 2rem;
      }
    
    .organizations-grid {
        grid-template-columns: 1fr;
    }
    
      .site-logo img {
          height: 90px;
      }
    
    .contact-form {
        padding: 25px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .site-header,
    .main-navigation,
    .hero-slider,
    .back-to-top,
    .site-footer {
        display: none;
    }
    
    body {
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
}
