/* Tree Wisemen Upstate */
:root {
  --pine: #16321f;
  --pine-deep: #0f2416;
  --leaf: #a9cf54;
  --storm: #f0b323;
  --paper: #f2f5ec;
  --white: #ffffff;
  --ink: #1b241e;
  --ink-soft: #46524a;
  --rule: #cfd8c6;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: max(16px, calc((100vw - 1240px) / 2));
  --slope: 15%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.015em; font-optical-sizing: auto; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; }

:focus-visible { outline: 3px solid #1f6feb; outline-offset: 3px; border-radius: 4px; }
.reviews :focus-visible, .hero :focus-visible, .quote :focus-visible, .foot :focus-visible, .sticky-book :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--gutter); }
.sec { padding-block: clamp(64px, 8vw, 120px); }
.sec__lead { max-width: 56ch; margin: 18px 0 0; font-size: 1.2rem; color: var(--ink-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px;
  font: 800 1.125rem/1.1 var(--body);
  text-decoration: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--leaf { background: var(--leaf); color: var(--pine-deep); }
.btn--leaf:hover { background: #bfe06c; }
.btn--pine { background: var(--pine); color: var(--white); }
.btn--pine:hover { background: var(--pine-deep); }
.btn--line { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.textlink { font-weight: 700; text-underline-offset: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 28px; padding: 10px var(--gutter); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 67px; height: 48px; }
.brand__name { font: 600 1.35rem/1 var(--display); color: var(--pine); letter-spacing: -0.01em; }
.brand__name span { color: #55801c; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 12px 14px; font-weight: 700; text-decoration: none; border-radius: 6px; }
.nav a:hover { background: var(--paper); }
.top__call { min-height: 48px; padding: 10px 20px; }
.top__menu { display: none; width: 48px; height: 48px; border: 0; background: none; color: var(--pine); border-radius: 6px; cursor: pointer; }
.top__menu .ico { width: 28px; height: 28px; }

/* mobile menu */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(10, 22, 14, .55); }
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(340px, 88vw);
  background: var(--pine); color: var(--white);
  display: flex; flex-direction: column; padding: 76px 24px 24px; overflow-y: auto;
}
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu a { padding: 15px 4px; font-weight: 700; font-size: 1.25rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mobile-menu .mobile-menu__tel { margin-top: 22px; border: 0; color: var(--leaf); font: 600 1.7rem/1.2 var(--display); }
.mobile-menu__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; background: none; color: var(--white); cursor: pointer; }
.mobile-menu__close .ico { width: 28px; height: 28px; }

/* hero */
.hero { background: var(--pine); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(720px, calc(100vh - 77px)); }
.hero__text { align-self: center; padding: 64px 24px 64px var(--gutter); }
.hero h1 { font-size: clamp(2.5rem, 1.1rem + 3.7vw, 4.5rem); max-width: 13.5em; text-wrap: balance; }
.hero__lead { margin: 26px 0 0; max-width: 34em; font-size: 1.25rem; color: #dbe6d3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__rating { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; color: #dbe6d3; }
.hero__rating .ico { color: var(--storm); width: 22px; height: 22px; }
.hero__rating strong { color: var(--white); }
.hero__media { position: relative; background: var(--leaf); clip-path: polygon(var(--slope) 0, 100% 0, 100% 100%, 0 100%); min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 45%; clip-path: polygon(calc(var(--slope) + 14px) 0, 100% 0, 100% 100%, 14px 100%); }

/* services */
.services { background: var(--paper); }
.svc3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 48px; }
.svc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.svc .svc__img--right { object-position: 88% 50%; }
.svc h3 { margin-top: 22px; }
.svc p { margin: 10px 0 0; color: var(--ink-soft); max-width: 32em; }
.svc:nth-child(2) { margin-top: 56px; }
.also__title { margin-top: 72px; font-size: 1.9rem; }
.also { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); border-top: 2px solid var(--pine); }
.also > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.also dt { font-weight: 800; color: var(--pine); }
.also dd { margin: 0; color: var(--ink-soft); }

/* storm line */
.storm { background: var(--storm); color: #1d1a0c; }
.storm__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 84px); }
.storm h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.storm__text > p { margin: 18px 0 0; max-width: 32em; font-size: 1.2rem; }
.storm__tel { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; font: 600 clamp(2rem, 1.4rem + 2.4vw, 3.1rem)/1.1 var(--display); text-decoration: none; border-bottom: 3px solid currentColor; padding-bottom: 4px; }
.storm__tel .ico { width: .8em; height: .8em; }
.storm__quote { margin: 34px 0 0; padding-left: 18px; border-left: 4px solid #1d1a0c; max-width: 34em; }
.storm__quote p { margin: 0; font-weight: 600; }
.storm__quote footer { margin-top: 8px; font-size: 1rem; }
.storm__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 270px); gap: 12px; margin-top: 44px; }
.g { display: block; overflow: hidden; border-radius: 4px; background: var(--paper); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g:hover img { transform: scale(1.03); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

/* reviews */
.reviews { background: var(--pine); color: var(--white); }
.reviews__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.reviews__head { position: sticky; top: 110px; }
.score { margin: 28px 0 22px; display: flex; flex-direction: column; }
.score__num { font: 600 clamp(5rem, 3rem + 8vw, 9rem)/.9 var(--display); color: var(--leaf); letter-spacing: -0.03em; }
.score__of { margin-top: 12px; color: #dbe6d3; max-width: 16em; }
.quotes { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
.quotes blockquote { margin: 0 0 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .28); break-inside: avoid; }
.quotes p { margin: 0; font-size: 1.15rem; }
.quotes footer { margin-top: 12px; font-weight: 800; color: var(--leaf); }

/* service area */
.area { background: var(--paper); }
.area__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.places { list-style: none; margin: 30px 0 0; padding: 0; border-top: 2px solid var(--pine); }
.places li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 700; }
.area__note { margin: 24px 0 0; color: var(--ink-soft); }
.area__note a { color: var(--pine); font-weight: 800; }
.map { margin: 0; }
.map svg { display: block; width: 100%; height: auto; background: var(--pine); border-radius: 4px; }
.map figcaption { margin-top: 12px; font-size: 1rem; color: var(--ink-soft); }
.map__state { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.map__ridge path { fill: none; stroke: rgba(169, 207, 84, .55); stroke-width: 2; stroke-linejoin: round; }
.map__region { fill: rgba(255, 255, 255, .5); font: italic 500 19px var(--display); }
.map__routes path { stroke: rgba(169, 207, 84, .45); stroke-width: 1.5; fill: none; }
.map__places circle { fill: var(--white); }
.map__places .map__county { fill: rgba(255, 255, 255, .1); stroke: var(--white); stroke-width: 2; }
.map__places text { fill: var(--white); font: 700 21px var(--body); }
.map__home path { fill: var(--leaf); stroke: var(--pine); stroke-width: 3; }
.map__home text { fill: var(--leaf); font: 600 30px var(--display); }

/* about */
.about__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__top h2 { margin-bottom: 24px; }
.about__top p { max-width: 36em; font-size: 1.2rem; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--pine); }
.facts li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--rule); font-weight: 700; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid #6c9a24; }
.about__photos { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; margin-top: 52px; align-items: stretch; }
.about__crew { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.dakota { margin: 0; display: flex; flex-direction: column; }
.dakota img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% 50%; border-radius: 4px; }
.dakota figcaption { margin-top: 12px; font: 500 1.3rem/1.3 var(--display); color: var(--pine); }
.dakota figcaption span { display: block; margin-top: 6px; font: 400 1rem var(--body); color: var(--ink-soft); }

/* quote */
.quote { background: var(--pine); color: var(--white); }
.quote__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote__text > p { margin: 18px 0 0; font-size: 1.2rem; color: #dbe6d3; max-width: 30em; }
.contact { margin: 36px 0 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.contact > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.contact dt { color: #dbe6d3; }
.contact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact a { text-underline-offset: 4px; }
.form { background: var(--white); color: var(--ink); padding: clamp(22px, 3vw, 40px); border-radius: 6px; display: flex; flex-direction: column; }
.form label { font-weight: 800; margin: 16px 0 6px; }
.form label:first-child { margin-top: 0; }
.form label span { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1.125rem/1.4 var(--body); color: var(--ink); background: var(--white); border: 2px solid #9aa695; border-radius: 6px; }
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid #1f6feb; outline-offset: 1px; border-color: var(--pine); }
.form .btn { margin-top: 24px; background: var(--pine); color: var(--white); }
.form .btn:hover { background: var(--pine-deep); }
.form__hint { margin: 12px 0 0; font-size: 1rem; color: var(--ink-soft); }

/* footer */
.foot { background: var(--pine-deep); color: #dbe6d3; padding-block: 36px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot__brand { display: flex; flex-direction: column; }
.foot__name { font: 600 1.4rem/1.2 var(--display); color: var(--white); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__links a { padding: 10px 0; font-weight: 700; text-underline-offset: 4px; }

/* sticky bar (phones) */
.sticky-book { display: none; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 16, 10, .93); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 4px; }
.lightbox__cap { margin: 14px 16px 0; color: var(--white); text-align: center; }
.lightbox__btn { position: fixed; width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 2.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__close .ico { width: 26px; height: 26px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* tablet */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top__menu { display: grid; place-items: center; }
  .reviews__in, .area__in, .quote__in, .about__top { grid-template-columns: minmax(0, 1fr); }
  .reviews__head { position: static; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .storm__in { grid-template-columns: minmax(0, 1fr); }
  .map { max-width: 720px; }
}

/* phone */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .foot { padding-bottom: 116px; }
  .top__in { gap: 6px; min-height: 64px; }
  .top__call { display: none; }
  .brand img { width: 56px; height: 40px; }
  .brand__name { font-size: 1.15rem; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__media { order: -1; min-height: 0; height: 250px; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
  .hero__media img { clip-path: polygon(0 0, 100% 0, 100% calc(84% - 8px), 0 calc(100% - 8px)); object-position: 45% 42%; }
  .hero__text { padding: 22px 16px 40px; }
  .hero__lead { margin-top: 16px; font-size: 1.125rem; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__rating { margin-top: 22px; }

  .svc3 { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; }
  .svc:nth-child(2) { margin-top: 0; }
  .svc img { aspect-ratio: 4 / 3; }
  .svc:first-child img { object-position: 50% 22%; }
  .svc:nth-child(2) img { object-position: 50% 55%; }
  .also__title { margin-top: 52px; }
  .also > div { grid-template-columns: minmax(0, 1fr); }

  .storm__img { clip-path: none; }
  .storm__tel { font-size: 2.1rem; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; gap: 8px; margin-top: 30px; }

  .quotes { columns: 1; }
  .about__photos { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .about__crew { aspect-ratio: 3 / 2; height: auto; }
  .contact > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .map__places text { font-size: 29px; }
  .map__region { font-size: 24px; }
  .map__home text { font-size: 36px; }

  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--pine-deep); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
  }
  .sticky-book .btn { flex: 1; min-height: 54px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
