/* ==========================================================================
   PRAGATHI ENGINEERS — WEB STORE CORPORATE DESIGN SYSTEM
   Brand Palette:
   - Deep Navy: #03132B (Navy Dark: #010B18, Navy Light: #0B2245)
   - Signature Purple: #8D2696 (Purple Light: #F3E8FF, Purple Dark: #6B1B72)
   - Amber / Gold: #D97706 (Amber Light: #FEF3C7)
   - Charcoal Text: #111827
   - Clean White: #FFFFFF
   - Background Light: #F8FAFC
   Typography: Montserrat (Headings / Nav) | Inter (Body)
   ========================================================================== */

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

:root {
  --corp-navy: #03132B;
  --corp-navy-dark: #010B18;
  --corp-navy-light: #0B2245;
  --corp-purple: #8D2696;
  --corp-purple-light: #F3E8FF;
  --corp-purple-dark: #6B1B72;
  --corp-amber: #D97706;
  --corp-amber-light: #FEF3C7;
  --corp-charcoal: #111827;
  --corp-light: #F8FAFC;
  --corp-white: #FFFFFF;
  --corp-gray-100: #F1F5F9;
  --corp-gray-200: #E2E8F0;
  --corp-gray-300: #CBD5E1;
  --corp-gray-400: #94A3B8;
  --corp-gray-500: #64748B;
  --corp-gray-600: #475569;
  --corp-gray-700: #334155;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 76px;
  --header-height-scrolled: 68px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--corp-light);
  color: var(--corp-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* ==========================================================================
   CORPORATE TOPBAR
   ========================================================================== */
.corp-topbar {
  background-color: var(--corp-navy-dark);
  color: var(--corp-gray-300);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 60;
}

.corp-topbar a {
  color: var(--corp-gray-300);
  transition: color 0.2s ease;
}

.corp-topbar a:hover {
  color: #fff;
}

.corp-topbar-badge {
  background: rgba(141, 38, 150, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1b3f7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.35);
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
}

/* ==========================================================================
   LIQUID GLASS HEADER & NAVIGATION
   ========================================================================== */
.corp-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(3, 19, 43, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 32px rgba(3, 19, 43, 0.04);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.corp-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(190%) blur(24px);
  -webkit-backdrop-filter: saturate(190%) blur(24px);
  border-bottom: 1px solid rgba(3, 19, 43, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 12px 36px rgba(3, 19, 43, 0.08);
}

/* Nav Links */
.corp-nav-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--corp-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.corp-nav-link:hover {
  color: var(--corp-purple);
  background: rgba(141, 38, 150, 0.06);
}

.corp-nav-link.active {
  color: var(--corp-purple);
  background: rgba(141, 38, 150, 0.08);
  font-weight: 700;
}

.corp-nav-link .chevron {
  font-size: 0.5625rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.65;
}

.group:hover .corp-nav-link .chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--corp-purple);
}

/* Dropdown Menu - Liquid Glass Panel */
.corp-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(190%) blur(24px);
  -webkit-backdrop-filter: saturate(190%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.9) inset, 0 20px 48px rgba(3, 19, 43, 0.12), 0 4px 12px rgba(3, 19, 43, 0.04);
  border-radius: 16px;
  padding: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 70;
}

/* Hover bridge preventing premature closure */
.corp-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.group:hover .corp-dropdown,
.group:focus-within .corp-dropdown {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.corp-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.85rem;
  color: var(--corp-navy);
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.8125rem;
  font-weight: 500;
}

.corp-dropdown-item:hover {
  background: rgba(141, 38, 150, 0.07);
  color: var(--corp-purple);
  padding-left: 1.15rem;
}

.corp-dropdown-item.active {
  background: rgba(141, 38, 150, 0.09);
  color: var(--corp-purple);
  font-weight: 700;
}

.corp-dropdown-item-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.corp-dropdown-item-sub {
  font-size: 0.6875rem;
  color: var(--corp-gray-500);
  margin-top: 1px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-corp-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--corp-purple) 0%, var(--corp-purple-dark) 100%);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(141, 38, 150, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.btn-corp-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #9f31ab 0%, var(--corp-purple) 100%);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5), 0 8px 22px rgba(141, 38, 150, 0.45);
}

.btn-corp-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F59E0B 0%, var(--corp-amber) 100%);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(217, 119, 6, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.btn-corp-amber:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fbbf24 0%, var(--corp-amber) 100%);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5), 0 8px 22px rgba(217, 119, 6, 0.45);
}

.btn-corp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--corp-navy);
  border: 1.5px solid var(--corp-navy);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-corp-outline:hover {
  background: var(--corp-navy);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(3, 19, 43, 0.2);
}

.badge-corp-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(141, 38, 150, 0.1);
  color: var(--corp-purple);
  border: 1px solid rgba(141, 38, 150, 0.25);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
}

.badge-corp-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(217, 119, 6, 0.12);
  color: var(--corp-amber);
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
}

.badge-corp-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--corp-navy);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */
.corp-product-card {
  background: #ffffff;
  border: 1px solid rgba(3, 19, 43, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.corp-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 38, 150, 0.35);
  box-shadow: 0 20px 35px -5px rgba(3, 19, 43, 0.08), 0 10px 10px -5px rgba(3, 19, 43, 0.02);
}

.corp-product-card .img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.corp-product-card:hover .img-zoom {
  transform: scale(1.06);
}

/* Form Controls */
.corp-input {
  width: 100%;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--corp-gray-200);
  border-radius: 12px;
  font-size: 0.875rem;
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
  color: var(--corp-navy);
  font-family: var(--font-body);
}

.corp-input:focus {
  border-color: var(--corp-purple);
  box-shadow: 0 0 0 3px rgba(141, 38, 150, 0.15);
}

/* Smooth Table Scrollbar */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Floating WhatsApp Direct */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 80;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -5px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* ==========================================================================
   STORE RESPONSIVE SAFETY SUITE
   ========================================================================== */
@media (max-width: 480px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
  }
}
