/* ---------- Tokens ---------- */
:root{
  --ink: #12161b;
  --panel: #1b2128;
  --panel-2: #232a32;
  --line: #333c46;
  --text: #eef1f4;
  --text-dim: #a8b0ba;
  --accent: #F5A623;
  --accent-dim: #c9860f;
  --white: #ffffff;

  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius: 10px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

p{ margin: 0 0 1em; color: var(--text-dim); }

a{ color: inherit; text-decoration: none; }

ul, ol{ margin: 0; padding: 0; list-style: none; }

img, svg{ display: block; max-width: 100%; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-accent{
  background: var(--accent);
  color: #1a1204;
}
.btn-accent:hover{ background: #ffb547; }

.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

.btn-lg{ padding: 15px 28px; font-size: 1rem; }
.btn-full{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 22, 27, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo-mark{ width: 32px; height: 32px; color: var(--text); }

.main-nav{
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.main-nav a{
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover{ color: var(--text); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone-link{
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  background: linear-gradient(180deg, #171c22 0%, var(--ink) 70%);
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 42%, rgba(18,22,27,0) 72%),
    linear-gradient(0deg, var(--ink) 0%, rgba(18,22,27,0) 20%),
    url("assets/images/kranasolarlag.jpg") right 35% / 58% auto no-repeat,
    var(--ink);
}

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1{
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
}
.accent-text{ color: var(--accent); }

.hero-lead{
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.trust-strip{
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  padding: 36px 24px;
}
.trust-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.trust-number{
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.trust-label{
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section{ padding: 110px 0; }
.section-alt{ background: var(--panel); }

.section-eyebrow{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.section-title{
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  max-width: 640px;
}
.section-lead{
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- Cards / Services ---------- */
.card-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.card-grid > .card{ flex: 0 1 calc((100% - 72px) / 4); min-width: 0; }
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover{ border-color: var(--accent); transform: translateY(-4px); }

.card-icon{
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  margin-bottom: 20px;
}
.card-icon svg{ width: 26px; height: 26px; }

.card h3{ font-size: 1.3rem; margin-bottom: 10px; }
.card p{ margin-bottom: 0; font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.check-list{ margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.check-list li{
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
}
.about-visual{ border-radius: 16px; overflow: hidden; max-height: 560px; }
.about-visual img{ width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: center 35%; }

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item{
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img{ transform: scale(1.05); }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(10, 12, 15, 0.92);
}
.lightbox.is-open{ display: flex; }
.lightbox img{ max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox p{ margin: 0; color: var(--text); font-size: 0.95rem; }
.lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Fleet ---------- */
.fleet-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.fleet-card{
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.fleet-card h3{ font-size: 1.8rem; margin-bottom: 8px; }
.fleet-card > p{ font-size: 1rem; margin-bottom: 0; }
.fleet-card dl{ display: flex; flex-direction: column; gap: 10px; margin: 0; }
.fleet-card dl > div{
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.fleet-card dl > div:first-child{ border-top: none; padding-top: 0; }
.fleet-card dt{ color: var(--text-dim); }
.fleet-card dd{ margin: 0; font-weight: 600; color: var(--text); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, #1c2530, #262f3a);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner{
  padding: 80px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-inner h2{ font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0; }
.cta-inner p{ max-width: 520px; margin-bottom: 12px; }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-details{ display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-details li{ display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-details svg{ width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

.contact-form{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row-split > div{ display: flex; flex-direction: column; gap: 8px; }

label{ font-size: 0.9rem; font-weight: 600; color: var(--text); }

input, select, textarea{
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus{ border-color: var(--accent); }
textarea{ resize: vertical; min-height: 100px; }

.honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status{
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p{ margin-top: 14px; max-width: 280px; font-size: 0.9rem; }

.footer-nav{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h4{ font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-nav div{ display: flex; flex-direction: column; gap: 10px; }
.footer-nav a{ color: var(--text-dim); font-size: 0.9rem; }
.footer-nav a:hover{ color: var(--accent); }

.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 22px 24px;
}
.footer-bottom p{ margin: 0; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Reveal animation ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .phone-link{ display: none; }

  .site-header.nav-open .main-nav{
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }

  .trust-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .card-grid > .card{ flex-basis: calc((100% - 24px) / 2); }
  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-visual{ order: -1; max-width: 420px; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-bg{
    background:
      linear-gradient(180deg, rgba(18,22,27,0.85) 0%, rgba(18,22,27,0.7) 60%, var(--ink) 100%),
      url("assets/images/kranasolarlag.jpg") center 45% / cover no-repeat,
      var(--ink);
  }
  .fleet-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-nav{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px){
  .section{ padding: 72px 0; }
  .hero{ padding: 90px 0 60px; }
  .card-grid > .card{ flex-basis: 100%; }
  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .form-row-split{ grid-template-columns: 1fr; }
  .footer-nav{ grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Call to action ---------- */
.cta-phone{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--accent);
  transition: color 0.15s ease;
}
.cta-phone:hover{ color: #ffb547; }
.cta-actions{ display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.contact-details li:first-child a{ font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.5px; }
.section-title + .card-grid{ margin-top: 40px; }

/* ---------- Form note / legal page ---------- */
.form-note{ margin: 0; font-size: 0.8rem; color: var(--text-dim); }
.form-note a, .footer-bottom a{ text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover, .footer-bottom a:hover{ color: var(--accent); }

.legal{ padding: 72px 0 96px; }
.legal .container{ max-width: 760px; }
.legal h1{ font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated{ font-size: 0.9rem; margin-bottom: 40px; }
.legal h2{ font-size: 1.5rem; margin: 40px 0 12px; color: var(--text); }
.legal p, .legal li{ color: var(--text-dim); }
.legal ul{ list-style: disc; padding-left: 22px; margin: 0 0 1em; display: flex; flex-direction: column; gap: 6px; }
.legal a{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .back-link{ display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
