/* ============================================================
   OK Trailer Rentals — shared.css
   Shared styles for all pages. Page-specific styles stay
   inline in each HTML file.
   ============================================================ */

/* ─── VARIABLES ─── */
:root {
  --black:          #0d0d0d;
  --charcoal:       #1a1a1a;
  --charcoal-mid:   #222222;
  --charcoal-light: #2e2e2e;
  --blue:           #1a6fd4;
  --blue-light:     #2280f0;
  --blue-dark:      #1258aa;
  --orange:         #E07B2A;
  --orange-dark:    #c4661d;
  --silver:         #c8cdd4;
  --white:          #f5f5f5;
  --text-muted:     #8a8f96;
  --border:         rgba(255,255,255,0.07);
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--charcoal);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

nav.scrolled {
  background: rgba(13,13,13,0.99) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  border-bottom-color: rgba(255,255,255,0.12);
}

.nav-logo img {
  height: 76px;
  width: auto;
  mix-blend-mode: lighten;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; opacity: 0.7; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 240px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--silver);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, padding 0.2s;
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--charcoal-light); color: var(--orange); padding-left: 1.5rem; }

.nav-cta {
  background: var(--orange) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 84px; left: 0; right: 0;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1rem 0;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.85rem 2rem;
  color: var(--silver);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--orange); }
.mobile-nav a.indent { padding-left: 3rem; font-size: 0.9rem; opacity: 0.8; }
.mobile-nav .mobile-cta {
  margin: 1rem 2rem 0.5rem;
  display: block;
  background: var(--orange);
  color: var(--black) !important;
  text-align: center;
  border-radius: 4px;
  padding: 0.85rem 2rem !important;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  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;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand img {
  height: 64px;
  margin-bottom: 1rem;
  mix-blend-mode: lighten;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: var(--charcoal-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  color: var(--silver);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-col .footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--blue-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* ─── STOCK MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: #1a1a1a;
  border: 1px solid var(--orange);
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

.modal-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

.modal-box h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.modal-box p { font-size: 0.95rem; color: var(--silver); line-height: 1.75; margin-bottom: 0.75rem; }
.modal-box p strong { color: #f5f5f5; }
.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

.modal-btn-confirm {
  flex: 1;
  background: var(--blue);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.modal-btn-confirm:hover { background: var(--blue-light); }

.modal-btn-cancel {
  flex: 1;
  background: transparent;
  color: var(--silver);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.modal-btn-cancel:hover { border-color: var(--silver); color: #f5f5f5; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pricePulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,123,42,0.6); }
  50%  { box-shadow: 0 0 0 8px rgba(224,123,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,123,42,0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.card-price-badge { animation: pricePulse 2s ease 1.2s 2; }

/* ─── NAV DETAIL PAGE (Back button style) ─── */
.nav-back {
  color: var(--silver);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }

.nav-cta-btn {
  background: var(--orange);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta-btn:hover { background: var(--orange-dark); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
