/* =========================================================
   Lueo Renewables: brand styles
   Palette sampled from the logo: navy wordmark, leaf green,
   teal and deep blue of the cable ring.
   ========================================================= */
:root {
  --navy: #002453;
  --navy-2: #0f3f66;
  --blue: #154a6b;
  --teal: #1ec3d3;
  --teal-dark: #128a99;
  --green: #5cc83b;
  --green-dark: #3aa035;
  --ink: #0e2340;
  --muted: #53657d;
  --line: #e2e9f0;
  --bg: #ffffff;
  --tint: #f3f8f6;
  --tint-2: #eef6fa;

  --grad: linear-gradient(120deg, var(--green) 0%, var(--teal) 55%, var(--navy-2) 100%);
  --grad-soft: linear-gradient(135deg, #eaf8e6 0%, #e2f6f8 60%, #e6eef7 100%);

  --font-head: "Quicksand", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(0, 36, 83, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 36, 83, .28);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 36, 83, .55);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--green-dark); margin-bottom: .9em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--grad); vertical-align: middle; margin-right: 10px; transform: translateY(-2px);
}
.eyebrow-light { color: #8fe06a; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0, 36, 83, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 56px; width: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  transition: background-color .2s ease;
}
.site-nav a:not(.btn):hover, .site-nav a.active { background: var(--tint-2); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .25s ease, opacity .2s ease; }
.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 { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(30, 195, 211, .14), transparent 70%),
    radial-gradient(500px 380px at 10% 90%, rgba(92, 200, 59, .14), transparent 70%),
    #fff;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats li {
  flex: 1 1 150px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.hero-stats strong {
  display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { font-size: .9rem; color: var(--muted); line-height: 1.35; display: block; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 36, 83, .12)); }
.sun { animation: pulse 6s ease-in-out infinite; transform-origin: 355px 118px; }
.bolt { animation: flicker 3.5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 10px 18px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy);
  box-shadow: var(--shadow-lg); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero-badge-1 { top: 12%; left: -4%; }
.hero-badge-2 { bottom: 10%; right: -2%; animation-delay: -3s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(92, 200, 59, .2); }
.dot-teal { background: var(--teal); box-shadow: 0 0 0 4px rgba(30, 195, 211, .2); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Strip ---------- */
.strip { background: var(--navy); color: #fff; }
.strip-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding-top: 18px; padding-bottom: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.strip-inner span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.strip-inner span:nth-child(even)::before { background: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-tint { background: var(--grad-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::after { transform: scaleX(1); }
.card p { color: var(--muted); }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
}
.card-icon svg, .mini-icon svg, .contact-ico svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-navy { background: #e6edf7; color: var(--navy); }
.icon-green { background: #e8f7e2; color: var(--green-dark); }
.icon-teal { background: #e0f6f8; color: var(--teal-dark); }
.card-link { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--navy); }
.card-link span { display: inline-block; transition: transform .2s ease; }
.card-link:hover span { transform: translateX(4px); }

.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mini-card h3 { font-size: 1.1rem; }
.mini-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.mini-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--grad); color: #fff;
}
.mini-icon svg { width: 24px; height: 24px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- HV / navy section ---------- */
.section-navy { background: var(--navy); color: #d6e2f0; overflow: hidden; }
.section-navy h2, .section-navy h4 { color: #fff; }
.section-navy-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(30, 195, 211, .22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(92, 200, 59, .18), transparent 70%);
}
.section-navy .container { position: relative; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad);
}
.checklist li::after {
  content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.checklist-light li { color: #fff; }

.hv-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.hv-steps::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--green), var(--teal), #3d78b0);
}
.hv-steps li {
  position: relative; display: flex; gap: 20px; align-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm); padding: 14px 20px 14px 0;
  backdrop-filter: blur(4px);
}
.hv-num {
  flex: 0 0 56px; height: 56px; margin-left: -1px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); background: #fff;
  box-shadow: 0 0 0 5px var(--navy);
}
.hv-steps h4 { margin: 0 0 2px; font-size: 1.1rem; }
.hv-steps p { margin: 0; font-size: .95rem; color: #bcd0e4; }

/* ---------- Inverters ---------- */
.makers {
  list-style: none; padding: 0; margin: 0 auto 40px; max-width: 960px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.makers li {
  background: #fff; border-radius: var(--radius-sm); padding: 26px 12px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  flex: 1 1 150px; max-width: 180px;
  transition: transform .2s ease;
}
.makers li:hover { transform: translateY(-4px); }
.inverter-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.inverter-types > div {
  background: rgba(255, 255, 255, .7); border-radius: var(--radius); padding: 28px 30px;
  border-left: 5px solid var(--teal);
}
.inverter-types > div:first-child { border-left-color: var(--green); }
.inverter-types p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.split-about { grid-template-columns: .9fr 1.1fr; }
.about-visual { position: relative; display: grid; place-items: center; padding: 20px; }
.about-ring {
  width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-soft); display: grid; place-items: center;
  box-shadow: inset 0 0 0 14px #fff, var(--shadow-lg);
}
.about-ring img { width: 58%; height: auto; }
.about-years {
  position: absolute; right: 0; bottom: 0;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-lg); max-width: 170px;
}
.about-years strong {
  display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1;
  background: linear-gradient(90deg, #8fe06a, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-years span { font-size: .9rem; line-height: 1.3; display: block; margin-top: 4px; }
#about .split-copy > p { color: var(--muted); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(30, 195, 211, .25), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(92, 200, 59, .22), transparent 70%),
    var(--navy);
  color: #d6e2f0;
}
.section-contact h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-inner--solo { grid-template-columns: 1fr; max-width: 900px; }
.contact-inner--solo .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.contact-form[hidden] { display: none; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-ico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #8fe06a;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-list address { font-style: normal; line-height: 1.5; }
.contact-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8fe06a; font-weight: 700; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; background: #fbfdfe;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(30, 195, 211, .18); background: #fff;
}
.field .invalid { border-color: #d64545; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note a { color: inherit; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-note { margin: 12px 0 0; font-size: .95rem; min-height: 1.5em; color: var(--muted); }
.form-note.ok { color: var(--green-dark); font-weight: 700; }
.form-note.err { color: #c23a3a; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #f5f8fb; border-top: 1px solid var(--line); padding: 64px 0 0; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34em; }
.footer-address { font-style: normal; font-size: .95rem; line-height: 1.6; }
.footer-address strong { color: var(--navy); }
.footer-col h4 { font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 24px; font-size: .92rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--navy); font-weight: 700; text-decoration: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-badge-1 { left: 0; }
  .hero-badge-2 { right: 0; }
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 480px; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 4px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 14px; }
  .site-nav .btn { margin: 10px 0 0; }

  .hero { padding: 48px 0 72px; }
  .hero-inner, .split, .split-about, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .cards-3 { grid-template-columns: 1fr; }
  .inverter-types { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 76px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand img { height: 46px; }
  .cards-4 { grid-template-columns: 1fr; }
  .makers li { flex-basis: 40%; max-width: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-inner--solo .contact-list { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .hero-badge { font-size: .8rem; padding: 8px 14px; }
  .strip-inner { justify-content: flex-start; }
  .about-years { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
