/* ============================================================
   Manchester Carpet Care - shared stylesheet (site.css)
   Owner: orchestrator. Shared tokens + chrome (header/footer)
   live above the page banners. Page agents append page-scoped
   rules below, each under a banner comment: page: <slug>
   ============================================================ */

:root {
  --blue:        #1a5fd6;   /* bright royal accent - headings, links */
  --blue-band:   #0146ab;   /* customer-satisfaction band (source rgb(1,70,171)) */
  --blue-deep:   #0b3fbf;   /* copyright bar */
  --btn-blue:    #1e50c8;   /* solid button fill */
  --btn-blue-hi: #2a63e0;   /* button hover */
  --black:       #000000;
  --ink:         #2b2b2b;   /* body text */
  --ink-soft:    #4a4a4a;
  --muted:       #6a6a6a;   /* eyebrow / meta gray */
  --line:        #e2e2e2;
  --white:       #ffffff;
  --gold:        #f5b21a;

  --maxw: 1180px;
  --radius: 2px;
  --shadow: 0 10px 30px rgba(0,0,0,.14);

  --font-body: 'Heebo', Arial, Helvetica, sans-serif;
  --font-head: 'Montserrat', 'Heebo', Arial, sans-serif;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
p { margin: 0 0 1em; }
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---- eyebrow + headings ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow .dash { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; }
.display {
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .5px;
}
.h-blue { color: var(--blue); font-style: italic; font-weight: 800; letter-spacing: .5px; line-height: 1.08; }

/* ============================================================
   HEADER / NAV  (shared)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #efefef;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.nav {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 26px; padding: 10px 24px;
}
.nav-group {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 34px; flex: 1;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-link {
  font-family: var(--font-body);
  color: #2c2c2c; font-weight: 500; font-size: 15px;
  letter-spacing: .06em;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active { color: var(--blue); }
.nav-logo { flex: 0 0 auto; }
.nav-logo img { height: 62px; width: auto; }

/* ============================================================
   BUTTONS  (shared)
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--btn-blue); color: #fff; border-color: var(--btn-blue); }
.btn-primary:hover { background: var(--btn-blue-hi); border-color: var(--btn-blue-hi); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--black); }
.btn:active { transform: translateY(1px); }

/* ============================================================
   INNER PAGE HERO  (shared: about / services / gallery / storage / contact)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  text-align: center;
  overflow: hidden;
}
/* Source dims the banner photo purely by its own opacity over the black
   section fill -- there is no gradient scrim on top. Each page sets
   --hero-dim inline to the value its source section uses. */
.page-hero .page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: var(--hero-dim, 1);
}
.page-hero .page-hero-title {
  position: relative; z-index: 2;
  color: #fff; font-size: clamp(40px, 7vw, 74px);
  padding: 40px 20px;
}

/* ============================================================
   SECTIONS  (shared spacing)
   ============================================================ */
