/* ============================================================
   SUNSYC ENERGY — STYLES
   ============================================================ */

:root {
  --blue: #0054A6;
  --blue-dark: #003E7E;
  --blue-darker: #002C5A;
  --green: #72BE44;
  --green-dark: #5CA236;
  --light-blue: #EAF4FB;
  --charcoal: #1F2937;
  --gray: #F3F5F7;
  --white: #FFFFFF;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --container-w: 1180px;

  --shadow-sm: 0 2px 10px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 84, 166, 0.12);

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-darker);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: #45505c; }

a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 0.6em;
}
.eyebrow-light { color: var(--green); }

.section-head { max-width: 640px; margin: 0 0 2.5rem; }
.problem-section .section-head,
.solutions-section .section-head,
.products-section .section-head,
.how-section .section-head,
.why-section .section-head,
.partners-section .section-head,
.testimonials-section .section-head,
.faq-section .section-head { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-accent { background: var(--green); color: #0d2a10; box-shadow: 0 8px 24px rgba(114,190,68,0.35); }
.btn-accent:hover { background: var(--green-dark); }

.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--light-blue); }

.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(31,41,55,0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-line1 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--blue); letter-spacing: 0.03em; }
.logo-line2 { font-family: var(--font-display); font-weight: 600; font-size: 0.62rem; color: var(--green-dark); letter-spacing: 0.28em; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--blue-darker); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--light-blue) 0%, #ffffff 78%);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-sub { font-size: 1.05rem; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 460px; height: auto; }

.pulse-slow { animation: pulseSlow 3.2s ease-in-out infinite; transform-origin: 410px 90px; }
@keyframes pulseSlow { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.flow-dash { stroke-dashoffset: 0; animation: dashMove 2.4s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -28; } }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--blue-darker); padding: 22px 0; }
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.trust-item svg { flex-shrink: 0; }

/* ---------- Problem section ---------- */
.problem-section { padding: 88px 0; background: var(--white); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.problem-list li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--gray);
  position: relative;
  font-weight: 500;
}
.problem-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 2px;
}
.problem-callout {
  background: var(--light-blue);
  border-left: 4px solid var(--blue);
  padding: 28px 30px;
  border-radius: var(--radius-md);
  align-self: center;
}
.problem-callout p { font-size: 1.15rem; font-weight: 600; color: var(--blue-darker); margin: 0; }

/* ---------- Solutions ---------- */
.solutions-section { padding: 88px 0; background: var(--gray); }
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.solution-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.solution-card-accent { border-top-color: var(--green); }
.solution-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--light-blue); border-radius: 10px; margin-bottom: 16px; }
.solution-card-accent .solution-icon { background: #edf7e5; }
.card-link { display: inline-block; margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--blue); cursor: pointer; }
.card-link:hover { color: var(--green-dark); }

/* ---------- Products ---------- */
.products-section { padding: 88px 0; background: var(--gray); }
.product-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--light-blue);
  background: #fff;
  color: var(--blue-darker);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--blue); }
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff;
  border: 1px solid var(--gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--light-blue), #dcecf9);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 0.72rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); }
.product-body h3 { font-size: 1rem; margin-bottom: 2px; }
.product-brand { font-size: 0.8rem; color: #6b7686; margin: 0; }
.product-desc { font-size: 0.88rem; margin: 4px 0 8px; }
.product-spec { font-size: 0.78rem; color: #6b7686; margin: 0 0 12px; font-style: italic; }
.product-price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--blue-darker); margin: 0 0 12px; }
.product-price-muted { font-weight: 600; font-size: 0.85rem; font-style: italic; color: #8ea1b3; }
.product-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--blue);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.product-cta:hover { background: var(--blue-dark); }

