/* ==========================================================================
   KALI DEVI TRADERS - Corporate Website Stylesheet
   Theme: Clean White & Light Slate with Forest Green Accents
   ========================================================================== */

:root {
  --green-950: #0c291b;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --text-dark: var(--slate-900);
  --text-body: var(--slate-700);
  --text-muted: var(--slate-500);
  --border: var(--slate-200);
  --bg-light: var(--slate-50);
  --bg-white: #ffffff;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Top Info Bar ---------- */
.topbar {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-item,
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item strong {
  color: var(--slate-900);
}

.topbar-item svg,
.topbar-link svg {
  color: var(--green-700);
  flex-shrink: 0;
}

.topbar-link:hover {
  color: var(--green-700);
}

.topbar-divider {
  color: var(--slate-500);
  opacity: 0.45;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--slate-900);
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green-700);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-800);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--slate-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green-700);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.22);
}

.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 83, 45, 0.28);
}

.btn-outline-light {
  background: var(--bg-white);
  color: var(--slate-900);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-outline-light:hover {
  background: var(--green-50);
  border-color: var(--green-700);
  color: var(--green-800);
}

/* ---------- Hero Section (Bright Minimal White & Light Slate) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-100) 100%);
  color: var(--text-body);
  padding: 72px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-accent-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, rgba(20, 83, 45, 0.03) 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.hero-title {
  color: var(--slate-900);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.text-amber {
  color: var(--green-700);
}

.hero-subtitle {
  color: var(--slate-700);
  font-size: 1.04rem;
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-subtitle strong {
  color: var(--slate-900);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.stat-value {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-800);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--slate-500);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  background: var(--slate-100);
}

/* ---------- Generic Sections ---------- */
.section {
  padding: 84px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-dark {
  background: var(--slate-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-700);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--slate-900);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--green-700);
  color: var(--green-800);
  background: var(--green-50);
}

.filter-btn.active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #ffffff;
}

/* ---------- Divisions Grid ---------- */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.division-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.division-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 128, 61, 0.45);
}

.division-card.hidden {
  display: none;
}

.division-card-featured {
  background: linear-gradient(155deg, var(--green-900) 0%, var(--green-950) 100%);
  border-color: var(--green-800);
  color: rgba(255, 255, 255, 0.86);
}

.division-card-featured h3 {
  color: #ffffff;
}

.division-card-featured p {
  color: rgba(255, 255, 255, 0.8);
}

.division-card-featured .division-num {
  color: rgba(255, 255, 255, 0.16);
}

.division-card-featured .division-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #86efac;
}

.division-card-featured .card-quote-btn {
  color: #86efac;
}

.division-card-featured .card-quote-btn:hover {
  color: #ffffff;
}

.division-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.division-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.08);
}

.division-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.division-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-800);
  cursor: pointer;
  transition: gap var(--transition), color var(--transition);
}

.card-quote-btn:hover {
  color: var(--green-600);
  gap: 10px;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-image-frame {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--slate-100);
}

.about-lead {
  font-size: 1.05rem;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-item h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.pillar-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Credentials Section ---------- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.credential-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-700);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.credential-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
  font-weight: 700;
}

.credential-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  color: var(--slate-900);
}

.credential-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Contact & Quote Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-card h4 {
  font-size: 0.94rem;
  margin-bottom: 2px;
}

.contact-detail-card p,
.contact-detail-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-detail-card a:hover {
  color: var(--green-700);
}

.quote-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-700);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-md);
}

.quote-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.14);
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.show {
  display: block;
  padding: 14px 16px;
}

.form-feedback.success {
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  color: var(--green-900);
}

.form-feedback.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.feedback-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--green-800);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.84rem;
}

.feedback-link:hover {
  background: var(--green-900);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
}

.footer-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--green-700) 0%, var(--green-600) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 56px 24px 44px;
}

.brand-footer .brand-name {
  color: #ffffff;
}

.brand-footer .brand-tagline {
  color: #86efac;
}

.footer-desc {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-col li,
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #86efac;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.84rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom strong {
  color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
  }

  .divisions-grid,
  .pillars-grid,
  .credentials-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 52px 0 64px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .quote-form-card {
    padding: 24px 20px;
  }
}
