/* Winslow Drywall Repair: flow layout with a few primitives, variants set by data attributes */
:root {
  --hes-ink: #EBF1FC;
  --hes-night: #161620;
  --hes-sky: #A9D0FE;
  --hes-dusk: #262938;
  --hes-sage: #93BA5F;
  --hes-on-sky: #161620;
  --hes-mute: #b7bfd3;
  --hes-line: #353a4f;
  --hes-max: 1160px;
  --hes-gap: 1.25rem;
  --hes-head: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --hes-body: "Literata", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hes-night); color: var(--hes-ink);
  font: 400 1.0625rem/1.7 var(--hes-body); overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--hes-sky); text-underline-offset: 3px; }
a:hover { color: #d3e7ff; }
h1, h2, h3 { font-family: var(--hes-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-weight: 900; font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-weight: 900; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--hes-sage); outline-offset: 3px; }

/* ---- primitives ---- */
.hes-basin { width: 100%; max-width: var(--hes-max); margin-inline: auto; padding-inline: 1.25rem; }
.hes-stack { display: flex; flex-direction: column; gap: var(--hes-gap); }
.hes-stack > * { margin: 0; }
.hes-stack[data-gap="sm"] { gap: .45rem; }
.hes-stack[data-gap="md"] { gap: 1rem; }
.hes-cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hes-cluster[data-align="center"] { justify-content: center; }
.hes-switcher { display: flex; flex-wrap: wrap; gap: 1rem; }
.hes-switcher > * { flex-grow: 1; flex-basis: calc((34rem - 100%) * 999); min-width: 0; }
.hes-switcher[data-size="pair"] > * { flex-basis: calc((30rem - 100%) * 999); }
.hes-sidebar { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.hes-sidebar > :first-child { flex: 999 1 0; min-width: min(100%, 30rem); }
.hes-sidebar > :last-child { flex: 1 1 18rem; }
.hes-sidebar[data-kind="page"] { padding-block: 1rem 3rem; }
.hes-plain { list-style: none; margin: 0; padding: 0; }

/* ---- header ---- */
.hes-ridge { background: #11111a; border-bottom: 1px solid var(--hes-line); position: relative; z-index: 20; }
.hes-ridge-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .7rem; }
.hes-ridge-call { display: flex; flex-direction: column; line-height: 1.25; }
.hes-ridge-tel { display: inline-flex; align-items: center; gap: .4rem; font: 700 1.05rem var(--hes-head); color: var(--hes-ink); text-decoration: none; }
.hes-ridge-tel .hes-glyph { color: var(--hes-sage); }
.hes-ridge-hours { font-size: .8rem; color: var(--hes-mute); }
.hes-ridge-name { font: 900 1rem var(--hes-head); color: var(--hes-sky); text-decoration: none; letter-spacing: .02em; text-transform: uppercase; }
.hes-paths { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-left: auto; }
.hes-paths a { color: var(--hes-ink); text-decoration: none; font: 700 .92rem var(--hes-head); padding-block: .2rem; border-bottom: 2px solid transparent; }
.hes-paths a:hover, .hes-paths a[aria-current="page"] { border-bottom-color: var(--hes-sage); }
.hes-paths-close { display: none; }

/* ---- buttons ---- */
.hes-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px;
  padding: .7rem 1.35rem; border-radius: 999px; font: 700 1rem var(--hes-head); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; text-align: center;
}
.hes-btn[data-kind="primary"] { background: var(--hes-sky); color: var(--hes-on-sky); }
.hes-btn[data-kind="primary"]:hover { background: #c8e0ff; color: var(--hes-on-sky); }
.hes-btn[data-kind="secondary"] { background: var(--hes-sage); color: var(--hes-night); }
.hes-btn[data-kind="secondary"]:hover { background: #a9cc79; color: var(--hes-night); }
.hes-btn[data-kind="ghost"] { border-color: var(--hes-sky); color: var(--hes-sky); background: transparent; }
.hes-btn[data-kind="link"] { padding: 0; min-height: 0; border: 0; color: var(--hes-sky); text-decoration: underline; font-size: .95rem; }
.hes-btn[data-kind="pick"] { background: var(--hes-night); color: var(--hes-ink); border-color: var(--hes-line); font-size: .95rem; }
.hes-btn[data-kind="pick"]:hover { border-color: var(--hes-sage); color: var(--hes-sage); }
.hes-micro { font-size: .92rem; color: var(--hes-mute); }
.hes-fine { font-size: .85rem; color: var(--hes-mute); margin-top: .6rem; }

/* ---- hero: centred text on a two-stop gradient, tile strip over its lower edge ---- */
.hes-knoll { background: linear-gradient(180deg, #30355a 0%, #20223a 100%); border-bottom: 1px solid var(--hes-line); padding-top: 3.5rem; text-align: center; }
.hes-knoll-copy { max-width: 52rem; padding-bottom: 2.5rem; }
.hes-knoll-line { font-size: 1.15rem; color: #d7deee; max-width: 44rem; margin-inline: auto; }
.hes-knoll-hours { font: 700 .9rem var(--hes-head); color: var(--hes-sage); letter-spacing: .03em; }
.hes-knoll[data-size="slim"] { padding-block: 2.75rem 2.25rem; }
.hes-knoll[data-size="slim"] h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.hes-knoll-strip { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 1rem; margin-bottom: -3rem; position: relative; }
.hes-stone { margin: 0; background: var(--hes-dusk); border: 1px solid var(--hes-line); border-radius: 10px; overflow: hidden; text-align: left; }
.hes-stone[data-kind="photo"] img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; object-position: 70% 50%; }
.hes-stone[data-kind="swatch"] { padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.hes-stone[data-kind="swatch"] figcaption { font-size: .85rem; color: var(--hes-mute); }
.hes-stone[data-kind="fact"] { padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; font-size: .92rem; }
.hes-stone-big { font: 900 2.1rem var(--hes-head); color: var(--hes-sage); margin-bottom: .3rem; }
.hes-cut { clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%); }

/* ---- timeline sections: a vertical line with node markers ---- */
.hes-creek { position: relative; padding-top: 5rem; padding-bottom: 3rem; padding-left: 3.25rem; }
.hes-creek::before { content: ""; position: absolute; left: calc(1.25rem + 11px); top: 4.5rem; bottom: 2rem; width: 2px; background: linear-gradient(var(--hes-sky), var(--hes-line)); }
.hes-sidebar .hes-creek, .hes-creek[data-size="narrow"] { padding-top: 2.5rem; }
.hes-sidebar .hes-creek { padding-left: 2.25rem; }
.hes-sidebar .hes-creek::before { left: 11px; top: 2.5rem; }
.hes-creek[data-size="narrow"] { max-width: 60rem; }
.hes-field { position: relative; padding-block: 1.75rem; }
.hes-creek > .hes-field::before {
  content: ""; position: absolute; left: -2.6rem; top: 2.15rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--hes-night); border: 3px solid var(--hes-sage);
}
.hes-sidebar .hes-creek > .hes-field::before { left: -2.05rem; }
.hes-field[data-tone="tint"] { background: var(--hes-dusk); border-radius: 12px; padding: 1.75rem 1.5rem; margin-block: 1rem; }
.hes-field[data-tone="alert"] { border-left: 4px solid #e7b469; background: #2b2722; border-radius: 8px; padding: 1.1rem 1.25rem; margin-block: 1rem; }
.hes-field[data-tone="band"] { background: linear-gradient(180deg, var(--hes-night), #24283d); padding-block: 3.5rem 4rem; text-align: center; }
.hes-field[data-kind="form"] { padding-top: 2rem; }
.hes-steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.hes-steps li::marker { font: 900 1rem var(--hes-head); color: var(--hes-sky); }
.hes-steps[data-size="sm"] { font-size: .98rem; }

/* ---- tiles and pill chips ---- */
.hes-tile { background: var(--hes-dusk); border: 1px solid var(--hes-line); border-radius: 12px; padding: 1.15rem 1.25rem; margin: 0; }
.hes-tile > .hes-glyph { color: var(--hes-sage); margin-bottom: .5rem; }
.hes-tile p:last-child { margin-bottom: 0; }
.hes-tile h2 { font-size: 1.15rem; }
.hes-tile figcaption { font-size: .85rem; color: var(--hes-mute); margin-top: .6rem; }
.hes-label { font: 700 .78rem var(--hes-head); letter-spacing: .1em; text-transform: uppercase; color: var(--hes-sage); }
.hes-grove { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; list-style: none; margin: 1rem 0; padding: 0; }
.hes-pebble {
  display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1.2rem; border-radius: 2rem;
  background: var(--hes-dusk); border: 1px solid var(--hes-line); color: var(--hes-ink); text-decoration: none; line-height: 1.4;
}
.hes-pebble .hes-glyph { color: var(--hes-sky); flex: none; margin-top: .15rem; }
.hes-pebble strong { display: block; font: 700 1rem var(--hes-head); color: var(--hes-sky); }
.hes-pebble span span { font-size: .9rem; color: var(--hes-mute); }
a.hes-pebble:hover { border-color: var(--hes-sage); color: var(--hes-ink); }
.hes-grove[data-size="sm"] .hes-pebble strong { color: var(--hes-sage); font-size: .95rem; }
.hes-notes li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; font-size: .95rem; }
.hes-notes .hes-glyph { color: var(--hes-sage); flex: none; margin-top: .25rem; }
.hes-big-tel { font: 900 1.4rem var(--hes-head); color: var(--hes-ink); text-decoration: none; }
.hes-sidebar-side { position: sticky; top: 1rem; padding-top: 2.5rem; }

/* ---- FAQ ---- */
.hes-faq { border-bottom: 1px solid var(--hes-line); padding-block: .8rem; }
.hes-faq summary { cursor: pointer; font: 700 1.05rem var(--hes-head); color: var(--hes-ink); }
.hes-faq p { margin: .6rem 0 0; }

/* ---- map ---- */
.hes-mapbox { margin: 0; }
.hes-mapbox svg { width: 100%; max-width: 560px; font-family: var(--hes-head); }
.hes-mapbox figcaption { font-size: .85rem; color: var(--hes-mute); margin-top: .5rem; }

/* ---- form ---- */
.hes-form label { display: flex; flex-direction: column; gap: .3rem; font: 700 .92rem var(--hes-head); }
.hes-form input, .hes-form select, .hes-form textarea {
  font: 400 1rem var(--hes-body); color: var(--hes-ink); background: #10101a; border: 1px solid #4a5070;
  border-radius: 8px; padding: .7rem .8rem; width: 100%;
}
.hes-form input:focus, .hes-form select:focus, .hes-form textarea:focus { border-color: var(--hes-sky); outline: none; }
.hes-form .hes-btn { align-self: flex-start; }

/* ---- footer: centred stack ---- */
.hes-mesa { background: #101018; border-top: 1px solid var(--hes-line); padding-block: 2.5rem; text-align: center; }
.hes-mesa .hes-basin { align-items: center; }
.hes-mesa-name { font: 900 1.1rem var(--hes-head); color: var(--hes-sky); text-transform: uppercase; letter-spacing: .04em; }
.hes-mesa-tel { font: 700 1.2rem var(--hes-head); color: var(--hes-ink); text-decoration: none; }
.hes-mesa-links { justify-content: center; gap: .4rem 1rem; }
.hes-mesa-links a { color: var(--hes-mute); font-size: .9rem; }
.hes-mesa-small { font-size: .85rem; color: var(--hes-mute); max-width: 46rem; }

/* ---- mobile bottom bar ---- */
.hes-trail { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: 68px; font-size: 1rem; }
  .hes-ridge-bar { justify-content: space-between; }
  .hes-ridge-name { order: -1; width: 100%; font-size: .9rem; }
  .hes-paths { display: none; }
  .hes-paths:target {
    display: flex; flex-direction: column; position: fixed; inset: 0 0 64px 0; z-index: 40; margin: 0;
    background: #11111a; padding: 2rem 1.5rem; gap: .9rem; overflow-y: auto;
  }
  .hes-paths:target a { font-size: 1.2rem; }
  .hes-paths:target .hes-paths-close { display: block; color: var(--hes-sage); margin-top: 1rem; }
  .hes-trail {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 50; background: #0f0f17; border-top: 1px solid var(--hes-line); height: 64px;
  }
  .hes-trail a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--hes-ink); text-decoration: none; font: 700 .8rem var(--hes-head); }
  .hes-trail a[data-kind="call"] { background: var(--hes-sky); color: var(--hes-on-sky); }
  .hes-knoll { padding-top: 2.25rem; }
  .hes-knoll-strip { grid-template-columns: 1fr 1fr; }
  .hes-stone[data-kind="photo"] { grid-column: 1 / -1; }
  .hes-stone-big { font-size: 1.6rem; }
  .hes-creek { padding-left: 2.4rem; }
  .hes-creek::before { left: calc(1.25rem + 5px); }
  .hes-creek > .hes-field::before { left: -1.95rem; width: 14px; height: 14px; }
  .hes-sidebar .hes-creek { padding-left: 1.9rem; }
  .hes-sidebar .hes-creek::before { left: 5px; }
  .hes-sidebar .hes-creek > .hes-field::before { left: -1.8rem; }
  .hes-field[data-tone="tint"] { padding: 1.4rem 1.1rem; }
  .hes-sidebar-side { position: static; padding-top: 0; }
  .hes-cut { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.hes-field[data-tone="alert"] p { margin: 0; }
