/* =========================================================
   GT HAITI SOLAR HOMEPAGE STYLES
   All selectors scoped under .sp-home to avoid theme clashes
   ========================================================= */

.sp-home {
  --sp-primary: #16a34a;      /* GT Haiti Solar eco green */
  --sp-primary-dark: #15803d;
  --sp-secondary: #1e293b;    /* dark slate */
  --sp-secondary-2: #334155;
  --sp-dark: #0f172a;
  --sp-text: #475569;
  --sp-light: #f8fafc;
  --sp-white: #ffffff;
  --sp-border: #e2e8f0;
  --sp-radius: 14px;
  --sp-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --sp-heading-font: "Poppins", sans-serif;
  --sp-body-font: "Inter", sans-serif;

  font-family: var(--sp-body-font);
  color: var(--sp-text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.sp-home img { max-width: 100%; display: block; }
.sp-home a { text-decoration: none; }
.sp-home h1, .sp-home h2, .sp-home h3 {
  font-family: var(--sp-heading-font);
  color: var(--sp-dark);
  line-height: 1.25;
  margin: 0 0 14px;
}
.sp-home p { margin: 0 0 16px; }

.sp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sp-section { padding: 90px 0; }

.sp-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.sp-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--sp-heading-font);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.sp-btn--primary { background: var(--sp-primary); color: var(--sp-dark); }
.sp-btn--primary:hover { background: var(--sp-primary-dark); color: var(--sp-dark); transform: translateY(-2px); }
.sp-btn--outline { border-color: var(--sp-secondary); color: var(--sp-secondary); background: transparent; }
.sp-btn--outline:hover { background: var(--sp-secondary); color: var(--sp-white); }
.sp-btn--dark { background: var(--sp-dark); color: var(--sp-white); }
.sp-btn--dark:hover { background: var(--sp-secondary); color: var(--sp-white); }

/* ---------- Common headings ---------- */
.sp-eyebrow {
  display: inline-block;
  font-family: var(--sp-heading-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sp-primary-dark);
  margin-bottom: 10px;
}
.sp-eyebrow--light { color: var(--sp-primary); }
.sp-heading { font-size: 40px; font-weight: 700; }
.sp-heading--light { color: var(--sp-white) !important; }

.sp-section-head { text-align: center; max-width: 650px; margin: 0 auto 50px; }
.sp-section-head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  max-width: none; text-align: left; gap: 20px;
}
.sp-section-head--row .sp-heading { margin-bottom: 0; }

/* ================= HERO ================= */
.sp-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  padding: 80px 0 100px;
  position: relative;
}
.sp-hero::before {
  content: "";
  position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,.25), transparent 70%);
}
.sp-hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
  position: relative;
}
.sp-badge {
  display: inline-block; background: var(--sp-white); color: var(--sp-secondary);
  font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 50px;
  box-shadow: var(--sp-shadow); margin-bottom: 22px;
}
.sp-hero__title { font-size: 56px; font-weight: 800; letter-spacing: -1px; }
.sp-hero__title span { color: var(--sp-primary); }
.sp-hero__text { font-size: 18px; max-width: 540px; margin-bottom: 30px; }
.sp-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.sp-hero__trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 32px; flex-wrap: wrap;
}
.sp-hero__trust li { font-size: 14px; }
.sp-hero__trust strong {
  display: block; font-family: var(--sp-heading-font);
  font-size: 24px; color: var(--sp-secondary);
}
.sp-hero__media { position: relative; }
.sp-hero__media img {
  border-radius: 24px; width: 100%; height: 500px; object-fit: cover;
  box-shadow: 0 25px 60px rgba(15,23,42,.2);
}
.sp-hero__card {
  position: absolute; bottom: 30px; left: -30px;
  background: var(--sp-white); border-radius: var(--sp-radius);
  padding: 16px 22px; display: flex; gap: 14px; align-items: center;
  box-shadow: var(--sp-shadow);
}
.sp-hero__card-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sp-primary); display: grid; place-items: center; font-size: 22px;
}
.sp-hero__card strong { display: block; color: var(--sp-dark); font-family: var(--sp-heading-font); }
.sp-hero__card small { font-size: 13px; }

/* ================= STATS ================= */
.sp-stats { background: var(--sp-secondary); padding: 40px 0; }
.sp-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sp-stat { text-align: center; color: rgba(255,255,255,.8); border-right: 1px solid rgba(255,255,255,.15); }
.sp-stat:last-child { border-right: none; }
.sp-stat strong {
  display: block; font-family: var(--sp-heading-font);
  font-size: 34px; color: var(--sp-primary); font-weight: 700;
}
.sp-stat span { font-size: 14px; }

