/* ==========================================================
   Ojas Energy Solutions — Landing page styles
   ========================================================== */

:root {
  --green: #6cb33f;
  --green-dark: #4f9a2a;
  --green-light: #eaf6e1;
  --navy: #1f3b57;
  --navy-dark: #15293d;
  --blue: #2a6fb0;
  --text: #22313f;
  --muted: #5d6b7a;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 59, 87, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 59, 87, 0.14);
  --container: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy); font-weight: 700; }
p { margin: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(108,179,63,.3); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-dark); background: var(--green-light);
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow.light { background: rgba(255,255,255,.14); color: #d8f3c4; }
.accent { color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-weight: 500; color: var(--navy); font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--green-dark); }
.nav-cta { padding: .6rem 1.3rem; color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(108,179,63,.14), transparent 60%),
    radial-gradient(700px 400px at -10% 100%, rgba(42,111,176,.10), transparent 60%),
    #fff;
  padding: 4.5rem 0 4rem;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: var(--navy); font-size: .92rem; font-weight: 500; }
.hero-points li { position: relative; padding-left: 1.5rem; }
.hero-points li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

.hero-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 1.25rem; border: 1px solid var(--line); }
.hero-illustration { width: 100%; height: auto; border-radius: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; }
.stat { text-align: center; padding: .85rem .5rem; background: var(--bg-alt); border-radius: 12px; }
.stat strong { display: block; font-size: 1.35rem; color: var(--navy); font-weight: 800; }
.stat span { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #fff; padding: 1.5rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-grid div { display: flex; flex-direction: column; gap: .15rem; padding-left: 1rem; border-left: 3px solid var(--green); }
.trust-grid strong { font-size: 1rem; }
.trust-grid span { font-size: .85rem; color: #b8c7d6; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2, .why-content h2, .contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.015em; margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-light); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 28px; height: 28px; fill: var(--green-dark); }
.card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card ul li { font-size: .9rem; color: var(--navy); padding: .3rem 0 .3rem 1.3rem; position: relative; }
.card ul li::before { content: ''; position: absolute; left: 0; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.why-content > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }
.feature-list { display: grid; gap: 1.25rem; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 1rem; }
.feature-list li::before {
  content: ''; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f9a2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/22px no-repeat;
  border: 1px solid var(--line);
}
.feature-list strong { color: var(--navy); font-size: 1.02rem; }
.feature-list span { color: var(--muted); font-size: .93rem; }

.savings-card { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.savings-card h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.savings-card dl { margin: 0 0 1rem; display: grid; gap: .5rem; }
.savings-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.savings-card dt { color: var(--muted); font-size: .93rem; }
.savings-card dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.savings-card .note { font-size: .78rem; color: var(--muted); margin-bottom: 1.25rem; }
.savings-card .btn { width: 100%; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: 1.05rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonials blockquote { margin: 0; background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.25rem; }
.testimonials blockquote::before { content: '\201C'; font-size: 3rem; line-height: .5; color: var(--green); font-family: Georgia, serif; }
.testimonials p { color: var(--text); font-size: .97rem; flex: 1; }
.testimonials footer { display: flex; flex-direction: column; font-size: .85rem; }
.testimonials footer strong { color: var(--navy); }
.testimonials footer span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.4rem; font-weight: 600; color: var(--navy);
  position: relative; user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--green-light); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 700; transition: transform .25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { color: #fff; }
.contact-info > p { color: #c6d3df; font-size: 1.05rem; margin-bottom: 2rem; }
.contact-list { display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(108,179,63,.18); display: grid; place-items: center; }
.contact-list .ci svg { width: 22px; height: 22px; fill: var(--green); }
.contact-list strong { display: block; font-size: .85rem; color: #a9bbcc; font-weight: 500; }
.contact-list a, .contact-list span:not(.ci) { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--green); }

.query-form { background: #fff; color: var(--text); border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow-lg); }
.query-form h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field label span { color: #d9534f; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fbfcfe; color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(108,179,63,.15); background: #fff; }
.field.invalid input, .field.invalid select { border-color: #d9534f; }
.field .error { font-size: .78rem; color: #d9534f; min-height: 1em; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .9rem; text-align: center; }
.form-status { margin-top: 1rem; padding: 0; border-radius: 10px; font-size: .92rem; font-weight: 500; display: none; }
.form-status.success { display: block; padding: .9rem 1rem; background: var(--green-light); color: var(--green-dark); }
.form-status.fail { display: block; padding: .9rem 1rem; background: #fdecea; color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b8c7d6; padding: 3.5rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 56px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .steps, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: .95rem 1.25rem; border-top: 1px solid var(--line); }
  .nav .nav-cta { margin: 1rem 1.25rem; border-radius: 999px; text-align: center; }
  .hero { padding: 3rem 0; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .query-form { padding: 1.6rem 1.25rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .steps, .testimonials, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .hero-actions .btn { width: 100%; }
  .stat strong { font-size: 1.1rem; }
  .stat span { font-size: .7rem; }
}
