/* ============================================
   SpireSol LLC - Landing page styles
   Palette: Navy #042C53 / Amber #EF9F27 / Cream #F1EFE8
   ============================================ */

:root {
  --navy-900: #042C53;
  --navy-800: #0C447C;
  --navy-700: #185FA5;
  --navy-300: #85B7EB;
  --navy-100: #E6F1FB;
  --amber-500: #EF9F27;
  --amber-200: #FAEEDA;
  --amber-900: #412402;
  --cream: #F1EFE8;
  --gray-900: #2C2C2A;
  --gray-700: #444441;
  --gray-500: #5F5E5A;
  --gray-300: #888780;
  --gray-200: #B4B2A9;
  --gray-100: #D3D1C7;
  --white: #FFFFFF;
  --tile-blue-bg: #E6F1FB;  --tile-blue-fg: #0C447C;
  --tile-amber-bg: #FAEEDA; --tile-amber-fg: #854F0B;
  --tile-teal-bg: #E1F5EE;  --tile-teal-fg: #085041;
  --tile-coral-bg: #FAECE7; --tile-coral-fg: #712B13;
  --tile-purple-bg: #EEEDFE;--tile-purple-fg: #3C3489;
  --tile-pink-bg: #FBEAF0;  --tile-pink-fg: #72243E;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1140px;
  --shadow-sm: 0 1px 2px rgba(4, 44, 83, 0.06);
  --shadow-md: 0 6px 24px rgba(4, 44, 83, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-amber { background: var(--amber-500); color: var(--amber-900); }
.btn-amber:hover { background: #f0a83c; box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-full { width: 100%; justify-content: center; padding: 14px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 25, 41, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: 0.3px; }
.brand-accent { color: var(--amber-500); }
.brand-tagline { font-size: 10px; color: var(--navy-300); letter-spacing: 1.2px; margin-top: 2px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #cfe1f5;
}
.primary-nav a { transition: color 0.15s ease; }
.primary-nav a:hover { color: var(--white); }
.nav-cta { font-size: 13px; padding: 9px 16px; }
.nav-cta:hover { color: var(--amber-900); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1929 0%, #163450 55%, #2a4a68 100%);
  color: var(--white);
  padding: 70px 0 90px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-sun {
  position: absolute;
  right: 12%;
  top: 38%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #ffd699 0%, #f5b76b 55%, transparent 70%);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.85;
}
.hero-road {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, #1a2638 0%, #0a1622 100%);
}
.hero-road::before, .hero-road::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(133, 183, 235, 0.25);
}
.hero-road::before { top: 18%; }
.hero-road::after { top: 70%; }
.hero-road .lane {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #f4b740 0 22px, transparent 22px 40px);
  opacity: 0.7;
}
.hero-truck {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 240px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.hero-content { position: relative; max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(239, 159, 39, 0.18);
  color: var(--amber-500);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--white);
}
.hero-title .accent { color: var(--amber-500); display: inline-block; }
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #cfe1f5;
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--navy-300);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--amber-500); }

