/* Company Info Box Styles */
.company-info-box {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: rgba(15, 23, 38, 0.88);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  min-width: 260px;
  z-index: 1000;
  font-size: 1rem;
  text-align: left;
  backdrop-filter: blur(18px);
}
.company-info-box strong {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.company-info-box a {
  color: #38bdf8;
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.company-info-box a:hover {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.company-info-box a {
  color: #0078d7;
  text-decoration: none;
}
.company-info-box a:hover {
  text-decoration: underline;
}
:root {
  --bg: #050b14;
  --surface: #0f1726;
  --surface-2: #17233c;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #38bdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #0d172c 0%, var(--bg) 55%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(56,189,248,0.18), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(34,197,94,0.14), transparent 18%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.headline-logo {
  width: 25cm;
  height: 10cm;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.headline-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  line-height: 1;
}

.brand-text h1 {
  font-size: 1.5rem;
}

.brand-loti {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-electric {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-motors {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header h1,
.site-header p {
  margin: 0;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 1rem 2rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero-text h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

.hero-text p {
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #03121f;
  font-weight: 700;
  text-decoration: none;
}

.card,
.model-card {
  background: rgba(15, 23, 38, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(18px);
}

.model-card a {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.model-card a:hover {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.model-card.atto3-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.model-card.atto3-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.12);
}

.model-card.atto3-card-link h3,
.model-card.atto3-card-link p {
  color: inherit;
}

.table-container {
  overflow-x: auto;
  background: rgba(15, 23, 38, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.5rem;
  backdrop-filter: blur(18px);
  padding: 1.5rem;
}

.upcoming-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.upcoming-table th,
.upcoming-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.upcoming-table th {
  background: rgba(56, 189, 248, 0.1);
  font-weight: 700;
  color: var(--accent-2);
}

.upcoming-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

article {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

article h3 {
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.model-card h3 {
  margin-top: 0;
}

.benefits {
  background: linear-gradient(180deg, rgba(8, 16, 29, 0.96), rgba(6, 10, 18, 0.96));
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.benefit-list li {
  background: rgba(15, 23, 38, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 1.2rem;
  padding: 1.25rem 1.5rem;
}

.calculator {
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.96), rgba(8, 16, 29, 0.96));
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.calculator-inputs {
  display: grid;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-weight: 600;
  color: var(--text);
}

.input-group input,
.input-group select {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.95rem;
  background: #0b1725;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.calculator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.result-card {
  background: rgba(15, 23, 38, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(18px);
}

.result-card h3 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 0;
}

@media (max-width: 768px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calculator-results {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 1.25rem;
  }

  .result-amount {
    font-size: 1.25rem;
  }
}

.contact form {
  max-width: 36rem;
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  background: #0b1725;
  color: var(--text);
}

button[type="submit"] {
  width: fit-content;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #03121f;
  cursor: pointer;
  font-weight: 700;
}

.form-success {
  display: none;
  color: #86efac;
  margin: 0;
}

footer {
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Gallery layout and specs panel */
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
}

.specs-panel {
  background: rgba(15, 23, 38, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
}

.specs-panel h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.specs-list li strong {
  color: var(--text);
  display: inline-block;
  width: 140px;
}

@media (max-width: 880px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .specs-panel {
    order: 2;
  }
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.5rem;
  display: block;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--text);
  border: none;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.lightbox-close {
  top: 12px;
  right: 12px;
  transform: none;
}
.lightbox-prev { left: -3rem; }
.lightbox-next { right: -3rem; }

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
