/* ElectroBros — landing page styles */

/* ---------- Palette: Cupru (default) ---------- */
:root {
  --eb-ink: #0F2B2E;
  --eb-deep: #0A1F21;
  --eb-card: #173A3E;
  --eb-line: #2A5257;
  --eb-grid-line: rgba(240,138,75,0.07);
  --eb-accent: #F08A4B;
  --eb-accent-line: rgba(10,31,33,0.08);
  --eb-on-accent: #0A1F21;
  --eb-text: #FFFFFF;
  --eb-soft: #CFDEDC;
  --eb-muted: #A9C2BF;
  --eb-light: #F2F5F4;
  --eb-light-text: #0F2B2E;
  --eb-light-muted: #4F6260;
  --eb-grid: #8FB8F0;
  --eb-battery: #5FD3A1;
}

/* ---------- Palette: Volt (switch with <html data-palette="volt">) ---------- */
:root[data-palette="volt"] {
  --eb-ink: #0B1220;
  --eb-deep: #070C17;
  --eb-card: #1A2438;
  --eb-line: #2A3550;
  --eb-grid-line: rgba(255,212,0,0.06);
  --eb-accent: #FFD400;
  --eb-accent-line: rgba(11,18,32,0.08);
  --eb-on-accent: #0B1220;
  --eb-text: #FFFFFF;
  --eb-soft: #C9D1DE;
  --eb-muted: #A8B3C7;
  --eb-light: #F4F6F9;
  --eb-light-text: #0B1220;
  --eb-light-muted: #5B6678;
  --eb-grid: #8FB8F0;
  --eb-battery: #3DDC97;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--eb-ink); }
a { color: inherit; }
a:hover { opacity: .85; }

.eb-page {
  font-family: Inter, system-ui, sans-serif;
  color: var(--eb-text);
  background: var(--eb-ink);
  min-height: 100vh;
  overflow-x: hidden;
}

section[id] { scroll-margin-top: 16px; }

.eb-display { font-family: 'Space Grotesk', sans-serif; }

.eb-wrap { max-width: 1240px; margin: 0 auto; }

.eb-h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.eb-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eb-skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--eb-accent);
  color: var(--eb-on-accent);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.eb-skip:focus { top: 16px; }

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--eb-accent);
  outline-offset: 3px;
}
/* Rings on accent / light backgrounds need a contrasting color */
.eb-on-accent-area > div a:focus-visible { outline-color: var(--eb-on-accent); }
#servicii a:focus-visible { outline-color: var(--eb-light-text); }

/* ---------- Header ---------- */
.eb-header {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.eb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 15px;
  font-weight: 500;
}
.eb-nav a {
  color: var(--eb-soft);
  text-decoration: none;
  padding: 10px 0;
}
@media (max-width: 760px) {
  .eb-nav { display: none; }
}