/* ================= ABOUT ================= */
.sp-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sp-about__media { position: relative; }
.sp-about__media img { border-radius: 24px; height: 520px; width: 100%; object-fit: cover; }
.sp-about__experience {
  position: absolute; right: -20px; bottom: 40px;
  background: var(--sp-primary); color: var(--sp-dark);
  padding: 24px 28px; border-radius: var(--sp-radius); text-align: center;
  box-shadow: var(--sp-shadow); max-width: 170px;
}
.sp-about__experience strong { display: block; font-family: var(--sp-heading-font); font-size: 40px; line-height: 1; }
.sp-about__experience span { font-size: 14px; font-weight: 600; }
.sp-checklist { list-style: none; padding: 0; margin: 0 0 30px; }
.sp-checklist li {
  position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--sp-dark); font-weight: 500;
}
.sp-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sp-secondary); color: var(--sp-white);
  font-size: 12px; display: grid; place-items: center;
}

/* ================= SERVICES ================= */
.sp-services { background: var(--sp-light); }
.sp-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sp-card {
  background: var(--sp-white); border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius); padding: 36px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow); border-color: var(--sp-primary); }
.sp-card__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: #dcfce7; display: grid; place-items: center;
  font-size: 30px; margin-bottom: 22px;
}
.sp-card h3 { font-size: 21px; }
.sp-card__link { color: var(--sp-secondary); font-weight: 600; font-size: 15px; }
.sp-card__link:hover { color: var(--sp-primary-dark); }

/* ================= WHY CHOOSE US ================= */
.sp-why { background: linear-gradient(135deg, var(--sp-secondary) 0%, var(--sp-dark) 100%); color: rgba(255,255,255,.8); }
.sp-why__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.sp-why__features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sp-feature {
  display: flex; gap: 16px; padding: 26px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--sp-radius);
}
.sp-feature__num { font-family: var(--sp-heading-font); font-size: 28px; font-weight: 700; color: var(--sp-primary); }
.sp-feature h3 { color: var(--sp-white); font-size: 18px; margin-bottom: 6px; }
.sp-feature p { margin: 0; font-size: 14px; }

/* ================= PROCESS ================= */
.sp-process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.sp-process__grid::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%;
  border-top: 2px dashed var(--sp-primary); z-index: 0;
}
.sp-step { text-align: center; position: relative; z-index: 1; }
.sp-step__circle {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--sp-white); border: 3px solid var(--sp-primary);
  display: grid; place-items: center;
  font-family: var(--sp-heading-font); font-size: 26px; font-weight: 700; color: var(--sp-secondary);
}
.sp-step h3 { font-size: 19px; }
.sp-step p { font-size: 15px; }

/* ================= CTA BAND ================= */
.sp-cta-band { background: var(--sp-primary); padding: 60px 0; }
.sp-cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.sp-cta-band h2 { font-size: 32px; margin-bottom: 8px; }
.sp-cta-band p { margin: 0; color: var(--sp-dark); }

/* ================= PROJECTS ================= */
.sp-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sp-project { position: relative; border-radius: var(--sp-radius); overflow: hidden; display: block; }
.sp-project img { width: 100%; height: 340px; object-fit: cover; transition: transform .5s ease; }
.sp-project:hover img { transform: scale(1.07); }
.sp-project__info {
  position: absolute; inset: auto 0 0 0; padding: 26px;
  background: linear-gradient(to top, rgba(15,23,42,.92), transparent);
}
.sp-project__info span { color: var(--sp-primary); font-size: 13px; font-weight: 600; }
.sp-project__info h3 { color: var(--sp-white); font-size: 20px; margin: 4px 0 0; }

/* ================= TESTIMONIALS ================= */
.sp-testimonials { background: var(--sp-light); }
.sp-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sp-quote {
  margin: 0; background: var(--sp-white); border-radius: var(--sp-radius);
  padding: 32px; box-shadow: var(--sp-shadow); border: none;
}
.sp-quote__stars { color: var(--sp-primary); font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.sp-quote p { font-style: italic; color: var(--sp-dark); }
.sp-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.sp-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sp-secondary); color: var(--sp-white);
  display: grid; place-items: center; font-weight: 700; font-family: var(--sp-heading-font);
}
.sp-quote footer strong { display: block; color: var(--sp-dark); font-size: 15px; }
.sp-quote footer small { font-size: 13px; }

