/* Limestone Mechanical — homepage
   Mobile-first. Brand from the Vistaprint card, sticker and banner:
   charcoal "wet stone" band, light grey slab wordmark, grey limestone texture (A2b strata). */

:root {
  --charcoal: #231F20;
  --charcoal-2: #2E2A2B;
  --wordmark: #D6D7D9;
  --subline: #ABABAD;
  --stone-100: #E6E7E8;
  --stone-200: #C8C9CB;
  --stone-300: #B1B2B6;
  --stone-500: #868689;
  --chalk: #F4F4F3;
  --paper: #FBFBFA;
  --ink: #231F20;
  --ink-soft: #4A4547;
  --line: #D9D9DA;
  --max: 72rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(35,31,32,.06), 0 8px 24px rgba(35,31,32,.08);
  --slab: "Roboto Slab", Rockwell, "Zilla Slab", Georgia, serif;
  --sans: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --texture: url("img/texture-a2b.jpg");
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.25rem; /* room for mobile call bar */
}

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

h1, h2, h3 {
  font-family: var(--slab);
  line-height: 1.15;
  margin: 0 0 .6rem;
  color: inherit;
}
h1 { font-weight: 700; font-size: clamp(1.8rem, 6.2vw, 3rem); letter-spacing: .005em; }
h2 { font-weight: 700; font-size: clamp(1.55rem, 4.2vw, 2.3rem); text-transform: uppercase; letter-spacing: .04em; }
h3 { font-weight: 600; font-size: 1.15rem; }

p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 3px solid #5B8DC4; outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 300;
  background: var(--charcoal); color: #fff; padding: .55rem .9rem; border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.9rem; padding: .7rem 1.2rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 3.25rem; padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.hero .btn-primary, .section-dark .btn-primary { background: var(--wordmark); color: var(--charcoal); }
