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

:root {
  --cream: #f6eddb;
  --kraft: #ead7b2;
  --paper: #fbf6ea;
  --ink: #36271c;
  --ink-soft: #5b4a3c;
  --terra: #a4462a;
  --terra-dark: #873820;
  --olive: #55592c;
  --mustard: #d9a038;
  --board: #2e2a21;
  --chalk: #f3ead6;
  --chalk-soft: #d6cbb3;

  --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: 84px; }

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 {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

.sr-only {
  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: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.btn:hover { transform: translateY(-2px) rotate(-0.6deg); }

.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(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-ghost:hover { background: var(--kraft); }

.ico { width: 20px; height: 20px; flex: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 2px dashed rgba(54, 39, 28, .35);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.logo-name {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--terra);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 3px;
}

.nav { display: none; }

.btn-small {
  min-height: 48px;
  padding: 8px 18px;
  font-size: 1rem;
}

.call-long { display: none; }

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

.hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(rgba(54, 39, 28, .07) 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--cream);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}

.doodle-sun { width: 28px; height: 28px; color: var(--terra); transform: rotate(-8deg); }
.doodle-flake { width: 24px; height: 24px; color: var(--olive); transform: rotate(10deg); }

.hero h1 {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 800;
  color: var(--ink);
  max-width: 14ch;
}

.squiggle {
  color: var(--terra);
  white-space: nowrap;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 6c5-5 10-5 15 0s10 5 15 0 7-4 10-2' fill='none' stroke='%23d9a038' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E")
    repeat-x 0 100% / 40px 10px;
  padding-bottom: 8px;
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--ink);
}

.stars { color: var(--terra); letter-spacing: 2px; font-size: 1.15rem; }

/* Fact card styled as a paper shop tag */
.tag {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px 22px 16px 26px;
  padding: 34px 24px 24px;
  box-shadow: 6px 6px 0 var(--kraft), 6px 6px 0 2.5px var(--ink);
  transform: rotate(1deg);
  max-width: 460px;
}

.tag-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  color: var(--ink-soft);
}

.stamp {
  position: absolute;
  top: -26px;
  right: -8px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2.5px dashed var(--olive);
  outline: 2.5px solid var(--olive);
  outline-offset: 3px;
  background: var(--cream);
  color: var(--olive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: rotate(12deg);
  text-transform: uppercase;
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .08em;
}

.stamp strong {
  font-family: var(--head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 2px 0;
}

.tag-label {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--terra);
  margin-bottom: 10px;
}

.tag-list { margin: 0; }

.tag-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 0;
  border-top: 1.5px dashed rgba(54, 39, 28, .3);
}

.tag-list dt {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive);
}

.tag-list dd { margin: 0; font-weight: 600; }

.tag-text {
  padding-top: 12px;
  border-top: 1.5px dashed rgba(54, 39, 28, .3);
  color: var(--ink-soft);
}

.tag-text a { font-weight: 700; }

/* ---------- Wavy dividers ---------- */

.wave {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--board);
}

.wave-into-board { margin-bottom: -1px; background: var(--cream); }
.wave-out-of-board { margin-top: -1px; background: var(--kraft); }

/* ---------- Services: chalkboard menu ---------- */

.board {
  background: var(--board);
  color: var(--chalk);
  padding: 48px 0 60px;
}

.board-head { margin-bottom: 32px; }

.board-kicker {
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mustard);
}

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

.board-note {
  margin-top: 14px;
  color: var(--chalk-soft);
  max-width: 34rem;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.menu li {
  padding: 22px 0;
  border-top: 2px dashed rgba(243, 234, 214, .28);
}

.menu li:last-child { border-bottom: 2px dashed rgba(243, 234, 214, .28); }

.menu h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.5rem;
  color: var(--chalk);
}

.num {
  font-family: var(--body);
  font-size: .875rem;
  font-weight: 700;
  color: var(--mustard);
  letter-spacing: .05em;
  flex: none;
}

