/* ===========================================================
   Bhaskara Energy System LLP — Premium Corporate Stylesheet
   =========================================================== */

:root {
  --navy:      #0c104a;   /* deep indigo base */
  --navy-2:    #1a2068;
  --blue:      #2f3aa6;   /* mid indigo-blue */
  --blue-lt:   #8e98e6;
  --amber:     #f5a623;   /* amber accent (on dark) */
  --amber-dk:  #d98a0b;   /* deep amber accent (on light) */
  --ink:       #1c2030;
  --muted:     #5c627a;
  --line:      #e4e6f0;
  --bg:        #f5f6fc;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.16);
  --max:       1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo { font-family: "Poppins", "Segoe UI", sans-serif; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-dk); }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .2px;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, #ffbf4d, var(--amber)); color: var(--navy); box-shadow: 0 8px 22px rgba(245,166,35,.40); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(245,166,35,.55); color: var(--navy); filter: brightness(1.04); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-3px); }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(10,37,64,.10);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dk));
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--navy); font-weight: 800; font-size: 1.1rem;
}
.logo span { color: var(--blue-lt); font-weight: 400; font-size: .95rem; }
.logo img { height: 52px; width: auto; display: block; }
footer.site .logo img {
  background: #fff; padding: 7px 14px; border-radius: 10px; height: 50px;
}

/* Filtration slides */
.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.slides figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.slides figure:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.slides img { width: 100%; height: auto; display: block; }

/* About / home feature image */
.feature-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }

/* Client logos */
.client img { height: 56px; width: auto; object-fit: contain; display: block; }
.client.logo-chip { background: #fff; padding: 16px 26px; }

nav ul { list-style: none; display: flex; gap: 4px; }
nav a {
  display: block;
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
  position: relative;
}
nav a:hover { color: var(--blue); background: rgba(47,58,166,.08); }
nav a.active { color: var(--amber-dk); }
nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--amber); border-radius: 2px;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 120px 24px 130px;
  background:
    radial-gradient(1100px 460px at 72% -8%, rgba(245,166,35,.22), transparent 58%),
    radial-gradient(900px 500px at 10% 110%, rgba(47,58,166,.45), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #283694 130%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid rgba(245,166,35,.4);
  border-radius: 50px;
  background: rgba(245,166,35,.08);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 700; max-width: 880px; margin: 0 auto 18px; }
.hero p { font-size: 1.15rem; color: #d6e4f2; max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* page banner (inner pages) */
.banner {
  color: #fff;
  text-align: center;
  padding: 80px 24px 70px;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(245,166,35,.20), transparent 60%),
    radial-gradient(700px 360px at 5% 120%, rgba(47,58,166,.40), transparent 60%),
    linear-gradient(135deg, var(--navy), #232c80);
}
.banner .eyebrow { margin-bottom: 14px; }
.banner h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.banner .crumb { margin-top: 12px; color: #b9cde0; font-size: .9rem; }
.banner .crumb a { color: var(--amber); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--white);
  margin-top: -56px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: "Poppins"; font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.stat .num span { color: var(--amber); }
.stat .label { font-size: .85rem; color: var(--muted); letter-spacing: .3px; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.alt { background: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem;
  font-weight: 700; color: var(--amber-dk);
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--navy); margin: 10px 0 14px; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

h2.lead { font-size: clamp(1.7rem, 3.5vw, 2.2rem); color: var(--navy); margin-bottom: 18px; }
h3 { color: var(--navy); }

.prose p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(245,166,35,.5); }
a.card { display: block; color: inherit; text-decoration: none; position: relative; }
a.card:hover { text-decoration: none; color: inherit; }
a.card h3 { color: var(--navy); transition: color .25s; }
a.card:hover h3 { color: var(--amber-dk); }
a.card::after {
  content: "↗";
  position: absolute; top: 16px; right: 18px;
  color: var(--amber-dk); font-weight: 700; font-size: 1.15rem; line-height: 1;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
a.card:hover::after { opacity: 1; transform: none; }
a.card:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Supplier / principal cards (About page) */
a.supply-card { display: flex; flex-direction: column; padding-top: 38px; overflow: hidden; }
a.supply-card::after { content: none; }
a.supply-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-dk));
}
.supply-card .brand-tag {
  position: absolute; top: 14px; right: 16px;
  background: rgba(245,166,35,.12); color: var(--amber-dk);
  border: 1px solid rgba(245,166,35,.32);
  padding: 4px 10px; border-radius: 20px; font-size: .68rem;
  font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.supply-card .icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--amber); display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.supply-card:hover .icon { background: linear-gradient(135deg, var(--amber), var(--amber-dk)); color: var(--navy); }
.supply-card .icon svg { width: 28px; height: 28px; }
.supply-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.supply-card p { color: var(--muted); flex: 1; font-size: .96rem; line-height: 1.65; }
.supply-card .visit {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber-dk); font-weight: 600; font-size: .92rem;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  transition: gap .25s;
}
.supply-card .visit::after { content: "→"; transition: transform .25s; }
.supply-card:hover .visit { gap: 10px; }
.supply-card:hover .visit::after { transform: translateX(4px); }

