/*!
Theme Name: Integrative Human Environment Dynamics Lab
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Cleaned and unified stylesheet for Integrative Human Environment Dynamics Lab WordPress Theme.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: integrative-human-environment-dynamics-lab
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Root Variables & Reset Base
   ========================================================================== */
:root {
  --ihed-dark-navy: #0B1320;
  --ihed-dark-green: #0F2E23;
  --ihed-emerald: #34D399;
  --ihed-amber-gold: #B45309;
  --ihed-amber-hover: #92400E;
  --ihed-offwhite: #F8F6F0;
  --ihed-white: #FFFFFF;
  --ihed-text-dark: #111827;
  --ihed-text-body: #4B5563;
  --ihed-text-light: #A0AEC0;
  --ihed-border-light: #E5E7EB;
  --ihed-accent-green: #00A88F;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--ihed-text-dark);
  line-height: 1.65;
  background-color: var(--ihed-white);
}

.ihed-container,
.top-bar-container,
.header-container,
.footer-container,
.research-page-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Base Utility Classes */
.ihed-section { padding: 80px 0; }
.ihed-bg-offwhite { background-color: var(--ihed-offwhite); }
.ihed-bg-white { background-color: var(--ihed-white); }
.ihed-bg-darkgreen { background-color: var(--ihed-dark-green); }

.text-center { text-align: center; }
.text-white { color: var(--ihed-white) !important; }
.text-light { color: #D1D5DB !important; }
.ihed-text-gold { color: #F59E0B !important; }

/* ==========================================================================
   2. Global Typography & Headings
   ========================================================================== */
.sub-heading,
.ihed-sub-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ihed-amber-gold);
  display: block;
  margin-bottom: 12px;
}

.section-header,
.ihed-sec-title {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ihed-text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.ihed-body-text {
  font-size: 16px;
  color: var(--ihed-text-body);
  line-height: 1.7;
}

/* ==========================================================================
   3. Unified Button Styling
   ========================================================================== */
.btn-call,
.ihed-btn,
.ihed-btn-accent,
.ihed-btn-dark,
.ihed-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-call:hover,
.ihed-btn:hover,
.ihed-btn-accent:hover,
.ihed-btn-dark:hover,
.ihed-btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-call:active,
.ihed-btn:active,
.ihed-btn-accent:active,
.ihed-btn-dark:active,
.ihed-btn-outline:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Accent Gold Button Variant */
.ihed-btn-accent {
  background-color: var(--ihed-amber-gold);
  color: var(--ihed-white) !important;
  border-color: var(--ihed-amber-gold);
}

.ihed-btn-accent:hover {
  background-color: var(--ihed-amber-hover);
  border-color: var(--ihed-amber-hover);
}

/* Dark Button Variant */
.btn-call,
.ihed-btn-dark {
  background-color: var(--ihed-dark-navy);
  color: var(--ihed-white) !important;
  border-color: var(--ihed-dark-navy);
}

.btn-call:hover,
.ihed-btn-dark:hover {
  background-color: #1A2638;
  border-color: #1A2638;
}

/* Outline Button Variant */
.ihed-btn-outline {
  background-color: transparent;
  color: var(--ihed-text-dark) !important;
  border-color: var(--ihed-border-light);
}

.ihed-btn-outline:hover {
  background-color: var(--ihed-offwhite);
  border-color: var(--ihed-amber-gold);
  color: var(--ihed-amber-gold) !important;
}

/* ==========================================================================
   4. Top Bar & Site Header Navigation
   ========================================================================== */
.top-bar {
  background-color: var(--ihed-dark-navy);
  color: #C2D1D9;
  font-size: 13px;
  padding: 8px 0;
}

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

.top-bar-left, 
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-info {
  color: #C2D1D9 !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.top-info:hover {
  color: var(--ihed-accent-green);
}

.top-bar .divider {
  color: #2D3748 !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--ihed-accent-green);
  border-radius: 50%;
  display: inline-block;
}

/* Site Header */
.site-header {
  background-color: var(--ihed-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--ihed-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.site-branding .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-branding .custom-logo-link img.custom-logo {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-text .brand-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.logo-text .brand-name a {
  text-decoration: none;
  color: var(--ihed-dark-navy);
}

.logo-text .brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--ihed-accent-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Main Navigation */
.main-navigation .menu-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-menu li a {
  text-decoration: none;
  color: #2D3748;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 6px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  color: var(--ihed-accent-green);
}

.nav-menu li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--ihed-accent-green);
  border-radius: 2px;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.ihed-hero-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 120px 0 100px;
  color: var(--ihed-white);
}

.ihed-hero-content {
  max-width: 720px;
}

.ihed-gold-badge {
  color: #FBBF24;
}

.ihed-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--ihed-white);
  margin-bottom: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ihed-hero-para {
  font-size: 18px;
  color: var(--ihed-border-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ==========================================================================
   6. Content Layout Grids & Cards
   ========================================================================== */
.ihed-grid-2,
.hero-grid,
.about-grid,
.study-change-grid,
.selected-research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.ihed-grid-3,
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

/* Image Banner Overlay */
.ihed-img-card-overlay {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ihed-img-card-overlay img,
.ihed-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ihed-img-dark-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 23, 42, 0.92) 100%);
  padding: 24px 20px 16px;
  text-align: center;
}

.ihed-img-dark-banner span {
  color: var(--ihed-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: inline-block;
  letter-spacing: 0.01em;
}

.ihed-img-caption {
  display: block;
  font-size: 13px;
  color: var(--ihed-text-body);
  margin-top: 8px;
  font-style: italic;
}

/* Focus Cards */
.ihed-focus-card {
  border-top: 2px solid var(--ihed-border-light);
  padding-top: 20px;
  transition: border-color 0.3s ease;
}

.ihed-focus-card:hover {
  border-top-color: var(--ihed-amber-gold);
}

.ihed-card-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ihed-text-body);
  display: block;
  margin-bottom: 8px;
}

