/* =====================
   CSS Custom Properties
   ===================== */
:root {
  --bg: #4a4a4a;
  --text: #ffffff;
  --heading: #ffffff;
  --accent: #ffffff;
  --accent-red: #e03030;
  --nav-bg: #ffffff;
  --content-bg: var(--bg);
  --border: rgba(0, 0, 0, 0.12);
  --font: 'Roboto', sans-serif;
  --max-w: 1200px;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* =====================
   Layout
   ===================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

/* =====================
   Header & Nav
   ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 1rem 2rem;
  }
}

.logo img {
  height: 120px;
  width: auto;
  max-width: 300px;
}

@media (max-width: 767px) {
  .logo img {
    height: 70px;
    max-width: 100%;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #2b2b2b;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

#main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

#main-nav.open {
  display: block;
}

#main-nav ul {
  list-style: none;
  padding: 0.5rem 0;
}

#main-nav ul li a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: #8e8e8e;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
  color: #2b2b2b;
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  #main-nav {
    display: block !important;
    position: static;
    border-bottom: none;
  }

  #main-nav ul {
    display: flex;
    padding: 0;
  }

  #main-nav ul li a {
    padding: 1.1rem 0.85rem;
    font-size: 1.1rem;
  }
}

/* =====================
   Main & Content Wrap
   ===================== */
main {
  min-height: calc(100vh - 130px);
}

.content-wrap {
  background: var(--content-bg);
  padding: 2rem 1rem 3rem;
}

.page-section {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-title {
  font-size: 1.8rem;
  color: var(--heading);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
}

/* =====================
   Hero (index.html)
   ===================== */
.hero-heading {
  font-size: 1.6rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-image {
  margin-bottom: 1.5rem;
}

.hero-image img {
  border-radius: 3px;
  width: 100%;
}

.hero-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 2.2rem;
  }
}

/* =====================
   Two-column sections
   ===================== */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.two-col .col-img,
.two-col .col-text {
  width: 100%;
}

@media (min-width: 768px) {
  .two-col {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .two-col .col-img {
    flex: 0 0 58%;
  }

  .two-col .col-text {
    flex: 1;
  }

  .two-col.reverse {
    flex-direction: row-reverse;
  }
}

/* =====================
   Section Divider
   ===================== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* =====================
   Splide Overrides
   ===================== */
.splide__slide img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 3px;
}

@media (min-width: 768px) {
  .splide__slide img {
    height: 400px;
  }
}

.splide__arrow {
  background: rgba(0, 0, 0, 0.5);
}

.splide__arrow svg {
  fill: #fff;
}

/* =====================
   Gallery Grid & Lightbox
   ===================== */
.gallery-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .gallery-sections {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-section {
  margin-bottom: 0;
}

.gallery-section-title {
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 1rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  opacity: 0.8;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

/* =====================
   Contact Page
   ===================== */
.contact-intro {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.required-note {
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.required-note .req {
  color: var(--accent-red);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group label .req {
  color: var(--accent-red);
}

.name-row {
  display: flex;
  gap: 0.75rem;
}

.name-row .form-group {
  flex: 1;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: #2b2b2b;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  background: #2b2b2b;
  color: #fff;
  border: none;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  opacity: 0.88;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 600px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-col h3 {
  font-size: 1rem;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.contact-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-col a {
  color: var(--text);
}

.contact-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.social-links a:hover {
  color: var(--accent);
}

/* =====================
   Materials Page
   ===================== */
.materials-slideshow {
  margin-bottom: 2rem;
}

.spec-category {
  margin-top: 1.5rem;
}

.spec-category-title {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.spec-list li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.spec-footnotes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 2;
  color: #666;
}

/* =====================
   Parts Page
   ===================== */
.parts-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .parts-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .parts-section .part-img {
    flex: 0 0 58%;
  }

  .parts-section .part-desc {
    flex: 1;
  }

  .parts-section.no-img .part-desc {
    flex: 0 0 50%;
    margin: 0 auto;
  }
}

.part-name {
  font-size: 1.15rem;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.part-desc ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.part-desc li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.part-price {
  font-size: 1.25rem;
  color: var(--heading);
  font-weight: 700;
  margin-top: 1rem;
}

.part-price.call {
  color: var(--text);
}

.part-img img {
  border-radius: 3px;
  width: 100%;
}

.parts-notes {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #666;
}

/* =====================
   Tango2 Page
   ===================== */
.tango2-slideshow {
  margin-bottom: 2rem;
}

.tango2-features {
  margin-bottom: 1.5rem;
}

.tango2-features ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.tango2-features li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.tango2-price {
  font-size: 1.5rem;
  color: #ff4444;
  font-weight: 700;
  text-align: center;
  margin: 1.75rem 0;
}

.tango2-price span {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.options-title {
  font-size: 1.2rem;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.options-list {
  list-style: none;
  padding-left: 0;
}

.options-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 1rem;
}

.options-list .opt-price {
  white-space: nowrap;
  color: var(--heading);
  font-weight: 700;
  font-size: 1rem;
}

/* =====================
   Footer
   ===================== */
footer {
  background: #ddd;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: #555;
}

footer a {
  color: #555;
}

footer a:hover {
  color: var(--accent);
}