.menu p {
  margin-top: 8px;
  color: var(--chalk-soft);
  padding-left: 34px;
}

/* ---------- Why ---------- */

.why {
  background: var(--kraft);
  padding: 52px 0 64px;
}

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

.why-grid {
  display: grid;
  gap: 34px;
}

.why-item {
  position: relative;
  padding-left: 18px;
  border-left: 4px solid var(--terra);
}

.why-b { border-left-color: var(--olive); }
.why-c { border-left-color: var(--ink); }

.why-big {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--terra-dark);
}

.why-b .why-big { color: var(--olive); }
.why-c .why-big { color: var(--ink); }

.why-big span {
  font-size: .5em;
  margin-left: 4px;
  vertical-align: .55em;
}

.why-word { font-size: 2.6rem; }
.why-word span { vertical-align: .2em; margin: 0 4px; }

.why-item h3 {
  font-size: 1.4rem;
  margin: 12px 0 8px;
}

.why-item p:not(.why-big) { color: var(--ink-soft); }

/* ---------- Visit ---------- */

.visit {
  padding: 60px 0;
  background: var(--cream);
}

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

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

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}

.hours th,
.hours td {
  padding: 12px 0;
  border-bottom: 2px dotted rgba(54, 39, 28, .35);
  text-align: left;
  vertical-align: top;
}

.hours th { font-weight: 600; padding-right: 16px; }
.hours td { text-align: right; font-weight: 700; color: var(--olive); }

.addr {
  font-style: normal;
  margin-top: 24px;
  line-height: 1.55;
}

.contact {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 0;
}

.contact span {
  min-width: 56px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive);
  padding-top: 3px;
}

.contact a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.map { margin: 0; }

.map-frame {
  border: 2.5px solid var(--ink);
  border-radius: 18px 10px 22px 12px;
  overflow: hidden;
  background: var(--kraft);
  box-shadow: 6px 6px 0 var(--olive);
  transform: rotate(-0.6deg);
}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map figcaption {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.map figcaption a { font-weight: 700; }

/* ---------- Final CTA ---------- */

.cta {
  background: var(--terra);
  color: #fff;
  padding: 56px 0;
  border-top: 2.5px solid var(--ink);
}

.cta-inner {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.cta-doodle {
  width: 34px;
  height: 68px;
  color: var(--mustard);
  transform: rotate(-6deg);
}

.cta h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  max-width: 20ch;
  color: #fff;
}

.cta .btn-call {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.cta .btn-call:hover { background: var(--kraft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--board);
  color: var(--chalk-soft);
  padding: 36px 0 44px;
  font-size: .9375rem;
}

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

.footer-name {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--chalk);
  margin-bottom: 4px;
}

.site-footer a { color: var(--mustard); font-weight: 700; }

.footer-copy { margin-top: 8px; }

/* ---------- Larger screens ---------- */

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .call-long { display: inline; }
  .call-short { display: none; }
  .tag-list div { grid-template-columns: 9.5rem 1fr; gap: 12px; }
}

@media (min-width: 820px) {
  .wrap { padding: 0 36px; }

  .nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 12px;
  }

  .nav a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }

  .nav a:hover { border-bottom-color: var(--mustard); }

  .menu { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .menu li:nth-last-child(2) { border-bottom: 2px dashed rgba(243, 234, 214, .28); }

  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .why-b { margin-top: 36px; }
  .why-c { margin-top: 12px; }

  .visit-grid { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .map iframe { height: 420px; }

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

  .wave { height: 40px; }
}

@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }

  .hero-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .tag { justify-self: end; width: 100%; }

  .board { padding: 64px 0 80px; }

  .board-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    align-items: end;
    margin-bottom: 44px;
  }

  .board-kicker { grid-column: 1; }
  .board h2 { grid-column: 1; }
  .board-note { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }

  .why { padding: 80px 0 96px; }
  .visit { padding: 88px 0; }
  .cta { padding: 72px 0; }
}

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