/* Yourk Heating & Air: warm neighborhood shop */

:root {
  --cream: #f6eddb;
  --kraft: #ecdcbc;
  --ink: #3a2a1d;
  --muted: #6a5240;
  --terra: #b24e28;
  --terra-dark: #8e3a1a;
  --olive: #556030;
  --board: #2d3324;
  --chalk: #f3ebd6;
  --mustard: #dfa63c;
  --head: "Fraunces", "Georgia", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

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

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-call {
  background: var(--terra);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-call:hover { background: var(--terra-dark); }

.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-ghost:hover { background: var(--kraft); }

.btn-small {
  min-height: 46px;
  padding: 8px 16px;
  font-size: 1rem;
  gap: 8px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-big { min-height: 60px; padding: 14px 32px; font-size: 1.2rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

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

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.logo-name {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -.01em;
}
.logo-sub {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-top: 3px;
}

.nav { display: none; }

.call-short { display: none; }

@media (max-width: 359px) {
  .call-long { display: none; }
  .call-short { display: inline; }
}

/* Hero */

.hero {
  position: relative;
  padding: 28px 0 72px;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  border-bottom: 2px dashed var(--olive);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 9vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 12ch;
}

.lede {
  margin-top: 14px;
  font-size: 1.15rem;
  max-width: 34rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.hero-actions .btn { flex: 1 1 220px; }

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 22px;
}
.stars { color: var(--terra); font-size: 1.2rem; letter-spacing: 2px; }

/* Fact card, like a shop ticket */

.ticket {
  position: relative;
  margin-top: 48px;
  background: var(--kraft);
  border: 2px solid var(--ink);
  border-radius: 6px 18px 8px 14px;
  padding: 28px 22px 22px;
  transform: rotate(-1deg);
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(58, 42, 29, .45);
  border-radius: 4px 12px 6px 10px;
  pointer-events: none;
}

.stamp {
  position: absolute;
  top: -40px;
  right: 10px;
  color: var(--terra);
  background: var(--cream);
  border-radius: 50%;
  transform: rotate(12deg);
  line-height: 0;
}
.stamp svg { width: 92px; height: 92px; }

.ticket-title {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 12px;
  padding-right: 80px;
}

.ticket-list { margin: 0; }
.ticket-list div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1.5px solid rgba(58, 42, 29, .25);
}
.ticket-list dt {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-dark);
  padding-top: 3px;
}
.ticket-list dd { margin: 0; font-weight: 600; }
.ticket-list dd a { color: var(--terra-dark); }

.wave {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 28px;
  color: var(--kraft);
  display: block;
}

/* Services: chalkboard menu */

.services {
  background: var(--kraft);
  padding: 40px 0 64px;
}

.board {
  background: var(--board);
  color: var(--chalk);
  border: 10px solid #6b4a2e;
  border-radius: 10px;
  padding: 32px 22px 36px;
  box-shadow: inset 0 0 0 2px rgba(243, 235, 214, .12);
}

.board-head { text-align: left; margin-bottom: 28px; }

.board-eyebrow {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mustard);
}

.board h2 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  margin-top: 6px;
  color: var(--chalk);
}

.board-note { margin-top: 10px; color: #d8cfb8; max-width: 32rem; }

.board-cols { display: grid; gap: 36px; }

.col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  color: var(--mustard);
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(243, 235, 214, .4);
}

.menu { list-style: none; margin: 0; padding: 0; }
.menu li {
  padding: 18px 0;
  border-bottom: 1px dashed rgba(243, 235, 214, .25);
}
.menu li:last-child { border-bottom: 0; padding-bottom: 0; }
.menu h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--chalk);
}
.menu p { margin-top: 6px; color: #d8cfb8; }

/* Why */

.why { padding: 72px 0; }

.why h2 {
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  max-width: 16ch;
}

.why-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.why-list li { display: flex; gap: 18px; align-items: flex-start; }

.why-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  background: var(--mustard);
  border: 2.5px solid var(--ink);
  border-radius: 52% 46% 55% 44% / 48% 55% 45% 52%;
}
.why-list li:nth-child(2) .why-num { background: #c9a98a; transform: rotate(-6deg); }
.why-list li:nth-child(3) .why-num { background: #b9c08f; transform: rotate(5deg); }

.why-list h3 { font-size: 1.45rem; margin-top: 4px; }
.why-list p { margin-top: 8px; color: var(--muted); }

/* Visit */

.visit {
  padding: 64px 0 72px;
  border-top: 2px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(58, 42, 29, .06) 31px 32px),
    var(--cream);
}

.visit-grid { display: grid; gap: 36px; }

.visit h2 { font-size: clamp(2rem, 6.5vw, 3rem); }

.hours-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: 26rem;
  margin-top: 24px;
  padding: 10px 0;
  border-top: 1.5px dotted rgba(58, 42, 29, .4);
  border-bottom: 1.5px dotted rgba(58, 42, 29, .4);
  font-weight: 700;
  color: var(--olive);
}
.hours-label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-dark);
}

address {
  font-style: normal;
  margin-top: 26px;
  line-height: 1.7;
}
.phone-link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--terra-dark);
}

.area-note { margin-top: 14px; color: var(--muted); }

.map { margin: 0; }
.map-frame {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: 14px 6px 14px 6px;
  overflow: hidden;
  background: var(--kraft);
  box-shadow: 5px 5px 0 var(--olive);
}
/* Sits behind the iframe so a slow or blocked map still reads as a label */
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--terra-dark);
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(58, 42, 29, .07) 22px 24px),
    var(--kraft);
}
.map-placeholder-addr {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
}
.map-placeholder-link {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 2px dashed currentColor;
  padding-bottom: 2px;
}
.map iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.map figcaption {
  margin-top: 14px;
  font-size: .95rem;
  color: var(--muted);
}

/* CTA */

.cta {
  background: var(--olive);
  color: var(--chalk);
  padding: 60px 0;
  border-top: 2px solid var(--ink);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.cta-doodle { color: var(--mustard); }
.cta h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  max-width: 20ch;
  color: #fff;
}
.cta .btn-call { border-color: var(--ink); }

/* Footer */

.site-footer {
  background: var(--ink);
  color: #e9dfc9;
  padding: 36px 0;
  font-size: .98rem;
}
.footer-inner { display: grid; gap: 18px; }
.footer-name {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 6px;
}
.site-footer a { color: var(--mustard); }
.footer-small { font-size: .88rem; color: #cbbfa6; }

/* Tablet and up */

@media (min-width: 720px) {
  .wrap { padding: 0 36px; }
  .board { padding: 44px 44px 48px; }
  .board-cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .why-list { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .why-list li { flex-direction: column; }
  .why-list li:nth-child(2) { margin-top: 28px; }
  .why-list li:nth-child(3) { margin-top: 8px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* Desktop */

@media (min-width: 960px) {
  .nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 12px;
  }
  .nav a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--terra); }

  .hero { padding: 80px 0 110px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .hero-actions .btn { flex: 0 0 auto; }
  .ticket { margin-top: 0; padding: 36px 30px 28px; }
  .stamp { top: -52px; right: -20px; }
  .stamp svg { width: 112px; height: 112px; }

  .services { padding: 56px 0 96px; }
  .board { padding: 56px 64px 60px; transform: rotate(-.4deg); }
  .board-head { margin-bottom: 40px; }

  .why { padding: 104px 0; }

  .visit { padding: 96px 0; }
  .visit-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .map iframe { height: 380px; }

  .cta { padding: 80px 0; }
  .cta-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

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