/* Stix Tree Service LLC — one-pager. Mobile-first. Relative paths only. */
:root {
  --forest: #1b3027;
  --forest-deep: #12211b;
  --forest-mid: #2c4a3c;
  --gold: #d49a18;
  --gold-soft: #e8c56b;
  --cream: #f7f3eb;
  --cream-dark: #ebe4d6;
  --ink: #1c1c1c;
  --ink-soft: #3a3a3a;
  --muted: #5c5a55;
  --white: #fffdf8;
  --max: 70rem;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 33, 27, 0.12);
  --font: "Segoe UI", "Helvetica Neue", Tahoma, system-ui, sans-serif;
  --display: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); }
a:hover { color: var(--forest); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 235, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
  min-width: 0;
}
.brand img { width: 3.1rem; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text span { font-size: 0.72rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
nav.primary { display: none; }
nav.primary a {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
}
nav.primary a:hover { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--forest-deep);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  min-height: 2.75rem;
  border: 0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}
.btn:hover { background: var(--gold-soft); color: var(--forest-deep); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: var(--forest-deep); }
.btn-header { padding: 0.55rem 0.95rem; font-size: 0.95rem; white-space: nowrap; flex-shrink: 0; }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--forest-deep); }


.hero {
  color: var(--cream);
  padding: 2.4rem 1rem 3rem;
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 33, 27, 0.88) 0%, rgba(18, 33, 27, 0.72) 42%, rgba(18, 33, 27, 0.38) 100%),
    linear-gradient(180deg, rgba(18, 33, 27, 0.35) 0%, rgba(18, 33, 27, 0.15) 40%, rgba(18, 33, 27, 0.55) 100%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; width: 100%; }
.eyebrow {
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  font-weight: 700;
  max-width: 14ch;
}
.hero .lead {
  font-size: 1.12rem;
  max-width: 36rem;
  color: #efe6d2;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  font-size: 0.95rem;
  color: #e6dcc6;
}

section { padding: 3rem 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; }
section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  color: var(--forest);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.section-lead { color: var(--muted); margin: 0 0 1.6rem; max-width: 40rem; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--forest);
}
.card p { margin: 0; color: var(--ink-soft); }
.icon-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.icon-mark svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.area {
  background: var(--forest);
  color: var(--cream);
}
.area h2, .why h2 { color: var(--cream); }
.area .section-lead { color: #d9d0bc; }
.towns {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.town {
  background: rgba(255,253,248,0.06);
  border: 1px solid rgba(232,197,107,0.28);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 1.15rem;
  font-family: var(--display);
}
.town small { display: block; font-family: var(--font); font-size: 0.85rem; color: #d9d0bc; margin-top: 0.2rem; }

.why { background: var(--forest-mid); color: var(--cream); }
.why .section-lead { color: #e4ddd0; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.reasons li {
  background: rgba(255,253,248,0.07);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1rem 2.8rem;
  position: relative;
}
.reasons li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
}

.gallery { background: var(--cream); }
.work-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
.work-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--forest-mid);
  box-shadow: var(--shadow);
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-featured img,
.work-portrait img { aspect-ratio: 3 / 4; }
.work-small img { aspect-ratio: 3 / 2; }

.quote-block { background: var(--cream-dark); }
blockquote {
  margin: 0;
  font-family: var(--display);
  /* Full .wrap width (same as other sections). Desktop ~12% smaller than 1.4rem; phone stays readable. */
  font-size: clamp(1.05rem, 1.15vw + 0.7rem, 1.22rem);
  line-height: 1.5;
  color: var(--forest);
  max-width: none;
  width: 100%;
}
blockquote footer {
  margin-top: 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink-soft);
}
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  gap: 1.2rem;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--cream-dark);
}
.contact-card h3 { margin: 0 0 0.35rem; color: var(--forest); }
.contact-card p, .contact-card a { margin: 0; }
.phone-xl {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--forest);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin: 0.2rem 0 0.4rem;
}
.hours-line { margin-top: 0.5rem; }
.phone-xl { min-height: 2.75rem; line-height: 1.2; display: inline-flex; align-items: center; }
.contact-card a[href^="mailto:"],
.contact-card a[href^="http"] {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.7rem 0 0;
}
.contact-actions .btn { margin: 0; }
.contact-social { margin-top: 0.8rem; }


