/* =========================================================
   Eco Tree Service — Titusville tree service
   Palette: deep green (bark/canopy), bark brown, warm sand,
   storm-sky blue accent.
   ========================================================= */

:root {
  /* Color tokens */
  --green-900: #102418;
  --green-800: #163325;
  --green-700: #1f3d2b;     /* primary deep green */
  --green-600: #2b5b3d;
  --green-500: #3c7a55;
  --green-100: #d8e7d6;

  --bark-900: #2a1b0e;
  --bark-700: #4a2f17;
  --bark-600: #5b3a1e;       /* bark brown */
  --bark-300: #b08862;

  --sand-50:  #faf5ea;       /* page surface */
  --sand-100: #f3ead5;       /* warm sand */
  --sand-200: #e9d8a6;       /* tree-mark color */
  --sand-300: #d8c8a3;
  --sand-400: #c2a978;

  --storm-700: #2f4a63;      /* storm sky accent */
  --storm-500: #4a6a86;
  --storm-400: #7b95a8;

  --sun-400: #f4d58d;
  --ink-900: #14160f;
  --ink-700: #2c2f25;
  --ink-500: #4f5345;
  --ink-300: #7e8273;

  --white: #ffffff;

  /* Semantic */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --surface: #ffffff;
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --rule: rgba(20, 22, 15, 0.12);

  /* Spatial */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Type */
  --serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 22, 15, 0.06), 0 1px 1px rgba(20, 22, 15, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(20, 22, 15, 0.18), 0 2px 6px rgba(20, 22, 15, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(20, 22, 15, 0.28);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 0.95rem + 0.1vw, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--storm-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px; left: 8px;
  background: var(--green-700);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 999;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-600);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--sand-200); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--green-900);
  margin: 0 0 .5em;
  line-height: 1.1;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }

/* ---------- Storm bar ---------- */
.stormbar {
  background: linear-gradient(90deg, var(--storm-700), var(--storm-500));
  color: #fff;
  font-size: 14px;
}
.stormbar__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .55rem;
  flex-wrap: wrap;
}
.stormbar p { margin: 0; }
.stormbar strong { color: var(--sun-400); font-weight: 600; }
.stormbar__dot {
  width: .55rem; height: .55rem; border-radius: 999px;
  background: var(--sun-400);
  box-shadow: 0 0 0 4px rgba(244, 213, 141, 0.25);
  animation: pulse 2.2s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.stormbar__link {
  margin-left: auto;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.stormbar__link:hover { color: var(--sun-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 234, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding-block: .85rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: inherit;
}
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__wordmark { display: grid; line-height: 1.1; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bark-600);
  font-weight: 500;
}

.nav {
  display: flex; gap: 1.5rem;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-700);
  text-decoration: none;
  padding-block: .35rem;
  position: relative;
}
.nav a:hover { color: var(--green-700); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--green-600); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; gap: .5rem; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  --btn-bg: var(--green-700);
  --btn-bg-hover: var(--green-800);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--green-700); --btn-bg-hover: var(--green-800); }
.btn--secondary {
  --btn-bg: var(--sand-200);
  --btn-bg-hover: var(--sand-300);
  --btn-fg: var(--green-900);
  border-color: rgba(91, 58, 30, 0.15);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(31, 61, 43, 0.08);
  --btn-fg: var(--green-800);
  box-shadow: none;
  border-color: rgba(31, 61, 43, 0.18);
}
.btn--phone { font-variant-numeric: tabular-nums; }
.btn--lg { padding: .95rem 1.4rem; font-size: 15.5px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-900);
  color: #f5efe2;
  padding-block: clamp(4rem, 7vw, 7rem) clamp(3.5rem, 6vw, 6rem);
}
.hero__sky {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__sky svg { width: 100%; height: 100%; }
.hero__sky::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,36,23,0) 30%, rgba(15,36,23,0.75) 100%);
}
.hero__inner {
  position: relative;
  max-width: 880px;
}
.hero .eyebrow {
  color: var(--sand-200);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero__title em {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  color: var(--sun-400);
}
.hero__title-sub {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--sand-200);
  margin-top: .5rem;
  letter-spacing: -0.01em;
}
.hero__lede {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  max-width: 60ch;
  color: #ece4cf;
  margin-bottom: 1.75rem;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2.25rem;
}
.hero__strip {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .5rem 1.5rem;
  font-size: 14px;
  color: #ddd5bd;
  border-top: 1px solid rgba(233, 216, 166, 0.18);
  padding-top: 1.25rem;
}
.hero__strip li { display: flex; align-items: center; gap: .55rem; }
.hero__strip span {
  color: var(--sun-400);
  font-weight: 700;
}

