/*
Theme Name: Aman Ethiopia General Trading
Theme URI: https://amanethiopiagtrade.com
Author: Amanuel A. Wasihun
Author URI: http://helloamanuel.co.uk/
Description: A premium, bespoke, high-performance WordPress theme for Aman Ethiopia General Trading PLC, featuring a modern responsive layout and corporate teal branding.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aman-group
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --primary-teal: #10a396;
  --primary-teal-hover: #0d8a7f;
  --primary-teal-light: #e6f6f4;
  --dark-neutral: #1a1a1a;
  --dark-gray: #333333;
  --light-gray: #f8f9fa;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
  --max-width: 1200px;
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-neutral);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-teal-hover);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 6px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-teal-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 163, 150, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--dark-neutral);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-outline:hover {
  background-color: var(--primary-teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo-container a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  height: 48px;
  width: auto;
}

.nav-menu, .main-navigation > div > ul, .main-navigation > ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--dark-neutral);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 0;
  position: relative;
  display: block;
}

/* Primary Underline Hover */
.main-navigation > div > ul > li > a::after,
.main-navigation > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-teal);
  transition: var(--transition-smooth);
}

.main-navigation a:hover {
  color: var(--primary-teal);
}

.main-navigation > div > ul > li > a:hover::after, 
.main-navigation > div > ul > li.current-menu-item > a::after,
.main-navigation > ul > li > a:hover::after, 
.main-navigation > ul > li.current_page_item > a::after {
  width: 100%;
}

/* Dropdown Sub-menu */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 10px 0;
  flex-direction: column;
  gap: 0;
  border-radius: 4px;
}

.main-navigation ul li:hover > ul {
  display: flex;
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.main-navigation ul ul a:hover {
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-neutral);
  cursor: pointer;
}

/* --- HEADER SEARCH (JS TOGGLED) --- */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  margin-left: 15px;
}
.header-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}
.header-search-toggle:hover {
  color: var(--primary-teal);
  background-color: rgba(16, 163, 150, 0.05);
}
.header-search-form {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  border-radius: 20px;
  width: 0;
  height: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1001; /* Overlays the nav */
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}
.header-search-wrapper.is-active .header-search-form {
  width: 250px;
  opacity: 1;
  visibility: visible;
  border-color: var(--border-color);
}
.header-search-field {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 6px 40px 6px 15px;
  outline: none;
  width: 100%;
  height: 100%;
  font-family: inherit;
}
.header-search-close {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.3s;
}
.header-search-close:hover {
  color: var(--primary-teal);
}
/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(16,163,150,0.85) 100%), url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
  padding: 200px 0 140px;
  color: var(--white);
  text-align: left;
}

.hero-section h1 {
  font-size: 3.5rem;
  color: var(--white);
  max-width: 820px;
  margin: 0 0 24px;
  line-height: 1.15;
  font-weight: 800;
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 0 40px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

/* --- CORPORATE PROFILE --- */
.corporate-profile {
  padding: 100px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 15px auto 0;
}

/* Left-aligned section title variant — used on division & inner pages */
.section-title--left {
  text-align: left;
}
.section-title--left h2 {
  display: block;
}
.section-title--left h2::after {
  left: 0;
  transform: none;
}
.section-title--left p {
  margin-left: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.profile-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

.profile-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-box {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-teal);
  transition: var(--transition-smooth);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: #666;
}

/* --- DIVISIONS SECTION --- */
.divisions-section {
  padding: 100px 0;
  background-color: var(--light-gray);
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.division-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.division-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.division-card:hover::before {
  transform: scaleX(1);
}

.division-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-teal);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.division-card:hover .division-icon {
  background-color: var(--primary-teal);
  color: var(--white);
}

.division-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.division-card p {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.division-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.division-link svg {
  transition: var(--transition-smooth);
}

.division-card:hover .division-link svg {
  transform: translateX(4px);
}

/* --- DYNAMIC DIVISION TEMPLATE --- */
.division-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--dark-neutral) 0%, var(--primary-teal) 100%);
  color: var(--white);
  text-align: left;
}

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

.breadcrumbs {
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.division-body {
  padding: 80px 0;
}

.division-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.division-main-content h2 {
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

.division-main-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #444;
}

.division-main-content ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.division-main-content li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.division-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-teal);
  padding-bottom: 10px;
}

.services-list {
  list-style: none;
}

.services-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li::before {
  content: '✓';
  color: var(--primary-teal);
  font-weight: bold;
}

