/* ============================================================
   TNT-CMS — public/assets/css/site.css
   Dark industrial theme — TNT Liners, Hudson FL
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-primary, #111111);
  color: var(--text-primary, #F0F0F0);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Diamond plate texture pattern */
.section-texture-top,
.footer-texture,
.hero::after {
  content: '';
  display: block;
  width: 100%;
  height: 24px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.03) 4px,
    rgba(255,255,255,0.03) 8px
  ), repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.03) 4px,
    rgba(255,255,255,0.03) 8px
  );
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

a { color: var(--accent, #E8721A); text-decoration: none; }
a:hover { color: var(--accent-hover, #BF5C12); }

.accent { color: var(--accent, #E8721A); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn-hero, .btn-submit, .btn-nav-cta {
  display: inline-block;
  background: var(--accent, #E8721A);
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-hero:hover, .btn-submit:hover, .btn-nav-cta:hover {
  background: var(--accent-hover, #BF5C12);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent, #E8721A);
  color: var(--accent, #E8721A);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--accent, #E8721A);
  color: #ffffff;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 2px solid var(--accent, #E8721A);
  backdrop-filter: blur(4px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-tnt {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1;
  display: inline;
}
.logo-liners {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline;
  margin-left: 0.3rem;
}
.logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--accent, #E8721A);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  color: #C8C8C8;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: #ffffff; }
.nav-links a.active { border-bottom: 2px solid var(--accent, #E8721A); }
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border: 1px solid var(--accent, #E8721A);
  min-width: 160px;
  list-style: none;
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: #C8C8C8;
  font-size: 0.85rem;
}
.dropdown a:hover { background: var(--bg-panel, #2a2a2a); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  background-image: url('/assets/images/hero-default.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: 1;
}
/* Texture overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}
.hero-headline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}
.hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent, #E8721A);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 2rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent, #E8721A), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.8)} 50%{opacity:1;transform:scaleY(1)} }

/* --- Section common --- */
.why-section, .recent-jobs-section {
  padding: 5rem 0;
  background: var(--bg-secondary, #1e1e1e);
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  color: #ffffff;
  margin-bottom: 3rem;
}

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.feature-card {
  background: var(--bg-panel, #2a2a2a);
  border: 1px solid #333;
  border-top: 3px solid var(--accent, #E8721A);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-top-color: var(--accent-hover, #BF5C12); }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  color: var(--accent, #E8721A);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted, #A0A0A0); line-height: 1.6; }
.millspec-badge {
  text-align: center;
  padding: 1rem 2rem;
  border: 1px solid #333;
  display: inline-block;
  width: 100%;
  color: var(--text-muted, #A0A0A0);
  font-size: 0.9rem;
}
.millspec-badge strong { color: var(--accent, #E8721A); }

/* --- Before/After Slider --- */
.before-after-section {
  padding: 5rem 0;
  background: var(--bg-primary, #111111);
}
.before-after-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1rem;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border: 2px solid #333;
}
.ba-before, .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ba-before img, .ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before { z-index: 1; }
.ba-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ba-handle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent, #E8721A);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(232,114,26,0.3);
}
.ba-line {
  width: 2px;
  height: 100%;
  background: var(--accent, #E8721A);
}
.ba-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(0,0,0,0.7);
  padding: 0.3rem 0.7rem;
  z-index: 4;
}
.ba-label-right { left: auto; right: 1rem; }
.ba-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted, #A0A0A0);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Slider aspect ratio placeholder */
.before-after-slider::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
.before-after-slider > * { position: absolute; }

/* --- Jobs Grid --- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.job-card {
  background: var(--bg-panel, #2a2a2a);
  border: 1px solid #333;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.job-card:hover { transform: translateY(-3px); border-color: var(--accent, #E8721A); }
.job-card-img {
  position: relative;
  padding-top: 66%;
  overflow: hidden;
}
.job-card-img img, .job-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1e;
}
.job-card-placeholder span {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: #333;
  letter-spacing: 0.1em;
}
.job-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.job-card:hover .job-card-overlay { opacity: 1; }
.job-card-view {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}
.job-card-info { padding: 1rem; }
.job-card-vehicle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}
.job-card-liner {
  font-size: 0.8rem;
  color: var(--text-muted, #A0A0A0);
  letter-spacing: 0.04em;
}
.section-cta { text-align: center; margin-top: 1rem; }

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: var(--bg-panel, #2a2a2a);
  border-top: 3px solid var(--accent, #E8721A);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 1rem;
}
.cta-text p { color: var(--text-muted, #A0A0A0); margin-bottom: 1.5rem; }
.cta-phone {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent, #E8721A);
  letter-spacing: 0.04em;
}
.quote-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quote-form input, .quote-form textarea, .contact-form input, .contact-form textarea {
  background: var(--bg-primary, #111111);
  border: 1px solid #444;
  color: var(--text-primary, #F0F0F0);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: 'Barlow', sans-serif;
  width: 100%;
  transition: border-color 0.2s;
}
.quote-form input:focus, .quote-form textarea:focus, 
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent, #E8721A);
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #666; }
.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  clip-path: none;
  font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-primary, #111111);
  border-top: 2px solid var(--accent, #E8721A);
  padding: 4rem 0 0;
  position: relative;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo { margin-bottom: 0.3rem; }
.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent, #E8721A);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-desc { font-size: 0.85rem; color: var(--text-muted, #A0A0A0); margin-bottom: 1.2rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--accent, #E8721A); color: var(--accent, #E8721A); }
.footer-nav h4, .footer-contact h4, .footer-hours h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: var(--text-muted, #A0A0A0); font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent, #E8721A); }
.footer-contact p { font-size: 0.85rem; color: var(--text-muted, #A0A0A0); margin-bottom: 0.5rem; }
.footer-contact a { color: var(--accent, #E8721A); }
.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted, #A0A0A0);
  padding: 0.25rem 0;
  border-bottom: 1px solid #1e1e1e;
}
.hours-list .day { color: #C8C8C8; }
.hours-list .closed { color: #555; }
.footer-bottom {
  border-top: 1px solid #222;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--accent, #E8721A); }
.footer-admin-link { opacity: 0.4; }
.footer-admin-link:hover { opacity: 1; }

/* --- Flash messages --- */
.flash-success, .flash-error, .flash-warn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid;
}
.flash-success { background: #0d1f0d; border-color: #3B6D11; color: #8BC34A; }
.flash-error   { background: #1f0d0d; border-color: #A32D2D; color: #f48; }
.flash-warn    { background: #1f1800; border-color: #854F0B; color: #E8A838; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent, #E8721A);
    gap: 0;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1.5rem; width: 100%; }
  .site-nav { position: relative; }
  .hero { padding-top: 0; min-height: 70vh; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
