/* ==========================================================================
   S.K. CORPORATION - STYLESHEET
   Accurate visual styling matched with https://mahalaxmiminerals.in/
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --theme-green: #00a651;
  --theme-green-hover: #008f45;
  --theme-dark-green-bg: #193828;
  --theme-dark-bar: #1a252f;
  --theme-text-dark: #222222;
  --theme-text-body: #444444;
  --theme-text-muted: #666666;
  --theme-border: #e2e8f0;
  --theme-card-bg: #ffffff;
  --theme-light-bg: #f5f7f9;
  
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Ubuntu', 'Roboto', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 3px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--theme-text-body);
  background-color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 65px 0;
}

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

.text-center {
  text-align: center;
}

/* --- Section Headings (Mahalaxmi Style) --- */
.section-heading-wrap {
  margin-bottom: 40px;
}

.section-heading-wrap.text-center {
  text-align: center;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--theme-text-dark);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 3px;
  background-color: var(--theme-green);
}

.section-heading-wrap.text-center .section-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtext {
  font-size: 15px;
  color: var(--theme-text-muted);
  max-width: 780px;
  margin: 12px auto 0;
}

/* --- Buttons (Mahalaxmi Minerals Green & Light CTA) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-green {
  background-color: var(--theme-green);
  color: #ffffff;
}

.btn-green:hover {
  background-color: var(--theme-green-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.35);
}

.btn-white {
  background-color: #f8fafc;
  color: var(--theme-text-dark);
  border: 1px solid #d1d5db;
}

.btn-white:hover {
  background-color: #ffffff;
  color: var(--theme-green);
}

.btn-dark {
  background-color: var(--theme-dark-bar);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #000000;
  color: #ffffff;
}

/* --- TOP HEADER BAR --- */
.top-bar {
  background-color: var(--theme-dark-bar);
  color: #e2e8f0;
  font-size: 13px;
  padding: 0;
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.top-bar-item i {
  color: var(--theme-green);
  font-size: 13px;
}

.top-bar-item a {
  color: #cbd5e1;
}

.top-bar-item a:hover {
  color: #ffffff;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-social-icon {
  color: #cbd5e1;
  padding: 0 12px;
  font-size: 14px;
  transition: var(--transition);
}

.top-social-icon:hover {
  color: var(--theme-green);
}

.quick-links-btn {
  background-color: var(--theme-green);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.quick-links-btn:hover {
  background-color: var(--theme-green-hover);
  color: #ffffff;
}

/* --- MAIN NAVBAR --- */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* Logo (Mahalaxmi style box with yellow bar & certification badge) */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-symbol {
  width: 50px;
  height: 48px;
  background: #1a252f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  border-radius: 2px;
  position: relative;
  letter-spacing: -1px;
}

.logo-symbol span {
  color: #ff3333;
}

.logo-text-col {
  display: flex;
  flex-direction: column;
}

.logo-company-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-company-name span {
  color: #ff3333;
}

.logo-cert-tag {
  font-size: 11px;
  color: #555555;
  font-weight: 500;
}

.logo-yellow-strip {
  background: #ffcc00;
  color: #111111;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  margin-top: 2px;
  display: inline-block;
  width: fit-content;
}

/* Navigation Links */
.main-nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  position: relative;
}

.nav-link-item a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-text-dark);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

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

/* Dropdown */
.nav-link-item.has-dropdown:hover .sub-nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--theme-green);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.sub-nav-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  border-bottom: 1px solid #f1f5f9;
}

.sub-nav-menu li:last-child a {
  border-bottom: none;
}

.sub-nav-menu li a:hover {
  background-color: #f8fafc;
  color: var(--theme-green);
  padding-left: 22px;
}

.header-search-icon {
  color: var(--theme-green);
  font-size: 15px;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--theme-text-dark);
  cursor: pointer;
}

/* --- HERO BANNER CAROUSEL --- */
.hero-slider-wrap {
  position: relative;
  background-color: #111111;
  overflow: hidden;
}

