/* ==========================================================================
   Energymax USA — premium site stylesheet
   ========================================================================== */

:root {
  --navy: #0a1a33;
  --navy-dark: #050d1a;
  --navy-mid: #112544;
  --gold: #c9a24b;
  --gold-light: #e6c674;
  --gold-dark: #a1801f;
  --gray-100: #f8f7f4;
  --gray-200: #ece8df;
  --gray-500: #7a8290;
  --gray-700: #37404f;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 34px rgba(5, 13, 26, 0.10);
  --shadow-lg: 0 22px 60px rgba(5, 13, 26, 0.22);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.2px;
}
h2.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
h2.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
}
.eyebrow-label {
  display: block;
  text-align: center;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 10px;
}
p.section-sub {
  text-align: center;
  color: var(--gray-500);
  max-width: 660px;
  margin: 0 auto 52px;
  font-size: 1.03rem;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.28s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-dark);
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 75, 0.45); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: #aab4c4;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(201,162,75,0.18);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #aab4c4; }
.topbar a:hover { color: var(--gold-light); }
.topbar-contact span { margin-right: 26px; }
.topbar-social a { margin-left: 16px; }

/* Header / nav */
header.main-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(5,13,26,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 54px; width: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(5,13,26,0.15); }
.brand-text { line-height: 1.15; }
.brand-text strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.3rem;
  letter-spacing: 0.4px;
}
.brand-text small { color: var(--gold-dark); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

nav.primary-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav.primary-nav a {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
}
nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
nav.primary-nav a:hover::after { width: 100%; }
nav.primary-nav a:hover { color: var(--gold-dark); }
nav.primary-nav .has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  min-width: 320px;
  padding: 10px 0;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 12px 20px; font-weight: 500; font-size: 0.87rem; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--gray-100); color: var(--gold-dark); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 12px 26px !important;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  letter-spacing: 1px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold) !important; color: var(--navy-dark) !important; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(5,13,26,0.93), rgba(10,26,51,0.82)),
    url('https://www.energymax.co.in/wp-content/uploads/2022/12/150-kva-3.jpeg') center/cover;
  color: var(--white);
  padding: 150px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,162,75,0.18), transparent 70%);
  pointer-events: none;
}
.hero .container { max-width: 780px; position: relative; }
.hero .eyebrow { color: var(--gold-light); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: 3.4rem; margin-bottom: 20px; }
.hero p { color: #cdd6e3; font-size: 1.12rem; margin-bottom: 38px; max-width: 620px; }
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Trust strip */
.trust-strip {
  background: var(--navy-dark);
  padding: 22px 0;
}
.trust-strip .container { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-strip span { font-size: 0.78rem; font-weight: 700; color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--gray-100); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid .img-frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.about-grid .img-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}
.about-grid img { border-radius: 6px; box-shadow: var(--shadow-lg); }
.about-grid ul { padding-left: 0; list-style: none; color: var(--gray-700); margin: 24px 0; }
.about-grid li { margin-bottom: 12px; padding-left: 30px; position: relative; font-weight: 500; }
.about-grid li::before {
  content: "\2726";
  position: absolute;
  left: 0; top: 0;
  color: var(--gold-dark);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.gallery-grid img {
  border-radius: 6px;
  height: 96px;
  width: 100%;
  object-fit: contain;
  background: var(--white);
  padding: 10px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.gallery-grid img:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card .img-wrap { overflow: hidden; height: 210px; }
.card img { height: 210px; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.08); }
.card-body { padding: 28px; }
.card-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card-body p { color: var(--gray-500); font-size: 0.94rem; margin-bottom: 18px; }
.card-body a.link { font-weight: 700; color: var(--gold-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.card-body a.link:hover { color: var(--navy); }

.stats-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-mid));
  color: var(--white);
  padding: 72px 0;
  position: relative;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid .num { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold-light); }
.stats-grid .label { text-transform: uppercase; font-size: 0.76rem; letter-spacing: 1.6px; color: #aab4c4; margin-top: 6px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-card { text-align: center; }
.process-card .img-wrap { overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow); }
.process-card img { height: 170px; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.process-card:hover img { transform: scale(1.1); }
.process-card h4 { font-size: 1rem; font-family: var(--sans); font-weight: 700; }

.spec-table { width: 100%; border-collapse: collapse; margin: 28px 0; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--gray-200); font-size: 0.94rem; }
.spec-table th { width: 240px; color: var(--navy); background: var(--gray-100); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold-dark); font-weight: 600; }

.page-hero {
  background:
    linear-gradient(120deg, rgba(5,13,26,0.95), rgba(10,26,51,0.9)),
    url('https://www.energymax.co.in/wp-content/uploads/2017/04/Assembly-Picture.jpg') center/cover;
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; font-size: 2.6rem; }
.page-hero p { color: #cdd6e3; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-detail img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.cta-band {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold-light));
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: var(--navy-dark); }
.cta-band h2::after { background: var(--navy-dark); }
.cta-band p { color: var(--navy-dark); margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--navy-dark); color: var(--white); box-shadow: 0 10px 24px rgba(5,13,26,0.3); }
.cta-band .btn-primary:hover { background: var(--navy); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.contact-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.contact-card p { margin: 0; color: var(--gray-700); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--gray-100);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
footer.main-footer {
  background: var(--navy-dark);
  color: #aab4c4;
  padding: 76px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,162,75,0.18);
}
.footer-grid h4 { color: var(--white); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 22px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(201,162,75,0.12);
  border: 1px solid rgba(201,162,75,0.3);
  border-radius: 50%;
  margin-right: 10px;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: 0.8rem; color: #6f7c8f; }
.footer-bottom a { color: var(--gold-light); }

@media (max-width: 900px) {
  .about-grid, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 110px 0 90px; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 560px) {
  .card-grid, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  h2.section-title { font-size: 1.9rem; }
}
