/* ─────────────────────────────────────────────────────────────
   site.css — Motor Preferences Coaches
   Shared styles used across all pages
   ───────────────────────────────────────────────────────────── */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
s { text-decoration: none; display: block; }

:root {
  --navy:        #1A2E6B;
  --navy-dark:   #152459;
  --white:       #FFFFFF;
  --off-white:   #F8F8FA;
  --body-text:   #1A1A1A;
  --mid-text:    #444455;
  --border:      rgba(26,46,107,0.08);
  --card-shadow: 0 2px 16px rgba(26,46,107,0.08);
  --radius:      10px;
  --font:        'Barlow', sans-serif;
}

html  { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--body-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.header-logo {
  height: 44px;
  width: auto;
}

/* ─── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--off-white); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Nav Drawer ────────────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.nav-drawer.is-open { display: block; }

.nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--white);
  padding: 24px 0 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.28s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  color: var(--navy);
  padding: 0 20px 16px;
  line-height: 1;
}

.nav-list { flex: 1; }

.nav-list > li > a,
.nav-list > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(26,46,107,0.07);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover { background: var(--off-white); }

.nav-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.nav-sports-toggle.is-open .nav-chevron { transform: rotate(180deg); }

/* Sports nav row: link + chevron button side by side */
.nav-sports-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(26,46,107,0.07);
}
.nav-sports-row .nav-sports-link {
  flex: 1;
  padding: 14px 12px 14px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: none;
  transition: background 0.15s;
}
.nav-sports-row .nav-sports-link:hover { background: var(--off-white); }
.nav-sports-row .nav-sports-toggle {
  border-bottom: none;
  border-left: 1px solid rgba(26,46,107,0.07);
  padding: 14px 20px;
  width: auto;
  flex-shrink: 0;
}

.nav-submenu { display: none; background: var(--off-white); }
.nav-submenu.is-open { display: block; }
.nav-submenu li a {
  display: block;
  padding: 11px 24px 11px 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mid-text);
  border-bottom: 1px solid rgba(26,46,107,0.05);
  transition: color 0.15s, background 0.15s;
}
.nav-submenu li a:hover { color: var(--navy); background: rgba(26,46,107,0.04); }

/* ─── Hero Image ─────────────────────────────────────────────── */
.hero { width: 100%; line-height: 0; }
.hero img { width: 100%; object-fit: cover; }

/* ─── Page Content Wrapper ───────────────────────────────────── */
.page-content {
  padding: 36px 20px 0;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── Typography ─────────────────────────────────────────────── */
.page-title {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 18px;
}

.intro-lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--body-text);
  line-height: 1.55;
  margin-bottom: 16px;
}

.intro-body {
  font-size: 16px;
  font-weight: 400;
  color: var(--mid-text);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ─── CTA Button ─────────────────────────────────────────────── */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 44px;
}
.cta-btn:hover  { background: var(--navy-dark); transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }
.cta-chevron    { font-size: 20px; line-height: 1; margin-top: 1px; }

/* ─── Horizontal Cards ───────────────────────────────────────── */
.cards-section {
  padding: 0 20px 48px;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EEF0F8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--navy); }

.card-body  { flex: 1; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid-text);
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
}
.site-footer img { height: 28px; width: auto; }

/* ─── Desktop Overrides ──────────────────────────────────────── */
@media (min-width: 768px) {
  .site-header  { padding: 14px 40px; }
  .header-logo  { height: 52px; }

  .page-content {
    padding: 56px 40px 0;
    max-width: 860px;
  }

  .page-title   { font-size: 52px; margin-bottom: 22px; }
  .intro-lead   { font-size: 19px; }
  .intro-body   { font-size: 17px; margin-bottom: 36px; }

  .cta-btn {
    width: auto;
    min-width: 320px;
    font-size: 19px;
    padding: 20px 40px;
    margin-bottom: 56px;
  }

  .cards-section {
    padding: 0 40px 72px;
    max-width: 860px;
    gap: 20px;
  }

  .feature-card { padding: 28px; gap: 24px; }

  .card-icon  { width: 56px; height: 56px; }
  .card-icon svg { width: 28px; height: 28px; }
  .card-title { font-size: 17px; margin-bottom: 10px; }
  .card-text  { font-size: 15px; }

  .site-footer { padding: 36px 40px; }
  .site-footer img { height: 32px; }
}

@media (min-width: 1100px) {
  .page-content,
  .cards-section {
    max-width: 960px;
    margin-left:  auto;
    margin-right: auto;
    padding-left:  40px;
    padding-right: 40px;
  }
  /* Hero: show full image anchored to top, no cropping */
  .hero img {
    object-fit: contain;
    object-position: top center;
    max-height: none;
  }
}
