/* ===========================================================
   Jack EVS Solutions — Stylesheet
   Colors: Navy #0B1D3A · Teal accent #0EA5E9 · Gold #D4A843
   =========================================================== */

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

:root {
  --navy: #0B1D3A;
  --navy-light: #132B52;
  --navy-dark: #07121F;
  --teal: #0EA5E9;
  --teal-light: #38BDF8;
  --teal-dark: #0284C7;
  --gold: #D4A843;
  --gold-light: #E4C06E;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-200: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section {
  padding: 100px 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 29, 58, .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.logo-jack { color: var(--white); }
.logo-evs { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 20px !important;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.text-accent { color: var(--gold); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.stat-number,
.stat-symbol,
.stat-dollar {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-number {
  min-width: 3ch;
  display: inline-block;
  text-align: right;
}
.stat-symbol { color: var(--teal); }
.stat-dollar { color: var(--teal); }

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  letter-spacing: .04em;
  flex-basis: 100%;
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--white);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- ABOUT ---------- */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-profile-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: block;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  gap: 12px;
  box-shadow: var(--shadow-xl);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: .4;
}

.about-image-placeholder span {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: .05em;
  opacity: .15;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
}

.about-badge i {
  color: var(--teal);
  width: 20px;
  height: 20px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-text-col p {
  margin-bottom: 16px;
}

.about-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlight i {
  width: 24px;
  height: 24px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 2px;
}

.highlight span {
  font-size: .85rem;
  color: var(--gray-500);
}

/* ---------- SERVICES ---------- */
.services { background: var(--white); }

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

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-card.featured {
  border-color: var(--teal);
  background: linear-gradient(180deg, rgba(14,165,233,.03) 0%, var(--white) 100%);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--teal);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 20px;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(14,165,233,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.service-icon i {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card > p {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-600);
}

.service-features li i {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.experience {
  background: var(--off-white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--gray-200) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border: 3px solid var(--off-white);
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal);
}

.timeline-date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .04em;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 4px;
}

.timeline-org {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.timeline-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-content li {
  font-size: .9rem;
  color: var(--gray-600);
  padding-left: 16px;
  position: relative;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ---------- RESULTS ---------- */
.results { background: var(--navy); }
.results .section-label { color: var(--gold); }
.results .section-title { color: var(--white); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.result-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}

.result-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.result-icon {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.result-icon i {
  width: 32px;
  height: 32px;
}

.result-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  min-width: 3ch;
  display: inline-block;
}

.result-number span {
  color: var(--teal);
}

.result-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 80px 0;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
}

/* ---------- CONTACT ---------- */
.contact { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.contact-card i {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: .8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.contact-card a,
.contact-card span {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--teal);
}

.contact-why {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--gray-100);
  margin-top: 8px;
}

.contact-why h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-why ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-why li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-600);
}

.contact-why li i {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/* --- Contact Form --- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: .95rem;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--gray-700);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  text-align: center;
}

.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,.3);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero-content { padding-top: 100px; padding-bottom: 60px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .stat-number, .stat-symbol, .stat-dollar { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 48px; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-col { order: -1; }
  .about-image-placeholder { aspect-ratio: 16/9; }
  .about-badge {
    bottom: -12px;
    right: 12px;
    padding: 12px 16px;
    font-size: .8rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Results */
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-content { padding-top: 80px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}
