/* ==============================================
   ESSEN MANUFACTURING KENYA - MASTER CUSTOM CSS
   ============================================= */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM TOKENS & GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Audiowide&display=swap');

:root {
  /* Vibrant & Modern Brand Semantic Palette */
  --color-primary: #1E64B4;        /* Vibrant Industrial Royal Blue */
  --color-primary-dark: #0F2A4A;   /* Deep Midnight Navy */
  --color-primary-light: #3B82F6;  /* Electric Blue Accent */
  --color-accent-pastel: #C8DCF8;  /* Soft Ice Blue */
  --color-accent-vibrant: #2563EB; /* Bright Highlight Blue */
  --color-bg-light: #F4F7FC;       /* Premium Soft Ambient Surface */
  --color-text-dark: #0F172A;      /* Slate Black (High Contrast Headings) */
  --color-text-muted: #475569;     /* Slate Neutral (Body Text) */
  --color-border-light: #E2E8F0;   /* Clean Divider Border */
  --color-surface-white: #FFFFFF;  /* Pure White Surface */

  /* Legacy Color Token Aliases (Uno to Octa) */
  --color-uno: var(--color-primary);
  --color-dos: var(--color-primary-dark);
  --color-tres: var(--color-accent-pastel);
  --color-quatro: var(--color-bg-light);
  --color-cinco: var(--color-text-dark);
  --color-sais: var(--color-text-muted);
  --color-sete: var(--color-border-light);
  --color-octa: var(--color-surface-white);

  /* Functional Color Tokens */
  --color-whatsapp: #25D366;       /* Official WhatsApp Green */
  --color-whatsapp-hover: #1EBE5D;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Premium Modern Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Audiowide', 'Outfit', sans-serif;

  /* Modern Elevation & Glassmorphism Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 24px 48px -6px rgba(30, 100, 180, 0.22), 0 8px 20px -4px rgba(30, 100, 180, 0.14);
  --glow-primary: 0 0 24px rgba(30, 100, 180, 0.25);

  /* Border Radius Tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  background-color: var(--color-surface-white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings Hierarchy - Clean Sans-Serif Modern Corporate Style */
h1, h2, h3, h4, h5, h6,
.heading-sans {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h1, .h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3, .h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; }
h4, .h4 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }
h5, .h5 { font-size: 1.1rem; font-weight: 600; }
h6, .h6 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1.15rem;
}

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

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

