/* ============================================================
   SGB Earthing Products - Main Stylesheet
   Colors: Dark Navy #1B3B6F | Green #28A745 | Teal #1A7A4A
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background: #f5f7fa;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- CSS Variables ---- */
:root {
  --blue-dark:  #1E4FA0;
  --blue-mid:   #3A7BD5;
  --green-dark: #1E9455;
  --green-mid:  #2ECC71;
  --green-light:#5DD99A;
  --white:      #ffffff;
  --light-bg:   #f5f9ff;
  --border:     #dce6f5;
  --shadow:     0 4px 18px rgba(30,79,160,0.10);
  --radius:     8px;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
header {
  background: linear-gradient(135deg, #1E4FA0 0%, #3A7BD5 100%);
  box-shadow: 0 2px 14px rgba(30,79,160,0.22);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text .brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}

.logo-text .tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--green-light);
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links li a {
  color: #cde0ff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.25s, color 0.25s;
  letter-spacing: 0.4px;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--green-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION (Home)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #2558b0 0%, #3A7BD5 45%, #1E9455 100%);
  color: var(--white);
  padding: 90px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero h1 span { color: #6EE89A; }

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  color: #c8deff;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--green-mid);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ============================================================
   HOME SLIDER
   ============================================================ */
.home-slider {
  --visible-slides: 5;
  --slide-gap: 18px;
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  background: #e8eef7;
  box-shadow: 0 10px 30px rgba(27,59,111,0.16);
}

.home-slider-track {
  display: flex;
  gap: var(--slide-gap);
  padding: 26px 64px 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.home-slide {
  flex: 0 0 calc((100% - (var(--visible-slides) - 1) * var(--slide-gap)) / var(--visible-slides));
  background: #eef1f6;
  border-radius: 12px;
  border: 1px solid #d4deec;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-slide img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 10px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(15,45,103,0.32);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}

.slider-nav:hover {
  background: rgba(15,45,103,0.6);
  transform: translateY(-50%) scale(1.06);
}

.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }

/* ============================================================
   PAGE WRAPPER & COMMON SECTIONS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 24px;
}

.section-alt { background: var(--white); }
.section-blue { background: linear-gradient(135deg, #2558b0, #3A7BD5 60%, #1E9455); color: var(--white); }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  text-align: center;
  color: #5a7080;
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.light { color: #b8d0f0; }

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--blue-mid));
  border-radius: 2px;
  margin: 10px auto 40px;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: linear-gradient(90deg, #1E4FA0, #1E9455);
  color: var(--white);
  padding: 30px 24px;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #6EE89A;
}
.stat-item .label { font-size: 0.85rem; color: #b8d9ff; margin-top: 4px; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-mid);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(27,59,111,0.18);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3A7BD5, #2ECC71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
}

.card h3 { font-size: 1.08rem; color: var(--blue-dark); margin-bottom: 10px; font-weight: 700; }
.card p { font-size: 0.9rem; color: #5a7080; line-height: 1.65; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(27,59,111,0.18);
}

.product-img {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #eef4ff;
}

.product-card-body { padding: 22px 22px 26px; }
.product-card-body h3 { font-size: 1.05rem; color: var(--blue-dark); font-weight: 700; margin-bottom: 8px; }
.product-card-body p { font-size: 0.88rem; color: #5a7080; margin-bottom: 14px; line-height: 1.55; }

.badge {
  display: inline-block;
  background: #e8f5e9;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid #b2dfb5;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img-box {
  background: linear-gradient(135deg, #3A7BD5, #1E9455);
  border-radius: 16px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow);
}

.about-content h2 { font-size: 1.9rem; color: var(--blue-dark); font-weight: 800; margin-bottom: 14px; }
.about-content p { color: #4a6070; margin-bottom: 14px; line-height: 1.75; }

.checklist { margin: 22px 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: #333;
  margin-bottom: 10px;
}
.checklist li::before {
  content: '✔';
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--green-mid);
}
.value-icon { font-size: 2.4rem; margin-bottom: 12px; }
.value-card h4 { color: var(--blue-dark); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: #5a7080; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  background: linear-gradient(160deg, #2558b0, #3A7BD5 60%, #1E9455);
  color: var(--white);
  border-radius: 16px;
  padding: 40px 34px;
  box-shadow: var(--shadow);
}

.contact-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; color: #6EE89A; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.info-icon {
  background: rgba(255,255,255,0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item .info-text h4 { font-size: 0.82rem; color: #a0bfdf; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.info-item .info-text p,
.info-item .info-text a { font-size: 0.93rem; color: var(--white); word-break: break-word; }
.info-item .info-text a:hover { color: #6EE89A; }

.gstin-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 24px;
}
.gstin-box p { font-size: 0.8rem; color: #a0bfdf; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.gstin-box strong { font-size: 1rem; color: #6EE89A; letter-spacing: 1px; }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 1.4rem; color: var(--blue-dark); font-weight: 800; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 6px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: #222;
  background: #fafcff;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(42,91,168,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  background: linear-gradient(90deg, #3A7BD5, #1E9455);
  color: var(--white);
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.25s, transform 0.2s;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); }

/* Map placeholder */
.map-box {
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7a90aa;
  font-size: 0.9rem;
  margin-top: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.map-box .map-icon { font-size: 3rem; margin-bottom: 12px; }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, #2558b0 0%, #3A7BD5 50%, #1E9455 100%);
  color: var(--white);
  padding: 56px 24px 48px;
  text-align: center;
}

.page-banner h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.page-banner p { color: #b8d4ff; font-size: 1rem; max-width: 500px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #a0c0e8;
  margin-top: 12px;
}
.breadcrumb a { color: #6EE89A; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(135deg, #152d6e, #1E4FA0);
  color: #c8deff;
  padding: 60px 24px 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 2.5fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-wrap img { 
  height: 54px; 
  width: 54px; 
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: #8aadcf; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--green-mid);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: #8aadcf; transition: color 0.2s; }
.footer-col ul li a:hover { color: #6EE89A; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.87rem; }
.footer-contact .fc-icon { color: #6EE89A; flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: #8aadcf; transition: color 0.2s; }
.footer-contact a:hover { color: #6EE89A; }
.footer-col .footer-contact li { font-size: 0.95rem; }
.footer-col .footer-contact .fc-icon { font-size: 1rem; }
.footer-phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.footer-phone-list a {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.5;
}
.footer-gstin-col .footer-contact li {
  font-size: 1rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #5a7a9a;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-box { height: 240px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 10px 16px; }

  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.95rem; }

  .home-slider {
    --visible-slides: 2;
    --slide-gap: 10px;
  }
  .home-slider-track { padding: 16px 46px 16px; }
  .home-slide { min-height: 120px; }
  .home-slide img { height: 96px; }
  .slider-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .slider-nav.prev { left: 10px; }
  .slider-nav.next { right: 10px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-phone-list { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .home-slider {
    --visible-slides: 3;
    --slide-gap: 14px;
  }
  .home-slider-track { padding: 20px 52px 20px; }
  .home-slide { min-height: 150px; }
  .home-slide img { height: 120px; }
}
