/* ============================================
   STATE MACHINERY — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #1a1a1a;
  --bg2: #232323;
  --card: #2a2a2a;
  --border: #383838;
  --orange: #e87722;
  --orange-dark: #c96010;
  --red: #c0392b;
  --text: #f0f0f0;
  --subtext: #aaaaaa;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 2px solid var(--orange);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  height: 52px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--orange); }

.nav-phone {
  background: var(--orange);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s !important;
}

.nav-phone:hover { background: var(--orange-dark) !important; color: #fff !important; }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-content h1 span { color: var(--orange); }

.hero-content p {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  border: 2px solid transparent;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--orange);
  padding: 1rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: #fff;
}

.stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }

/* ---- SECTIONS ---- */
section { padding: 5rem 2rem; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--orange); }
.section-sub { color: var(--subtext); margin-bottom: 3rem; font-size: 1.05rem; }
.divider { width: 60px; height: 3px; background: var(--orange); margin: 0.75rem 0 2rem; }

/* ---- EQUIPMENT GRID ---- */
.eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.eq-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.eq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.eq-photo {
  position: relative;
  height: 230px;
  overflow: hidden;
}

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

.eq-card:hover .eq-photo img { transform: scale(1.04); }

.eq-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eq-body { padding: 1.25rem; }

.eq-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.eq-specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.eq-spec {
  font-size: 0.82rem;
  color: var(--subtext);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.eq-spec svg { opacity: 0.6; }

.eq-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 1rem;
}

.eq-features {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.eq-features li {
  font-size: 0.85rem;
  color: var(--subtext);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.eq-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
}

.eq-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-sm {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.btn-sm-primary { background: var(--orange); color: #fff; }
.btn-sm-primary:hover { background: var(--orange-dark); }
.btn-sm-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-sm-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---- PHOTO CAROUSEL ---- */
.carousel {
  position: relative;
  height: 100%;
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-btn:hover { background: var(--orange); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active { background: var(--orange); }

/* ---- ABOUT SECTION ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--subtext);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-points { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.about-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.about-points li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--orange);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

.btn-white { background: #fff; color: var(--orange); border: 2px solid #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-white-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-white-outline:hover { border-color: #fff; }

/* ---- CONTACT SECTION ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtext);
  margin-bottom: 0.25rem;
}

.contact-value { font-weight: 600; font-size: 1rem; }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--orange); }

/* ---- FORM ---- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--subtext);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

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

.form-group select option { background: var(--card); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--bg2);
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-header p { color: var(--subtext); margin-top: 0.5rem; }

/* ---- FOOTER ---- */
footer {
  background: #111;
  border-top: 2px solid var(--orange);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img { height: 50px; margin-bottom: 1rem; }

.footer-brand p {
  color: var(--subtext);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col ul li a {
  color: var(--subtext);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p { font-size: 0.85rem; color: var(--subtext); }

/* ---- INVENTORY PAGE FILTERS ---- */
.filter-bar {
  background: var(--bg2);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .section-inner { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.filter-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--subtext);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #111; padding: 1.5rem 2rem; gap: 1.5rem; border-bottom: 2px solid var(--orange); }
  nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .eq-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 1.5rem; }
}