.ihed-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ihed-text-dark);
  margin-bottom: 10px;
}

.ihed-card-para {
  font-size: 14.5px;
  color: var(--ihed-text-body);
  line-height: 1.6;
}

/* Selected Research Card */
.ihed-selected-card {
  background: var(--ihed-white);
  border: 1px solid var(--ihed-border-light);
  border-radius: 8px;
  padding: 32px;
}

.ihed-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ihed-amber-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Clean Bullet Lists */
.ihed-clean-bullet-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ihed-clean-bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--ihed-border-light);
  line-height: 1.6;
}

.ihed-clean-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ihed-emerald);
}

/* ==========================================================================
   7. FAQ Accordion Component
   ========================================================================== */
.ihed-accordion-container {
  max-width: 820px;
  margin: 32px auto 0;
}

.ihed-accordion-item {
  background: var(--ihed-white);
  border: 1px solid var(--ihed-border-light);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ihed-accordion-item[open] {
  border-color: var(--ihed-amber-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ihed-accordion-header {
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ihed-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.ihed-accordion-header::-webkit-details-marker {
  display: none;
}

.ihed-accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ihed-accordion-icon::before,
.ihed-accordion-icon::after {
  content: "";
  position: absolute;
  background-color: var(--ihed-text-body);
  transition: transform 0.25s ease;
}

.ihed-accordion-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.ihed-accordion-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.ihed-accordion-item[open] .ihed-accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.ihed-accordion-body {
  padding: 0 24px 20px 24px;
  margin-top: -4px;
}

.ihed-accordion-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ihed-text-body);
}

/* ==========================================================================
   8. Footer Styling
   ========================================================================== */
.site-footer {
  background-color: var(--ihed-dark-navy);
  color: var(--ihed-text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-top: auto;
}

.site-footer a {
  color: #CBD5E0 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--ihed-accent-green) !important;
}

.footer-cta-section {
  background-color: var(--ihed-accent-green);
  color: var(--ihed-white);
  padding: 36px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-content h2 {
  color: var(--ihed-white);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.cta-content p {
  color: #E6FFFA;
  margin: 0;
  font-size: 15px;
}

.footer-widgets-section {
  padding: 60px 0 40px;
  border-bottom: 1px solid #1A202C;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-heading {
  color: var(--ihed-white) !important;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--ihed-accent-green);
  margin-top: 8px;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
  margin-bottom: 16px;
}

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

.footer-social-links a {
  background-color: #1A202C;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ihed-white) !important;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background-color: var(--ihed-accent-green);
  transform: translateY(-2px);
}

.footer-menu,
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-menu li a::before {
  content: '›';
  margin-right: 8px;
  color: var(--ihed-accent-green) !important;
  font-weight: bold;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-info-list .dashicons {
  color: var(--ihed-accent-green);
  margin-top: 2px;
}

.footer-bottom-bar {
  padding: 20px 0;
  font-size: 13px;
  color: #718096;
}

.bottom-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-bar-inner p {
  margin: 0;
}

/* ==========================================================================
   9. Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .top-bar-left .location,
  .top-bar .divider,
  .nav-menu {
    display: none;
  }

  .main-navigation .menu-toggle {
    display: block;
  }

  .ihed-grid-2,
  .ihed-grid-3,
  .hero-grid,
  .about-grid,
  .study-change-grid,
  .focus-grid,
  .selected-research-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-inner,
  .bottom-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .ihed-hero-title {
    font-size: 36px;
  }
}