/* =============================================
   NorthAdTrack — Main Stylesheet
   Version 1.0
   ============================================= */

/* --- Reset & Base ----------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:         #0c2340;
  --green:        #1f5f3a;
  --orange:       #c85a14;
  --orange-hover: #a84a10;
  --graphite:     #2d3748;
  --bg:           #f6f4ef;
  --bg-alt:       #eeebe3;
  --white:        #ffffff;
  --border:       #d9d6ce;
  --border-light: #e8e5dd;
  --text:         #1f2933;
  --text-muted:   #5f6b76;
  --text-light:   #8896a7;
  --radius:       4px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width:    1120px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --- Container -------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.22;
  color: var(--navy);
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(36px, 4.5vw, 50px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 17px; }

p { color: var(--graphite); }

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1.4;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: #c4c0b8;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
  font-size: 14px;
  padding: 8px 16px;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-nav {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-size: 14px;
  padding: 8px 16px;
}
.btn-nav:hover {
  background: #0a1c33;
  border-color: #0a1c33;
}

/* =============================================
   Header
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 36px;
}
.site-logo:hover { text-decoration: none; }

.site-logo img {
  height: 44px;
  width: 44px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.logo-tagline {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-top: 2px;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.primary-nav a {
  font-size: 17px;
  color: var(--graphite);
  padding: 6px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}
.primary-nav a:hover {
  color: var(--navy);
  background: var(--bg);
  text-decoration: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 12px;
}
.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: opacity 0.15s;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 18px;
  max-width: 490px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.hero-proof {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.1px;
  line-height: 1.5;
  margin-top: 4px;
}

/* Hero screenshot */
.hero-screenshot {
  position: relative;
}

.hero-screenshot img {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

/* Placeholder (remove when real screenshot is added) */
.img-placeholder {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 24px;
}

.img-placeholder.hero-size {
  min-height: 300px;
}

.img-placeholder.card-size {
  min-height: 190px;
}

.img-placeholder-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.img-placeholder-path {
  font-size: 11px;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.img-placeholder-icon {
  color: var(--border);
}

/* =============================================
   Section shared
   ============================================= */

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* =============================================
   Products
   ============================================= */

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  border-color: #bab6ae;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

.product-card-image {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.product-card-image img {
  width: 100%;
  display: block;
  border-radius: 0;
  height: auto;
}

.product-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.product-card-body h3 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

.product-problem {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.62;
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 12px;
  margin: 2px 0;
}

.product-benefits {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  margin: 4px 0;
}

.product-benefits li {
  font-size: 13.5px;
  color: var(--graphite);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.product-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  top: 1px;
}

.product-compat {
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 4px;
}

/* =============================================
   How It Works / Workflow
   ============================================= */

.workflow-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 8px;
}

.workflow-step {
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.workflow-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.workflow-track > .workflow-step:nth-child(1) {
  border-top-color: var(--navy);
  background: rgba(12, 35, 64, 0.04);
}
.workflow-track > .workflow-step:nth-child(3) {
  border-top-color: var(--green);
  background: rgba(31, 95, 58, 0.05);
}
.workflow-track > .workflow-step:nth-child(5) {
  border-top-color: var(--orange);
  background: rgba(200, 90, 20, 0.05);
}
.workflow-track > .workflow-step:nth-child(7) {
  border-top-color: var(--navy);
  background: rgba(12, 35, 64, 0.04);
}

.workflow-track > .workflow-step:nth-child(1) .step-num { color: var(--navy); opacity: 0.25; }
.workflow-track > .workflow-step:nth-child(3) .step-num { color: var(--green); opacity: 0.35; }
.workflow-track > .workflow-step:nth-child(5) .step-num { color: var(--orange); opacity: 0.45; }
.workflow-track > .workflow-step:nth-child(7) .step-num { color: var(--navy); opacity: 0.25; }

.workflow-track > .workflow-step:nth-child(1) h3 { color: var(--navy); }
.workflow-track > .workflow-step:nth-child(3) h3 { color: var(--green); }
.workflow-track > .workflow-step:nth-child(5) h3 { color: var(--orange); }
.workflow-track > .workflow-step:nth-child(7) h3 { color: var(--navy); }

.workflow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--green);
  font-size: 18px;
  flex-shrink: 0;
}

.step-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.workflow-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   Problems / Why section
   ============================================= */

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.problem-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem-icon {
  color: var(--green);
  opacity: 0.85;
  width: 28px;
  height: 28px;
}

.problem-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.problem-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}

