/* ==========================================================================
   MJC Repairs & Services — site styles
   Primary: #2C73A1  | Light theme
   ========================================================================== */

:root {
  --blue: #2C73A1;
  --blue-dark: #1f5577;
  --blue-darker: #163e57;
  --blue-50: #eef5fa;
  --blue-100: #d8e8f2;
  --ink: #1b2733;
  --body: #475766;
  --muted: #7a8896;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --white: #ffffff;
  --amber: #f6a623;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 62, 87, .06), 0 2px 6px rgba(22, 62, 87, .05);
  --shadow: 0 10px 30px -12px rgba(22, 62, 87, .25);
  --shadow-lg: 0 24px 60px -20px rgba(22, 62, 87, .35);
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head: "Poppins", var(--font);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; color: var(--body); }
.section-head { max-width: 720px; margin: 0 auto 52px; }
.section-head.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(44,115,161,.7); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(44,115,161,.8); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue-100); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-dark); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: #f0f6fb; color: var(--blue-darker); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.brand img { width: 46px; height: 46px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--head); font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: .5rem .9rem; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--blue-50); color: var(--blue-dark); }
.nav-links a.active { color: var(--blue); background: var(--blue-50); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--head); font-weight: 600; color: var(--ink); }
.nav-phone svg { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink); }

/* mobile nav */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 24px 1.4rem;
    gap: .2rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 70; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; border-radius: 10px; }
  /* keep the header uncluttered: the toggle exposes full nav incl. Contact */
  .nav-cta .nav-phone,
  .nav-cta .btn--primary { display: none; }
  .nav { gap: .5rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--blue-darker); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,62,87,.92) 0%, rgba(31,85,119,.78) 42%, rgba(22,62,87,.45) 100%);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; padding: 96px 24px 104px; max-width: var(--maxw); margin: 0 auto; }
.hero h1 { color: #fff; max-width: 680px; }
.hero p { color: #dbe8f1; font-size: 1.2rem; max-width: 560px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--head); font-weight: 500;
  font-size: .82rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #eaf3f9;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero__strip div { padding: 1.1rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.hero__strip div:last-child { border-right: 0; }
.hero__strip strong { display: block; font-family: var(--head); color: #fff; font-size: 1.05rem; }
.hero__strip span { color: #b9d0e0; font-size: .8rem; letter-spacing: .04em; }
@media (max-width: 640px){ .hero__strip { grid-template-columns: repeat(2,1fr); } .hero__strip div:nth-child(2){border-right:0;} }

/* page hero (interior) */
.page-hero { position: relative; background: var(--blue-darker); color: #fff; padding: 72px 0 64px; overflow: hidden; }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(44,115,161,.55), transparent 60%),
    linear-gradient(120deg, var(--blue-darker), var(--blue-dark));
}
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #cfe1ee; font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .85rem; color: #a9c6da; margin-bottom: 1rem; font-family: var(--head); }
.crumbs a { color: #d9eaf5; }

/* ---------- cards / services ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px){ .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 1rem; color: var(--body); }
.card .link-arrow { font-family: var(--head); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
.card .link-arrow svg { transition: transform .15s ease; }
.card:hover .link-arrow svg { transform: translateX(3px); }

/* numbered/detailed service blocks */
.service-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-row + .service-row { margin-top: 76px; }
.service-row__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-alt); }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step-tag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--head); font-weight: 600; color: var(--blue); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.step-tag b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color:#fff; font-size: .85rem; }
@media (max-width: 860px){ .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 28px; direction: ltr; } .service-row + .service-row { margin-top: 48px; } }

/* feature list with ticks */
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .65rem; }
.ticks li { display: flex; align-items: flex-start; gap: .65rem; color: var(--ink); font-weight: 500; }
.ticks svg { flex: 0 0 auto; margin-top: 3px; color: var(--blue); }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 32px; } }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 4/3; }