/* --- PARTNERSHIPS & CTA --- */
.partnerships-section {
  padding: 100px 0;
  background-color: var(--white);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-teal);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-neutral) 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--dark-neutral);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 30px;
  font-size: 0.95rem;
  border-top: 5px solid var(--primary-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-teal);
}

.footer-col p {
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.footer-contact-info svg {
  color: var(--primary-teal);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background-color: var(--primary-teal);
  color: var(--white);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   DIVISION LANDING PAGE — NEW SECTIONS
═══════════════════════════════════════════════════════════════ */

/* ── Division Hero ── */
.div-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 80px;
  color: var(--white);
}

.div-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(16, 163, 150, 0.70) 100%
  );
}

.div-hero__content {
  position: relative;
  z-index: 1;

}

.div-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-teal);
  background: rgba(16, 163, 150, 0.15);
  border: 1px solid rgba(16, 163, 150, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.div-hero__content h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.div-hero__tagline {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 28px;
  max-width: 640px;
  font-weight: 300;
}

.div-hero__breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.75;
}
.div-hero__breadcrumbs a { color: var(--white); }
.div-hero__breadcrumbs a:hover { color: var(--primary-teal); opacity: 1; }
.div-hero__breadcrumbs span { color: rgba(255,255,255,0.55); }

/* ── Overview ── */
.div-overview { padding: 100px 0; background: var(--white); }
.div-overview__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.div-overview__image-wrap { position: relative; }
.div-overview__img { width: 100%; height: 460px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-lg); display: block; }
.div-overview__img-badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary-teal); color: var(--white); padding: 14px 20px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(16,163,150,0.35); white-space: nowrap; }
.section-eyebrow { display: inline-block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary-teal); margin-bottom: 14px; }
.div-overview__text h2 { font-size: 2.2rem; margin-bottom: 22px; line-height: 1.25; }
.div-overview__text p { font-size: 1.02rem; color: #444; line-height: 1.75; margin-bottom: 18px; }
.div-overview__actions { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }

/* ── Services Grid ── */
.div-services { padding: 100px 0; background: var(--light-gray); }
.div-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 10px; }
.div-service-card { background: var(--white); border-radius: 10px; padding: 32px 26px; border: 1px solid var(--border-color); transition: var(--transition-smooth); position: relative; overflow: hidden; }
.div-service-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--primary-teal); transform: scaleX(0); transform-origin: left; transition: var(--transition-smooth); }
.div-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.div-service-card:hover::after { transform: scaleX(1); }
.div-service-card__icon { font-size: 2rem; margin-bottom: 16px; line-height: 1; }
.div-service-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--dark-neutral); }
.div-service-card p { font-size: 0.9rem; color: #666; line-height: 1.65; margin: 0; }

/* ── Stats Band ── */
.div-stats { padding: 70px 0; background: linear-gradient(135deg, var(--dark-neutral) 0%, #1e3d3b 100%); }
.div-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.div-stats__item { display: flex; flex-direction: column; align-items: center; padding: 20px 0; border-right: 1px solid rgba(255,255,255,0.1); }
.div-stats__item:last-child { border-right: none; }
.div-stats__value { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: var(--primary-teal); line-height: 1; margin-bottom: 8px; }
.div-stats__label { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; }

/* ── Sidebar Section ── */
.div-sidebar-section { padding: 80px 0; background: var(--light-gray); }
.div-sidebar-section__grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 30px; align-items: start; }
.div-contact-widget { background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-hover) 100%); border: none; }
.div-contact-widget h3 { color: var(--white); }
.div-contact-widget h3::after { background-color: rgba(255,255,255,0.5); }
.div-contact-widget p { color: rgba(255,255,255,0.88); font-size: 0.9rem; }
.div-contact-widget .btn-primary { background: var(--white); color: var(--primary-teal); border-color: var(--white); }
.div-contact-widget .btn-primary:hover { background: rgba(255,255,255,0.9); color: var(--primary-teal-hover); }
.div-nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.div-nav-list li a { display: block; padding: 8px 12px; border-radius: 5px; font-size: 0.9rem; color: var(--dark-gray); transition: var(--transition-smooth); }
.div-nav-list li a:hover, .div-nav-list li.active a { background: var(--primary-teal-light); color: var(--primary-teal); padding-left: 16px; }
.div-nav-list li.active a { font-weight: 600; }

