/* ABC Mechanical Inc homepage preview. Palette from their logo:
   ring blue #1190CB (darkened to #0B6A9A for text and buttons), black wordmark, navy for dark sections. */
:root {
  --blue: #0b6a9a;
  --blue-dark: #08547a;
  --sky: #1190cb;
  --sky-soft: #e8f4fb;
  --ice: #8fd3f2;
  --navy: #0d2433;
  --ink: #12202a;
  --muted: #4a5a66;
  --light: #f3f8fb;
  --white: #ffffff;
  --line: #d6e6ef;
  --ribbon-h: 28px;
  --nav-h: 76px;
  --radius: 14px;
  --container: 1200px;
  --section-pad: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-h) + var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-top: calc(var(--ribbon-h) + var(--nav-h));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1, h2 { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Preview ribbon */
.ribbon {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center;
  padding-inline: .75rem;
  background: #06141d; color: #d9e8f1;
  font-size: .75rem; line-height: 1.2; text-align: center;
  overflow: hidden;
}

/* Header */
.nav {
  position: fixed; top: var(--ribbon-h); left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgb(255 255 255 / .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-bar { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 64px; }
.nav-links { display: none; margin-left: auto; gap: 1.75rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav-links a:hover { color: var(--blue); }
.nav-call { margin-left: auto; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-call { margin-left: .5rem; }
}

/* Buttons */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .8rem 1.6rem;
  border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn { background: var(--blue); color: var(--white); }
.btn:hover { background: var(--blue-dark); }
.s-dark .btn, .hero .btn { background: var(--sky); color: #04131c; }
.s-dark .btn:hover, .hero .btn:hover { background: var(--ice); }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / .6); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / .08); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Section basics */
.section { padding-block: var(--section-pad); }
.section-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { align-items: center; text-align: center; }
.tagline { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.tagline-light { color: var(--ice); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); }
.measure { max-width: 42rem; }
.muted { color: var(--muted); }
.muted a { color: var(--blue); font-weight: 600; }
.s-light { background: var(--light); }
.s-dark { background: var(--navy); color: #dbe8f0; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgb(17 144 203 / .35), transparent 55%),
    linear-gradient(160deg, #0f3147 0%, var(--navy) 60%);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 17ch; }
.lead { max-width: 34rem; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #d6e6ef; }
.hero .btn-row { margin-top: .4rem; }
.hero-hours { font-size: .95rem; color: #a9c3d3; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 3px solid var(--sky); border-radius: 50%; opacity: .5; z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .35);
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }

/* Trust strip */
.trust { background: var(--sky-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-item {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.35rem 1rem; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
a.trust-item:hover .trust-label { text-decoration: underline; }
.trust-value { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.trust-label { font-size: .9rem; color: var(--muted); }
.stars { color: #b57d06; letter-spacing: .05em; font-size: 1rem; }
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.75rem 1.5rem; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item:last-child { border-right: 0; }
}

/* Service cards */
.cards { display: grid; gap: 1.1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; border-top: 4px solid var(--sky);
  box-shadow: 0 6px 24px rgb(13 36 51 / .05);
}
.card-ico { width: 2.4rem; height: 2.4rem; fill: var(--sky); margin-bottom: .8rem; }
.card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Offers band */
.band { background: var(--blue); color: var(--white); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.band-grid { display: grid; gap: 1.75rem; }
.band-item h3 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: 1.6rem; margin-bottom: .4rem; }
.band-item p { color: #e3f1f9; font-size: 1rem; }
@media (min-width: 768px) { .band-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Gallery */
.sample-note { font-size: .95rem; color: var(--muted); font-style: italic; }
.gallery { display: grid; gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.1rem .9rem;
  background: linear-gradient(0deg, rgb(6 20 29 / .85), transparent);
  color: var(--white); font-weight: 600; font-size: .95rem;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery .g-big { grid-row: span 2; }
  .gallery .g-big img { aspect-ratio: auto; min-height: 100%; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border-top: 4px solid var(--blue); box-shadow: 0 6px 24px rgb(13 36 51 / .06); }
.step-num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-style: italic; font-size: 2rem; color: var(--sky); }
.step h3 { font-size: 1.25rem; margin: .4rem 0 .4rem; }
.step p { color: var(--muted); font-size: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Service area */
.area { display: grid; gap: 2rem; align-items: center; }
.area .h2 { margin: .6rem 0 .9rem; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.towns li { padding: .75rem 1.6rem; border-radius: 999px; background: var(--sky-soft); border: 1.5px solid var(--sky); font-weight: 700; font-size: 1.1rem; }
@media (min-width: 900px) { .area { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }

/* Quote form */
.quote { display: grid; gap: 2.5rem; }
.quote-copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.quote-copy .h2 { color: var(--white); }
.quote-email { font-size: .95rem; color: #b8cfdc; }
.quote-email a { color: var(--ice); }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: .8rem .9rem; border: 1.5px solid #c5d6e0; border-radius: 8px; background: var(--white); color: var(--ink);
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--ice); outline-offset: 1px; border-color: var(--blue); }
.form .btn { background: var(--blue); color: var(--white); }
.form-note { padding: .9rem 1rem; border-radius: 8px; background: var(--sky-soft); border: 1.5px solid var(--sky); font-weight: 600; }
@media (min-width: 900px) {
  .quote { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
  .form { padding: 2rem; }
}

/* Footer */
.footer { background: #071822; color: #d3e2eb; padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.logo-footer img { height: 84px; }
.footer-small { margin-top: .9rem; font-size: .95rem; color: #a9c3d3; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; font-size: .98rem; }
.footer-list strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: .2rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; color: #8faabb; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  :root { --nav-h: 66px; --ribbon-h: 34px; }
  .ribbon { font-size: .68rem; line-height: 1.25; }
  .logo img { height: 50px; }
  .nav-call span { display: none; }
  .nav-call { width: 2.75rem; padding: 0; }
  .hero { padding-block: 2rem 2.5rem; }
  .hero-copy { gap: .85rem; }
  .hero-title { font-size: 2.6rem; }
  .lead { font-size: 1.05rem; }
  .hero .btn-row { gap: .6rem; }
  .hero .btn-row a { flex: 1 1 100%; }
  .hero-photo::before { display: none; }
  body { padding-bottom: 64px; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    height: 64px; box-shadow: 0 -4px 16px rgb(0 0 0 / .15);
  }
  .call-bar a { display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
  .call-bar-call { background: var(--blue); color: var(--white); }
  .call-bar-quote { background: var(--navy); color: var(--white); }
}
