/* ============================================================
   The Little Tree Co. — styles
   ============================================================ */

:root {
  --green-900: #14331f;
  --green-800: #1a4429;
  --green-700: #1f5132;
  --green-600: #2e7d4f;
  --green-500: #3f9d63;
  --bark: #6b4f3a;
  --amber: #e0913a;
  --amber-dark: #c87a26;
  --cream: #f7f5ef;
  --sand: #efeae0;
  --card: #ffffff;
  --ink: #1d211c;
  --muted: #5d655b;
  --line: #e3e0d6;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 51, 31, .06), 0 2px 8px rgba(20, 51, 31, .05);
  --shadow-md: 0 8px 30px rgba(20, 51, 31, .10);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--amber); color: #2a1d09; box-shadow: 0 6px 18px rgba(224, 145, 58, .35); }
.btn-primary:hover { background: var(--amber-dark); color: #2a1d09; }
.btn-ghost { background: transparent; color: var(--green-800); border-color: rgba(31, 81, 50, .3); }
.btn-ghost:hover { background: rgba(31, 81, 50, .07); }
.btn-block { width: 100%; padding: 15px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, .85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 42px; height: 42px; display: block; flex: none; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: rgba(31, 81, 50, .07); text-decoration: none; }
.nav-cta { background: var(--green-700); color: #fff !important; font-weight: 600; }
.nav-cta:hover { background: var(--green-800) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--green-900); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; padding: 72px 22px 100px; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: clamp(120px, 22vw, 170px); height: auto; margin-bottom: 16px; filter: drop-shadow(0 12px 30px rgba(20, 51, 31, .20)); }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); background: #e7f1ea; padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 600; color: var(--green-900); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); margin: 20px auto 0; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; justify-content: center; }
.trust-bar { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 0; margin: 32px 0 0; color: var(--green-800); font-weight: 500; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.kicker { font-weight: 600; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--green-600); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--green-900); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3cfc1; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eaf3ec; color: var(--green-600); margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; color: var(--green-900); margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .98rem; }
.services-note { margin-top: 34px; color: var(--muted); text-align: center; font-size: 1.02rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); color: var(--green-900); margin: 12px 0 18px; }
.why-copy p { color: var(--muted); font-size: 1.08rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.why-list strong { color: var(--green-800); display: block; margin-bottom: 2px; }
.why-list li { color: var(--muted); font-size: .98rem; }

/* ---------- Service area ---------- */
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.area-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; text-align: center; font-weight: 500; color: var(--green-800); box-shadow: var(--shadow-sm);
}
.area-note { margin-top: 26px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.22rem; color: var(--green-900); margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--green-800); color: #eaf3ec; }
.contact .kicker { color: #9ad3ad; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.contact-copy p { color: #c5d8cb; font-size: 1.08rem; margin-top: 14px; }
.contact-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-points li { display: flex; flex-direction: column; }
.cp-label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8fc4a3; font-weight: 600; }
.cp-value { color: #fff; font-size: 1.2rem; font-weight: 600; font-family: var(--font-head); }
a.cp-value:hover { color: var(--amber); text-decoration: none; }

.contact-form { background: var(--cream); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(63, 157, 99, .18);
}
.field textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #b4452f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c5d8cb; padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 44px; height: 44px; display: block; flex: none; }
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; }
.footer-brand p { color: #9fb8a6; margin-top: 6px; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-nav a { color: #c5d8cb; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .9rem; color: #8aa593; }

/* ---------- Floating CTA (mobile) ---------- */
.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  background: var(--amber); color: #2a1d09; font-weight: 700; padding: 14px 20px;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.floating-cta:hover { text-decoration: none; background: var(--amber-dark); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
}

/* Collapse the nav to a menu button before the header gets cramped */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 64px 22px 80px; }
  .cards, .steps, .area-list, .field-row { grid-template-columns: 1fr; }
  .floating-cta { display: inline-block; }
  .footer-bottom { flex-direction: column; }
}
