/* ==========================================================================
   JAH Cutting Edge Solutions — Classic Enterprise Theme
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-dark: #071527;
  --burgundy: #6d1a2b;
  --gold: #b8860b;
  --gold-light: #d4af37;
  --cream: #f8f6f1;
  --off-white: #fbfaf7;
  --text-dark: #1c1c1c;
  --text-muted: #5a5a5a;
  --border-hairline: #e2ddd0;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0;
}

.rule.center { margin: 18px auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(251, 250, 247, 0.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--off-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 36px; }

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a.active { color: var(--burgundy); }

.nav-cta {
  background: var(--navy);
  color: var(--off-white) !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--burgundy); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--off-white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(212,175,55,0.035) 0px, rgba(212,175,55,0.035) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  font-size: 2.9rem;
  color: var(--off-white);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p.lead {
  font-size: 1.15rem;
  color: #d8dde6;
  max-width: 620px;
  margin-bottom: 34px;
}

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

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--off-white);
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--gold);
}
.page-header h1 { color: var(--off-white); font-size: 2.3rem; }
.page-header p { color: #d8dde6; max-width: 640px; margin-top: 14px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--cream); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 4px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--navy-dark);
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold-light);
  font-weight: 700;
}
.stat-label {
  color: #b7bfcc;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--off-white);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid var(--gold);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse .col-media { order: 2; }
.two-col.reverse .col-text { order: 1; }

.col-text ul.check-list { margin-top: 22px; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.98rem;
}
.check-list li:last-child { border-bottom: none; }
.check-mark {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.media-panel {
  background: var(--navy);
  border: 1px solid var(--border-hairline);
  padding: 48px 36px;
  color: var(--off-white);
  position: relative;
}
.media-panel::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold);
  z-index: -1;
}
.media-panel h4 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 14px; }
.media-panel p { color: #d8dde6; font-size: 0.95rem; }

/* ---------- Trusted by / clients ---------- */
.trusted-section { text-align: center; }
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.client-logo-item img {
  height: 84px;
  width: auto;
  filter: grayscale(15%);
}
.client-logo-item .client-name {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.client-logo-item .client-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-card {
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--off-white);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--burgundy);
  padding: 36px 40px;
  text-align: left;
  box-shadow: var(--shadow);
}
.testimonial-card p.quote {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 16px;
}
.testimonial-card .attribution {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--burgundy);
  color: var(--off-white);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: var(--off-white); font-size: 2rem; }
.cta-band p { color: #f0dede; margin: 16px 0 30px; font-size: 1.05rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--off-white);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow);
  padding: 44px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfc9b8;
  background: var(--off-white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 110px; }

#form-status {
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
#form-status.success { color: #2f6b3a; display: block; }
#form-status.error { color: var(--burgundy); display: block; }

/* ---------- Contact info cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.contact-info-card {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 28px;
}
.contact-info-card h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b7bfcc;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand-text {
  font-family: var(--serif);
  color: var(--off-white);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-col h5 {
  font-family: var(--sans);
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  color: #b7bfcc;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #7c8699;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hover lift ---------- */
.feature-card, .testimonial-card, .form-card, .contact-info-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(11, 31, 58, 0.14);
}
.contact-info-card:hover { transform: translateY(-3px); }

/* ---------- Icon glyphs (feature circles) ---------- */
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Module / panel illustrations ---------- */
.panel-illustration {
  margin-bottom: 22px;
}
.panel-illustration svg { width: 100%; max-width: 220px; height: auto; display: block; }

.panel-icon-circle {
  width: 72px; height: 72px;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.panel-icon-circle svg { width: 34px; height: 34px; }

/* ---------- Hero decorative graphic ---------- */
.hero-graphic {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 420px;
  max-width: 46vw;
  opacity: 0.22;
  pointer-events: none;
}
.hero-graphic svg { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .hero-graphic { display: none; }
}

/* ---------- Client logo animation ---------- */
.client-logo-item img { transition: transform 0.3s ease; }
.client-logo-item:hover img { transform: scale(1.05); }

/* ---------- Contact info icon ---------- */
.contact-info-card .ci-icon {
  width: 30px; height: 30px;
  color: var(--burgundy);
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border-hairline);
    display: none;
  }
  .main-nav.open { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-media, .two-col.reverse .col-text { order: initial; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .client-logos { gap: 32px; }
}