/* stat badge floating */
.stat-float {
  position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: 12px;
  padding: .85rem 1.1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem;
}
.stat-float .n { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.stat-float small { color: var(--muted); font-size: .78rem; }

/* ---------- coverage / areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.area-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-family: var(--head); font-weight: 500; font-size: .92rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.area-chip svg { color: var(--blue); }

/* ---------- stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width:720px){ .stats-band{ grid-template-columns: repeat(2,1fr);} }
.stat { text-align: center; }
.stat .n { font-family: var(--head); font-weight: 700; font-size: clamp(2rem,4vw,2.8rem); color: var(--blue); line-height: 1; }
.stat p { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- reviews ---------- */
.review-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.stars { color: var(--amber); display: flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.review-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.reviewer { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color:#fff; display:grid; place-items:center; font-family: var(--head); font-weight: 600; }
.reviewer b { font-family: var(--head); color: var(--ink); display: block; font-size: .95rem; }
.reviewer span { font-size: .82rem; color: var(--muted); }

.rating-summary { display:flex; align-items:center; justify-content:center; gap: 1.2rem; flex-wrap: wrap; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; box-shadow: var(--shadow-sm); max-width: 560px; margin: 0 auto 48px; }
.rating-summary .big { font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--ink); line-height: 1; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px){ .gallery { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .gallery { grid-template-columns: 1fr;} }
.gallery figure {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; background: var(--bg-alt);
}
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .8rem;
  background: linear-gradient(to top, rgba(22,62,87,.88), transparent);
  color: #fff; font-family: var(--head); font-weight: 600; font-size: .92rem;
  transform: translateY(8px); opacity: 0; transition: .2s ease;
}
.gallery figure:hover figcaption { transform: translateY(0); opacity: 1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,32,45,.92); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.12); border:0; color:#fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color:#dceaf3; font-family: var(--head); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color:#fff; border-radius: 20px; padding: 56px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; right:-60px; top:-60px; width: 260px; height: 260px; border-radius:50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color:#fff; }
.cta-band p { color:#dceaf3; max-width: 560px; }
.cta-band .hero__actions { margin-top: 1.6rem; }
@media (max-width:600px){ .cta-band{ padding: 36px 26px;} }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.info-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.info-item { display:flex; gap: 1rem; padding: 16px; border-radius: 10px; align-items: flex-start; }
.info-item + .info-item { border-top: 1px solid var(--line); }
.info-item .ic { flex:0 0 auto; width: 46px; height:46px; border-radius:10px; background: var(--blue-50); color: var(--blue); display:grid; place-items:center; }
.info-item b { font-family: var(--head); color: var(--ink); display:block; }
.info-item a, .info-item span { color: var(--body); }
.info-item a:hover { color: var(--blue); }

form.contact-form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,115,161,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.hp { position: absolute; left: -9999px; }
.form-success {
  display: none; background: #e9f7ef; border: 1px solid #b8e6c9; color: #1d7a45;
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 500;
}
.form-success.show { display: block; }

/* map */
.map-embed { border-radius: var(--radius); overflow: hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); line-height:0; }
.map-embed iframe { width:100%; height: 340px; border:0; filter: saturate(1.05); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-darker); color: #c6d8e6; padding: 64px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap: 28px;} }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr;} }
.site-footer h4 { color:#fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer a { color:#c6d8e6; }
.site-footer a:hover { color:#fff; }
.footer-brand { display:flex; align-items:center; gap:.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height:44px; border-radius: 10px; }
.footer-brand b { font-family: var(--head); color:#fff; font-size: 1.1rem; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:.55rem; }
.footer-contact { list-style:none; padding:0; margin:0; display:grid; gap:.7rem; }
.footer-contact li { display:flex; gap:.6rem; align-items:flex-start; }
.footer-contact svg { flex:0 0 auto; margin-top:3px; color:#7fb3d4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#9bb6c9; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