.hero .btn-primary:hover, .section-dark .btn-primary:hover { background: #fff; }
.btn-light { background: var(--wordmark); color: var(--charcoal); }
.btn-light:hover { background: #fff; color: var(--charcoal); }
.btn-ghost { border-color: rgba(214,215,217,.7); color: var(--wordmark); background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
@media (max-width: 39.99em) { .hero .btn-row .btn { flex: 1 1 100%; } .hero h1 { font-size: 1.75rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--wordmark);
  border-bottom: 1px solid #000;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.wm-name {
  font-family: var(--slab); font-weight: 700; text-transform: uppercase;
  font-size: 1.45rem; letter-spacing: .06em; color: var(--wordmark);
}
.wm-sub {
  font-family: var(--slab); font-weight: 300; font-size: .9rem; letter-spacing: .05em;
  color: var(--subline); margin-top: .18rem;
}

.header-call {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--charcoal); background: var(--wordmark); text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: .55rem .75rem; border-radius: var(--radius);
}
.header-call:hover { background: #fff; }
.hc-num { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0 .6rem; border: 1px solid #4a4546; border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--wordmark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--charcoal); border-top: 1px solid #3a3536; box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: .8rem 0; border-bottom: 1px solid #3a3536;
  color: var(--wordmark); text-decoration: none; font-family: var(--slab); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
}
.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--wordmark);
  background-color: var(--charcoal);
  background-image: linear-gradient(180deg, rgba(35,31,32,.86) 0%, rgba(35,31,32,.80) 55%, rgba(35,31,32,.92) 100%), var(--texture);
  background-size: cover; background-position: center 40%;
}
.hero-inner { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.75rem; }
.hero-brand { display: none; flex-direction: column; line-height: 1; margin-bottom: 1.1rem; }
.hb-name {
  font-family: var(--slab); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 13vw, 5.2rem); letter-spacing: .04em; color: var(--wordmark);
}
.hb-sub {
  font-family: var(--slab); font-weight: 300; font-size: clamp(1.25rem, 5vw, 2rem);
  letter-spacing: .04em; color: var(--subline); margin-top: .3rem;
}
.hero h1 { color: #fff; font-size: clamp(1.45rem, 4.6vw, 2.15rem); font-weight: 600; max-width: 32ch; }
.lead { font-size: 1.1rem; color: #cfcfd1; max-width: 40rem; }
.hero-facts {
  list-style: none; padding: 0; margin: 1.4rem 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .95rem; color: #c3c3c5;
}
.hero-facts li { display: inline-flex; align-items: center; gap: .4rem; }
.stars { color: #E8C35A; letter-spacing: .08em; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--wordmark); box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.hero-photo figcaption { font-size: .85rem; color: var(--subline); margin-top: .55rem; }

/* ---------- Stone band (like the bottom of the business card) ---------- */
.stone-band {
  background-color: var(--stone-200);
  background-image: linear-gradient(rgba(214,215,217,.55), rgba(214,215,217,.55)), var(--texture);
  background-size: cover; background-position: center 60%;
  border-top: 1px solid #000; border-bottom: 1px solid #9a9a9d;
}
.stone-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .25rem 2rem; padding-top: 1rem; padding-bottom: 1rem; text-align: center;
}
.stone-band p { margin: 0; font-family: var(--slab); color: var(--charcoal); }
.sb-tag { font-weight: 600; font-size: 1.1rem; }
.sb-phone a { font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: .02em; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-dark { background: var(--charcoal); color: #dcdcde; border-top: 0 !important; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-stone {
  background-color: var(--stone-100);
  background-image: linear-gradient(rgba(240,240,240,.88), rgba(240,240,240,.88)), var(--texture);
  background-size: cover; background-position: center;
}
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--ink-soft); margin: 0 0 .5rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--subline); }
.intro { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.section-dark .intro { color: #c9c9cb; }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin-top: 1.5rem; }
.section-dark .fineprint { color: #a9a9ab; }

figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; line-height: 1.4; }
.section-dark figcaption { color: #bdbdbf; }

/* ---------- Services ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.1rem; box-shadow: var(--shadow); border-top: 4px solid var(--charcoal);
}
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--stone-100); color: var(--charcoal);
  margin-bottom: .8rem;
}
.svc p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* ---------- Tagged before/after photos ---------- */
.tagged { position: relative; }
.tagged img { width: 100%; border-radius: var(--radius); }
.tag {
  display: inline-block; font-family: var(--slab); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; padding: .2rem .55rem; border-radius: 3px;
  background: var(--charcoal); color: #fff; margin-right: .35rem; vertical-align: .08em;
}
.section-dark .tag { background: #5a5456; }
.tag-light, .section-dark .tag-light { background: var(--wordmark); color: var(--charcoal); }

/* ---------- Boiler service ---------- */
.bs-grid { display: grid; gap: 2rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-content: start; }
.pair-square img { aspect-ratio: 1 / 1; object-fit: cover; }
.bs-copy h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.bs-copy h3:first-child { margin-top: 0; }
.bs-copy p { color: #d4d4d6; }
.bs-copy sup a { color: var(--wordmark); text-decoration: none; font-weight: 700; padding: 0 .15rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.checks li { position: relative; padding-left: 1.6rem; color: #d4d4d6; }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .5em; width: .75rem; height: .4rem;
  border-left: 2px solid var(--wordmark); border-bottom: 2px solid var(--wordmark); transform: rotate(-45deg);
}

/* ---------- Retrofit ---------- */
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.rf-grid img { aspect-ratio: 3 / 4; object-fit: cover; }
.rf-copy { grid-column: 1 / -1; margin-top: 1rem; }
.rf-copy h3 { font-size: 1.25rem; }
.rf-copy p { color: var(--ink-soft); }
.rf-room { margin: 1.25rem 0 0; max-width: 20rem; }
.rf-room img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- IBC ---------- */
.ibc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ibc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1rem; box-shadow: var(--shadow);
}
.ibc-card p { font-size: .98rem; color: var(--ink-soft); }
.kicker {
  font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--stone-500) !important; margin-bottom: .3rem;
}
.kicker { color: #6b6669 !important; }
.warranty { font-size: .9rem !important; border-top: 1px solid var(--line); padding-top: .7rem; margin-bottom: 0; }
.ibc-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; box-shadow: var(--shadow); }
.ibc-photo figcaption { margin-top: .4rem; }

/* ---------- Our work ---------- */
.feature {
  display: grid; gap: 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 3rem;
}
.feature-photos { display: grid; gap: .75rem; }
.feature-main img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.feature-side img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.feature-copy { padding: 0 .25rem .5rem; }
.feature-copy h3 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 700; }
.feature-copy p { color: var(--ink-soft); }

.sub-head {
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  margin: 0 0 .3rem; padding-top: .5rem;
}
.sub-intro { color: var(--ink-soft); margin-bottom: 1.25rem; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 2.75rem; grid-auto-flow: dense; }
.gallery:last-child { margin-bottom: 0; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone-100); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .g-wide { grid-column: 1 / -1; }
.gallery .g-wide img { aspect-ratio: 4 / 3; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 2rem .8rem .65rem; color: #fff; font-size: .88rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(20,18,19,.78));
}
.pos-top img { object-position: center 20%; }
.pos-right img { object-position: 75% center; }
.pos-bottom img { object-position: center 75%; }
.g-text {
  grid-column: 1 / -1; background: var(--charcoal); color: #d4d4d6; border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.g-text h4 { font-family: var(--slab); font-size: 1.3rem; color: #fff; margin: 0 0 .5rem; }
.g-text p { margin: 0 0 1rem; }
.gallery-mech img { aspect-ratio: 4 / 3; }
.gallery-mech figure:first-child { grid-column: 1 / -1; }

/* ---------- Why us ---------- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.why-grid li { border-left: 3px solid var(--wordmark); padding: .2rem 0 .2rem 1rem; }
.why-grid h3 { margin-bottom: .35rem; }
.why-grid p { margin: 0; color: #cfcfd1; }
.reviews {
  margin-top: 2.5rem; padding: 1.5rem; text-align: center;
  border: 1px solid #3f3a3b; border-radius: var(--radius); background: var(--charcoal-2);
}
.stars-lg { font-size: 1.6rem; margin: 0 0 .25rem; }
.reviews-score { font-family: var(--slab); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 0 .25rem; }
.reviews-score span { font-weight: 400; font-size: 1.1rem; color: var(--subline); }
.reviews-note { margin: 0; color: #bdbdbf; }

/* ---------- Service area ---------- */
.area-inner { display: grid; gap: 1.5rem; }
.area-inner p { color: var(--ink-soft); }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.area-list li {
  font-family: var(--slab); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .92rem;
  background: var(--charcoal); color: var(--wordmark); padding: .8rem .9rem; border-radius: var(--radius); text-align: center;
}

/* ---------- Contact ---------- */
.contact-card {
  background: #fff; border-radius: calc(var(--radius) + 2px); padding: 1.6rem 1.4rem;
  box-shadow: 0 10px 40px rgba(35,31,32,.15); max-width: 46rem; margin: 0 auto; border-top: 6px solid var(--charcoal);
}
.contact-card > p { color: var(--ink-soft); }
.contact-list { margin: 1.25rem 0 0; display: grid; gap: .9rem; }
.contact-list div { display: grid; gap: .1rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.contact-list dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #6b6669; }
.contact-list dd { margin: 0; font-size: 1.05rem; }
.contact-list a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal); color: #bdbdbf; font-size: .95rem;
  border-top: 6px solid var(--stone-300);
  border-image: var(--texture) 30 / 6px 0 0 0 stretch;
}
.footer-inner { display: grid; gap: 1.75rem; padding-top: 2.75rem; padding-bottom: 2rem; }
.footer-wm { display: flex; flex-direction: column; line-height: 1; margin-bottom: 1rem; }
.footer-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--subline); margin-bottom: .5rem; }
.site-footer a { color: var(--wordmark); }
.site-footer a:hover { color: #fff; }
.formerly { color: #9d9d9f; }
.fb-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; }
.footer-base { border-top: 1px solid #3a3536; padding-top: 1rem; padding-bottom: 1.5rem; font-size: .85rem; color: #8f8f91; }
.footer-base p { margin: 0; }

/* ---------- Mobile call bar ---------- */
.mobile-call {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; border-radius: var(--radius);
  background: var(--wordmark); color: var(--charcoal); font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); border: 1px solid #fff;
}

/* ---------- Small tablets ---------- */
@media (min-width: 40em) {
  .wrap { padding: 0 1.75rem; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .ibc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .area-list { grid-template-columns: 1fr 1fr 1fr; }
  .feature-photos { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .feature-side img { aspect-ratio: 4 / 3; }
  .gallery-bath { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 17rem; }
  .gallery-bath img, .gallery-bath .g-wide img { aspect-ratio: auto; }
  .gallery-bath .g-wide, .gallery-bath .g-text { grid-column: span 2; }
  .gallery-mech { grid-template-columns: 1fr 1fr; }
  .gallery-mech figure:first-child { grid-column: auto; }
  .hc-num { display: inline; }
  .hero-brand { display: flex; }
  .contact-card { padding: 2.25rem 2.25rem; }
  .contact-list div { grid-template-columns: 9rem 1fr; align-items: baseline; }
}

/* ---------- Desktop ---------- */
@media (min-width: 64em) {
  body { padding-bottom: 0; }
  .mobile-call { display: none; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: none; border: 0; box-shadow: none;
    margin-right: .5rem;
  }
  .site-nav ul { display: flex; gap: 1.4rem; padding: 0; }
  .site-nav a { border: 0; padding: .4rem 0; font-size: .82rem; letter-spacing: .09em; }
  .header-inner { min-height: 4.5rem; }
  :root { --header-h: 4.5rem; }

  .hero-inner { grid-template-columns: 1fr 24rem; align-items: center; gap: 4rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section { padding: 5rem 0; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

  .bs-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem 3.5rem; align-items: start; }
  .pair { grid-column: 1; grid-row: 1; }
  .bs-ibc { grid-column: 1; grid-row: 2; }
  .bs-rec { grid-column: 2; grid-row: 1 / span 2; }

  .rf-grid { grid-template-columns: 1fr 1fr 1.05fr; gap: 1.25rem; align-items: start; }
  .rf-copy { grid-column: auto; margin-top: 0; padding-left: .75rem; }

  .ibc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .ibc-photo img { aspect-ratio: auto; height: 17rem; }

  .feature { grid-template-columns: 1.7fr 1fr; padding: 1.25rem; gap: 2.25rem; align-items: center; }
  .feature-photos { grid-template-columns: 1.35fr 1fr; }
  .feature-photos { grid-template-columns: 1.45fr 1fr; align-items: start; }
  .feature-main img { aspect-ratio: 1 / 1; }
  .feature-side img { aspect-ratio: 4 / 3; }
  .feature-copy { padding-right: 1.25rem; }

  .gallery { gap: 1rem; }
  .gallery-bath { grid-auto-rows: 21rem; }

  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .area-inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

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