/* ── CTA Band ── */
.div-cta { padding: 90px 0; background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-neutral) 100%); color: var(--white); }
.div-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.div-cta__text h2 { font-size: 2.2rem; color: var(--white); margin-bottom: 10px; }
.div-cta__text p { font-size: 1.05rem; opacity: 0.88; max-width: 520px; }
.div-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }
.division-featured-image { margin-bottom: 40px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════════════════════
   MEGA MENU — Our Divisions dropdown
═══════════════════════════════════════════════════════ */
/* Fix stray bullets on all nav levels */
.main-navigation ul,
.main-navigation ul ul,
.main-navigation ul ul ul { list-style: none; }

/* Make .main-navigation the positioning parent */
.main-navigation { position: relative; }

/* Any top-level item whose submenu has many children */
.main-navigation li.has-mega-menu { position: static; }

.main-navigation li.has-mega-menu > ul {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  max-width: 95vw;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.13);
  padding: 16px;
  border-top: 3px solid var(--primary-teal);
  z-index: 1001;
  flex-direction: unset;
  flex-wrap: unset;
  gap: 0;
  min-width: unset;
}

.main-navigation li.has-mega-menu:hover > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

/* Mega menu heading row */
.mega-menu-header {
  grid-column: 1 / -1;
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-teal);
}

/* Each division item inside mega menu */
.main-navigation li.has-mega-menu > ul > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.main-navigation li.has-mega-menu > ul > li > a::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--primary-teal);
  border-radius: 50%;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.main-navigation li.has-mega-menu > ul > li > a:hover {
  background: var(--primary-teal-light);
  color: var(--primary-teal);
}

.main-navigation li.has-mega-menu > ul > li > a:hover::before {
  opacity: 1;
  transform: scale(1.4);
}

/* Override the ::after underline animation inside mega menu */
.main-navigation li.has-mega-menu > ul > li > a::after { display: none; }

/* Arrow on the mega menu trigger item */
.main-navigation li.has-mega-menu > a::after { display: none; }
.main-navigation li.has-mega-menu > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.main-navigation li.has-mega-menu > a .menu-arrow {
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.main-navigation li.has-mega-menu:hover > a .menu-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section h1 { font-size: 2.8rem; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .division-content-grid { grid-template-columns: 1fr; gap: 40px; }
  .div-overview__grid { grid-template-columns: 1fr; gap: 50px; }
  .div-overview__img { height: 360px; }
  .div-overview__img-badge { bottom: -16px; right: 16px; }
  .div-services__grid { grid-template-columns: repeat(2, 1fr); }
  .div-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .div-stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 28px 20px; }
  .div-sidebar-section__grid { grid-template-columns: 1fr 1fr; }
  .div-cta__inner { flex-direction: column; text-align: center; }
  .div-cta__text p { max-width: 100%; }
  .div-cta__actions { justify-content: center; }
  .div-hero__content h1 { font-size: 2.6rem; }
  .main-navigation li.has-mega-menu > ul { width: 600px; }
  .main-navigation li.has-mega-menu:hover > ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header .container { height: 70px; min-height: 70px; padding-top: 0; padding-bottom: 0; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; padding: 8px; font-size: 1.4rem; min-width: 44px; min-height: 44px; }
  .header-search-wrapper { display: none; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; width: 100%;
    background-color: var(--white); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active { max-height: 600px; overflow-y: auto; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 15px 24px; border-bottom: 1px solid var(--border-color); }
  .nav-menu a::after { display: none; }
  /* Mega menu on mobile — stack vertically */
  .main-navigation li.has-mega-menu { position: relative; }
  .main-navigation li.has-mega-menu > ul {
    position: static; transform: none; width: 100%; border-radius: 0;
    box-shadow: none; border-top: none; padding: 0; max-height: 0;
    overflow: hidden; transition: max-height 0.35s ease; display: block;
  }
  .main-navigation li.has-mega-menu.is-open > ul { max-height: 800px; }
  .main-navigation li.has-mega-menu:hover > ul { display: block; }
  .main-navigation li.has-mega-menu > ul > li > a { padding: 12px 32px; font-size: 0.875rem; border-radius: 0; border-bottom: 1px solid var(--border-color); white-space: normal; }
  .main-navigation li.has-mega-menu > ul > li > a::before { display: none; }
  .hero-section { padding: 140px 0 80px; }
  .hero-section h1 { font-size: 2.2rem; }
  .hero-section p { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 15px; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .divisions-grid { grid-template-columns: 1fr; }
  .div-hero { padding: 130px 0 60px; min-height: 420px; }
  .div-hero__content h1 { font-size: 2rem; }
  .div-hero__tagline { font-size: 1rem; }
  .div-overview { padding: 60px 0; }
  .div-overview__img { height: 280px; }
  .div-services { padding: 60px 0; }
  .div-services__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .div-stats__value { font-size: 2.2rem; }
  .div-sidebar-section__grid { grid-template-columns: 1fr; }
  .div-overview__actions { flex-direction: column; align-items: flex-start; }
  .div-overview__actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .profile-features { grid-template-columns: 1fr; }
  .div-hero { padding: 110px 0 50px; min-height: 360px; }
  .div-hero__content h1 { font-size: 1.7rem; }
  .div-hero__eyebrow { font-size: 0.7rem; }
  .div-hero__tagline { font-size: 0.92rem; }
  .div-overview__grid { gap: 36px; }
  .div-overview__img { height: 220px; }
  .div-overview__img-badge { font-size: 0.78rem; padding: 10px 14px; right: 10px; }
  .div-overview__text h2 { font-size: 1.65rem; }
  .div-services__grid { grid-template-columns: 1fr; }
  .div-stats__grid { grid-template-columns: 1fr 1fr; }
  .div-stats__value { font-size: 2rem; }
  .div-cta__text h2 { font-size: 1.7rem; }
  .section-title h2 { font-size: 1.9rem; }
  .container { padding: 0 16px; }
}


/* Browse All Divisions link in sidebar */
.div-see-all-link {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 10px 14px; border-radius: 7px;
  background: var(--primary-teal-light); color: var(--primary-teal);
  font-family: var(--font-heading); font-weight: 700; font-size: .82rem;
  text-decoration: none; transition: background .2s, color .2s;
}
.div-see-all-link:hover { background: var(--primary-teal); color: var(--white); }
.div-see-all-link svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   UNIVERSAL PAGE HERO — used on About, Contact, and all inner pages
   .div-hero on division pages shares the same rules via alias.
═══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 150px 0 70px;
  color: var(--white);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 25, 35, 0.88) 0%,
    rgba(16, 163, 150, 0.68) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;

}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-teal);
  background: rgba(16, 163, 150, 0.15);
  border: 1px solid rgba(16, 163, 150, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.page-hero__content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.page-hero__desc {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 28px;
  max-width: 620px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--white);
}

