/* ============================================
   JR Maintenance Service LLC — Design tokens
   Palette: Deep Ocean #0B2545, Pine Teal #0F3D3E,
            Streak Aqua #2EC4B6, Mist #F4F8F7, Charcoal #16202A
   Type: Archivo (display) + Karla (body)
   Signature: hero "squeegee wipe" reveal
   ============================================ */

:root {
  --navy: #0B2545;
  --teal: #0F3D3E;
  --aqua: #2EC4B6;
  --aqua-dark: #1FA394;
  --mist: #F4F8F7;
  --white: #FFFFFF;
  --charcoal: #16202A;
  --gray: #5B6B72;
  --line: #E2E9E8;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Karla', sans-serif;

  --radius: 10px;
  --shadow: 0 12px 30px rgba(11, 37, 69, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 .5em; color: var(--navy); line-height: 1.12; }
p { margin: 0 0 1em; color: var(--gray); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  margin: 0 0 .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn--accent { background: var(--aqua); color: var(--navy); }
.btn--accent:hover { background: var(--aqua-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(46,196,182,.35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--teal); transform: translateY(-2px); }
.btn--small { padding: 14px 26px; font-size: 15.5px; }
.btn--full { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: 13.5px; }
.topbar__inner {
  max-width: var(--container); margin: 0 auto; padding: 8px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.topbar a { color: var(--aqua); font-weight: 700; }
.topbar a:hover { text-decoration: underline; }
.topbar__hours { color: var(--aqua); font-weight: 700; }
@media (max-width: 680px) { .topbar__hours { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 4px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; margin-right: auto; }
.nav__logo { height: 92px; width: auto; display: block; }
.nav__links { display: flex; gap: 32px; font-weight: 600; font-size: 17px; }
.nav__links a:hover { color: var(--aqua-dark); }
.nav__cta { white-space: nowrap; }
.nav__ctas { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav__mobile { display: none; flex-direction: column; padding: 8px 24px 18px; gap: 14px; font-weight: 600; }
.nav__mobile.is-open { display: flex; }
.nav__mobile-cta { align-self: flex-start; margin-top: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--navy);
}
.hero__bg {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  animation: wipeReveal 1.6s cubic-bezier(.65,0,.35,1) .3s forwards;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,37,69,.88) 0%, rgba(15,61,62,.72) 55%, rgba(10,31,61,.85) 100%);
}
.hero__wipe-edge {
  position: absolute; top: 0; right: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, rgba(46,196,182,0) 0%, var(--aqua) 50%, rgba(46,196,182,0) 100%);
  box-shadow: 0 0 24px 4px rgba(46,196,182,.55);
  animation: edgeTravel 1.6s cubic-bezier(.65,0,.35,1) .3s forwards;
}
@keyframes wipeReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes edgeTravel { from { right: 100%; } to { right: 0%; } }
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; clip-path: inset(0 0 0 0); }
  .hero__wipe-edge { animation: none; right: 0; opacity: 0; }
  .hero__slide { transition: none; }
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 120px 24px 90px;
}
.hero__title { color: var(--white); font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; max-width: 24ch; }
.hero__title span { display: inline-block; margin-top: .3em; font-size: 0.55em; font-weight: 700; color: rgba(255,255,255,.85); }
.hero__sub { color: rgba(255,255,255,.78); font-size: 18px; max-width: 52ch; margin-bottom: 2em; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 3.5em; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; color: var(--white); }
.hero__stats strong { font-family: var(--font-display); font-size: 20px; }
.hero__stats span { color: var(--aqua); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 100px 24px; max-width: var(--container); margin: 0 auto; }
.section--tint { background: var(--mist); max-width: none; padding-left: 0; padding-right: 0; }
.section--tint > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section--dark { background: var(--navy); max-width: none; padding-left: 0; padding-right: 0; }
.section--dark > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--light h2 { color: var(--white); }
.section__head--light p { color: rgba(255,255,255,.7); }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section__lede { font-size: 17px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { color: var(--aqua-dark); width: 44px; height: 44px; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: .4em; }
.card p { font-size: 15px; margin-bottom: 0; }
.card--cta { background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.card--cta h3 { color: var(--white); }
.card--cta p { color: rgba(255,255,255,.72); }
.card__link { color: var(--aqua); font-weight: 700; font-family: var(--font-display); font-size: 14px; }

/* ---------- Service rows (alternating) ---------- */
.service-rows { display: flex; flex-direction: column; gap: 64px; }
.service-row {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center;
}
.service-row--reverse .service-row__media { order: 2; }
.service-row--reverse .service-row__text { order: 1; }
.service-row__media {
  aspect-ratio: 4/3; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--teal), var(--navy));
  color: var(--aqua);
}
.service-row__media svg { width: 34%; height: 34%; }
.service-row__media--photo {
  background-size: cover; background-position: center;
}
.service-row__text h3 { font-size: 24px; margin-bottom: .5em; }
.service-row__text p { font-size: 16px; max-width: 52ch; }
.service-row__link { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--aqua-dark); }
.service-row__link:hover { text-decoration: underline; }
.services-section__note { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--navy); }
.services-section__note a { color: var(--aqua-dark); font-weight: 700; }

