/* RambanKart Official Design System & UI/UX Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Official Brand Colors (Section 17 Color System) */
  --primary: #075B3A;
  --primary-dark: #05492E;
  --secondary: #0B7A4B;
  --accent-orange: #FF7A00;
  --accent-orange-dark: #E85D04;
  --accent-gold: #F5B700;

  /* Neutrals & Surfaces */
  --bg-main: #F7FAF8;
  --surface: #FFFFFF;
  --text-main: #17221D;
  --text-secondary: #66736C;
  --border: #DDE5E0;

  /* Aliases for legacy component support */
  --primary-hover: #05492E;
  --secondary-hover: #075B3A;
  --dark: #17221D;
  --bg-light: #F7FAF8;
  --radius-custom: 16px;
}

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

html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ==========================================================================
   Heading Typography & Brand Color System
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Major Brand Headings on Light Surfaces */
h1, h2 {
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.2;
}

/* Secondary & Card Headings */
h3 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.4;
}

/* Dark Section Heading Text Protection */
.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-slate-900 h1, .bg-slate-900 h2, .bg-slate-900 h3, .bg-slate-900 h4,
.bg-slate-950 h1, .bg-slate-950 h2, .bg-slate-950 h3, .bg-slate-950 h4,
.bg-emerald-950 h1, .bg-emerald-950 h2, .bg-emerald-950 h3, .bg-emerald-950 h4,
.bg-emerald-900 h1, .bg-emerald-900 h2, .bg-emerald-900 h3, .bg-emerald-900 h4,
.bg-emerald-800 h1, .bg-emerald-800 h2, .bg-emerald-800 h3, .bg-emerald-800 h4,
[class*="from-slate-9"] h1, [class*="from-slate-9"] h2, [class*="from-slate-9"] h3,
[class*="from-emerald-9"] h1, [class*="from-emerald-9"] h2, [class*="from-emerald-9"] h3,
[class*="bg-[#075B3A]"] h1, [class*="bg-[#075B3A]"] h2, [class*="bg-[#075B3A]"] h3,
[class*="bg-[#05492E]"] h1, [class*="bg-[#05492E]"] h2, [class*="bg-[#05492E]"] h3,
[class*="bg-[#06452C]"] h1, [class*="bg-[#06452C]"] h2, [class*="bg-[#06452C]"] h3,
[class*="bg-[#0D1511]"] h1, [class*="bg-[#0D1511]"] h2, [class*="bg-[#0D1511]"] h3,
header h1, header h2,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #FFFFFF;
}

/* Ensure child accent spans within dark headings pop with high contrast */
.text-white .text-emerald-400,
[class*="from-slate-9"] .text-emerald-400,
[class*="from-emerald-9"] .text-emerald-400 {
  color: #34D399 !important;
}

.text-white .text-orange-500,
.text-white .text-orange-400,
[class*="from-slate-9"] .text-orange-500,
[class*="from-slate-9"] .text-orange-400,
[class*="from-emerald-9"] .text-orange-500,
[class*="from-emerald-9"] .text-orange-400 {
  color: #FF7A00 !important;
}

/* Custom Border Radius */
.rounded-custom {
  border-radius: 16px !important;
}

.rounded-custom-top {
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

/* ==========================================================================
   Button System (Section 19 Button Design)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px -2px rgba(7, 91, 58, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px -2px rgba(7, 91, 58, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 14px;
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px -1px rgba(7, 91, 58, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.btn-secondary:hover {
  background-color: #F0F7F4;
  border-color: var(--primary-dark);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-orange);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px -2px rgba(255, 122, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.btn-orange:hover {
  background-color: var(--accent-orange-dark);
  box-shadow: 0 6px 20px -2px rgba(255, 122, 0, 0.45);
  transform: translateY(-1px);
}

/* Glassmorphism System */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px -2px rgba(23, 34, 29, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(7, 91, 58, 0.10);
  border-color: rgba(7, 91, 58, 0.3);
}

/* Soft Shadows & Controlled Brand Glows */
.shadow-soft {
  box-shadow: 0 6px 24px -4px rgba(23, 34, 29, 0.06), 0 2px 6px -2px rgba(23, 34, 29, 0.03);
}

.shadow-emerald-glow {
  box-shadow: 0 8px 22px -3px rgba(7, 91, 58, 0.30);
}

.shadow-orange-glow {
  box-shadow: 0 8px 22px -3px rgba(255, 122, 0, 0.30);
}

/* Hero Overlay & Visual Controls - Balanced for High Video Visibility + High Text Contrast */
.hero-gradient-overlay {
  background: linear-gradient(
    135deg,
    rgba(3, 35, 22, 0.65) 0%,
    rgba(5, 73, 46, 0.45) 50%,
    rgba(2, 23, 14, 0.70) 100%
  );
}

/* Mobile Drawer Overlay Transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mobile-menu > div {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden > div {
  transform: translateX(100%);
}

#mobile-menu:not(.hidden) > div {
  transform: translateX(0);
}

/* Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}

/* Form Controls & Focus Ring Accessibility */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(7, 91, 58, 0.18) !important;
}