.hero-slider-viewport {
  position: relative;
  height: 520px;
  width: 100%;
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide-item.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-slide-caption {
  position: relative;
  z-index: 2;
  max-width: 850px;
  color: #ffffff;
  padding: 0 20px;
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slide-desc {
  font-size: 18px;
  color: #f1f5f9;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 25px;
}

.slider-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-nav-arrow:hover {
  background: var(--theme-green);
}

.slider-arrow-prev {
  left: 20px;
}

.slider-arrow-next {
  right: 20px;
}

.slider-pagination-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot-bullet.active {
  background: var(--theme-green);
}

/* --- PRODUCTS GRID (Mahalaxmi Minerals Exact Card Style) --- */
.products-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-feature-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #edf2f7;
}

.product-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.product-card-top-icon {
  color: var(--theme-green);
  font-size: 32px;
  margin-bottom: 18px;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--theme-text-dark);
  margin-bottom: 12px;
}

.product-card-desc {
  font-size: 14px;
  color: var(--theme-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.brand-chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

.brand-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
}

.card-readmore-link {
  color: var(--theme-green);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.card-readmore-link:hover {
  color: var(--theme-green-hover);
  gap: 8px;
}

/* --- WHY CHOOSE US / ABOUT SECTION (Mahalaxmi Style) --- */
.why-choose-content-wrap {
  max-width: 1000px;
}

.why-choose-text {
  font-size: 15px;
  color: var(--theme-text-body);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* --- CONNECT CTA BANNER (Mahalaxmi Dark Green Band) --- */
.connect-cta-band {
  background-color: var(--theme-dark-green-bg);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.connect-cta-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.connect-cta-subtext {
  font-size: 16px;
  color: #d1e7dd;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.connect-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- CONTACT US PAGE & FORM --- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-address-block {
  margin-bottom: 30px;
}

.contact-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--theme-text-dark);
  margin-bottom: 6px;
}

.contact-brand-title span {
  color: #ff3333;
}

.contact-address-lines {
  font-size: 14px;
  color: var(--theme-text-body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.contact-tel-lines {
  font-size: 14px;
  color: var(--theme-text-body);
  line-height: 1.7;
}

.contact-tel-lines a {
  color: var(--theme-text-dark);
  font-weight: 600;
}

.contact-tel-lines a:hover {
  color: var(--theme-green);
}

.contact-form-intro {
  font-size: 15px;
  font-weight: 500;
  color: var(--theme-text-dark);
  margin-bottom: 25px;
}

.form-field-group {
  margin-bottom: 20px;
}

.form-field-label {
  display: block;
  font-size: 14px;
  color: var(--theme-text-dark);
  margin-bottom: 6px;
}

.theme-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-family);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--theme-text-dark);
  transition: var(--transition);
}

.theme-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--theme-green);
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.15);
}

textarea.theme-input {
  resize: vertical;
  min-height: 110px;
}

.map-container-wrap {
  width: 100%;
  height: 380px;
  margin-top: 40px;
  border: 1px solid #e2e8f0;
}

.map-container-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FOOTER (Mahalaxmi Multi-Column Layout) --- */
.site-footer-wrap {
  background-color: #141f28;
  color: #94a3b8;
  font-size: 13px;
  padding: 50px 0 25px;
  border-top: 3px solid var(--theme-green);
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.4fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-head-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-head-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--theme-green);
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list li a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-nav-list li a:hover {
  color: var(--theme-green);
  padding-left: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-bar a {
  color: #94a3b8;
}

.footer-bottom-bar a:hover {
  color: var(--theme-green);
}

/* --- SCROLL TO TOP BUTTON (Mahalaxmi Style) --- */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 38px;
  height: 38px;
  background-color: #222222;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: var(--theme-green);
}

/* --- MODAL (Quick Quote) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-top: 4px solid var(--theme-green);
  position: relative;
  overflow: hidden;
}

.modal-header {
  padding: 16px 22px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--theme-text-dark);
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
}

.modal-body {
  padding: 22px;
}

/* --- TOAST --- */
.toast-notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a252f;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  opacity: 0;
  transition: var(--transition);
  border-left: 4px solid var(--theme-green);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .products-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-nav-list {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 65px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    overflow-y: auto;
  }

  .main-nav-list.active {
    left: 0;
  }

  .nav-link-item {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link-item a {
    width: 100%;
    padding: 12px 0;
  }

  .sub-nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 0 0 10px 15px;
    background: #f8fafc;
    display: none;
  }

  .nav-link-item.has-dropdown.open .sub-nav-menu {
    display: block;
  }

  .hero-slide-title {
    font-size: 32px;
  }

  .hero-slide-desc {
    font-size: 15px;
  }

  .products-grid-layout,
  .footer-cols-grid {
    grid-template-columns: 1fr;
  }
}