/* ---------- Proven on demanding projects ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof-item {
  padding: 24px 20px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); border-top: 3px solid var(--aqua);
}
.proof-item h3 { font-size: 17px; margin-bottom: .4em; }
.proof-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- Selected project experience ---------- */
.projects { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
.projects .eyebrow { color: var(--aqua); }
.projects__note { color: rgba(255,255,255,.7); font-size: 15px; max-width: 60ch; margin-bottom: 28px; }
.projects__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.projects__item {
  padding: 22px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.projects__item h3 { color: var(--white); font-size: 16px; margin-bottom: .4em; }
.projects__item p { color: rgba(255,255,255,.65); font-size: 13.5px; margin-bottom: 0; }

/* ---------- Recent work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-grid__item {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background-size: cover; background-position: center;
  transition: transform .3s ease;
}
.work-grid__item:hover { transform: scale(1.02); }

/* ---------- Who we serve ---------- */
.who-we-serve .section__head { margin-bottom: 40px; }
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.serve-list { display: flex; flex-direction: column; gap: 14px; }
.serve-list li {
  position: relative; padding-left: 22px; font-weight: 600; font-size: 15.5px; color: var(--navy);
}
.serve-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--aqua);
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; border-top: 3px solid var(--aqua); }
.step__num { font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--line); display: block; margin-bottom: 6px; -webkit-text-stroke: 1px var(--aqua-dark); color: transparent; }
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.checklist { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--charcoal); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--aqua);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px;
  border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg);
}
.about__panel {
  position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden;
  background-size: cover; background-position: center top;
}

/* ---------- Partners ---------- */
.partners {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.partners__item {
  padding: 28px 16px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); border-top: 3px solid var(--aqua);
  color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: .01em; line-height: 1.3;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.partners__item:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact__list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact__list a:hover { color: var(--aqua-dark); }
.contact__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); margin-bottom: 2px; }
.contact__list li a, .contact__list li span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); }

.contact__form { background: var(--mist); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); }
.form__row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form__row--split { flex-direction: row; gap: 18px; }
.form__row--split > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 700; color: var(--navy); }
input, select, textarea {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(46,196,182,.2); }
.form__note { font-size: 12.5px; color: var(--gray); margin: 12px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(255,255,255,.65); padding: 56px 24px 28px; }
.footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .nav__wordmark { color: var(--white); }
.footer__logo-wrap {
  display: inline-block; background: var(--white); padding: 8px 16px;
  border-radius: 8px; margin-bottom: 14px;
}
.footer__logo { height: 76px; width: auto; display: block; }
.footer__brand p { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 12px; max-width: 32ch; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 14.5px; }
.footer__links a:hover { color: var(--aqua); }
.footer__legal { font-size: 13px; }
.footer__legal p { color: rgba(255,255,255,.5); margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__panel { max-width: 360px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .service-row, .service-row--reverse { grid-template-columns: 1fr; }
  .service-row--reverse .service-row__media, .service-row--reverse .service-row__text { order: initial; }
  .service-row__media { max-width: 320px; }
  .serve-grid { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .projects__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links, .nav__ctas { display: none; }
  .nav__toggle { display: flex; }
  .nav__logo { height: 60px; width: auto; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .hero__inner { padding: 100px 20px 70px; }
  .section { padding: 70px 20px; }
  .form__row--split { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .projects__list { grid-template-columns: 1fr; }
  .topbar__inner { padding: 8px 20px; }
}
@media (max-width: 420px) {
  .nav__logo { height: 50px; width: auto; }
  .partners { grid-template-columns: 1fr; }
}

/* ============================================
   Contractors page
   ============================================ */
.nav__links a.is-active { color: var(--aqua-dark); }

.chero {
  position: relative; overflow: hidden;
  min-height: 60vh; display: flex; align-items: center;
  background: var(--navy);
}
.chero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.chero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,37,69,.92) 0%, rgba(15,61,62,.82) 55%, rgba(10,31,61,.9) 100%);
}
.chero__inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 90px 24px 70px; }
.chero__title { color: var(--white); font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; max-width: 20ch; margin-bottom: .5em; }
.chero__sub { color: rgba(255,255,255,.8); font-size: 17px; max-width: 68ch; margin-bottom: 1.6em; }
.chero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.contractor-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contractor-service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--aqua);
}
.contractor-service h3 { font-size: 17px; margin-bottom: .8em; }
.contractor-service ul { display: flex; flex-direction: column; gap: 8px; }
.contractor-service li { font-size: 14.5px; color: var(--gray); position: relative; padding-left: 16px; }
.contractor-service li::before { content: "\2013"; position: absolute; left: 0; color: var(--aqua-dark); }

.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.perf-grid[hidden] { display: none; }
.perf-item {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; border-top: 3px solid var(--aqua);
}
.perf-item h3 { font-size: 17px; margin-bottom: .3em; }
.perf-item__type { font-size: 14px; color: var(--gray); margin-bottom: .5em; }
.perf-item__stats { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: .2em; }
.perf-item__support { font-size: 12.5px; color: var(--aqua-dark); font-weight: 600; margin-bottom: 0; }
.perf-toggle { display: block; margin: 8px auto 0; }

.vendor-info { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.vendor-info__list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.vendor-info__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.vendor-info__row dt { font-weight: 700; color: var(--navy); font-size: 15px; }
.vendor-info__row dd { margin: 0; color: var(--gray); font-size: 15px; text-align: right; }
.vendor-info__actions { display: flex; flex-direction: column; gap: 14px; }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--white); }

.contractor-form { max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }

.final-cta { text-align: center; max-width: 760px; margin: 0 auto; padding-top: 90px; padding-bottom: 90px; }
.final-cta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 36px); }
.final-cta p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 1.6em; }
.final-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .contractor-services { grid-template-columns: 1fr 1fr; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .vendor-info { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .contractor-services { grid-template-columns: 1fr; }
  .perf-grid { grid-template-columns: 1fr; }
  .chero__inner { padding: 80px 20px 60px; }
}
