/* ============================================================
   Sputnik Energy — stylesheet
   Palette: near-black base, electric blue accent, muted green
   secondary accent, light grey/white text. Restrained, technical.
   ============================================================ */

:root {
  --bg: #0a0d12;
  --bg-alt: #10151c;
  --bg-panel: #131a22;
  --border: #232c37;
  --text: #eef2f6;
  --text-muted: #9aa7b4;
  --text-faint: #6b7784;
  --blue: #2f8fe0;
  --blue-bright: #55b2ff;
  --blue-dim: rgba(47, 143, 224, 0.14);
  --green: #4f9d76;
  --green-bright: #6ec293;
  --green-dim: rgba(79, 157, 118, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75em;
}

.section {
  padding: 84px 24px;
}
.section.tight { padding: 56px 24px; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #05101c; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-bright); }
.btn-whatsapp { background: var(--green); color: #05140d; }
.btn-whatsapp:hover { background: var(--green-bright); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 18, 0.96);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: 38px; border-radius: 8px; object-fit: cover; }
.brand .tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.93rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--blue-bright); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 66px 0 0 0;
    z-index: 150;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    pointer-events: none;
  }
  .main-nav.open { transform: translateX(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--border); }
  .main-nav .header-cta { margin-top: 20px; flex-direction: column; align-items: stretch; }
  .nav-toggle { display: block; }
  .header-cta.desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,14,0.55) 0%, rgba(8,10,14,0.78) 55%, rgba(10,13,18,0.98) 100%),
    linear-gradient(100deg, rgba(8,10,14,0.9) 10%, rgba(8,10,14,0.35) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.hero-content .lead { max-width: 620px; font-size: 1.12rem; color: #cdd6df; }
.hero-content h1 { max-width: 780px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.hero-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.5);
  padding: 7px 14px;
  border-radius: 999px;
}

.page-hero {
  padding: 150px 24px 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 900px 420px at 15% -10%, var(--blue-dim), transparent 60%),
    var(--bg-alt);
}
.page-hero .container { max-width: 820px; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--blue); transform: translateY(-3px); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-size: 0.88rem; font-weight: 700; }

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 0;
}
.badge-strip .badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--bg-panel);
}
.badge-strip .badge svg { width: 16px; height: 16px; color: var(--green-bright); flex-shrink: 0; }

/* ---------- Photo feature / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-media.tall img { aspect-ratio: 3 / 4; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: var(--green-dim);
  border-radius: 999px;
  padding: 5px 12px;
}

.check-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; color: var(--text-muted); align-items: flex-start; }
.check-list svg { width: 18px; height: 18px; color: var(--blue-bright); flex-shrink: 0; margin-top: 3px; }

/* ---------- Service anchors ---------- */
.service-block {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* ---------- Case study ---------- */
.case-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,8,11,0.92) 5%, rgba(6,8,11,0.35) 55%, transparent 100%);
}
.case-hero-content { position: relative; z-index: 2; padding: 40px; }
.case-hero-content .tag { margin-bottom: 14px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 780px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(0deg, rgba(6,8,11,0.92), transparent);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,5,7,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; }
.lightbox-caption { color: var(--text-muted); text-align: center; margin-top: 14px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 26px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(ellipse 700px 300px at 20% 0%, var(--blue-dim), transparent 70%), var(--bg-panel);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 16px;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-row .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-dim); color: var(--blue-bright);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row .icon svg { width: 20px; height: 20px; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue-bright);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 24px 26px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--blue-bright); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; width: 34px; border-radius: 8px; }
.footer-brand span { font-weight: 800; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--border); margin: 56px 0; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---------- Client logo strip ---------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.client-logo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 92px;
  width: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}
.client-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 620px) {
  .client-logo-card { width: calc(50% - 8px); }
}
