/* ==========================================================================
   Precision Trailer Solutions — Stylesheet
   ========================================================================== */

:root {
  /* Color palette — derived from the brand logo */
  --ink: #0b0d10;        /* near-black, headers/footer */
  --ink-2: #14191f;      /* charcoal panel, hero gradient */
  --steel: #4f5760;      /* muted steel gray */
  --rust: #8b1f1d;       /* softened dark red accent */
  --rust-light: #a12622; /* hover state */
  --paper: #dfe3e6;      /* cool gray for soft contrast */
  --white: #f4f5f6;
  --text: #1a1f24;       /* body copy on light backgrounds */
  --muted: #5a6269;      /* secondary text */
  --border: #c2c8cc;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --header-h: 76px;
  --radius: 8px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.18);
  --transition: 0.25s ease;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: #080a0d;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.brand-icon,
.hero-watermark,
.about-media img,
.footer-brand img {
  filter: saturate(1.05) contrast(1.03) brightness(0.95) hue-rotate(-14deg);
  opacity: 0.98;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}

:focus-visible {
  outline: 3px solid var(--rust-light);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--rust);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--rust-light);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background-color: var(--white);
  color: var(--rust);
}

.btn-light:hover {
  background-color: var(--ink);
  color: var(--white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: var(--ink);
  z-index: 200;
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 6px;
}

.brand-icon {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.04) brightness(0.95) hue-rotate(-14deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-line1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-line2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  color: #a63d34;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd1d4;
  padding: 6px 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--rust);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--transition);
}

.header-call svg {
  color: var(--rust);
  flex-shrink: 0;
}

.header-call:hover {
  color: var(--rust-light);
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 6px;
  display: flex;
}

.menu-btn {
  display: none;
}

/* ==========================================================================
   Mobile sidebar
   ========================================================================== */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--ink);
  padding: 24px 32px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 230;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.sidebar-menu.active {
  transform: translateX(0);
}

#menu-close-btn {
  margin-left: auto;
}

.sidebar-links {
  margin-top: 50px;
}

.sidebar-links li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-links a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #cbd1d4;
  transition: color var(--transition);
}

.sidebar-links a:hover {
  color: var(--rust);
}

.sidebar-contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-contact a {
  font-size: 0.95rem;
  color: #9aa3a8;
}

.sidebar-contact a:hover {
  color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 5% 80px;
  background: linear-gradient(160deg, #06080b 0%, #11161c 65%, #1a2026 100%);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 800px;
  max-width: 70vw;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.15rem;
  color: #b7bec3;
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Value strip
   ========================================================================== */

.value-strip {
  background-color: #0d1115;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.value-item:last-child {
  border-right: none;
}

.value-item svg {
  color: var(--rust);
  margin-bottom: 14px;
}

.value-item h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: #f2f4f5;
}

.value-item p {
  font-size: 0.9rem;
  color: #aeb5bc;
}

/* ==========================================================================
   Section heads (shared)
   ========================================================================== */

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: #f2f4f5;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-sub {
  color: #aeb5bc;
  font-size: 1.05rem;
}

section {
  scroll-margin-top: var(--header-h);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 100px 5%;
  background-color: #0d1115;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  color: #f2f4f5;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-text p {
  color: #aeb5bc;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #e8ecef;
}

.check-list svg {
  color: var(--rust);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-media {
  background-color: var(--ink);
  border-radius: var(--radius);
  padding: 50px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.about-media img {
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: 100px 5%;
  background-color: #0b0f12;
}

.service-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: #11161b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: left;
  border-top: 3px solid var(--rust);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.service-card svg {
  color: var(--rust);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: #f2f4f5;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.service-card p {
  color: #aeb5bc;
  font-size: 0.98rem;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: linear-gradient(120deg, #0b0d10 0%, #7c1f1b 100%);
  padding: 70px 5%;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 100px 5%;
  background-color: #0d1115;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  color: #f2f4f5;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.contact-inner > div:first-child p {
  color: #aeb5bc;
  font-size: 1.05rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #11161b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}

.contact-card svg {
  color: var(--rust);
  flex-shrink: 0;
}

.contact-card .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-card .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #f3f4f5;
}

.header-call svg,
.contact-card svg,
.value-item svg,
.check-list svg,
.service-card svg {
  color: var(--rust);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--ink);
  color: #9aa3a8;
  padding: 70px 5% 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 46px;
}

.footer-brand-text .brand-line1 {
  color: var(--white);
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 0.95rem;
  color: #b3b9bd;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #f4f5f6;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  font-size: 0.85rem;
  text-align: center;
  color: #6b747a;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .value-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-item:nth-child(2) {
    border-right: none;
  }

  .value-item:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    display: none;
  }

  .header-call span {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 560px) {
  .header-call {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 20px);
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .value-item:last-child {
    border-bottom: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