.section { padding: 78px 0; }
.section-sm { padding: 54px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .h-blue { font-size: clamp(30px, 4.4vw, 46px); }

/* ============================================================
   FOOTER  (shared)
   ============================================================ */
.site-footer { background: var(--black); color: #cfcfcf; padding: 54px 0 0; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-logo {
  margin: 0 auto 14px; height: 74px; width: auto;
  filter: brightness(0) invert(1);
}
.footer-contact { font-size: 13px; color: #cfcfcf; margin: 0 0 26px; }
.footer-rule { border: none; border-top: 1px solid rgba(255,255,255,.35); margin: 0 auto 22px; max-width: 820px; }
.footer-nav {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 34px; justify-content: center;
}
.footer-nav a { color: #d7d7d7; font-size: 14px; letter-spacing: .08em; }
.footer-nav a:hover, .footer-nav a.active { color: #fff; }
.copyright { background: var(--blue-deep); color: #fff; text-align: center; font-size: 13px; padding: 12px 16px; }

/* ============================================================
   HOME HERO  (page: index shares .hero)
   ============================================================ */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* Source shows the home hero photo at full strength -- no dimming, no scrim. */
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 118px 24px 130px; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 62px); margin: 6px 0 22px; }
.hero p { color: #e6e6e6; font-size: 17px; margin: 0 auto 30px; max-width: 640px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SPLIT SECTION (image + text)  shared by who-we-are / mini-split / storage
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.split .split-text { max-width: 520px; }
.split .split-text .h-blue { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 18px; }
.figure-frame { position: relative; padding: 34px 0 34px 34px; }
.figure-frame .frame-bg {
  position: absolute; left: 0; top: 0; bottom: 0; width: 78%;
  height: 100%; object-fit: cover; z-index: 0; opacity: .95;
}
.figure-frame .frame-photo { position: relative; z-index: 1; width: 78%; margin-left: auto; box-shadow: var(--shadow); }

/* ============================================================
   SERVICES CARDS  (home + services)
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.svc-card { }
.svc-card .svc-img { width: 100%; height: 220px; object-fit: cover; box-shadow: var(--shadow); }
.svc-meta { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.svc-num { font-family: var(--font-head); font-style: italic; font-weight: 800; color: var(--blue); font-size: 22px; }
.svc-title { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 18px; letter-spacing: .5px; color: var(--ink); }
.svc-arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--btn-blue); color: #fff; margin-left: auto; transition: background .2s ease, transform .2s ease; }
.svc-arrow:hover { background: var(--btn-blue-hi); transform: translateX(3px); }
.svc-body { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   TESTIMONIALS BAND  (page: index)
   ============================================================ */
/* Source layers an "abstract surface" photo at 42% over the flat blue fill. */
.band-blue { position: relative; background: var(--blue-band); color: #fff; padding: 74px 0; overflow: hidden; }
.band-blue .band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .42; z-index: 0;
}
.band-blue .wrap { position: relative; z-index: 1; }
.band-blue .section-head .h-blue { color: #fff; }
.band-blue .band-intro { text-align: center; max-width: 720px; margin: 0 auto 46px; color: #eaf0ff; }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review {
  background: rgba(1,70,171,.56);
  border: 1px solid rgb(1,70,171);
  padding: 20px 20px 22px; border-radius: 3px;
  display: flex; flex-direction: column;
}
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.review .rev-name { font-weight: 700; margin-bottom: 8px; }
.review .rev-text { font-size: 14px; color: #eef2ff; line-height: 1.55; margin-bottom: 12px; }
.review .rev-svc { font-size: 12.5px; color: #cfd9ff; margin-bottom: 14px; }
.review .rev-google { margin-top: auto; }
.review .rev-google img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.review a { color: #fff; }
.leave-review { text-align: center; margin-top: 40px; }
.leave-review a { color: #fff; font-weight: 600; letter-spacing: .04em; }
.leave-review a:hover { text-decoration: underline; }

/* ============================================================
   GALLERY CAROUSEL  (home strip + gallery page)
   Source is a Wix Pro Gallery "slider": two rows of 205px items,
   5px margins, scrolled horizontally by edge arrows.
   ============================================================ */
.gallery-carousel { position: relative; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 205px;
  grid-template-rows: repeat(2, 205px);
  gap: 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track a { display: block; overflow: hidden; }
.gallery-track img {
  width: 205px; height: 205px; object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}
.gallery-track a:hover img { transform: scale(1.06); filter: brightness(.7); }

.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-band); color: #fff;
  border: none; cursor: pointer; z-index: 3;
  font-family: var(--font-body); font-size: 19px; line-height: 1;
  transition: background .2s ease;
}
.gal-arrow:hover { background: var(--btn-blue-hi); }
.gal-arrow[hidden] { display: none; }
.gal-prev { left: 0; }
.gal-next { right: 0; }

/* Home strip runs edge to edge; the gallery page sits in the content column. */
.gallery-full { padding-left: 50px; padding-right: 50px; }
.gallery-full .gal-prev { left: 50px; }
.gallery-full .gal-next { right: 50px; }

/* ============================================================
   CONTACT  (home section + contact page)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info .h-blue { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; }
.contact-info p { color: var(--ink); font-size: 16px; line-height: 1.9; margin: 0; }
.contact-map { margin-top: 26px; height: 300px; width: 100%; border: 1px solid var(--line); z-index: 0; }

/* ---- form ---- */
.lead-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: #5a5a5a; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 10px 12px; border: 1px solid #c9d4ec; border-radius: 2px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26,95,214,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.form-actions { text-align: right; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   MOTION  (shared)  -- pure-CSS on-load reveals; always end visible
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal { animation: fadeUp .7s ease both; }
.reveal-2 { animation: fadeUp .7s ease .12s both; }
.reveal-3 { animation: fadeUp .7s ease .24s both; }
.fade-in { animation: fadeIn 1s ease both; }

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

/* ============================================================
   RESPONSIVE  (shared)
   ============================================================ */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-group { flex: 1 1 100%; justify-content: center; gap: 22px; order: 2; }
  .nav-logo { order: 1; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .svc-grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-full { padding-left: 24px; padding-right: 24px; }
  .gallery-full .gal-prev { left: 24px; }
  .gallery-full .gal-next { right: 24px; }
}
@media (max-width: 560px) {
  .reviews { grid-template-columns: 1fr; }
  .gallery-track { grid-auto-columns: 150px; grid-template-rows: repeat(2, 150px); }
  .gallery-track img { width: 150px; height: 150px; }
  .hero-inner { padding: 84px 20px 90px; }
  .section { padding: 54px 0; }
}

/* ============================================================
   page: index
   ============================================================ */
#home-hero-bg { }
.mini-split { position: relative; background: #f4f5f7; overflow: hidden; }
.mini-split .ms-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: 0; }
.mini-split .wrap { position: relative; z-index: 1; }
.ms-collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ms-collage img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--shadow); }
.ms-text .h-blue { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 18px; }
.ms-text h4 { font-family: var(--font-body); font-weight: 700; margin: 16px 0 6px; color: var(--ink); }
.ms-text ul { margin: 8px 0 22px; padding-left: 20px; color: var(--ink-soft); }
.ms-text li { margin-bottom: 6px; }
.who-we-are { background: #fff; }

/* ============================================================
   page: about
   ============================================================ */
.about-band-transition { height: 60px; background: var(--blue-band); }

/* ============================================================
   page: gallery
   ============================================================ */

/* ============================================================
   page: contact
   ============================================================ */
.contact-page .section { padding-top: 66px; }
