/* =============================================
   EVM — EPIC VETERAN MOBILITY
   Design: Warm authority. Not military-cold.
   Palette: Amber warmth + deep forest green
   Type: Playfair Display (display) + Inter (body)
   Signature: The tilted serif italic in headlines
   ============================================= */

/* ---- TOKENS ---- */
:root {
  --green-deep:    #2C4A3E;   /* Primary — deep forest, trust */
  --green-mid:     #3D6B5C;   /* Secondary green */
  --amber:         #C8873A;   /* Accent — warm gold/amber */
  --amber-light:   #E8A95A;   /* Hover amber */
  --cream:         #FAF7F2;   /* Page background */
  --cream-mid:     #F2EDE4;   /* Card backgrounds */
  --cream-dark:    #E8E0D4;   /* Borders, dividers */
  --text-dark:     #1C2B26;   /* Primary text */
  --text-mid:      #4A5E57;   /* Secondary text */
  --text-light:    #7A9089;   /* Muted text */
  --white:         #FFFFFF;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-soft:   0 2px 16px rgba(44,74,62,0.08);
  --shadow-card:   0 4px 32px rgba(44,74,62,0.12);

  --max-width:     1160px;
  --section-pad:   96px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

em {
  font-style: italic;
  color: var(--amber);
  font-family: var(--font-display);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
}
.btn-sm { padding: 10px 20px; font-size: 14px; margin-top: 16px; }
.btn-full { width: 100%; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: var(--shadow-soft); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo-evm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}
.logo-full {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--green-deep); }
.nav-cta {
  background: var(--green-deep) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-mid) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--green-deep);
  padding: 8px;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, #4A7A6A 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero {
  max-width: 100%;
  gap: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-headline em {
  color: var(--amber-light);
  font-style: italic;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.trust-icon { color: var(--amber-light); font-size: 10px; }

/* Hero Visual Card */
.hero-visual { grid-column: 2; }
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 40px 36px;
}
.hero-card-inner { display: flex; flex-direction: column; gap: 32px; }
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.65); }
.hero-divider { height: 1px; background: rgba(255,255,255,0.12); }

/* The hero is the content column; visual is nested */
.hero-content > *:first-child { grid-column: 1; }
.hero-visual { grid-column: 2; }

/* Fix: hero-content is the grid */
.hero { display: block; }
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}
.hero-visual { grid-column: 2; grid-row: 1; }

/* ---- SERVICES ---- */
.services {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.service-card--accent {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.service-card--accent h3 { color: var(--white); }
.service-card--accent p { color: rgba(255,255,255,0.78); }
.service-icon {
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 16px;
}
.service-card--accent .service-icon { color: var(--amber-light); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- ABOUT ---- */
.about {
  padding: var(--section-pad) 0;
  background: var(--cream-mid);
}
.about-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
}
.about-photo-frame {
  position: relative;
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 500;
  border: 2px dashed var(--cream-dark);
}
.placeholder-sub { font-size: 13px; color: var(--text-light); opacity: 0.7; }
.about-cert-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--amber);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cert-label { display: block; font-weight: 700; font-size: 14px; }
.cert-sub { display: block; font-size: 11px; opacity: 0.85; margin-top: 2px; }

.about-copy .section-eyebrow { margin-bottom: 12px; }
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-lead {
  font-size: 17px;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--amber);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-copy p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-certs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
}
.cert-check {
  width: 22px;
  height: 22px;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---- PRICING ---- */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--green-deep);
}
.pricing .section-eyebrow { color: var(--amber-light); }
.pricing .section-header h2 { color: var(--white); }
.pricing .section-header h2 em { color: var(--amber-light); }
.pricing .section-sub { color: rgba(255,255,255,0.72); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 48px;
}
.pricing-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.pricing-card--featured {
  background: var(--white);
  border-color: var(--amber);
  border-width: 2px;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.pricing-card--featured .pricing-label { color: var(--text-light); }
.pricing-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.pricing-card--featured .pricing-amount { color: var(--green-deep); }
.pricing-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.pricing-card--featured .pricing-unit { color: var(--text-mid); }
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber-light);
  font-weight: 700;
}
.pricing-card--featured .pricing-features li { color: var(--text-mid); }
.pricing-card--featured .pricing-features li::before { color: var(--amber); }
.pricing-card .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.pricing-card .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.pricing-notes {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-note {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}
.pricing-note strong { color: var(--amber-light); }

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--amber);
  line-height: 0.6;
  margin-bottom: 20px;
  opacity: 0.6;
}
.testimonial-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author { border-top: 1px solid var(--cream-dark); padding-top: 16px; }
.author-name { font-weight: 600; font-size: 14px; color: var(--green-deep); }
.author-title { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* ---- CONTACT ---- */
.contact {
  padding: var(--section-pad) 0;
  background: var(--cream-mid);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 80px;
  align-items: start;
}
.contact-copy .section-eyebrow { margin-bottom: 12px; }
.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-copy p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}
.detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-detail-item span:last-child {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-form-wrap { grid-column: 2; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 28px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note {
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #FFF8EE;
  border-radius: var(--radius-sm);
  border: 1px solid #F5DEB3;
}
.form-disclaimer {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
}
.form-success h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}
.form-error {
  font-size: 13px;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #e8b4b0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .logo-evm { color: var(--white); font-size: 20px; }
.footer-brand .logo-full { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-legal { font-size: 12px; opacity: 0.5; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li,
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--amber-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { grid-column: 1; grid-row: 2; max-width: 400px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-col { max-width: 360px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--cream-dark); padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .logo-full { display: none; }
  .hero { padding: 90px 24px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .contact-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .about-photo-col { max-width: 100%; }
  .about-cert-badge { right: 0; }
}

/* ---- SCROLL ANIMATIONS ---- */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .testimonial-card,
  .pricing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s;
  }
  .service-card.visible,
  .testimonial-card.visible,
  .pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
