/* JR General Contracting Group — base stylesheet */

:root {
  --navy: #12263f;
  --navy-deep: #0d1c2f;
  --blue: #3a7ab0;
  --blue-dark: #2f648f;
  --gray-900: #1f2933;
  --gray-700: #495562;
  --gray-500: #6b7684;
  --gray-200: #e3e7ec;
  --gray-100: #f2f5f8;
  --white: #ffffff;
  --radius: 8px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(18, 38, 63, .08), 0 8px 24px rgba(18, 38, 63, .06);
  --ff: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
}

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

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

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.05em; }
ul { margin: 0 0 1.05em; padding-left: 1.15rem; }
li { margin-bottom: .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c8d3e0;
  font-size: .86rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; }
.topbar-items { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--navy); font-weight: 700; font-size: 1.03rem; letter-spacing: -.015em; }
.brand-tag { color: var(--gray-500); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; }

.nav-toggle {
  display: none;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); color: var(--navy);
  font-size: .92rem; font-weight: 600; padding: 9px 13px; cursor: pointer;
}

.site-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 9px 13px; border-radius: var(--radius);
  color: var(--gray-700); font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--gray-100); }
.site-nav .nav-cta {
  background: var(--navy); color: #fff; margin-left: 8px; padding: 10px 18px;
}
.site-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; padding: 14px 24px;
  text-align: center; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gray-100); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow {
  display: block; margin-bottom: 10px;
  color: var(--blue-dark); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #dce4ee; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 28, 47, .92) 0%, rgba(13, 28, 47, .78) 52%, rgba(13, 28, 47, .55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 78px 0 68px; max-width: 720px; }
.hero h1 { color: #fff; font-size: 2.5rem; }
.hero-lead { font-size: 1.1rem; color: #cfdae7; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hero-points li { color: #cfdae7; font-size: .95rem; padding-left: 20px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}

/* ---------- Page header ---------- */
.page-header { background: var(--navy); color: #cfdae7; padding: 54px 0 46px; }
.page-header h1 { color: #fff; margin-bottom: .45em; }
.page-header p { max-width: 700px; margin-bottom: 0; color: #cfdae7; }
.page-header .eyebrow { color: #8fb6d8; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-media .card-body { padding: 22px 24px 24px; }
.card-media .card-body p:last-child { margin-bottom: 0; }

.step { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; }
.step-num {
  display: block; color: var(--blue-dark); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px;
}
.step h3 { margin-bottom: .45em; }
.step p:last-child { margin-bottom: 0; }

/* ---------- Split media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.split img { border-radius: var(--radius); }
.split-text p:last-child, .split-text ul:last-child { margin-bottom: 0; }

/* ---------- Service list ---------- */
.service-block {
  padding: 26px 0; border-top: 1px solid var(--gray-200);
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block h3 { margin-bottom: .4em; }
.service-block p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 22px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 7px; height: 7px; background: var(--blue); border-radius: 2px;
}

/* ---------- Area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 999px; padding: 8px 17px;
  color: var(--navy); font-weight: 600; font-size: .93rem; margin: 0;
}

/* ---------- Contact / CTA band ---------- */
.cta-band { background: var(--navy); color: #cfdae7; padding: 54px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdae7; }
.cta-band .btn-group { margin-top: 26px; }
.cta-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.cta-details { list-style: none; padding: 0; margin: 0; }
.cta-details li { margin-bottom: 12px; }
.cta-details span {
  display: block; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .1em; color: #8fb6d8;
}
.cta-details a { color: #fff; font-weight: 600; }

/* ---------- Info list (contact page) ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.info-list li:last-child { border-bottom: 0; }
.info-label {
  display: block; color: var(--gray-500); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px;
}
.info-value { color: var(--navy); font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: .97rem; }
.hours th { color: var(--navy); font-weight: 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--gray-900);
  padding: 12px 13px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--gray-500); margin: 14px 0 0; }
.form-status { margin: 16px 0 0; padding: 13px 15px; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #e8f1f8; color: var(--navy); border: 1px solid #bcd6ea; }

/* ---------- Map ---------- */
.map-frame {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; line-height: 0; background: var(--gray-100);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b8c9; padding: 52px 0 26px; font-size: .95rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #dbe4ee; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand span { color: #fff; font-weight: 700; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .88rem;
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 46px 0; }
  .hero-inner { padding: 56px 0 50px; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; width: 100%;
    border-top: 1px solid var(--gray-200);
    padding: 10px 0 14px;
  }
  .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 13px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .topbar .container { justify-content: flex-start; }

  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 9px 12px; gap: 10px;
  }
  .call-bar a {
    flex: 1; padding: 12px 10px; border-radius: var(--radius);
    font-weight: 700; font-size: .95rem; text-align: center;
  }
  .call-bar .call-bar-primary { background: var(--blue); color: #fff; }
  .call-bar .call-bar-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
  .call-bar a:hover { text-decoration: none; }
  body { padding-bottom: 68px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
