/*
Theme Name: Dhanashree Enterprises
Theme URI: https://dhanashreeenterprises.in/
Author: Dhanashree Enterprises Web Team
Author URI: https://dhanashreeenterprises.in/
Description: Custom Industrial Rubber, Gasket, Silicone Profile, PTFE & Rubber Sheet Manufacturer WordPress Theme recreated from the original Dhanashree Enterprises website (dhanashreeenterprises.in). Features the exact multi-level Product & Industrial Rubber mega-menu, 4-slide Hero Carousel, Our Product showcase grid, product specification templates, WhatsApp integration (9552000858), and automatic starter content setup.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhanashree-enterprises
Tags: industrial, manufacturing, corporate, mega-menu, custom-logo, custom-menu, featured-images, theme-options
*/

:root {
  --de-maroon: #7b1e26;
  --de-red: #cc181e;
  --de-navy: #1a2b56;
  --de-text: #22252a;
  --de-muted: #6b7280;
  --de-border: #d1d5db;
  --de-hero-bg-start: #eef6fa;
  --de-hero-bg-end: #cfe4ef;
  --de-whatsapp: #25d366;
  --de-white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--de-text);
  background-color: var(--de-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

ul {
  list-style: none;
}

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

.de-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & MULTI-LEVEL MEGA MENU (Matches Original Screenshots 1, 2, 4, 6)
   ========================================================================== */
.de-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #edf0f2;
}

.de-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 20px;
}

.de-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.de-logo-link img {
  height: 64px;
  width: auto;
}

/* Navigation */
.de-nav {
  display: flex;
  align-items: center;
}

.de-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.de-menu-item {
  position: relative;
}

.de-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  padding: 34px 4px;
  cursor: pointer;
}

.de-menu-link:hover,
.de-menu-item.current-menu-item > .de-menu-link,
.de-menu-item.active > .de-menu-link {
  color: var(--de-maroon);
}

.de-menu-indicator {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  width: 12px;
  text-align: center;
}

/* Level 1 Dropdown under "Product" */
.de-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-top: 2px solid #f1f5f9;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1010;
}

.de-menu-item.has-dropdown:hover > .de-dropdown,
.de-menu-item.has-dropdown.open > .de-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.de-dropdown-item {
  position: relative;
}

.de-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2b56;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.de-dropdown-link:hover,
.de-dropdown-item:hover > .de-dropdown-link,
.de-dropdown-item.sub-open > .de-dropdown-link {
  color: var(--de-maroon);
  background-color: #f8fafc;
}

/* Level 2 Flyout Mega-Menu under "Industrial Rubber" (2 Columns) */
.de-mega-submenu {
  position: absolute;
  top: -12px;
  left: 100%;
  width: 540px;
  background: #ffffff;
  box-shadow: 8px 10px 28px rgba(0, 0, 0, 0.12);
  border-left: 1px solid #eef2f6;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1020;
}

.de-dropdown-item.has-submenu:hover > .de-mega-submenu,
.de-dropdown-item.has-submenu.sub-open > .de-mega-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.de-mega-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.de-mega-link {
  display: block;
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #1a2b56;
  line-height: 1.35;
}

.de-mega-link:hover {
  color: var(--de-maroon);
}

/* Header Contact & Social Right Bar */
.de-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.de-phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.de- phone-wrap:hover {
  color: var(--de-maroon);
}

.de-wa-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--de-whatsapp);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.de-social-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.de-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
}

.de-social-btn:hover {
  background: var(--de-maroon);
  color: #ffffff;
  border-color: var(--de-maroon);
}

/* Mobile Menu Button */
.de-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 20px;
  color: #1e293b;
  cursor: pointer;
}

/* ==========================================================================
   HERO SLIDER (Matches Original Screenshots 1, 3, 5, 7, 9)
   ========================================================================== */
.de-hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  background: radial-gradient(circle at 35% 50%, #f7fbfd 0%, var(--de-hero-bg-start) 45%, var(--de-hero-bg-end) 100%);
  overflow: hidden;
  border-bottom: 1px solid #dce8ef;
}

.de-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
}

.de-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.de-slide-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.de-slide-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 440px;
}

.de-slide-image-wrap img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

.de-slide-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 20px;
}

.de-slide-title {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  color: var(--de-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.15;
}

/* Slider Arrows */
.de-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: rgba(100, 116, 139, 0.7);
  font-size: 34px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.de-slider-arrow:hover {
  color: var(--de-maroon);
  transform: translateY(-50%) scale(1.1);
}

.de-slider-prev {
  left: 90px;
}

.de-slider-next {
  right: 90px;
}

/* Slider Bottom Dash Indicators */
.de-slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.de-slider-dot {
  width: 30px;
  height: 3px;
  border: none;
  background: #b6c6d1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, height 0.2s ease;
}

.de-slider-dot.active {
  background: var(--de-maroon);
  height: 4px;
}

/* ==========================================================================
   OUR PRODUCT GRID SECTION (Matches Original Screenshots 8 & 10)
   ========================================================================== */
.de-products-section {
  padding: 68px 0 76px;
  background: #ffffff;
}

.de-section-heading {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #22252a;
  margin-bottom: 46px;
}

.de-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 36px;
  row-gap: 48px;
}