/* ================= BLOG ================= */
.sp-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sp-post {
  background: var(--sp-white); border-radius: var(--sp-radius); overflow: hidden;
  border: 1px solid var(--sp-border); transition: box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.sp-post:hover { box-shadow: var(--sp-shadow); }
.sp-post__img { display: block; overflow: hidden; }
.sp-post__img img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.sp-post:hover .sp-post__img img { transform: scale(1.05); }
.sp-post__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.sp-post__cat {
  align-self: flex-start; background: #dcfce7; color: var(--sp-primary-dark);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.sp-post h3 { font-size: 19px; }
.sp-post h3 a { color: var(--sp-dark); }
.sp-post h3 a:hover { color: var(--sp-secondary); }
.sp-post p { font-size: 15px; }
.sp-post__meta { margin-top: auto; font-size: 13px; color: #64748b; }

/* ================= FAQ ================= */
.sp-faq__wrap { max-width: 820px; }
.sp-faq__item {
  border: 1px solid var(--sp-border); border-radius: var(--sp-radius);
  margin-bottom: 14px; background: var(--sp-white); overflow: hidden;
}
.sp-faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--sp-heading-font); font-weight: 600; color: var(--sp-dark); font-size: 17px;
}
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sp-light); color: var(--sp-secondary);
  display: grid; place-items: center; font-size: 20px; transition: transform .3s ease;
}
.sp-faq__item[open] summary::after { content: "−"; background: var(--sp-primary); color: var(--sp-dark); }
.sp-faq__item[open] { border-color: var(--sp-primary); }
.sp-faq__item p { padding: 0 24px 20px; margin: 0; }

/* ================= NEWSLETTER ================= */
.sp-newsletter { background: var(--sp-secondary); padding: 70px 0; text-align: center; }
.sp-newsletter h2 { color: var(--sp-white); font-size: 32px; }
.sp-newsletter p { color: rgba(255,255,255,.8); }
.sp-newsletter__form { display: flex; gap: 12px; max-width: 520px; margin: 26px auto 0; }
.sp-newsletter__form input {
  flex: 1; padding: 14px 22px; border-radius: 50px; border: none;
  font-size: 15px; font-family: var(--sp-body-font); outline: none; min-width: 0;
}
.sp-newsletter__form input:focus { box-shadow: 0 0 0 3px var(--sp-primary); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet & small laptops */
@media (max-width: 1024px) {
  .sp-section { padding: 70px 0; }
  .sp-hero__title { font-size: 44px; }
  .sp-heading { font-size: 34px; }
  .sp-hero__grid, .sp-about__grid, .sp-why__grid { gap: 40px; }
  .sp-services__grid, .sp-testimonials__grid, .sp-blog__grid { grid-template-columns: repeat(2, 1fr); }
  .sp-projects__grid { grid-template-columns: repeat(2, 1fr); }
  .sp-process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .sp-process__grid::before { display: none; }
  .sp-why__grid { grid-template-columns: 1fr; }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .sp-hero { padding: 60px 0 70px; }
  .sp-hero__grid, .sp-about__grid { grid-template-columns: 1fr; }
  .sp-hero__content { text-align: center; }
  .sp-hero__text { margin-left: auto; margin-right: auto; }
  .sp-hero__buttons, .sp-hero__trust { justify-content: center; }
  .sp-hero__media img { height: 400px; }
  .sp-hero__card { left: 20px; bottom: 20px; }
  .sp-about__media img { height: 420px; }
  .sp-about__experience { right: 20px; }
  .sp-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .sp-stat:nth-child(2) { border-right: none; }
  .sp-cta-band__inner { flex-direction: column; text-align: center; }
}

/* Mobile */
@media (max-width: 600px) {
  .sp-section { padding: 56px 0; }
  .sp-container { padding: 0 16px; }
  .sp-hero__title { font-size: 34px; }
  .sp-heading { font-size: 28px; }
  .sp-hero__text { font-size: 16px; }
  .sp-hero__buttons { flex-direction: column; }
  .sp-hero__buttons .sp-btn { width: 100%; }
  .sp-hero__trust { gap: 20px; }
  .sp-hero__trust strong { font-size: 20px; }
  .sp-hero__media img { height: 300px; }
  .sp-hero__card { padding: 12px 16px; }

  .sp-stat { border-right: none; }
  .sp-stat strong { font-size: 28px; }

  .sp-about__media img { height: 320px; }
  .sp-about__experience { padding: 16px 20px; bottom: 20px; }
  .sp-about__experience strong { font-size: 30px; }

  .sp-services__grid, .sp-testimonials__grid, .sp-blog__grid,
  .sp-projects__grid, .sp-process__grid, .sp-why__features { grid-template-columns: 1fr; }
  .sp-card { padding: 28px 24px; }
  .sp-project img { height: 260px; }

  .sp-section-head { margin-bottom: 36px; }
  .sp-section-head--row { flex-direction: column; align-items: flex-start; }

  .sp-cta-band h2, .sp-newsletter h2 { font-size: 26px; }
  .sp-cta-band .sp-btn { width: 100%; }

  .sp-newsletter__form { flex-direction: column; }
  .sp-newsletter__form .sp-btn { width: 100%; }

  .sp-faq__item summary { font-size: 16px; padding: 18px 52px 18px 18px; }
  .sp-faq__item p { padding: 0 18px 18px; }
}
