/* Hill Top Mechanical Inc. — clean industrial theme */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #15181c;
  --ink-2: #4a5058;
  --line: rgba(21, 24, 28, 0.12);
  --steel: #1d2228;
  --amber: #f2a900;
  --amber-ink: #8a5a00;
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --wrap: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl); max-width: 20ch; }
h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--amber); }
.eyebrow--light { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .8rem 1.4rem; background: var(--amber); color: var(--ink); font-weight: 700;
  font-size: var(--text-sm); text-decoration: none; border: 2px solid var(--amber);
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #ffbb1f; border-color: #ffbb1f; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { min-height: 42px; padding: .55rem 1rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 245, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1; margin: 0; }
.brand__text { display: flex; flex-direction: column; }
.brand__mark { width: 50px; height: 40px; flex: none; }
.brand--footer .brand__mark { color: var(--amber); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.brand__sub { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: 1.6rem; }
.nav__list a:not(.btn) { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); padding: .5rem 0; }
.nav__list a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--text-hero); max-width: 9ch; margin-bottom: 1.5rem; }
.lead { font-size: var(--text-lg); color: var(--ink-2); max-width: 34ch; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__media img { width: 100%; max-height: 640px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border-top: 1px solid var(--line);
}
.stats > div { padding: 1.5rem 1.25rem 0 0; }
.stats > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.stats dd { margin: .25rem 0 0; font-size: var(--text-sm); color: var(--ink-2); }

/* Services */
.services { background: var(--surface); padding-block: clamp(4rem, 9vw, 7.5rem); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc-feature { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-feature img { width: 100%; max-height: 600px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.svc-feature h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.svc-feature p { color: var(--ink-2); }

.ticks { display: grid; gap: .6rem; margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--amber-ink); border-bottom: 2.5px solid var(--amber-ink); transform: rotate(-45deg);
}

.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.svc-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.25rem; }
.svc-list h3 { margin-bottom: .5rem; }
.svc-list p { color: var(--ink-2); max-width: 46ch; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 2px solid var(--ink); }
.svc-grid li { padding: 1.5rem 1.5rem 0 0; }
.svc-grid li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.svc-grid h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.svc-grid p { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }

/* Industries */
.industries { padding-block: clamp(4rem, 8vw, 6.5rem); }
.ind-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: ind; }
.ind-list li { counter-increment: ind; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.ind-list li::before { content: "0" counter(ind); display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--amber-ink); margin-bottom: .75rem; }
.ind-list h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: .75rem; }
.ind-list p { color: var(--ink-2); margin: 0; max-width: 40ch; }

/* How it works */
.how { background: var(--steel); color: #f1f2f3; padding-block: clamp(4rem, 9vw, 7rem); }
.how__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 6vw, 6rem); }
.how h2 { color: #fff; }
.how__lede { color: #b7bdc4; margin-top: 1.25rem; max-width: 38ch; }
.steps { display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.steps__n { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--amber); line-height: 1.1; }
.steps h3 { color: #fff; margin-bottom: .35rem; }
.steps p { color: #b7bdc4; margin: 0; }

/* About */
.about { padding-block: clamp(4rem, 9vw, 7.5rem); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media img { width: 100%; max-height: 640px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__copy h2 { margin-bottom: 1.5rem; }
.about__copy p { color: var(--ink-2); max-width: 52ch; }

/* Gallery */
.gallery { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.25rem); }
.gallery__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

/* Area */
.area { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.area p { color: var(--ink-2); }
.towns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.towns li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: var(--text-sm); font-weight: 500; background: var(--bg); }

/* Contact */
.contact { padding-block: clamp(4rem, 9vw, 7.5rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact__list { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact__list > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contact__list dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: .2em; }
.contact__list dd { margin: 0; font-weight: 500; }
.contact__list a { text-decoration: none; border-bottom: 2px solid var(--amber); }
.contact__save { margin-top: 2rem; gap: .6rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: var(--text-sm); font-weight: 700; }
.form input, .form textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid rgba(21,24,28,.2); border-radius: var(--radius); padding: .75rem .85rem; min-height: 48px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(242,169,0,.35); }
.form input::placeholder, .form textarea::placeholder { color: #8b9097; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: var(--text-sm); font-weight: 500; min-height: 1.2em; }
.form__status.is-ok { color: #1f6b3a; }
.form__status.is-err { color: #a12a1b; }
.form [aria-invalid="true"] { border-color: #a12a1b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.footer { background: var(--steel); color: #b7bdc4; padding-block: 2.5rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: #b7bdc4; }
.footer__small { font-size: var(--text-xs); margin: .75rem 0 0; }

.callbar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__list {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__list .btn { margin-top: 1rem; width: 100%; }
}
@media (max-width: 960px) {
  .hero__grid, .svc-feature, .how__grid, .about__grid, .area__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .stats, .svc-grid { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3), .svc-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .svc-grid li { padding-bottom: 1.5rem; }
  .about__media { order: 2; }
  .hero__media img, .svc-feature img, .about__media img { aspect-ratio: 4 / 4.4; max-height: none; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .ind-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .svc-list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .callbar {
    display: flex; justify-content: center; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    min-height: 54px; background: var(--amber); color: var(--ink); font-weight: 700; text-decoration: none;
    border-top: 1px solid rgba(0,0,0,.1);
  }
  body { padding-bottom: 54px; }
}
@media (max-width: 480px) {
  .stats, .svc-grid { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div, .svc-grid li, .svc-grid li + li { padding-left: 0; border-left: 0; padding-right: 0; }
  .stats > div + div { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
  .stats > div:first-child { padding-top: 1rem; }
  .svc-grid li + li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
  .contact__list > div { grid-template-columns: 1fr; gap: .25rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Logo: l, l, T stretched upward to form a hilltop */
.brand__name { display: inline-flex; align-items: baseline; }
.peak { display: inline-block; transform-origin: 50% 82%; }
.peak--1 { transform: scaleY(1.003); }
.peak--2 { transform: scaleY(1.122); }
.brand__text { padding-top: 6px; }
.brand__name .op { font-size: 1.12em; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
#siteseal img { display: block; max-width: 100%; height: auto; }
@media (max-width: 640px) { .footer__right { align-items: flex-start; } }