/* ---------- Recommendation section ---------- */
.recommend-section {
  background: linear-gradient(120deg, var(--blue-darker), var(--blue));
  padding: 88px 0;
  color: #fff;
}
.recommend-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.recommend-inner h2 { color: #fff; }
.recommend-sub { color: #d9e8f7; font-size: 1.05rem; max-width: 56ch; margin-left: auto; margin-right: auto; }
.use-case-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 34px; }
.use-case-chips li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- How it works ---------- */
.how-section { padding: 88px 0; background: var(--white); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: none; }
.how-steps li { padding: 8px 6px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--light-blue); -webkit-text-stroke: 1.5px var(--blue); display: block; margin-bottom: 8px; }

/* ---------- Why Sunsyc ---------- */
.why-section { padding: 88px 0; background: var(--gray); }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-card { background: #fff; padding: 24px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.why-card h3 { font-size: 1rem; }
.why-card p { font-size: 0.88rem; }

/* ---------- Partners ---------- */
.partners-section { padding: 80px 0; text-align: center; }
.partners-note { font-size: 0.9rem; color: #6b7686; }
.partners-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.partner-tile {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-darker);
  background: var(--light-blue);
  padding: 22px 40px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
}
.partner-tile-add { background: transparent; border: 1.5px dashed #c7d5e2; color: #8ea1b3; font-weight: 600; font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonials-section { padding: 88px 0; background: var(--gray); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--gray);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  margin: 0;
  border-left: 3px solid var(--green);
}
.testimonial-card p { font-style: italic; color: var(--charcoal); }
.testimonial-card cite { font-size: 0.82rem; font-weight: 600; color: #6b7686; font-style: normal; }
.testimonial-card-photo {
  padding: 0;
  overflow: hidden;
  border-left: none;
  border-top: 3px solid var(--green);
  display: flex;
  flex-direction: column;
}
.testimonial-card-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.testimonial-card-photo figcaption {
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-darker);
  background: var(--white);
}
.testimonial-media-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: #8ea1b3;
  border: 1.5px dashed #d7e2ec;
  border-radius: var(--radius-md);
  padding: 20px;
}
.testimonial-media-note p { margin: 0; color: inherit; }

/* ---------- FAQ ---------- */
.faq-section { padding: 88px 0; background: var(--gray); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #dfe6ec; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-darker);
}
.faq-icon { font-size: 1.3rem; color: var(--green); transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding: 0 4px 20px; margin: 0; }

/* ---------- Final CTA + form ---------- */
.final-section { padding: 88px 0; background: var(--charcoal); color: #fff; }
.final-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #cbd3db; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4rem; }

.quote-form { background: #fff; border-radius: var(--radius-md); padding: 30px; color: var(--charcoal); }
.quote-form h3 { margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #dfe6ec;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #fbfcfd;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--blue); outline: none; }
.form-note { font-size: 0.76rem; color: #8ea1b3; margin-top: 12px; }
.form-success { display: none; margin-top: 16px; padding: 16px; background: var(--light-blue); border-radius: var(--radius-sm); }
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-darker); color: #cfe0f0; padding: 60px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-tagline { color: var(--green); font-size: 0.85rem; margin-top: 10px; font-weight: 500; }
.footer-col h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-col p { color: #a9c0d6; font-size: 0.88rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { font-size: 0.85rem; color: #a9c0d6; }
.footer-social a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { color: #7c98b4; font-size: 0.8rem; margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Mobile sticky bar ---------- */
.mobile-sticky-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto 8px; }
  .final-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 24px 20px; gap: 4px; border-bottom: 1px solid var(--gray); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  body { padding-bottom: 62px; } /* room for sticky bar */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray);
    padding: 10px 14px;
    gap: 10px;
    z-index: 95;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  }
  .sticky-btn { flex: 1; text-align: center; padding: 12px 10px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
  .sticky-btn-primary { background: #25D366; color: #fff; }
  .sticky-btn-outline { border: 1.5px solid var(--blue); color: var(--blue); }
  .whatsapp-float { bottom: 78px; }
}

@media (max-width: 480px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .problem-section, .solutions-section, .products-section, .how-section, .why-section, .partners-section, .testimonials-section, .faq-section, .final-section, .recommend-section { padding: 56px 0; }
}