.page-hero__breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  opacity: 0.7;
}

.page-hero__breadcrumbs a { color: var(--white); text-decoration: none; }
.page-hero__breadcrumbs a:hover { color: var(--primary-teal); opacity: 1; }
.page-hero__breadcrumbs .sep { opacity: 0.5; }
.page-hero__breadcrumbs .current { opacity: 1; color: rgba(255,255,255,0.9); }

/* Alias: .div-hero uses the same base styles */
.div-hero { position: relative; min-height: 400px; display: flex; align-items: center; background-size: cover; background-position: center; background-repeat: no-repeat; padding: 150px 0 70px; color: var(--white); }
.div-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,25,35,0.88) 0%, rgba(16,163,150,0.68) 100%); }
.div-hero__content { position: relative; z-index: 1; }
.div-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary-teal); background: rgba(16,163,150,0.15); border: 1px solid rgba(16,163,150,0.4); padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.div-hero__content h1 { font-size: 3rem; color: var(--white); margin-bottom: 18px; line-height: 1.15; font-weight: 800; }
.div-hero__tagline { font-size: 1.15rem; opacity: 0.88; margin-bottom: 28px; max-width: 620px; font-weight: 300; line-height: 1.65; color: var(--white); }
.div-hero__breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; opacity: 0.7; }
.div-hero__breadcrumbs a { color: var(--white); }
.div-hero__breadcrumbs a:hover { color: var(--primary-teal); }

/* Responsive */
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 50px; min-height: 320px; }
  .page-hero__content h1 { font-size: 2rem; }
  .page-hero__desc { font-size: 0.98rem; }
  .div-hero { padding: 120px 0 50px; min-height: 320px; }
  .div-hero__content h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .page-hero__content h1 { font-size: 1.65rem; }
  .div-hero__content h1 { font-size: 1.65rem; }
}

/* ═══════════════════════════════════════════════════════════════
   INNER PAGE COMPONENTS — About, Contact
═══════════════════════════════════════════════════════════════ */
.pg-section { padding: 90px 0; }
.pg-section--white { background: var(--white); }
.pg-section--gray  { background: var(--light-gray); }

