/* ============================================
   BRIDGELINE MACHINERY — GLOBAL THEME
   Clean unified stylesheet (mobile fixes included)
   ============================================ */

/* BRAND COLORS */
:root {
  --navy:#0b1a2a;
  --gold:#d4af37;
  --charcoal:#22252a;
  --ink:#0f1115;
  --bg:#092D59;
  --muted:#79808c;
  --card:#11161f;
  --white:#ffffff;
}

/* RESET */
* { box-sizing: border-box; }

html, body { 
  height: 100%; 
  margin: 0; 
  padding: 0;

  /* Prevent sideways shifting on mobile */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER + NAV
   ============================================ */

.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  height: 148px;
  width: auto;
  display: block;
}

.header-tagline {
  width: 100%;
  text-align: right;
  padding: 0 40px 5px 0;
  font-size: 16px;
  color: #b8922b;
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
}

/* NAVIGATION */
.nav-list {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 15.5px;
  padding: 8px 12px;
  border-radius: 10px;
  text-transform: uppercase;
  color: #000;
  font-weight: 500;
}

.nav-list a:hover {
  background: rgba(0,0,0,0.08);
}

.nav-list a.active {
  background: var(--gold);
  color: #000 !important;
  font-weight: 600;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.3);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.60;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0 120px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 44px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  color: #e0e6f2;
  margin-bottom: 22px;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* CTA BUTTONS */
.btn-primary {
  background: var(--gold);
  color: #111;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn-sell {
  background: #ffffff;
  color: #000;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================
   PILLARS / CARDS
   ============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 40px auto;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
  border-radius: 16px;
}

.card h3 {
  margin: 0 0 6px;
  font-weight: 600;
}

/* ============================================
   CONTACT / FORM
   ============================================ */

.page { padding: 40px 0; }

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0f141d;
  color: #ffffff;
}

label {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  color: #d5d9e2;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #ffffff;
  margin-top: 40px;
  padding: 35px 0 28px;
  color: #000;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text-block .line-top {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.footer-text-block .line-bottom {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
}

.footer-logo img {
  height: 78px;
  width: auto;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .hero h2 { font-size: 36px; }
}

/* ============================================
   RESPONSIVE — MOBILE (FIXED DROPDOWN)
   ============================================ */

@media (max-width: 700px) {

  .header-inner { padding: 12px 0; }
  .logo { height: 115px; }
  .header-tagline { font-size: 13px; padding-right: 20px; }

  .hero-inner { padding: 65px 0 85px; }
  .hero h2 { font-size: 30px; }
  .hero p { font-size: 16px; }

  /* MOBILE NAV DROPDOWN */
  .nav-toggle { display: block; }

  body:not(.nav-open) .nav-list { display: none; }

  body.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 16px;
    top: 130px;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 10px 14px;
    border-radius: 10px;
    width: 180px;

    /* FIXES */
    z-index: 9999;
    max-height: none;
    overflow: visible;
  }

  body.nav-open .nav-list a {
    color: #000 !important;
    background: transparent;
    padding: 12px;
    text-align: right;
    width: 100%;
    display: block;
  }

  /* CARDS */
  .pillars { grid-template-columns: 1fr 1fr; }

  /* CTA BUTTONS */
  .cta-group {
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
  }

  /* FOOTER STACK */
  .footer-wrapper {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