footer.site-footer {
  background: var(--forest-deep);
  color: #d9d0bc;
  padding: 2rem 1rem 2.4rem;
  font-size: 0.95rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand {
  font-family: var(--display);
  color: var(--cream);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] { white-space: nowrap; }

.site-footer p { margin: 0.25rem 0; }


@media (max-width: 399px) {
  .header-inner { gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .brand img { width: 2.55rem; }
  .brand-text strong { font-size: 0.88rem; }
  .brand-text span { font-size: 0.68rem; }
  .btn-header { padding: 0.5rem 0.7rem; font-size: 0.88rem; }
}

@media (min-width: 640px) {
  .cards, .towns { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-featured { grid-column: span 4; grid-row: span 2; }
  .work-portrait { grid-column: span 2; }
  .work-small { grid-column: span 3; }
  .work-featured img,
  .work-portrait img { aspect-ratio: auto; min-height: 100%; }
  .brand img { width: 3.6rem; }
  .brand-text strong { font-size: 1.08rem; }
}
@media (min-width: 900px) {
  nav.primary { display: flex; gap: 0.15rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
  .hero { padding: 3.4rem 1.5rem 4rem; min-height: 36rem; align-items: center; }
  .towns { grid-template-columns: repeat(3, 1fr); }
  section { padding: 3.6rem 1.5rem; }
  .header-inner { padding: 0.65rem 1.5rem; }
}

/* Estimate request dialog */
body.modal-open { overflow: hidden; }
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 33, 27, 0.62);
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  max-width: 36rem;
  max-height: min(94vh, 52rem);
  overflow: auto;
  border-radius: 18px 18px 0 0;
  padding: 1.05rem 1rem 1.2rem;
  box-shadow: 0 -10px 40px rgba(18, 33, 27, 0.25);
}
.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--cream-dark); }
.modal-panel h2 {
  font-family: var(--display);
  color: var(--forest);
  margin: 0 2.5rem 0.4rem 0;
  font-size: 1.6rem;
  line-height: 1.2;
}
.modal-lead { color: var(--muted); margin: 0 0 1.1rem; }
.estimate-form { display: grid; gap: 0.65rem; }
.estimate-form .span-all { grid-column: 1 / -1; }
.estimate-form label.field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}
.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form input[type="email"],
.estimate-form select,
.estimate-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  min-height: 2.75rem;
  width: 100%;
}
.estimate-form textarea { min-height: 4.5rem; resize: vertical; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.estimate-form .field.error input,
.estimate-form .field.error select,
.estimate-form .field.error textarea {
  border-color: #9a2b15;
}
.field-error { color: #9a2b15; font-weight: 600; font-size: 0.85rem; }
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.pref-set { border: 0; margin: 0; padding: 0; }
.pref-set legend { font-weight: 600; color: var(--forest); font-size: 0.95rem; margin-bottom: 0.35rem; }
.pref-opts { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; }
.pref-opts label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.form-status { margin: 0.2rem 0 0; }
.form-status.error { color: #9a2b15; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }
.form-actions .btn { min-width: 10rem; cursor: pointer; font: inherit; }
.form-actions .btn[disabled] { opacity: 0.65; cursor: wait; }
.form-success h3 { color: var(--forest); font-family: var(--display); margin: 0 0 0.5rem; }
.form-success p { margin: 0 0 1rem; }
.modal-fallback { margin: 0.6rem 0 0; color: var(--ink-soft); }

@media (min-width: 640px) {
  .modal { align-items: center; padding: 1.5rem; }
  .modal-panel {
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: 0 16px 50px rgba(18, 33, 27, 0.28);
    max-height: min(90vh, 46rem);
  }
  .estimate-form { grid-template-columns: 1fr 1fr; gap: 0.7rem 0.85rem; }
  .estimate-form textarea { min-height: 4.2rem; }
}

