/* McLaughlin Air Conditioning Co. — Swiss / clinical clean */

:root {
  --ink: #111417;
  --ink-2: #4a5157;
  --rule: #d6dadd;
  --paper: #ffffff;
  --tint: #f2f5f5;
  --accent: #00636b;
  --accent-dark: #004a50;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

.btn-invert { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-invert:hover { background: transparent; color: #fff; }
.btn-invert:focus-visible { outline-color: #fff; }

.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

.show-xs { display: inline; }
.hide-xs { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1.15;
}
.logo span { display: none; font-weight: 500; color: var(--ink-2); }
.logo:hover { color: var(--ink); }

.nav { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.25rem, 9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 14ch;
}

.lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  border-top: 3px solid var(--ink);
}

.fact {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 3px;
}

.fact dd { font-weight: 500; }

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.section-tint { background: var(--tint); }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.num {
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

h2 {
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
}

/* Services: two-column definition list */

.services { border-top: 3px solid var(--ink); }

.service {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.service dt {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.service dd { color: var(--ink-2); max-width: 52ch; }

/* Why points */

.points {
  list-style: none;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.points li {
  padding: 24px 0;
  border-bottom: 1px solid #c9cfd2;
}

.point-key {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.points h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

.points p { color: var(--ink-2); max-width: 46ch; }

/* Hours & location */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--ink);
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours .closed th,
.hours .closed td { color: var(--ink-2); font-weight: 400; }

.note {
  margin-top: 14px;
  font-size: .9375rem;
  color: var(--ink-2);
}

.contact-block { margin-top: 36px; }
.contact-block .label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 18px;
}
.contact-block .label:first-child { margin-top: 0; }

.phone-link {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}
.phone-link:hover { color: var(--accent); }

.map-frame {
  position: relative;
  height: 320px;
  background: var(--tint);
  border-top: 3px solid var(--ink);
}

/* Sits behind the iframe so a slow or blocked embed still shows the address */
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.map-fallback-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.map-fallback-address {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.map iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.map figcaption {
  padding-top: 12px;
  font-size: .9375rem;
  color: var(--ink-2);
}

/* Final CTA */

.cta {
  background: var(--accent);
  color: #fff;
  padding: 64px 0;
}

.cta h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, 5.5vw, 3rem);
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  font-size: .9375rem;
  color: var(--ink-2);
}

.footer-inner {
  display: grid;
  gap: 4px;
}

.footer-name {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.copy { margin-top: 12px; }

/* ---------- Tablet ---------- */

@media (min-width: 560px) {
  .show-xs { display: none; }
  .hide-xs { display: inline; }
  .actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }

  .logo span { display: inline; }

  .services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .map-frame { height: 400px; }
}

/* ---------- Desktop: 12-column Swiss grid ---------- */

@media (min-width: 1024px) {
  :root { --gutter: 56px; --header-h: 72px; }

  body { font-size: 18px; }

  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 16px;
  }
  .nav a {
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
  }
  .nav a:hover { color: var(--accent); text-decoration: underline; }

  .hero { padding: 96px 0 104px; }
  .hero-main { grid-column: 1 / span 8; }
  .facts { grid-column: 9 / span 4; align-self: end; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }

  .section { padding: 112px 0; }
  .section-label {
    grid-column: 1 / span 4;
    flex-direction: column;
    gap: 10px;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
  .services,
  .points,
  .visit { grid-column: 5 / span 8; }

  .service { padding: 28px 0; }

  .visit { grid-template-columns: minmax(0, 1fr); }
  .map-frame { height: 360px; }

  .cta { padding: 96px 0; }
  .cta h2 { grid-column: 1 / span 8; }
  .cta-action { grid-column: 9 / span 4; align-self: end; justify-self: start; }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
  }
  .footer-name { grid-column: 1 / -1; }
}

@media (min-width: 1280px) {
  .points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    border-top: 0;
  }
  .points li { border-top: 3px solid var(--ink); border-bottom: 0; padding-top: 20px; }

  .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .map { align-self: start; }
  .map-frame { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