.eb-grid-bg {
  background-image:
    linear-gradient(var(--eb-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--eb-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Hero ---------- */
.eb-hero-status {
  grid-area: 1 / 1;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--eb-card);
  border: 1px solid var(--eb-line);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.eb-hero-status svg { flex-shrink: 0; }

/* ---------- Marquee ---------- */
.eb-marquee-group {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding-right: 28px;
}

/* ---------- Services ---------- */
.eb-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.eb-service {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.eb-service > img {
  flex-shrink: 0;
  margin: -28px -28px 6px;
  width: calc(100% + 56px);
  height: 200px;
  object-fit: cover;
  display: block;
}
.eb-service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--eb-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: -50px;
  box-shadow: 0 0 0 4px #FFFFFF;
  flex-shrink: 0;
}
.eb-service h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
}
.eb-service p {
  margin: 0;
  color: var(--eb-light-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Brands ---------- */
.eb-brand {
  height: 92px;
  border-radius: 16px;
  background: var(--eb-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
}
.eb-brand img { max-width: 100%; object-fit: contain; }

/* ---------- Gallery ---------- */
.eb-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.eb-shot {
  margin: 0;
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--eb-card);
}
.eb-shot-wide { flex: 2 1 520px; }
.eb-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eb-shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  background: var(--eb-ink);
  color: var(--eb-text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- PowerFlow mount ---------- */
.eb-powerflow {
  width: 100%;
  min-height: 560px;
}

/* ---------- About ---------- */
.eb-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
}
.eb-about-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.eb-badge {
  position: relative;
  width: 112px;
  height: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eb-badge-ring { position: absolute; inset: 0; }
.eb-badge-core {
  width: 84px;
  height: 84px;
  border-radius: 99px;
  background: var(--eb-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eb-about-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
}
.eb-about-text {
  color: var(--eb-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Steps ---------- */
.eb-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eb-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eb-step-track {
  height: 4px;
  background: var(--eb-line);
  border-radius: 4px;
  overflow: hidden;
}
.eb-step-track > div {
  height: 100%;
  background: var(--eb-accent);
}
.eb-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--eb-accent);
}
.eb-step-title { font-size: 19px; font-weight: 600; }
.eb-step-text { font-size: 15px; color: var(--eb-muted); line-height: 1.6; }

/* ---------- Contact form ---------- */
.eb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.eb-field input,
.eb-field select {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 14px;
  border: 1px solid var(--eb-line);
  border-radius: 10px;
  background: var(--eb-card);
  color: var(--eb-text);
  min-width: 0;
}
.eb-field input::placeholder { color: var(--eb-muted); opacity: 1; }
.eb-field input[aria-invalid="true"] { border-color: var(--eb-accent); }
.eb-form-note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--eb-soft);
}
.eb-form-note:empty { display: none; }
.eb-form-note[data-state="error"] { color: var(--eb-accent); }

/* ---------- Footer ---------- */
.eb-footer { border-top: 1px solid var(--eb-line); }

/* ---------- Animations (from source) ---------- */
@keyframes ebUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes ebFlow{to{stroke-dashoffset:-32}}
@keyframes ebSpin{to{transform:rotate(360deg)}}
@keyframes ebBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes ebPulse{0%{transform:scale(1);opacity:.75}100%{transform:scale(1.45);opacity:0}}
@keyframes ebGlow{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes ebShine{0%,72%,100%{opacity:0}82%{opacity:.75}}
@keyframes ebFill{0%{transform:scaleY(.2)}70%,100%{transform:scaleY(1)}}
@keyframes ebMarquee{to{transform:translateX(-50%)}}
@keyframes ebGrid{to{background-position:48px 48px}}
@keyframes ebBar{0%{transform:scaleX(0)}55%,100%{transform:scaleX(1)}}
@keyframes ebFlicker{0%,90%,100%{opacity:1}92%{opacity:.3}94%{opacity:1}96%{opacity:.55}}

.eb-up{animation:ebUp .9s cubic-bezier(.2,.7,.2,1) both}
.eb-flow{stroke-dasharray:6 10;animation:ebFlow 1s linear infinite}
.eb-spin{transform-box:fill-box;transform-origin:center;animation:ebSpin 16s linear infinite}
.eb-bob{animation:ebBob 4.5s ease-in-out infinite}
.eb-pulse{transform-box:fill-box;transform-origin:center;animation:ebPulse 2s ease-out infinite}
.eb-glow{animation:ebGlow 2.6s ease-in-out infinite}
.eb-shine{animation:ebShine 3.2s ease-in-out infinite}
.eb-fill{transform-box:fill-box;transform-origin:bottom;animation:ebFill 3.4s ease-in-out infinite alternate}
.eb-marquee{width:max-content;animation:ebMarquee 30s linear infinite}
.eb-grid{animation:ebGrid 5s linear infinite}
.eb-bar{transform-origin:left;animation:ebBar 4s ease-in-out infinite}
.eb-flicker{animation:ebFlicker 4s linear infinite}
.eb-card{transition:transform .25s ease,box-shadow .25s ease}
.eb-card:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(0,0,0,.14)}
.eb-btn{transition:transform .2s ease}
.eb-btn:hover{transform:translateY(-2px)}
.eb-brands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:820px){.eb-brands{grid-template-columns:repeat(2,minmax(0,1fr))}}
.eb-photo img{transition:transform .6s ease}
.eb-photo:hover img{transform:scale(1.05)}
@keyframes ebDay{0%,40%{opacity:1}50%,90%{opacity:0}100%{opacity:1}}
@keyframes ebNight{0%,40%{opacity:0}50%,90%{opacity:1}100%{opacity:0}}
@keyframes ebSunPath{0%,36%{transform:translate(0,0);opacity:1}50%,90%{transform:translate(36px,120px);opacity:0}100%{transform:translate(0,0);opacity:1}}
@keyframes ebMoonPath{0%,40%{transform:translate(-36px,120px);opacity:0}54%,86%{transform:translate(0,0);opacity:1}100%{transform:translate(-36px,120px);opacity:0}}
@keyframes ebBatt{0%{transform:scaleY(.25)}40%,50%{transform:scaleY(1)}90%,100%{transform:scaleY(.25)}}
.eb-day{animation:ebDay 16s ease-in-out infinite}
.eb-night{opacity:0;animation:ebNight 16s ease-in-out infinite}
.eb-sun{animation:ebSunPath 16s ease-in-out infinite}
.eb-moon{opacity:0;animation:ebMoonPath 16s ease-in-out infinite}
.eb-batt{transform-box:fill-box;transform-origin:bottom;animation:ebBatt 16s ease-in-out infinite}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eb-dot { display: none; }
  /* Static scene is daytime: .eb-night and .eb-moon keep their base opacity:0 */
}
