/*
Theme Name: Stress Free Tree Care
Theme URI: https://stressfreetreecare.net/
Author: Stress Free Tree Care, LLC
Description: Drop-in theme for Stress Free Tree Care. Uses the original logo as the site icon. Activate it, and Home, Services, About, and Contact are ready.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sftc
*/

:root {
  --bg: #f3efe4;
  --surface: #faf7f0;
  --fg: #1a221c;
  --muted: #5e6b62;
  --pine: #1f4a36;
  --pine-deep: #13291f;
  --sage: #4a6b56;
  --cream: #f3efe4;
  --border: #d6d0c4;
  --emergency: #7a3a2e;
  --shadow: 0 0 0 1px rgba(26, 34, 28, 0.06), 0 1px 2px -1px rgba(26, 34, 28, 0.06), 0 2px 4px rgba(26, 34, 28, 0.04);
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --wrap: 72rem;
}

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, .btn { cursor: pointer; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
p { text-wrap: pretty; margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  transform: translateY(-200%);
  background: var(--pine);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 228, 0.92);
  border-bottom: 1px solid rgba(214, 208, 196, 0.8);
  backdrop-filter: blur(12px);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.utility {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--pine-deep);
  color: var(--cream);
  padding: 0.45rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.utility a { color: var(--cream); text-decoration: none; }
.utility span { color: rgba(243, 239, 228, 0.8); }
.phone-desktop { display: none; }

.nav-row {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 4.5rem;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 3.4rem; width: auto; }
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a[aria-current="page"],
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: none; gap: 0.5rem; }
.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
}
.nav-panel { display: none; border-top: 1px solid var(--border); padding: 1rem 1.25rem 1.25rem; }
.nav-panel.is-open { display: block; }
.nav-panel a {
  display: block;
  text-decoration: none;
  padding: 0.85rem 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
}
.nav-panel .stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.nav-panel .stack a { padding: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}
.btn-pine { background: var(--pine); color: var(--cream); }
.btn-pine:hover { background: var(--pine-deep); }
.btn-cream { background: var(--cream); color: var(--pine); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(243, 239, 228, 0.28); }
.btn-emergency { background: var(--emergency); color: var(--cream); }
.btn-lg { min-height: 3rem; padding-inline: 1.4rem; }

.hero {
  display: grid;
  background: var(--pine-deep);
  color: var(--cream);
}
.hero-copy { padding: 3rem 1.25rem 3.5rem; }
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero .kicker { color: rgba(243, 239, 228, 0.7); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: 0.85rem; max-width: 12ch; }
.lede { margin-top: 1.1rem; color: rgba(243, 239, 228, 0.82); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero-photo { min-height: 22rem; }
.hero-photo img, .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: center top; }

.trust {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1.25rem;
}
.trust li { display: flex; gap: 0.7rem; align-items: center; font-weight: 600; font-size: 0.95rem; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 99px; background: var(--pine); flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.25rem; }
.section-head { max-width: 40rem; }
.section-head h2, .plain h1, .plain h2, .wrap > h1, .wrap > h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.section-head h2, .wrap > h1 { margin-top: 0.6rem; }
.muted { color: var(--muted); }
.mt { margin-top: 0.9rem; }
.mt-lg { margin-top: 1.5rem; }

.cards-3, .cards-2, .steps, .split, .gallery { display: grid; gap: 1.1rem; margin-top: 2rem; }
.card {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card .pad, .step, .quote, .plain-card { padding: 1.3rem 1.25rem 1.4rem; }
.card h3, .step h3, .plain-card h3 { font-size: 1.35rem; }
.photo { border-radius: 1rem; overflow: hidden; background: #d7d1c4; }
.photo.ratio-43 { aspect-ratio: 4 / 3; }
.photo.ratio-45 { aspect-ratio: 4 / 5; }
.card .photo { border-radius: 0; }
.linkish { display: inline-flex; margin-top: 0.9rem; color: var(--pine); font-weight: 600; font-size: 0.95rem; }
ol.steps { list-style: none; padding: 0; }

.band { background: var(--pine-deep); color: var(--cream); }
.band .muted, .band p { color: rgba(243, 239, 228, 0.78); }
.crew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.crew-grid .span { grid-column: 1 / -1; }

.areas { position: relative; color: var(--cream); overflow: hidden; min-height: 22rem; }
.areas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.areas .veil { position: absolute; inset: 0; background: rgba(19, 41, 31, 0.72); }
.areas .wrap { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid rgba(243, 239, 228, 0.25); border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.92rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 0.55rem; color: var(--muted); font-size: 0.98rem; }

.cta-bar { background: var(--surface); border-top: 1px solid var(--border); }
.cta-bar .wrap { display: flex; flex-direction: column; gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }

.site-footer { background: var(--pine-deep); color: var(--cream); }
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.2rem 1.25rem 2rem;
  display: grid;
  gap: 2rem;
}
.foot img { height: 3.2rem; width: auto; background: var(--cream); border-radius: 0.5rem; padding: 0.25rem 0.4rem; }
.foot a { color: rgba(243, 239, 228, 0.82); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.5);
  font-weight: 700;
}
.foot ul { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.legal {
  border-top: 1px solid rgba(243, 239, 228, 0.1);
  color: rgba(243, 239, 228, 0.45);
  font-size: 0.8rem;
  padding: 1rem 1.25rem 5.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0.7rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(243, 239, 228, 0.96);
  border-top: 1px solid var(--border);
}
.mobile-bar a { min-height: 3rem; }

.service { display: grid; gap: 1.2rem; scroll-margin-top: 7rem; }
.service + .service { margin-top: 3.5rem; }
.num { font-family: var(--display); color: var(--sage); font-size: 0.9rem; }

.contact-grid { display: grid; gap: 1.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list a { font-weight: 650; text-decoration: none; }
.note {
  margin-top: 1.4rem;
  background: var(--pine-deep);
  color: var(--cream);
  border-radius: 1rem;
  padding: 1.3rem;
}
.note p { color: rgba(243, 239, 228, 0.78); margin-top: 0.45rem; font-size: 0.95rem; }
form.estimate {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}
label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  border-radius: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  box-shadow: var(--shadow);
}
textarea { min-height: 8rem; resize: vertical; }
.field { margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; }
.alert { color: var(--emergency); font-size: 0.92rem; margin-top: 0.7rem; }
.success {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

@media (min-width: 760px) {
  .phone-desktop { display: inline; }
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle, .nav-panel, .mobile-bar { display: none !important; }
  .legal { padding-bottom: 1.2rem; }
  .trust { grid-template-columns: 1fr 1fr; }
  .cards-2, .cards-3 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
  .hero-copy { padding: 4.5rem 2.75rem; }
  .hero-photo { min-height: 100%; }
  .crew-grid { grid-template-columns: 1.1fr 0.9fr; }
  .crew-grid .span { grid-column: auto; grid-row: span 2; min-height: 28rem; }
  .cta-bar .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .contact-grid, .split { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .foot { grid-template-columns: 1.4fr 0.8fr 1fr; }
  form.estimate { padding: 2rem; }
}
@media (min-width: 1020px) {
  .cards-3, .steps { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .split.about { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .faq-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem; }
  .service { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .service.flip .photo { order: 2; }
  .gallery.three { grid-template-columns: 1.4fr 0.8fr; }
  .gallery.three .tall { grid-row: span 2; }
  .gallery.rest { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