/* Mission / Vision cards */
.pg-mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pg-mv-card {
  padding: 48px 40px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 18px;
}
.pg-mv-card--teal { background: var(--primary-teal-light); border-top: 4px solid var(--primary-teal); }
.pg-mv-card--dark { background: #f0f4f8; border-top: 4px solid var(--dark-neutral); }
.pg-mv-card__icon { color: var(--primary-teal); }
.pg-mv-card--dark .pg-mv-card__icon { color: var(--dark-neutral); }
.pg-mv-card h3 { font-size: 1.5rem; margin: 0; color: var(--dark-neutral); }
.pg-mv-card p  { font-size: 1rem; color: #555; line-height: 1.75; margin: 0; }

/* Company split section */
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pg-split__image { position: relative; }
.pg-split__img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.pg-split__text h2 { font-size: 2.1rem; margin-bottom: 20px; }
.pg-split__text p  { font-size: 1rem; color: #555; line-height: 1.8; margin-bottom: 16px; }
.pg-stats-row { display: flex; gap: 36px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border-color); }
.pg-stat { display: flex; flex-direction: column; }
.pg-stat__value { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary-teal); line-height: 1; }
.pg-stat__label { font-size: 0.8rem; color: var(--muted, #64748b); margin-top: 4px; font-weight: 600; }

/* Team grid */
.pg-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 8px; }
.pg-team-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition-smooth); }
.pg-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pg-team-card__photo-wrap { background: var(--light-gray); aspect-ratio: 1; overflow: hidden; }
.pg-team-card__photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pg-team-card__body { padding: 22px 20px; }
.pg-team-card__body h4 { font-size: 1rem; margin-bottom: 4px; color: var(--dark-neutral); }
.pg-team-card__role { font-size: 0.8rem; font-weight: 700; color: var(--primary-teal); margin-bottom: 10px; display: block; }
.pg-team-card__bio { font-size: 0.85rem; color: #666; line-height: 1.6; margin: 0; }

/* Contact grid */
.pg-contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.pg-contact-info h2 { font-size: 2rem; margin: 14px 0 16px; }
.pg-contact-info__lead { color: #555; line-height: 1.7; margin-bottom: 36px; }
.pg-contact-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.pg-contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.pg-contact-list__icon { color: var(--primary-teal); flex-shrink: 0; margin-top: 2px; }
.pg-contact-list strong { display: block; font-size: 0.95rem; margin-bottom: 4px; color: var(--dark-neutral); }
.pg-contact-list span { font-size: 0.9rem; color: #666; line-height: 1.7; }

/* Contact form */
.pg-contact-form-wrap { background: var(--white); padding: 44px; border-radius: 12px; box-shadow: var(--shadow-md); }
.pg-contact-form-wrap h3 { font-size: 1.7rem; margin-bottom: 28px; }
.pg-contact-form { display: flex; flex-direction: column; gap: 20px; }
.pg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg-form-field { display: flex; flex-direction: column; gap: 6px; }
.pg-form-field label { font-size: 0.875rem; font-weight: 600; color: var(--dark-neutral); }
.pg-form-field input,
.pg-form-field select,
.pg-form-field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border-color); border-radius: 7px;
  font-family: var(--font-primary); font-size: 0.95rem;
  color: var(--dark-gray); background: var(--white);
  transition: border-color .2s;
}
.pg-form-field input:focus,
.pg-form-field select:focus,
.pg-form-field textarea:focus { outline: none; border-color: var(--primary-teal); }
.pg-form-field textarea { resize: vertical; }
.pg-contact-form .btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 13px 28px; }
.pg-contact-form .btn svg { flex-shrink: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .pg-mv-grid  { grid-template-columns: 1fr; }
  .pg-split    { grid-template-columns: 1fr; gap: 40px; }
  .pg-team-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pg-section { padding: 60px 0; }
  .pg-mv-card { padding: 32px 24px; }
  .pg-team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pg-contact-form-wrap { padding: 28px 20px; }
  .pg-form-row { grid-template-columns: 1fr; }
  .pg-stats-row { gap: 20px; }
}
@media (max-width: 480px) {
  .pg-team-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   DIVISION CARDS — LOGO VARIANT (homepage)
═══════════════════════════════════════════════════════════════ */
.division-card--logo {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Logo area — white bg, contained image */
.div-card-logo {
  height: 180px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.div-card-logo img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* SVG placeholder for divisions without a logo */
.div-card-logo--icon {
  background: linear-gradient(135deg, var(--primary-teal-light) 0%, #d0efec 100%);
  flex-direction: column;
  gap: 10px;
}

.div-card-logo--icon svg {
  color: var(--primary-teal);
  flex-shrink: 0;
}

.div-card-logo--icon span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--primary-teal);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Card body */
.div-card-body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.div-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark-neutral);
}

.div-card-body p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.div-card-body .division-link {
  margin-top: auto;
}
