/*
Theme Name: Hariram Industries Theme
Theme URI: https://hariind.com
Author: Antigravity Team
Description: Clean, high-performance, secure custom WordPress theme for Hariram Industries with country flags language switcher and responsive dyestuff showcase.
Version: 1.2.0
Text Domain: hariram-theme
*/

:root {
  --primary-teal: #184341;
  --accent-orange: #d46743;
  --accent-orange-hover: #b85433;
  --brand-red: #8c1d24;
  --heading-dark: #181b31;
  --body-text: #505565;
  --muted-text: #808291;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  color: var(--heading-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-orange-hover);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation System */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  width: 100%;
}

.site-header.is-stuck {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  position: relative;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Nav Wrapper (Desktop) */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-navigation {
  display: flex;
  align-items: center;
}

/* High Specificity Overrides for WordPress Nav Menus */
.site-navigation ul,
.site-navigation div > ul,
ul.main-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 1.8rem !important;
}

.site-navigation ul li,
ul.main-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.site-navigation ul li a,
ul.main-menu li a {
  font-family: 'Manrope', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--accent-orange) !important;
  text-decoration: none !important;
  padding: 0.5rem 0.2rem !important;
  position: relative !important;
  display: inline-block !important;
  transition: var(--transition) !important;
}

.site-navigation ul li a::after,
ul.main-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition);
}

.site-navigation ul li a:hover::after,
.site-navigation ul li.current-menu-item > a::after,
ul.main-menu li.current-menu-item > a::after,
ul.main-menu li a:hover::after {
  width: 100%;
}

.site-navigation ul li.current-menu-item > a,
ul.main-menu li.current-menu-item > a {
  color: var(--brand-red) !important;
}

/* Flags Bar */
.flags-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.flag-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  outline: none;
}

.flag-btn:hover {
  transform: scale(1.2);
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 10001;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--heading-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* WHY CHOOSE US Section Layout System */
.why-choose-section {
  padding: 4.5rem 0;
  background: #fdfdfd;
  border-top: 1px solid #f1f5f9;
}

.why-choose-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.why-choose-intro {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 1100px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
}

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.why-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.why-content h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
}

.why-content p {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.why-map-card {
  position: sticky;
  top: 110px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid #f1f5f9;
  text-align: center;
}

.why-map-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Mobile Responsive Layout (< 992px) */
@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    gap: 1.5rem;
  }

  .nav-wrapper.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-navigation {
    width: 100%;
  }

  .site-navigation ul,
  .site-navigation div > ul,
  ul.main-menu {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .site-navigation ul li,
  ul.main-menu li {
    width: 100% !important;
  }

  .site-navigation ul li a,
  ul.main-menu li a {
    width: 100% !important;
    padding: 0.6rem 0 !important;
    font-size: 1.1rem !important;
    border-bottom: 1px solid var(--border-light);
  }

  .flags-bar {
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .why-map-card {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.lightbox-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox-overlay.is-active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #ffffff;
  padding: 0.5rem;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: #ffffff;
  color: #181b31;
  border: none;
  font-size: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: #d46743;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  font-family: 'Manrope', sans-serif;
}

.cert-card img {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cert-card img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Floating WhatsApp Widget (Stacked on top of Scroll-to-Top Button) */
.wa-widget-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 99990;
}

.wa-float-btn {
  width: 55px;
  height: 55px;
  background: #25D366;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: waPulse 2.5s infinite;
}

.wa-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-popup-box {
  position: fixed;
  bottom: 155px;
  right: 25px;
  width: 320px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 99995;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-popup-box.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  background: #25D366;
  padding: 1.1rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-close-btn {
  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;
  border: none;
  font-size: 1.3rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease;
}

.wa-close-btn:hover {
  background: rgba(0, 0, 0, 0.3);
}

.wa-popup-body {
  background: #f0f2f5;
  padding: 1.5rem 1.25rem;
}

.wa-chat-bubble {
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  max-width: 85%;
  margin-bottom: 1.25rem;
}

.wa-chat-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid #ffffff;
  border-left: 8px solid transparent;
}

.wa-open-chat-btn {
  background: #25D366;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-open-chat-btn:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

/* Scroll to Top Button (Auto-hides at top) */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: #d46743;
  color: #ffffff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(212, 103, 67, 0.4);
  cursor: pointer;
  z-index: 99980;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #184341;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 67, 65, 0.45);
}

/* Certification Slider Carousel */
.cert-carousel-wrapper {
  position: relative;
  padding: 0 45px;
}

.cert-slider-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cert-slider-container::-webkit-scrollbar {
  display: none;
}

.cert-card-item {
  flex: 0 0 calc(25% - 1.15rem);
  min-width: 250px;
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .cert-card-item {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 768px) {
  .cert-carousel-wrapper {
    padding: 0 35px;
  }
  .cert-card-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .cert-carousel-wrapper {
    padding: 0;
  }
  .cert-card-item {
    flex: 0 0 85%;
  }
}

.cert-card-inner {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #d46743;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212, 103, 67, 0.15);
  border-color: #cbd5e1;
  border-top-color: #184341;
}

.cert-img-box {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  padding: 0.5rem;
}

.cert-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-card-inner:hover .cert-img-box img {
  transform: scale(1.05);
}

.cert-card-info {
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

.cert-card-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #181b31;
  margin: 0 0 0.25rem 0;
  font-family: 'Manrope', sans-serif;
}

.cert-card-info span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  display: block;
}

/* Slider Nav Buttons */
.cert-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #181b31;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.25s ease;
}

.cert-prev-btn {
  left: 0;
}

.cert-next-btn {
  right: 0;
}

.cert-nav-btn:hover {
  background: #d46743;
  color: #ffffff;
  border-color: #d46743;
  box-shadow: 0 6px 20px rgba(212, 103, 67, 0.35);
}

/* Contact Us Page Mobile Responsive Styles */
.contact-section {
  padding: 4.5rem 0;
  width: 100%;
  background: #ffffff;
}

.contact-hero-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.contact-hero-title {
  font-size: 2.5rem;
  color: #181b31;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.contact-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.contact-info-card {
  background: #f8fafc;
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.contact-wa-card {
  background: #f0fdf4;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #bbf7d0;
  text-align: center;
  box-sizing: border-box;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Mobile & Tablet Overrides (Works directly from style.css without DB update) */
@media (max-width: 992px) {
  .contact-section {
    padding: 2.5rem 0 !important;
  }
  .contact-hero-header {
    margin-bottom: 2rem !important;
  }
  .contact-hero-title {
    font-size: 1.85rem !important;
  }
  
  /* Force 1 column layout on mobile even if database has inline grid-template-columns */
  .contact-section div[style*="grid-template-columns"],
  .contact-main-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
  }

  .contact-section div[style*="padding: 2.5rem"],
  .contact-section div[style*="padding: 2.25rem"],
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .contact-wa-card,
  .contact-section div[style*="background: #f0fdf4"] {
    padding: 1.5rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force Email & Phone inputs to stack vertically on mobile */
  .contact-section div[style*="grid-template-columns: 1fr 1fr"],
  .form-grid-2col {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .crafting-colors-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .contact-form-card button[type="submit"],
  #contactForm button[type="submit"] {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 1.75rem 0 !important;
  }
  .contact-hero-title {
    font-size: 1.6rem !important;
  }
  .contact-form-card h2 {
    font-size: 1.4rem !important;
  }
  .contact-info-card h3 {
    font-size: 1.2rem !important;
  }
}