.de-product-card {
  display: flex;
  flex-direction: column;
}

.de-product-thumb-box {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border: 1px solid #c8ced6;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin-bottom: 22px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.de-product-card:hover .de-product-thumb-box {
  border-color: var(--de-maroon);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.de-product-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.de-product-card:hover .de-product-thumb-box img {
  transform: scale(1.04);
}

.de-product-card.full-bleed-thumb .de-product-thumb-box {
  padding: 0;
}

.de-product-card.full-bleed-thumb .de-product-thumb-box img {
  object-fit: cover;
}

.de-product-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--de-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.de-product-title a:hover {
  color: var(--de-maroon);
}

.de-product-excerpt {
  font-size: 15.5px;
  color: var(--de-muted);
  line-height: 1.65;
}

/* ==========================================================================
   ABOUT & INDUSTRIAL RUBBER SHOWCASE SECTIONS
   ========================================================================== */
.de-about-strip {
  padding: 64px 0;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.de-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.de-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--de-maroon);
  background: rgba(123, 30, 38, 0.1);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.de-about-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--de-navy);
  margin-bottom: 16px;
}

.de-about-text {
  font-size: 15.5px;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.75;
}

.de-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.de-stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--de-maroon);
  padding: 14px 16px;
}

.de-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--de-navy);
}

.de-stat-label {
  font-size: 13px;
  color: var(--de-muted);
}

.de-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.de-btn-primary {
  background: var(--de-maroon);
  color: #ffffff;
}

.de-btn-primary:hover {
  background: #5e151b;
  color: #ffffff;
}

.de-btn-whatsapp {
  background: var(--de-whatsapp);
  color: #ffffff;
}

.de-btn-whatsapp:hover {
  background: #1ebe5b;
  color: #ffffff;
}

/* Inner Page Banner & Layouts */
.de-page-banner {
  background: linear-gradient(135deg, #1a2b56 0%, #7b1e26 100%);
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
}

.de-page-banner h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.de-breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.de-page-content {
  padding: 60px 0;
}

.de-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.de-spec-table th,
.de-spec-table td {
  border: 1px solid #d1d5db;
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
}

.de-spec-table th {
  background: #f1f5f9;
  color: var(--de-navy);
  width: 38%;
  font-weight: 600;
}

/* Contact Page Grid */
.de-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.de-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 30px;
  border-radius: 6px;
}

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

.de-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e293b;
}

.de-form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}

/* ==========================================================================
   FOOTER & SCROLL TO TOP BUTTON (Matches Original Screenshot 8)
   ========================================================================== */
.de-footer {
  background: #141c2b;
  color: #cbd5e1;
  padding: 60px 0 0;
  font-size: 14.5px;
}

.de-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.de-footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.de-footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--de-red);
}

.de-footer-links li {
  margin-bottom: 9px;
}

.de-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.de-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
  color: #94a3b8;
}

/* Scroll-to-Top Red Circular Button on Bottom Right */
.de-scroll-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #9b2c2c;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 999;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.de-scroll-top:hover {
  background: var(--de-red);
  transform: translateY(-3px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .de-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .de-mega-submenu {
    width: 420px;
  }
  .de-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .de-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .de-mobile-toggle {
    display: inline-flex;
  }
  .de-nav {
    display: none;
    width: 100%;
    order: 4;
  }
  .de-nav.mobile-open {
    display: block;
    padding-bottom: 16px;
  }
  .de-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .de-menu-item {
    width: 100%;
    border-top: 1px solid #f1f5f9;
  }
  .de-menu-link {
    padding: 12px 4px;
    width: 100%;
    justify-content: space-between;
  }
  .de-dropdown,
  .de-mega-submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 16px;
  }
  .de-menu-item.has-dropdown.open > .de-dropdown {
    display: block;
  }
  .de-dropdown-item.has-submenu.sub-open > .de-mega-submenu {
    display: grid;
    grid-template-columns: 1fr;
  }
  .de-hero-slider {
    height: auto;
    min-height: 460px;
    padding: 36px 0 54px;
  }
  .de-slide {
    position: relative;
    display: none;
  }
  .de-slide.active {
    display: flex;
  }
  .de-slide-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 24px;
  }
  .de-slide-image-wrap {
    height: 240px;
  }
  .de-slide-text-wrap {
    align-items: center;
    padding-left: 0;
  }
  .de-slider-prev { left: 10px; }
  .de-slider-next { right: 10px; }
  .de-product-grid,
  .de-about-grid,
  .de-contact-grid,
  .de-footer-grid {
    grid-template-columns: 1fr;
  }
}