/* =============================================
   About
   ============================================= */

.about-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-location {
  font-size: 13px !important;
  color: var(--text-light) !important;
  margin-top: 4px !important;
}

.about-aside {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.about-aside h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.about-aside ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-aside li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.about-aside li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.3;
}

/* =============================================
   FAQ
   ============================================= */

.faq-list {
  max-width: 720px;
  margin-top: 8px;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
}

.faq-item[open] .faq-toggle::before { content: '−'; }
.faq-toggle::before { content: '+'; }

.faq-body {
  padding-bottom: 20px;
}

.faq-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-body a {
  color: var(--navy);
}

/* =============================================
   Footer
   ============================================= */

.site-footer {
  background: #0d1f35;
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e3452;
}

.footer-brand {
  flex: 0 0 auto;
  max-width: 260px;
}

.footer-brand .logo-name {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.footer-brand .logo-tagline {
  color: #94b8d4 !important;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #d4e8f6 !important;
  line-height: 1.8;
  display: block;
}

.site-footer .footer-brand a {
  font-size: 13.5px;
  color: #d4e8f6 !important;
  line-height: 1.8;
  display: block;
  transition: color 0.12s;
}

.site-footer .footer-brand a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-shrink: 0;
}

.footer-col-heading {
  font-size: 11px;
  font-weight: 700;
  color: #94b8d4 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-footer .footer-nav a {
  font-size: 14px;
  color: #d4e8f6 !important;
  padding: 6px 0;
  transition: color 0.12s;
}

.site-footer .footer-nav a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 0;
  font-size: 12.5px;
  color: #94b8d4 !important;
  line-height: 1.7;
}

/* =============================================
   Responsive — Tablet  (≤ 960px)
   ============================================= */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text h1 { max-width: none; }
  .hero-subtitle { max-width: none; }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .workflow-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-connector {
    display: none;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand {
    max-width: none;
  }
}

/* =============================================
   Responsive — Mobile  (≤ 640px)
   ============================================= */

@media (max-width: 640px) {
  .section { padding: 48px 0; }

  /* Header */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 24px;
    gap: 0;
  }

  .site-logo { flex: 1; }

  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 0 6px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    gap: 0;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    padding: 10px 2px;
    width: 100%;
    font-size: 15px;
  }

  .btn-nav { display: none; }

  /* Hero */
  .hero { padding: 40px 0; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-item summary { font-size: 14px; }

  /* Footer */
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 32px; }
}

/* =============================================
   Legal Pages Fix
   ============================================= */

.legal-page {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 60px 24px 80px !important;
}

.legal-page h1 {
  font-size: 28px !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
}

.legal-page .effective {
  font-size: 13px !important;
  color: var(--text-light) !important;
  margin-bottom: 40px !important;
}

.legal-page h2 {
  font-size: 17px !important;
  line-height: 1.3 !important;
  margin: 32px 0 10px !important;
}

.legal-page p,
.legal-page li {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--graphite) !important;
  margin-bottom: 12px !important;
}

.legal-page ul {
  list-style: disc !important;
  padding-left: 20px !important;
}

.legal-page a {
  color: var(--navy) !important;
}

.back-link {
  display: inline-block !important;
  font-size: 14px !important;
  margin-bottom: 40px !important;
  color: var(--text-muted) !important;
}

.back-link:hover {
  color: var(--navy) !important;
}
