/* =========================================================
   JaceX LLC — shared stylesheet
   Palette: deep blue + red, drawn from brand preference
   ========================================================= */

:root {
  --navy: #0f2748;
  --blue: #1d4d8f;
  --blue-light: #2f6bb8;
  --red: #c22a2a;
  --red-dark: #921f1f;
  --cream: #f5f2ea;
  --white: #ffffff;
  --charcoal: #1b1e24;
  --gray: #5a6472;
  --gray-light: #d9dce1;
  --border-radius: 4px;
  --shadow: 0 6px 18px rgba(15, 39, 72, 0.14);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin-top: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-cta {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-cta:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; }

.site-nav { flex: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--border-radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.header-cta { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    order: 3;
    width: 100%;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 6px;
    border-top: 1px solid var(--gray-light);
    margin-top: 10px;
  }
  .nav-menu.open { display: flex; }
  .header-cta { order: 2; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, rgba(15,39,72,0.92), rgba(15,39,72,0.78)), url("./images/photo-1.jpg") center/cover no-repeat;
  padding: 88px 0 96px;
}

.hero .container {
  max-width: 780px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd3d3;
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); margin-bottom: 18px; }

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

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

/* ---------- Page hero (sub-pages, no photo) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 58px 0;
  border-bottom: 6px solid var(--red);
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #dfe6f0; max-width: 640px; font-size: 1.05rem; }

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

.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading p { color: var(--gray); font-size: 1.05rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy);
  color: var(--white);
  padding: 26px 0;
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.02rem;
}
.trust-item svg { flex-shrink: 0; color: var(--red); }
.trust-item .accent { color: #ff9d9d; }

/* ---------- Cards / services grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--blue);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--red); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); margin-bottom: 16px; }
.card .card-link { font-weight: 700; }

.icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---------- Photo + text split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
.split img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
  outline: 1px solid var(--gray-light);
}

/* ---------- Lists with check icons ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--charcoal);
}
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 54px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #ffe6e6; margin-bottom: 24px; font-size: 1.05rem; }

/* ---------- Contact / hours table ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.info-card {
  background: var(--cream);
  border-left: 5px solid var(--blue);
  padding: 24px;
  border-radius: var(--border-radius);
}
.info-card h3 { margin-bottom: 10px; }

table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 6px 0; border-bottom: 1px solid var(--gray-light); }
table.hours td:last-child { text-align: right; font-weight: 600; }

/* ---------- Form ---------- */
form.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.9rem; color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #d9e1ee;
  padding: 44px 0 26px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 26px;
}
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); }
.footer-info p { margin: 2px 0; }
.footer-info a { color: #d9e1ee; }
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 0;
}
.footer-nav a { color: #d9e1ee; font-weight: 600; }
.footer-bottom {
  padding-top: 18px;
  font-size: 0.88rem;
  color: #a9b6cb;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* ---------- Misc ---------- */
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.map-link { font-weight: 700; }