/* ---------- Section base ---------- */
.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.section--sand { background: var(--sand-100); }
.section--feature {
  background:
    linear-gradient(180deg, var(--sand-50), var(--sand-100));
}
.section--dark {
  background:
    radial-gradient(120% 80% at 20% 0%, #234735 0%, transparent 60%),
    linear-gradient(180deg, var(--green-800), var(--green-900));
  color: #efe7d0;
}
.section--dark h2 { color: #fff; }
.section--dark a { color: var(--sun-400); }

.section__head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

/* ---------- Services ---------- */
.services {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  gap: .6rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 61, 43, 0.25);
}
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 14px;
  margin-bottom: .25rem;
}
.service__icon svg { width: 32px; height: 32px; }
.service h3 { color: var(--green-900); }
.service p { color: var(--ink-700); }
.service__bullets {
  list-style: none; padding: 0; margin: .25rem 0 0;
  font-size: 14.5px;
  color: var(--ink-700);
  display: grid; gap: .35rem;
}
.service__bullets li {
  padding-left: 1.15rem; position: relative;
}
.service__bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .45rem; height: .45rem; border-radius: 2px;
  background: var(--bark-600); transform: rotate(45deg);
}
.service--accent {
  background: linear-gradient(180deg, var(--green-700), var(--green-800));
  color: #f1e9d3;
  border-color: transparent;
}
.service--accent h3 { color: #fff; }
.service--accent p { color: #e0d8c0; }
.service--accent .service__icon {
  background: rgba(244, 213, 141, 0.18);
  color: var(--sun-400);
}
.service--accent .service__bullets { color: #e0d8c0; }
.service--accent .service__bullets li::before { background: var(--sun-400); }

/* ---------- Feature ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.feature__copy h2 { color: var(--green-900); }
.feature__list {
  margin: 1rem 0 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--ink-700);
}
.feature__list li { margin-bottom: .35rem; }
.feature__card {
  background: var(--green-700);
  color: #f1e9d3;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.feature__card::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(closest-side, rgba(244,213,141,0.25), transparent 70%);
  pointer-events: none;
}
.feature__card h3 { color: #fff; margin-bottom: .75rem; }
.feature__card ul {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; gap: .55rem;
  font-size: 15px;
}
.feature__card li { padding-left: 1.3rem; position: relative; color: #e6dcbe; }
.feature__card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sun-400); font-weight: 700;
}
.feature__fineprint {
  font-size: 13px; color: #c5b994; margin: 0;
}

/* ---------- Trust ---------- */
.trust {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.trust__item {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.trust__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bark-600);
  margin-bottom: .4rem;
}
.trust__item h3 { color: var(--green-900); margin-bottom: .35rem; }
.trust__item p { color: var(--ink-700); margin: 0; font-size: 15px; }

/* ---------- Areas ---------- */
.areas {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
}
.areas li {
  padding: 1.25rem 1.1rem;
  background: var(--surface);
  border-left: 4px solid var(--bark-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.areas h3 {
  font-size: 1.1rem; color: var(--green-900);
  margin-bottom: .25rem;
}
.areas p { margin: 0; color: var(--ink-700); font-size: 14.5px; line-height: 1.55; }
.areas__note {
  margin-top: 1.5rem;
  font-size: 14.5px; color: var(--ink-500);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-wrap .section__head { max-width: 60ch; }
.faq {
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-right: .25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--green-600);
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq__body {
  padding-top: .65rem;
  color: var(--ink-700);
  max-width: 70ch;
  font-size: 15.5px;
}
.faq__body p { margin: 0; }

/* ---------- Estimate ---------- */
.estimate {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .estimate { grid-template-columns: 1fr; } }
.estimate__copy h2 { color: #fff; }
.estimate__copy p { color: #e1d7b9; max-width: 42ch; }
.estimate__call { margin-top: .5rem; margin-bottom: 1.5rem; }
.estimate__meta {
  display: grid;
  gap: .8rem 1.25rem;
  font-size: 14px;
  margin: 0;
}
.estimate__meta > div { display: grid; }
.estimate__meta dt {
  color: var(--sand-200);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.estimate__meta dd { margin: .1rem 0 0; color: #f1e9d3; }
.estimate__meta a { color: var(--sun-400); text-decoration: underline; text-underline-offset: 3px; }

.form {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 1rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field--group { margin: 0; padding: 0; border: 0; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: .01em;
}
.field__hint {
  color: var(--muted); font-weight: 400; margin-left: .35rem;
}
.field input[type="text"],
.field input[type="tel"],
.field textarea {
  font: inherit;
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--rule);
  background: #fbf8f1;
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(60, 122, 85, 0.18);
}
.field textarea { resize: vertical; min-height: 90px; }

.checks, .radios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .5rem;
}
.checks label, .radios label {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fbf8f1;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.checks label:hover, .radios label:hover {
  border-color: var(--green-600);
  background: #fff;
}
.checks input, .radios input { accent-color: var(--green-700); }

.form__note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.form__note--success {
  color: var(--green-700);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #d6cdaf;
  padding-block: 3rem 1.5rem;
  font-size: 14.5px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(233, 216, 166, 0.14);
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer__brand {
  display: flex; gap: .9rem; align-items: flex-start;
}
.site-footer__brand .brand__mark { width: 44px; height: 44px; }
.site-footer__name {
  font-family: var(--serif);
  font-weight: 700;
  color: #f1e9d3;
  margin: 0 0 .15rem;
  font-size: 1.05rem;
}
.site-footer__sub { margin: 0; color: #b9b08e; font-size: 13.5px; max-width: 38ch; }

.site-footer__nav { display: grid; gap: .4rem; }
.site-footer__nav a { color: #d6cdaf; text-decoration: none; }
.site-footer__nav a:hover { color: var(--sun-400); }

.site-footer__contact p { margin: 0 0 .25rem; }
.site-footer__contact a { color: #f1e9d3; text-decoration: none; }
.site-footer__contact a:hover { color: var(--sun-400); }
.footer-phone {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: #f1e9d3 !important;
}
.site-footer__hours { color: #b9b08e !important; font-size: 13.5px; }

.site-footer__legal {
  padding-top: 1.5rem;
  font-size: 12.5px;
  color: #9a916f;
}
.site-footer__legal p { margin: 0 0 .35rem; }
.site-footer__fineprint { color: #847b5c; }

/* ---------- Responsive header collapse ---------- */
@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: .6rem 1rem;
  }
  .brand { grid-area: brand; min-width: 0; }
  .header-cta { grid-area: cta; }
  .nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 1.1rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: none;
    border-top: 1px solid var(--rule);
    padding-top: .55rem;
    margin-top: .15rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .brand__tag { display: none; }
  .brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  /* Hide phone button in header; keep the primary Estimate CTA. Phone is reachable in hero, sticky storm bar wording, and footer. */
  .header-cta .btn--phone { display: none; }
  .header-cta .btn--primary { padding: .6rem .9rem; font-size: 13px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 0.88rem; white-space: normal; line-height: 1.15; }
  .site-header__inner { padding-block: .65rem; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 0.82rem; }
  .header-cta .btn--primary { padding: .55rem .8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
