/* ============================================================
   QuoTrak — shared shell styles (nav + footer)
   Brand: navy #1a3a5c · orange #e07b1a · white #ffffff
   ============================================================ */

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

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #122840;
  --navy-light: #1e4570;
  --orange:     #e07b1a;
  --orange-dark:#c46a10;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --text:       #1a1a2e;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  --transition: 0.18s ease;
  --nav-h:      64px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Layout container ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--orange);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  /* subtle bottom shadow */
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 8px;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
/* Wordmark fallback (shown when logo img is missing) */
.nav-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  line-height: 1;
}
.nav-wordmark span { color: var(--orange); }

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: rgba(26,58,92,0.07); }
.nav-link.active {
  background: rgba(26,58,92,0.10);
  font-weight: 700;
}

/* Right CTA group */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform 0.1s, box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: rgba(26,58,92,0.07); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(224,123,26,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 3px 10px rgba(224,123,26,0.4);
}

.btn-sm { padding: 6px 13px; font-size: 13px; }

/* Arrow icon inside button */
.btn-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  transition: background var(--transition);
}
.nav-hamburger:hover { background: rgba(26,58,92,0.07); }
.nav-hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
/* Open state */
.nav-hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 99;
  overflow-y: auto;
  padding: 8px 0 24px;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: slideDown 0.22s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile.open { display: block; }

.nav-mobile-links {
  list-style: none;
  padding: 8px 16px;
}
.nav-mobile-links .nav-link {
  font-size: 15px;
  padding: 12px 10px;
  display: block;
}
.nav-mobile-cta {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--gray-100);
  margin: 8px 0 0;
}
.nav-mobile-cta .btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }
.nav-mobile-cta .btn-ghost { border: 1.5px solid rgba(26,58,92,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

/* Top band — newsletter/CTA strip */
.footer-cta-band {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 36px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta-copy h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.footer-cta-copy p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* Main footer body */
.footer-body {
  padding: 52px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 40px;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.footer-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.footer-brand-wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}
.footer-brand-wordmark span { color: var(--orange); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  max-width: 180px;
}
.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}
.footer-badge svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
  flex-shrink: 0;
}

/* Link columns */
.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col-links a:hover { color: var(--white); }
.footer-col-links button {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition);
}
.footer-col-links button:hover { color: var(--white); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-bottom-links a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-tagline { max-width: 260px; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex; }

  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