/* Gradient Text Effect */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Brand Wordmark & Display Fonts */
.font-display,
.brand-audiowide {
  font-family: var(--font-display) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-wordmark-essen {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: bold;
}

.brand-wordmark-insumax {
  font-family: var(--font-display);
  color: var(--color-primary);
}

.brand-wordmark-silent-shield {
  font-family: var(--font-display);
  color: var(--color-primary);
}

.brand-wordmark-esspack {
  font-family: var(--font-display);
  color: var(--color-primary);
}

/* Text Utility Classes */
.text-primary { color: var(--color-primary) !important; }
.text-dark { color: var(--color-text-dark) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-accent { color: var(--color-accent-pastel) !important; }
.text-white { color: var(--color-surface-white) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-weight-bold { font-weight: 700; }
.font-weight-medium { font-weight: 500; }

/* --------------------------------------------------------------------------
   3. BUTTONS & CALL-TO-ACTIONS (CTAs)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

/* Primary Button - Vibrant Gradient Blue */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #154D8C 100%);
  color: var(--color-surface-white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(30, 100, 180, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #18559E 0%, var(--color-primary-dark) 100%);
  color: var(--color-surface-white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Secondary Button - Soft Ice Blue */
.btn-secondary {
  background-color: var(--color-bg-light);
  color: var(--color-primary-dark);
  border-color: var(--color-border-light);
}

.btn-secondary:hover {
  background-color: var(--color-accent-pastel);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-surface-white);
  box-shadow: 0 4px 14px rgba(30, 100, 180, 0.25);
  transform: translateY(-2px);
}

/* WhatsApp Action Button */
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-surface-white);
  border-color: var(--color-whatsapp);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
  color: var(--color-surface-white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. CARDS & CONTAINER COMPONENTS (GLASSMORPHISM & ELEVATION)
   -------------------------------------------------------------------------- */
.essen-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.essen-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
  transform: translateY(-5px);
}

.card-header {
  margin-bottom: 1.25rem;
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border-light);
}

/* Division Cards */
.division-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.division-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

/* Image Zoom Container */
.zoom-image-container {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
}

.zoom-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.division-card:hover .zoom-image-container img,
.essen-card:hover .zoom-image-container img {
  transform: scale(1.06);
}

/* Flagship Brand Spotlight Card */
.spotlight-card {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--color-bg-light) 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.spotlight-card.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   5. BADGES & PILL SIGNALS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: rgba(30, 100, 180, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(30, 100, 180, 0.2);
}

.badge-secondary {
  background-color: var(--color-accent-pastel);
  color: var(--color-primary-dark);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.badge-made-in-kenya {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.badge-insumax-plus {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-surface-white);
}

/* --------------------------------------------------------------------------
   6. FORM CONTROLS & CALCULATOR ESTIMATORS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 100, 180, 0.15);
}

/* Estimator & Quick Quote Calculator Panel */
.estimator-panel {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--color-bg-light) 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.estimator-output {
  background-color: var(--color-surface-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   7. TABLES & PRODUCT COMPARISON MATRIX
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.75rem;
}

.essen-table,
.comparison-matrix {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.essen-table th,
.comparison-matrix th {
  background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-surface-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 1.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.essen-table td,
.comparison-matrix td {
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.essen-table tbody tr:nth-child(even),
.comparison-matrix tbody tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

.essen-table tbody tr:hover,
.comparison-matrix tbody tr:hover {
  background-color: rgba(30, 100, 180, 0.08);
}

/* --------------------------------------------------------------------------
   8. LAYOUT GRIDS & SECTIONS
   -------------------------------------------------------------------------- */
.essen-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: 4.5rem 0;
}

.section-padding-sm {
  padding: 2.75rem 0;
}

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

.section-bg-dark {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #081628 100%);
  color: var(--color-surface-white);
}

.section-title {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 2.75rem auto;
  line-height: 1.65;
}

/* Grid Layout Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.flex-row {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

/* --------------------------------------------------------------------------
   9. ANIMATIONS & RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-animation {
  animation: pulseGlow 2s infinite;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-padding {
    padding: 3.5rem 0;
  }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .estimator-panel {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   10. FEATURED PRODUCTS STYLES
   -------------------------------------------------------------------------- */
.essen-home-products .theme-prod-box {
  margin-bottom: 24px;
}

.essen-home-products .theme-product-box-content {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-primary, #1e64b4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.essen-home-products .theme-product-box-content:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.essen-home-products {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.essen-home-products .theme-section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.5vw, 2.75rem);
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Element reset for Zoho Commerce */
.zpelement {
  margin-block-start: 0px !important;
}

body .theme-product-list-style-06 .theme-product-box-content .theme-product-details-area .theme-view-details-quick-view .theme-product-details,
body .theme-product-details-area .theme-view-details-quick-view .theme-product-details {
  width: 100% !important;
}

body .theme-product-list-style-06 .theme-product-box-content .theme-product-details-area .theme-view-details-quick-view .theme-product-quick-view,
body .theme-product-details-area .theme-view-details-quick-view .theme-product-quick-view {
  display: none !important;
}

/* Input Background */
.zpform-container input[type='text'], .zpform-container input[type='email'], .zpform-container input[type='date'], .zpform-container input[type="file"], .zpform-container input[type='password'], .zpform-container textarea, .zpform-container select {
  background: transparent !important; 
}

.theme-product-details-style-06 .theme-product-detail-container .theme-product-detail-varients-container .theme-product-varients-row .theme-product-varient-quantity .theme-product-quantity-spinner input[type="button"] {
  background: transparent !important;
}

.theme-product-details-style-06 .theme-product-detail-container .theme-product-detail-varients-container .theme-product-varients-row .theme-product-varient-quantity .theme-product-quantity-spinner {
  width: 150px;
}