/* Center an orphan card in the last row of a 3-col grid (desktop only) */
@media (min-width: 901px) { .grid-3 > .center-card { grid-column: 2; } }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--amber);
}
.card:hover .icon { background: linear-gradient(135deg, var(--amber), var(--amber-dk)); color: var(--navy); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* split feature (image-style panel + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.panel {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  min-height: 320px;
  color: #fff;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.panel::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.35), transparent 70%);
}
.panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.panel p { color: #cfe0f0; }

/* bullets */
ul.ticks { list-style: none; }
ul.ticks li {
  position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--muted); font-size: 1.02rem;
}
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Clients ---------- */
.clients { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.client {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 50px; padding: 14px 30px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.client:hover { transform: translateY(-4px); border-color: var(--amber); }

/* ---------- CTA band ---------- */
.cta {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(245,166,35,.18), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; text-align: center; padding: 70px 24px; border-radius: var(--radius);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta p { color: #d6e4f2; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); margin-bottom: 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.info-card .ic {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--amber); display: grid; place-items: center;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); font-size: .98rem; }

form.styled {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
form.styled label { display: block; margin: 0 0 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.styled .field { margin-bottom: 18px; }
form.styled input, form.styled textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 1rem; background: #fbfdff;
  transition: border-color .2s, box-shadow .2s;
}
form.styled input:focus, form.styled textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,58,166,.12);
}
form.styled textarea { min-height: 140px; resize: vertical; }
.confirm { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px;
  background: #e6f6ec; color: #1a7d3c; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  background: linear-gradient(180deg, #0e1356, var(--navy));
  color: #aebfd1;
  padding: 60px 0 0;
  margin-top: 80px;
  border-top: 3px solid var(--amber);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
footer.site .logo { padding: 0; margin-bottom: 16px; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .3px; }
footer.site p { font-size: .92rem; color: #93a6ba; margin-bottom: 10px; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #cfd8e6; transition: background .2s, transform .2s, color .2s;
}
.social a:hover { background: var(--amber); color: var(--navy); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 10px; }
footer.site ul a { color: #aebfd1; font-size: .92rem; }
footer.site ul a:hover { color: var(--amber); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center; font-size: .85rem; color: #7e93a8;
}

/* ===========================================================
   CFD page — premium components
   =========================================================== */
.hero-sub { color:#cfe0f0; font-size:1.1rem; max-width:620px; margin:0 auto 6px; }
.hero-chips { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:24px; }
.hero-chips span {
  background: rgba(255,255,255,.08); border:1px solid rgba(245,166,35,.4);
  color:#e8f1fa; padding:9px 20px; border-radius:50px; font-size:.85rem; font-weight:500;
}
.hero-chips span b { color: var(--amber); font-weight:700; }

/* Highlight stat band */
.hl { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.hl .item {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 26px; text-align:center; box-shadow:var(--shadow);
  border-top:3px solid var(--amber); transition:transform .25s, box-shadow .25s;
}
.hl .item:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.hl .item .big { font-family:"Poppins"; font-size:2.1rem; font-weight:700; color:var(--navy); }
.hl .item .big span { color:var(--amber); }
.hl .item .cap { color:var(--muted); font-size:.95rem; margin-top:4px; }

/* Premium gallery + lightbox */
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.gallery figure {
  position:relative; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  cursor:pointer; transition:transform .25s, box-shadow .25s;
}
.gallery figure:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.gallery img { width:100%; display:block; transition:transform .5s; }
.gallery figure:hover img { transform:scale(1.06); }
.gallery figcaption {
  position:absolute; left:0; right:0; bottom:0; padding:30px 16px 14px; color:#fff;
  font-size:.88rem; font-weight:500;
  background:linear-gradient(transparent, rgba(10,37,64,.9));
  opacity:0; transform:translateY(10px); transition:.3s;
}
.gallery figure:hover figcaption { opacity:1; transform:none; }
.gallery .zoom {
  position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--navy); display:grid; place-items:center;
  opacity:0; transform:scale(.8); transition:.3s; font-size:1rem;
}
.gallery figure:hover .zoom { opacity:1; transform:none; }

.lightbox {
  position:fixed; inset:0; background:rgba(6,18,32,.94); display:none;
  align-items:center; justify-content:center; z-index:1000; padding:40px;
}
.lightbox.open { display:flex; }
.lightbox img { max-width:90%; max-height:86%; border-radius:10px; box-shadow:0 30px 90px rgba(0,0,0,.6); }
.lightbox .lb-close { position:absolute; top:18px; right:30px; font-size:2.4rem; color:#fff; cursor:pointer; line-height:1; }
.lightbox .lb-nav {
  position:absolute; top:50%; transform:translateY(-50%); font-size:2rem; color:var(--navy);
  background:rgba(255,255,255,.9); width:50px; height:50px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; user-select:none; transition:background .2s;
}
.lightbox .lb-nav:hover { background:#fff; }
.lb-prev { left:24px; } .lb-next { right:24px; }

@media (max-width:900px){ .hl, .gallery { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .hl, .gallery { grid-template-columns:1fr; } .lightbox .lb-nav{width:42px;height:42px;} }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .slides { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 10px 16px 20px; gap: 0;
    box-shadow: 0 12px 24px rgba(10,37,64,.15); border-bottom: 1px solid var(--line);
  }
  nav ul.open { display: flex; }
  nav a { padding: 14px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .slides { grid-template-columns: 1fr; }
  .logo img { height: 40px; padding: 5px 10px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
}
