/* GLOBAL CSS — Cowboy Carts. Design tokens from DESIGN_DIRECTION.md. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-black:  #0D0D0D;
  --brand-green:  #3D9140;
  --green-light:  #4CAF52;
  --green-dark:   #2A6B2D;
  --surface-dark: #141414;
  --surface-mid:  #1E1E1E;
  --warm-white:   #F5F1EB;
  --off-white:    #EAE6DF;
  --text-primary: #FFFFFF;
  --text-muted:   #A8A8A8;

  /* Template-compat aliases */
  --color-bg:      var(--brand-black);
  --color-text:    var(--warm-white);
  --color-primary: var(--brand-black);
  --color-accent:  var(--brand-green);
  --color-muted:   var(--text-muted);
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, 'Segoe UI', sans-serif;
  --max-width:     1240px;
  --radius:        8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm-white);
  background: var(--brand-black);
}
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.5em; color: var(--text-primary); }
p { margin: 0 0 1em; }
a { color: var(--brand-green); text-decoration: none; }
a:hover { color: var(--green-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ===== HEADER ===== */
.site-header {
  background: var(--brand-black);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; gap: 16px;
}
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.4px; transition: color 0.2s;
}
.site-nav a:hover { color: var(--brand-green); }
.header-cta {
  color: var(--brand-green); font-weight: 700; text-decoration: none;
  font-size: 15px; border: 1.5px solid var(--brand-green); border-radius: 4px;
  padding: 8px 18px; flex-shrink: 0; transition: background 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--brand-green); color: #fff; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; flex-wrap: nowrap; }
  .logo img { height: 36px; }
  .nav-toggle { display: flex; order: 2; }
  .header-cta { font-size: 13px; padding: 7px 10px; order: 3; }
  .site-nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--brand-black);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: block; padding: 15px 20px; font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover { background: rgba(61,145,64,0.08); color: var(--brand-green); }
}

/* ===== HERO (full-viewport) ===== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.38) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 80px 40px;
}
@media (max-width: 600px) { .hero { min-height: 80vh; } .hero-content { padding: 60px 20px; } }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative; min-height: 52vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.44) 100%);
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; padding: 80px 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.page-hero p.hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
@media (max-width: 600px) { .page-hero-content { padding: 60px 20px; } }

/* ===== EYEBROW / LABELS ===== */
.eyebrow {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; color: var(--brand-green);
  display: block; margin: 0 0 14px;
}

/* ===== HERO H1 / SUBHEADS ===== */
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.5px; color: #fff; margin: 0 0 18px; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.82); line-height: 1.6; margin: 0 0 32px; }

