/* ============================================================
   Same Day Tree Solutions — styles.css
   Brand colours sampled from the logo:
   trunk brown, layered leaf greens, lime highlight.
   ============================================================ */

:root {
  --brown: #3a2a18;          /* logo trunk */
  --brown-dark: #2c1f11;
  --green-dark: #2e5e1e;     /* darkest leaf */
  --green: #5e8c3a;          /* mid leaf */
  --green-bright: #8cc63f;   /* bright leaf */
  --lime: #b5d56a;           /* light leaf */
  --lime-pale: #eef5dc;
  --cream: #faf8f2;
  --white: #ffffff;
  --text: #33291d;
  --text-light: #6b5f4e;
  --star: #f5a623;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(44, 31, 17, 0.10);
  --shadow-lg: 0 10px 40px rgba(44, 31, 17, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--green-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.topbar {
  background: var(--brown);
  color: #f1e9dc;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--lime); text-decoration: none; font-weight: 700; }

header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(44, 31, 17, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
}
.brand img { height: 56px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.15; letter-spacing: 0.02em; white-space: nowrap; }
.brand-name span { display: block; color: var(--green); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

nav.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--green-dark); border-bottom-color: var(--green-bright); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-call:hover { background: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 1.1rem;
  color: var(--green-dark);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green-bright); color: var(--brown-dark); }
.btn-primary:hover { background: var(--lime); }
.btn-dark { background: var(--brown); color: var(--white); }
.btn-dark:hover { background: var(--brown-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--brown) 0%, var(--brown-dark) 55%, #1f2d10 100%);
  color: var(--white);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* subtle leaf glow echoing the logo canopy */
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--green-bright); }
.hero .sub {
  margin-top: 16px;
  font-size: 1.15rem;
  color: #e8e0d2;
  max-width: 54ch;
}
.hero-ctas { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-points { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; list-style: none; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #f1ecdf;
}
.hero-points .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--brown-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
}

.stars { color: var(--star); letter-spacing: 2px; }

/* ---------- Quote form card ---------- */

.quote-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px 24px;
  border-top: 6px solid var(--green-bright);
}
.quote-card h2, .quote-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brown);
  line-height: 1.25;
}
.quote-card .form-note { font-size: 0.92rem; color: var(--text-light); margin: 6px 0 16px; }

.quote-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 12px 0 4px;
  color: var(--brown);
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8d0c2;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--green-bright);
  border-color: var(--green);
  background: var(--white);
}
.quote-form textarea { resize: vertical; min-height: 84px; }
.quote-form .btn { margin-top: 18px; }
.form-privacy { font-size: 0.78rem; color: var(--text-light); margin-top: 10px; text-align: center; }

.form-success {
  display: none;
  background: var(--lime-pale);
  border: 1.5px solid var(--green-bright);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--green-dark);
}
.form-error {
  display: none;
  background: #fdecea;
  border: 1.5px solid #e57368;
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  font-weight: 600;
  color: #a13a2f;
  font-size: 0.92rem;
}

/* honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--white); border-bottom: 1px solid #ece5d8; }
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: left;
}
.trust-item .icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lime-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.trust-item strong { display: block; font-size: 0.98rem; color: var(--brown); line-height: 1.2; }
.trust-item small { color: var(--text-light); font-size: 0.8rem; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--brown); line-height: 1.2; }
.section-head p { margin-top: 10px; color: var(--text-light); font-size: 1.05rem; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.alt-bg { background: var(--white); }
.green-bg { background: var(--green-dark); color: var(--white); }
.green-bg .section-head h2 { color: var(--white); }
.green-bg .section-head p { color: #d9e6c8; }

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 5px solid var(--green-bright);
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon { font-size: 2rem; }
.service-card h3 { color: var(--brown); font-size: 1.2rem; font-weight: 800; }
.service-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.service-card a.learn {
  font-weight: 800;
  text-decoration: none;
  color: var(--green-dark);
}
.service-card a.learn:hover { text-decoration: underline; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--brown-dark);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { color: var(--brown); font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Reviews ---------- */

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 26px;
  text-align: left;
}
.review-badge .g {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brown);
}
.review-badge .meta strong { display: block; font-size: 1.25rem; color: var(--brown); }
.review-badge .meta small { color: var(--text-light); }

.review-cta { margin-top: 22px; }

/* ---------- Why us / checklist ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--brown); line-height: 1.25; margin-bottom: 16px; }
.split .green-bg & h2 { color: var(--white); }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--brown-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
}
.checklist strong { color: var(--brown); }
.green-bg .checklist strong { color: var(--white); }
.green-bg .checklist span { color: #d9e6c8; }

/* ---------- Service area ---------- */

.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.suburb-list span {
  background: var(--white);
  border: 1.5px solid #e2dac9;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brown);
  padding: 18px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-light); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: 10px; }
.cta-band p { color: #e4eed3; margin-bottom: 24px; font-size: 1.05rem; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--brown) 0%, var(--brown-dark) 60%, #1f2d10 100%);
  color: var(--white);
  padding: 48px 0;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; line-height: 1.15; }
.page-hero h1 .accent { color: var(--green-bright); }
.page-hero .sub { margin-top: 12px; color: #e8e0d2; font-size: 1.1rem; max-width: 60ch; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.content-grid .quote-card { position: sticky; top: 96px; }

.prose h2 { color: var(--brown); font-size: 1.45rem; font-weight: 900; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--brown); font-size: 1.15rem; font-weight: 800; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }

.info-callout {
  background: var(--lime-pale);
  border-left: 5px solid var(--green-bright);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}
.info-callout strong { color: var(--green-dark); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--brown-dark);
  color: #cfc4b2;
  padding: 52px 0 0;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: #cfc4b2; text-decoration: none; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand img { height: 64px; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; }
.footer-phone { font-size: 1.25rem; font-weight: 900; color: var(--lime) !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #9c8f7a;
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 -4px 18px rgba(44,31,17,0.18);
  padding: 10px 12px;
  gap: 10px;
}
.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  padding: 13px 10px;
  border-radius: 10px;
  font-size: 0.98rem;
}
.mobile-cta-bar .call { background: var(--green-dark); color: var(--white); }
.mobile-cta-bar .quote { background: var(--green-bright); color: var(--brown-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid .quote-card { position: static; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1080px) {
  /* nav links are too long to fit beside the logo — collapse to menu */
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(44,31,17,0.15);
    padding: 12px 20px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  nav.main-nav a { display: block; padding: 12px 8px; border-bottom: 1px solid #f0eade; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .header-call .call-label { display: none; }
  .header-call { padding: 11px 14px; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; }
  section { padding: 48px 0; }
  .topbar .hide-mobile { display: none; }
}
