/* ================================================================
   MADHU ENTERPRISES — Complete Reference Recreation Stylesheet
   ================================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  --navy:       #0B1F3A;
  --navy-mid:   #123D7A;
  --green:      #2FA84F;
  --green-dk:   #1E7A35;
  --orange:     #F7941D;
  --gold:       #E8A020;
  --off-white:  #F5F7FA;
  --white:      #FFFFFF;
  --text-dark:  #0F172A;
  --text-mid:   #374151;
  --text-muted: #64748B;
  --border:     #E2E8F0;

  --shadow-sm:  0 1px 4px rgba(11,31,58,0.07);
  --shadow-md:  0 4px 16px rgba(11,31,58,0.10);
  --shadow-lg:  0 12px 32px rgba(11,31,58,0.14);
  --shadow-xl:  0 24px 48px rgba(11,31,58,0.18);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
svg { display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
#siteHeader {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#siteHeader.scrolled {
  background: rgba(11, 31, 58, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Logo text transitions */
#siteHeader.scrolled .logo-text-primary { color: #fff !important; }
#siteHeader.scrolled .logo-icon { background: rgba(255,255,255,0.12) !important; }

/* Nav links when scrolled */
#siteHeader.scrolled .nav-link { color: rgba(255, 255, 255, 0.85) !important; }
#siteHeader.scrolled .nav-link:hover { color: #fff !important; }
#siteHeader.scrolled .btn-contact {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}
#siteHeader.scrolled .btn-contact:hover {
  background: #fff !important;
  color: var(--navy) !important;
}
#siteHeader.scrolled .hamburger-icon { background: #fff !important; }

/* Nav link underline hover */
.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--green) !important; }

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav-link:hover { color: var(--green); padding-left: 4px; }

/* ─────────────────────────────────────────
   REVEAL ANIMATION
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  max-width: 700px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-title span {
  display: inline-block;
  margin-top: 0.15rem;
}

/* ─────────────────────────────────────────
   BALANCED HOMEPAGE MEDIA CARDS
───────────────────────────────────────── */
.about-media-card,
.why-media-card,
.services-media-card,
.team-media-card {
  position: relative;
  box-shadow: 0 20px 45px rgba(11, 31, 58, 0.16);
  border: 1px solid rgba(255,255,255,0.25);
}

.about-media-card img,
.why-media-card img,
.services-media-card img,
.team-media-card img {
  object-position: center;
}

.about-media-card {
  border-radius: 24px;
}

.why-media-card {
  border-radius: 24px;
}

.services-media-card {
  border-radius: 24px;
}

.team-media-card {
  border-radius: 24px;
}

/* ─────────────────────────────────────────
   STAT BOXES (About Section)
───────────────────────────────────────── */
.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(47, 168, 79, 0.15);
  border: 1px solid rgba(47, 168, 79, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

/* ─────────────────────────────────────────
   PILLAR CARDS (Why Section)
───────────────────────────────────────── */
.pillar-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 168, 79, 0.25) !important;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

/* ─────────────────────────────────────────
   SERVICE ROWS
───────────────────────────────────────── */
.service-row {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.service-row:hover {
  background: #F8FBF9;
  border-color: rgba(47, 168, 79, 0.2);
}

.service-img-thumb {
  transition: box-shadow var(--transition);
}
.service-row:hover .service-img-thumb {
  box-shadow: 0 4px 12px rgba(47, 168, 79, 0.2);
}

.service-num {
  transition: background var(--transition);
}
.service-row:hover .service-num { background: var(--green-dk) !important; }

/* ─────────────────────────────────────────
   TEAM ROWS
───────────────────────────────────────── */
.team-row {
  cursor: default;
}

/* ─────────────────────────────────────────
   CLIENT TABLE
───────────────────────────────────────── */
.client-table-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   STRENGTH ITEMS
───────────────────────────────────────── */
.strength-item {
  border: 1px solid transparent;
  cursor: default;
  transition: background var(--transition), border-color var(--transition);
}
.strength-item:hover {
  background: #F0FBF4 !important;
  border-color: rgba(47, 168, 79, 0.2) !important;
}

/* ─────────────────────────────────────────
   INDUSTRY ROWS
───────────────────────────────────────── */
.industry-row {
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.industry-row:hover {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────
   RESPONSIVE HOME PAGE REFINEMENTS
───────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
  }

  .about-media-card,
  .why-media-card,
  .services-media-card,
  .team-media-card {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    line-height: 1.08;
  }

  .about-media-card,
  .why-media-card,
  .services-media-card,
  .team-media-card {
    height: 320px;
    border-radius: 20px;
  }

  .service-row {
    padding: 10px;
  }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer a {
  transition: color var(--transition);
}

/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────── */
.page-hero {
  padding: calc(72px + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,255,255,0.012) 60px, rgba(255,255,255,0.012) 61px);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 0.04em; }
.page-hero p { color: rgba(255,255,255,0.65); }

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-navy  { color: var(--navy); }
.font-raj   { font-family: 'Rajdhani', sans-serif; }

/* ─────────────────────────────────────────
   TRACK TABLE (clients.html)
───────────────────────────────────────── */
.track-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.track-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.85rem 1.25rem;
}
.track-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 0.875rem;
}
.track-table tr:last-child td { border-bottom: none; }
.track-table tr:nth-child(even) td { background: #F8FAFC; }
.track-table tr:hover td { background: rgba(47, 168, 79, 0.04); }

/* ─────────────────────────────────────────
   CARD PILLAR (services preview, legacy)
───────────────────────────────────────── */
.card-pillar {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card-pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47,168,79,0.2);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ─────────────────────────────────────────
   BUTTONS (used in other pages)
───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: var(--green-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 168, 79, 0.35);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   GLASS HEADER (legacy compat)
───────────────────────────────────────── */
.glass-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: 0.3; }

/* ─────────────────────────────────────────
   BADGES
───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--green  { background: rgba(47,168,79,0.12);  color: var(--green-dk); }
.badge--orange { background: rgba(247,148,29,0.12); color: #C47000; }
.badge--navy   { background: rgba(11,31,58,0.08);   color: var(--navy); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
}

@media (max-width: 768px) {
  .hero-section { min-height: auto; padding-bottom: 3rem; }
}

@media (max-width: 640px) {
  .stat-box { padding: 1rem !important; }
}