/* ===== BUTTONS ===== */
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 4px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brand-green); color: #fff; border: 2px solid var(--brand-green); }
.btn-primary:hover { background: var(--green-light); border-color: var(--green-light); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--brand-green); color: var(--brand-green); }
.btn-ghost:hover { background: var(--brand-green); color: #fff; }
.btn-phone { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-phone:hover { background: #fff; color: var(--brand-black); }
.btn-dark { background: var(--brand-black); color: #fff; border: 2px solid var(--brand-black); }
.btn-dark:hover { background: var(--surface-dark); }

/* ===== SECTIONS ===== */
.section-dark { background: var(--brand-black); padding: 96px 0; }
.section-mid  { background: var(--surface-mid);  padding: 96px 0; }
.section-light { background: var(--warm-white); padding: 96px 0; }
.section-light h2, .section-light h3 { color: var(--brand-black); }
.section-light p, .section-light li { color: #333; }
@media (max-width: 768px) { .section-dark, .section-mid, .section-light { padding: 60px 0; } }

.section-heading { text-align: center; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading p { max-width: 600px; margin: 14px auto 0; color: var(--text-muted); font-size: 17px; }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cards-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards-grid, .cards-grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-dark); border-radius: var(--radius);
  border-top: 3px solid var(--brand-green); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-image { aspect-ratio: 16/9; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-image img { transform: scale(1.03); }
.card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brand-green); font-weight: 500; margin-bottom: 8px; }
.card h3 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.card-link {
  color: var(--brand-green); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.card-link:hover { color: var(--green-light); }

/* ===== FEATURE SPLIT ===== */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 460px; }
.feature-split-img { overflow: hidden; }
.feature-split-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-split-body {
  background: var(--surface-mid); padding: 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-split-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: #fff; margin-bottom: 18px; }
.feature-split-body p { color: var(--warm-white); margin-bottom: 22px; }
@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split-body { padding: 40px 20px; }
}

/* ===== GALLERY IMAGE ===== */
.gallery-full { width: 100%; max-height: 540px; object-fit: cover; }

/* ===== CTA BAND ===== */
.cta-band { background: var(--brand-green); padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); color: #fff; margin-bottom: 12px; }
.cta-band p.cta-sub { font-size: 17px; color: rgba(255,255,255,0.92); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-phone {
  font-family: var(--font-body); font-size: 30px; font-weight: 700;
  color: #fff; text-decoration: none; display: block; margin-bottom: 24px;
  transition: color 0.2s;
}
.cta-phone:hover { color: rgba(255,255,255,0.8); }

/* ===== FAQ ===== */
.faq-section { padding: 96px 0; background: var(--surface-mid); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface-dark); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; background: none; border: none; padding: 22px 28px;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; color: #fff;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question:hover { color: var(--brand-green); }
.faq-icon { font-size: 22px; color: var(--brand-green); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 28px; }
.faq-answer p { color: var(--text-muted); font-size: 15px; padding-bottom: 22px; margin: 0; }
.faq-item.open .faq-answer { max-height: 500px; }
@media (max-width: 768px) {
  .faq-section { padding: 60px 0; }
  .faq-question { padding: 18px 20px; }
  .faq-answer { padding: 0 20px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-green); }
.breadcrumb span { margin: 0 6px; }

/* ===== CONTENT BODY ===== */
.content-body { max-width: 820px; }
.content-body h2 { font-size: 1.7rem; color: #fff; margin: 36px 0 14px; }
.content-body h2:first-child { margin-top: 0; }
.content-body p { color: var(--warm-white); line-height: 1.75; }
.content-body strong { color: #fff; }
.content-body ul { color: var(--warm-white); line-height: 1.75; padding-left: 1.5em; margin-bottom: 1em; }

/* ===== VEHICLE SPEC CARD ===== */
.spec-card {
  display: grid; grid-template-columns: 4fr 6fr;
  background: var(--surface-dark); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px;
}
.spec-card-img img { width: 100%; height: 100%; object-fit: cover; }
.spec-card-body { padding: 40px; }
.spec-card-body h3 { color: #fff; font-size: 1.4rem; margin-bottom: 18px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 24px; }
.spec-item label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.spec-item span { font-size: 15px; color: #fff; font-weight: 500; }
@media (max-width: 768px) {
  .spec-card { grid-template-columns: 1fr; }
  .spec-card-body { padding: 24px 20px; }
}

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 80px 0; }
.contact-info h2 { color: #fff; margin-bottom: 20px; }
.contact-info p { color: var(--warm-white); margin-bottom: 8px; }
.contact-info a { color: var(--brand-green); }
.form-wrap { min-height: 580px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; } }

/* ===== PROSE (privacy / terms) ===== */
.prose { max-width: 800px; padding: 80px 0; }
.prose h2 { font-size: 1.5rem; color: #fff; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--warm-white); line-height: 1.75; }
.prose ul { padding-left: 1.5em; margin-bottom: 1em; }
.prose a { color: var(--brand-green); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brand-black); color: var(--text-muted);
  margin-top: 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 64px 40px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 260px; color: var(--text-muted); }
.footer-nav h4 {
  color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 18px; font-family: var(--font-body); font-weight: 600;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-nav ul li a:hover { color: var(--brand-green); }
.footer-nap p { font-size: 14px; margin-bottom: 8px; }
.footer-name { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer-nap a { color: var(--brand-green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.38); margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.38); }
.footer-legal a:hover { color: var(--brand-green); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } .footer-inner { padding: 40px 20px; } }

main { display: block; }
