/* ==========================================================
   Senthil Green Power Pvt. Ltd. (SGP)
   Colours and imagery taken from the SGP flyer
   ========================================================== */

:root {
  --dark: #383838;         /* logo text */
  --ink: #231f20;          /* tagline */
  --heading: #404040;
  --orange: #f08838;       /* logo swoosh */
  --orange-dark: #d96f1f;
  --green: #6ca844;        /* logo swoosh */
  --navy: 16, 17, 43;      /* "What do we plan to do?" panel */
  --card: #d3d2d7;         /* service cards */
  --cream: #fdfce8;
  --text: #4a4a4a;
  --header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--orange-dark); }

h1, h2, h3 { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { width: auto; height: 52px; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--dark);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover,
.main-nav a.current { color: var(--orange); }
.main-nav a.current::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--dark);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border: 2px solid var(--orange);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, calc(100vh - var(--header-h)), 760px);
  padding-block: 60px;
  background: var(--cream) url('../images/hero.jpg') 70% center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253, 252, 232, .85) 0%, rgba(253, 252, 232, .55) 35%, rgba(253, 252, 232, 0) 60%);
}
.hero .container { position: relative; }

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.5px;
  color: var(--ink);
}
.eyebrow {
  display: block;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}
.line { display: block; }
.bold { font-weight: 700; }
.indent-1 { padding-left: .5em; }
.indent-2 { padding-left: .95em; }

.hero-lead {
  max-width: 440px;
  margin: 28px 0 0;
  font-size: 18px;
  color: #3a3a3a;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- About + plan ---------- */
.about {
  position: relative;
  padding: 100px 0;
  background: rgb(var(--navy)) url('../images/panels.jpg') center / cover no-repeat;
  color: #fff;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 30, .8) 0%, rgba(10, 10, 30, .6) 55%, rgba(10, 10, 30, .4) 100%);
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.about h3 {
  margin: 40px 0 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.about p { margin: 0 0 16px; color: rgba(255, 255, 255, .9); }

.plan-box {
  padding: 44px 40px;
  background: rgba(var(--navy), .88);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.plan-box h2 { font-size: clamp(32px, 3.4vw, 46px); }
.plan-box h3 { margin-top: 0; }
.plan-box hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .5); margin: 30px 0; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.stat { padding: 4px 0 4px 14px; border-left: 3px solid var(--orange); }
.stat strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.2; color: #fff; }
.stat span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* ---------- Services ---------- */
.services { padding: 100px 0; background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 50px;
  align-items: start;
}
.services-title {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  color: var(--heading);
}
.services-title span { display: block; }
.services-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  background: var(--card);
}
.card img { width: 132px; height: 132px; object-fit: cover; flex-shrink: 0; }
.card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #262529; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: #262529; }

/* ---------- Contact ---------- */
.contact {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, #fdf3c4 55%, #f9d77a 100%);
  text-align: center;
}
.contact h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--heading);
}
.contact-lead { margin: 0 0 40px; color: #555; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.contact-item {
  padding: 28px 18px;
  background: rgba(255, 255, 255, .75);
  border-radius: 4px;
}
.contact-icon { display: block; width: 36px; height: 36px; margin: 0 auto 12px; fill: var(--orange); }
.contact-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--heading);
}
.contact-item address { font-style: normal; }
.contact-item a { color: var(--ink); overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #bbb; font-size: 14px; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 30px;
  padding-block: 24px;
}
.footer-row p { margin: 0; }
.footer-row p a { color: #ddd; }
.footer-row p a:hover { color: var(--orange); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-menu a { color: #ddd; }
.footer-menu a:hover { color: var(--orange); }

/* ---------- Back to top ---------- */
.go-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s;
}
.go-top.is-visible { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--orange); }
.go-top svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 360px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 16px 10px; }
  .main-nav a { padding: 13px 4px; border-top: 1px solid #eee; }
  .main-nav a::after { display: none; }

  .about-grid,
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 50px; }
  .services-grid { gap: 30px; }
  .services-title span { display: inline; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --header-h: 70px; }
  .logo img { height: 44px; }

  .hero { background-position: 72% center; align-items: flex-start; padding-block: 50px 220px; }
  .hero::before { background: linear-gradient(180deg, rgba(253, 252, 232, .92) 0%, rgba(253, 252, 232, .7) 50%, rgba(253, 252, 232, 0) 80%); }
  .hero-lead { font-size: 16px; }

  .about,
  .services { padding: 60px 0; }
  .plan-box { padding: 32px 22px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card img { width: clamp(88px, 28vw, 132px); height: clamp(88px, 28vw, 132px); }
  .card > div { min-width: 0; }
  .contact { padding-top: 60px; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-row { flex-direction: column; text-align: center; }
  .footer-menu { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