/* Responsive Touch Target Minimum */
button, a, input, select {
  touch-action: manipulation;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F0F4F2;
}
::-webkit-scrollbar-thumb {
  background: #CBD5D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Responsive safety rules */
img, video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.125rem !important; /* 34px */
    line-height: 1.25 !important;
  }
}

/* ==========================================================================
   Founder Profile Section Styles & Animations (RambanKart & Amarkrishna Group)
   ========================================================================== */
.founder-profile-section {
  position: relative;
  background: linear-gradient(180deg, #F7FAF8 0%, #FFFFFF 50%, #EFF6F2 100%);
  border-top: 1px solid #E5EBE7;
  border-bottom: 1px solid #E5EBE7;
}

.founder-card-shadow {
  background: #FFFFFF;
  border: 1px solid #E2ECE6;
  border-radius: 28px;
  box-shadow: 0 25px 60px -12px rgba(7, 91, 58, 0.09), 0 8px 24px -4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.founder-card-shadow:hover {
  border-color: #BEDFCF;
  box-shadow: 0 30px 70px -15px rgba(7, 91, 58, 0.14), 0 12px 30px -6px rgba(0, 0, 0, 0.04);
}

.founder-portrait-frame {
  position: relative;
  border-radius: 28px;
  padding: 5px;
  background: linear-gradient(145deg, #075B3A 0%, #FF7A00 55%, #0B7A4B 100%);
  box-shadow: 0 20px 45px -10px rgba(7, 91, 58, 0.22);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.founder-portrait-frame:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 26px 55px -12px rgba(255, 122, 0, 0.28);
}

.founder-portrait-inner {
  position: relative;
  border-radius: 23px;
  overflow: hidden;
  background-color: #F0F5F2;
}

.founder-portrait-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-portrait-frame:hover .founder-portrait-inner img {
  transform: scale(1.035);
}

/* Subtle Ambient Glow Behind Photo */
.founder-ambient-glow {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(7, 91, 58, 0.2) 0%, rgba(255, 122, 0, 0.15) 50%, transparent 75%);
  filter: blur(14px);
  z-index: 0;
  opacity: 0.75;
}

/* Founder Scroll Entrance Animation */
.founder-animate-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.founder-animate-item.founder-scale {
  transform: scale(0.96) translateY(16px);
}

.founder-profile-section.is-revealed .founder-animate-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.founder-profile-section.is-revealed .founder-delay-1 { transition-delay: 0.08s; }
.founder-profile-section.is-revealed .founder-delay-2 { transition-delay: 0.16s; }
.founder-profile-section.is-revealed .founder-delay-3 { transition-delay: 0.24s; }
.founder-profile-section.is-revealed .founder-delay-4 { transition-delay: 0.32s; }
.founder-profile-section.is-revealed .founder-delay-5 { transition-delay: 0.40s; }

/* Social Icons 44px Touch Targets */
.founder-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.founder-social-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px rgba(7, 91, 58, 0.14);
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .founder-ambient-glow {
    display: none !important;
  }
  .founder-portrait-frame {
    transition: none !important;
    transform: none !important;
  }
  .founder-portrait-inner img {
    transition: none !important;
    transform: none !important;
  }
  .founder-animate-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .founder-social-btn {
    transition: none !important;
    transform: none !important;
  }
}

