/* ============================================================
   Rao Energies - Modern Solar & Renewable Energy Website
   ============================================================ */

:root {
  --green-900: #06281c;
  --green-800: #0a3d2a;
  --green-700: #0f5c3f;
  --green-600: #16814f;
  --green-500: #1f9d5c;
  --lime: #b8f24d;
  --gold: #f2b705;
  --ink: #0b1512;
  --ink-soft: #4b5a54;
  --mist: #f3f8f5;
  --white: #ffffff;
  --border: #e2ece7;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 20px 45px rgba(6, 40, 28, 0.12);
  --shadow-sm: 0 8px 22px rgba(6, 40, 28, 0.08);
}

* { 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(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Typography helpers ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  display: inline-block;
}

.heading {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--green-900);
  margin-bottom: 16px;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 620px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--lime); color: var(--green-900); }
.btn-solid:hover { background: var(--green-500); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-dark { background: var(--green-900); color: var(--white); }
.btn-dark:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 40, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.navbar-brand .mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--lime), var(--green-500));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--green-900); font-size: 1.1rem;
}
.navbar-brand img { height: 80px; width: auto; }
.navbar-brand .name { font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.navbar-brand .name small { display:block; font-weight:500; font-size:0.62rem; letter-spacing:1.5px; color: var(--lime); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--lime);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active, .nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(184,242,77,0.18), transparent 60%),
              linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 10% 110%, rgba(255,255,255,0.05), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 110px 24px 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--lime); }
.hero p { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(6,40,28,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-badge .num { font-size: 1.6rem; font-weight: 800; color: var(--lime); }
.hero-badge .lbl { font-size: 0.76rem; color: rgba(255,255,255,0.8); max-width: 130px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 90px 0 70px;
}
.page-hero .eyebrow { color: var(--lime); }
.page-hero .eyebrow::before { background: var(--lime); }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; }
.crumb { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.crumb a { color: var(--lime); font-weight: 600; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--green-900);
  padding: 0;
  transform: translateY(-1px);
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-strip .stat {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stats-strip .stat:first-child { border-left: none; }
.stats-strip .num { font-size: 2rem; font-weight: 800; color: var(--lime); }
.stats-strip .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ===== SECTION SPACING ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--mist); }

.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.service-card h3 { font-size: 1.15rem; color: var(--green-900); margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.93rem; }
.service-card .link { display: inline-flex; align-items:center; gap: 6px; margin-top: 16px; color: var(--green-600); font-weight: 700; font-size: 0.85rem; }

/* ===== ABOUT / SPLIT SECTIONS ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img, .split .media { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.split.reverse { grid-template-columns: 1fr 1fr; direction: rtl; }
.split.reverse > * { direction: ltr; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.check-list li i {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(184,242,77,0.25); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0; margin-top: 3px;
}

/* ===== PROCESS STEPS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: proc;
}
.process-step { position: relative; padding-top: 10px; }
.process-step .step-no {
  counter-increment: proc;
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green-500);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step .step-no::before { content: counter(proc, decimal-leading-zero); }
.process-step h4 { color: var(--green-900); margin-bottom: 8px; }
.process-step p { color: var(--ink-soft); font-size: 0.9rem; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 22px; right: -20px;
  width: 30px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-500) 0 6px, transparent 6px 12px);
  display: none;
}

/* ===== PRODUCT / PROJECT CARDS ===== */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.project-card img { height: 260px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,40,28,0.9), transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.project-card .tag {
  align-self: flex-start;
  background: var(--lime); color: var(--green-900);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 10px;
  text-transform: uppercase;
}
.project-card h4 { color: var(--white); font-size: 1.05rem; }
.project-card span { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

/* ===== WHY CHOOSE / USP ===== */
.usp-card {
  text-align: center;
  padding: 30px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.usp-card .icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.usp-card h4 { color: var(--green-900); font-size: 0.98rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 3px; }
.testimonial-card p { color: var(--ink-soft); font-style: italic; margin-bottom: 20px; }
.testimonial-card .who { display: flex; align-items: center; gap: 14px; }
.testimonial-card .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-800); color: var(--lime);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.testimonial-card strong { color: var(--green-900); display: block; font-size: 0.92rem; }
.testimonial-card span { color: var(--ink-soft); font-size: 0.8rem; }

/* ===== TEAM / VALUES ===== */
.value-card { display: flex; gap: 18px; align-items: flex-start; }
.value-card .icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-900); color: var(--lime);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.value-card h4 { color: var(--green-900); margin-bottom: 6px; }
.value-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== TEAM ===== */
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-sm); }
.team-card img {
  width: 130px; height: 130px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 20px;
  border: 4px solid var(--mist);
}
.team-card h4 { color: var(--green-900); font-size: 1.1rem; margin-bottom: 4px; }
.team-card span { color: var(--green-600); font-weight: 600; font-size: 0.88rem; }

/* ===== CTA BAND ===== */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 90% 10%, rgba(184,242,77,0.25), transparent 60%);
}
.cta-band * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.info-card {
  display: flex; gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.info-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-900); color: var(--lime);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card h4 { color: var(--green-900); margin-bottom: 4px; font-size: 0.95rem; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: 0.9rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.83rem; color: var(--green-900); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem; background: var(--mist);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 14px; font-weight: 600; font-size: 0.9rem; display: none; }
.form-msg.success { color: var(--green-600); display: block; }
.form-msg.error { color: #d64545; display: block; }

.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 24px; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 260px; border: 0; }

/* ===== FOOTER ===== */
footer { background: var(--green-900); color: rgba(255,255,255,0.7); }
.footer-top { padding: 70px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-row img { height: 44px; width: auto; }
.footer-top h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; }
.footer-top p { font-size: 0.9rem; margin-bottom: 16px; }
.footer-top ul li { margin-bottom: 10px; }
.footer-top ul li a { font-size: 0.9rem; transition: color 0.2s; }
.footer-top ul li a:hover { color: var(--lime); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background 0.2s;
}
.social-row a:hover { background: var(--lime); color: var(--green-900); }
.footer-bottom { text-align: center; padding: 22px 0; font-size: 0.82rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding: 80px 24px 60px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-900);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
