/* ==========================================================================
   5th Wheel Group LLC — Global Stylesheet
   ========================================================================== */

:root {
  /* Brand palette: sampled directly from the 5th Wheel Group shield logo (navy + green) */
  --navy-900: #0C2E44;
  --navy-800: #1A5887;
  --navy-700: #2C7AAE;
  --green-600: #4F8E3E;
  --green-500: #63A550;
  --green-300: #8FD17A;
  --gray-50: #F6F8FB;
  --gray-100: #EEF1F6;
  --gray-300: #CBD3E1;
  --gray-500: #6B7686;
  --gray-700: #3B4454;
  --white: #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(6, 21, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 21, 48, 0.12);
  --shadow-lg: 0 20px 48px rgba(6, 21, 48, 0.18);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--gray-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--green-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-500); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 21, 48, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand img, .brand svg { height: 36px; width: auto; }
.brand .brand-sub { display: block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.06em; color: var(--gray-300); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--gray-100);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-500); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 480px; padding: 8px 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(79,142,62,0.30) 0%, rgba(79,142,62,0) 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--gray-300); }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 80px 0 64px;
  text-align: left;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--gray-300); max-width: 680px; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-300); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-300); }
.breadcrumb a:hover { color: var(--green-500); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card.tech .icon { background: var(--navy-700); }
.card.compliance .icon { background: var(--green-600); }

.bg-soft { background: var(--gray-50); }
.bg-navy { background: var(--navy-800); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .lead { color: var(--gray-300); }

/* ---------- Feature list ---------- */
.check-list { list-style: none; margin: 0 0 16px; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600);
  font-weight: 700;
}
.bg-navy .check-list li::before, .bg-navy .check-list li { color: var(--gray-100); }
.bg-navy .check-list li::before { color: var(--green-300); }

/* ---------- Status pill (coming soon) ---------- */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79,142,62,0.15);
  color: var(--green-600);
  margin-bottom: 16px;
}

/* ---------- Table (services comparison) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); font-size: 0.95rem; }
th { background: var(--gray-50); color: var(--navy-800); font-weight: 700; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy-800); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--gray-700);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(79,142,62,0.18);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 8px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.success { color: #1a7f4e; }
.form-status.error { color: #c23b2c; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Contact info blocks ---------- */
.info-block { display: flex; gap: 16px; margin-bottom: 28px; }
.info-block .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--gray-100); color: var(--navy-800); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-600), var(--green-500));
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner .lead { color: rgba(255,255,255,0.9); }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white) !important; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.18); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--gray-300); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--gray-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--green-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.footer-brand p { color: var(--gray-300); font-size: 0.92rem; max-width: 320px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-600);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-500); }
.back-to-top:focus-visible { outline: 2px solid var(--green-300); outline-offset: 2px; }