/* ============ Contact bar ============ */
.contact-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  box-shadow: var(--shadow-sm);
}
.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.contact-bar-items { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
}
.cb-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cb-blue { background: var(--tile-blue-bg); color: var(--tile-blue-fg); }
.cb-amber { background: var(--tile-amber-bg); color: var(--tile-amber-fg); }
.cb-green { background: var(--tile-teal-bg); color: var(--tile-teal-fg); }
.cb-text { display: flex; flex-direction: column; line-height: 1.2; }
.cb-text small { font-size: 10px; color: var(--gray-300); letter-spacing: 0.8px; }
.cb-text strong { font-size: 14px; font-weight: 600; color: var(--navy-900); margin-top: 2px; }
.cb-divider { width: 1px; height: 32px; background: var(--cream); }

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy-900); color: var(--white); padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--navy-900);
  margin: 6px 0 10px;
  line-height: 1.2;
}
.section-head p { color: var(--gray-500); font-size: 15px; margin: 0; }
.eyebrow {
  font-size: 11px;
  color: var(--navy-700);
  letter-spacing: 1.2px;
  font-weight: 600;
}
.eyebrow-light { color: var(--navy-300); }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-100);
}
.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 6px;
}
.service-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.5;
}
.icon-tile {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tile-blue { background: var(--tile-blue-bg); color: var(--tile-blue-fg); }
.tile-amber { background: var(--tile-amber-bg); color: var(--tile-amber-fg); }
.tile-teal { background: var(--tile-teal-bg); color: var(--tile-teal-fg); }
.tile-coral { background: var(--tile-coral-bg); color: var(--tile-coral-fg); }
.tile-purple { background: var(--tile-purple-bg); color: var(--tile-purple-fg); }
.tile-pink { background: var(--tile-pink-bg); color: var(--tile-pink-fg); }

/* ============ Steps ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-number {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--amber-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(239,159,39,0.35);
}
.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  margin: 8px 0 6px;
}
.step-card p { margin: 0; color: var(--gray-500); font-size: 13px; line-height: 1.5; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy-900);
  margin: 8px 0 14px;
  line-height: 1.2;
}
.lead { color: var(--gray-500); font-size: 15px; margin: 0 0 22px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-size: 14px;
}
.check-list svg { color: #1D9E75; flex-shrink: 0; }

.testimonial {
  background: var(--white);
  border: 1px solid var(--cream);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.quote-mark { color: var(--navy-100); margin-bottom: 4px; }
.quote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy-900);
  margin: 0 0 18px;
  font-weight: 500;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--cream);
  padding-top: 14px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.quote-author strong { display: block; font-size: 14px; color: var(--navy-900); }
.quote-author small { font-size: 12px; color: var(--gray-500); }

/* ============ Contact section ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 14px;
  line-height: 1.2;
}
.contact-info > p { color: #cfe1f5; margin: 0 0 22px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.ci-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(239,159,39,0.18);
  color: var(--amber-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-list strong { display: block; font-size: 13px; color: var(--white); margin-bottom: 2px; }
.contact-list a { color: #cfe1f5; }
.contact-list a:hover { color: var(--amber-500); }
.contact-list div { font-size: 14px; color: #cfe1f5; }

.contact-form {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
}
.contact-form h3 { font-size: 18px; font-weight: 600; color: var(--navy-900); margin: 0 0 4px; }
.form-sub { font-size: 13px; color: var(--gray-500); margin: 0 0 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--gray-700); letter-spacing: 0.2px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: #fafaf6;
  font-family: inherit;
  color: var(--gray-900);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 6px 0 14px;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  width: 14px; height: 14px;
  flex-shrink: 0;
  accent-color: var(--navy-700);
}
.form-status { margin: 10px 0 0; font-size: 13px; min-height: 18px; }
.form-status.success { color: #1D9E75; }
.form-status.error { color: #A32D2D; }

/* ============ Footer ============ */
.site-footer {
  background: #04223F;
  color: var(--navy-300);
  padding: 50px 0 24px;
  font-size: 13px;
  line-height: 1.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--white); font-size: 16px; }
.footer-mark { width: 28px; height: 28px; background: var(--amber-500); color: var(--amber-900); }
.site-footer h4 { font-size: 13px; color: var(--white); margin: 0 0 8px; font-weight: 600; }
.site-footer a { color: var(--navy-300); transition: color 0.15s ease; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer address { font-style: normal; color: var(--navy-300); }

.legal { padding-top: 22px; }
.legal h4 { color: var(--white); font-size: 12px; margin: 14px 0 6px; }
.legal p { margin: 0 0 10px; font-size: 12px; color: var(--navy-300); }
.copyright { text-align: center; margin-top: 22px !important; font-size: 12px; color: var(--navy-300); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-truck { right: 4%; bottom: 8%; width: 200px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: #0a1929;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-cta { align-self: flex-start; padding: 10px 16px; }
  .hero { padding: 60px 0 70px; min-height: auto; }
  .hero-truck { display: none; }
  .hero-sun { right: 8%; top: 22%; width: 70px; height: 70px; }
  .contact-bar-inner { flex-direction: column; align-items: stretch; }
  .contact-bar-items { justify-content: flex-start; }
  .cb-divider { display: none; }
  .section { padding: 60px 0; }
  .section-navy { padding: 60px 0; }
  .services-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-form { padding: 22px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
