/* Little Guyz Tree Service — design system
   Palette: forest green (trust, trees) + safety amber (tree-work high-vis cue) */

:root {
  --forest-900: #142e22;
  --forest-800: #1c3f2e;
  --forest-700: #24533b;
  --forest-600: #2f6b4a;
  --forest-500: #3d8560;
  --amber-600: #c4761b;
  --amber-500: #e08c2b;
  --amber-100: #fdf1e0;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --ink-900: #1b211d;
  --ink-700: #3a423d;
  --ink-500: #667169;
  --line: #e3e0d5;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(20, 46, 34, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 46, 34, 0.14);
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0 0 0.5em; color: var(--forest-900); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--forest-700); }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest-900); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo { width: 140px; height: auto; background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 14px; }
.brand-name { font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--forest-900); }
.brand-sub { display: block; font-family: system-ui, sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: var(--amber-600); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest-700); }
.nav-links .has-submenu { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px; margin-top: 10px; z-index: 50;
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.submenu a:hover { background: var(--amber-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.call-badge { display: flex; flex-direction: column; text-align: right; text-decoration: none; }
.call-badge .label { font-size: 0.68rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; }
.call-badge .number { font-weight: 700; color: var(--forest-800); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: var(--forest-900); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(224,140,43,0.4); }
.btn-emergency { background: var(--danger); color: #fff; }
.btn-emergency:hover { box-shadow: 0 6px 16px rgba(179,38,30,0.35); }
.btn-outline { background: transparent; border-color: var(--forest-700); color: var(--forest-800); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Emergency strip */
.emergency-strip {
  background: var(--danger); color: #fff; font-size: 0.85rem; font-weight: 600;
  text-align: center; padding: 8px 16px;
}
.emergency-strip a { color: #fff; text-decoration: underline; }

/* Hero */
.hero {
  background:
    linear-gradient(160deg, rgba(20,46,34,0.92), rgba(36,83,59,0.88) 60%, rgba(61,133,96,0.82)),
    url("../assets/photos/aerial-large-property.jpg");
  background-size: cover; background-position: center;
  color: #fff; padding: 64px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: rgba(255,255,255,0.14); color: var(--amber-100); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-note { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }
.hero-visual {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px; padding: 26px; backdrop-filter: blur(2px);
}
.hero-visual .stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.2); }
.hero-visual .stat-row:last-child { border-bottom: none; }
.hero-visual .stat-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.hero-visual .stat-value { font-weight: 700; color: var(--amber-100); }

.page-photo {
  width: 100%; max-height: 420px; object-fit: cover; display: block;
  border-bottom: 4px solid var(--amber-500);
}

/* Page hero (secondary pages) */
.page-hero { background: linear-gradient(160deg, var(--forest-900), var(--forest-700)); color: #fff; padding: 48px 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 62ch; margin-bottom: 0; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.kicker { display: block; color: var(--amber-600); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }

/* Cards / grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.service-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--amber-100);
  color: var(--amber-600); display: flex; align-items: center; justify-content: center;
}
.service-card h3 { margin-bottom: 2px; }
.service-card .more { font-weight: 700; color: var(--forest-700); font-size: 0.9rem; margin-top: auto; }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: var(--amber-100); color: var(--forest-800); font-weight: 600; font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .tick { color: var(--forest-600); flex-shrink: 0; font-weight: 900; }

.process-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.process-steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--forest-800); color: #fff;
  font-weight: 700; margin-bottom: 12px;
}

.stat-block { text-align: center; padding: 18px; }
.stat-block .num { font-family: Georgia, serif; font-size: 2.2rem; color: var(--forest-800); font-weight: 700; }
.stat-block .label { color: var(--ink-500); font-size: 0.85rem; }

.callout {
  background: var(--forest-900); color: #fff; border-radius: 16px; padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.callout h2 { color: #fff; margin-bottom: 6px; }
.callout p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

.callout-amber { background: var(--amber-100); color: var(--forest-900); border: 1px solid #f0d7ae; }
.callout-amber h2, .callout-amber p { color: var(--forest-900); }

/* Testimonials / trust placeholder */
.trust-note {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px;
  color: var(--ink-500); font-size: 0.9rem; background: var(--paper);
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, var(--forest-700), var(--forest-700) 10px, var(--forest-600) 10px, var(--forest-600) 20px);
  display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 16px;
  font-size: 0.85rem; font-weight: 600;
}
.gallery-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--shadow);
}
.gallery-photo img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.gallery-photo figcaption {
  padding: 10px 14px; font-weight: 700; font-size: 0.85rem; color: var(--forest-900);
}

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--forest-900); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-size: 0.95rem;
  font-family: inherit; background: var(--cream); color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--forest-600); outline-offset: 1px; background: var(--paper); }
.field small { color: var(--ink-500); font-size: 0.78rem; }
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 6px; }
.form-success {
  display: none; background: var(--amber-100); border: 1px solid #f0d7ae; border-radius: var(--radius);
  padding: 20px; color: var(--forest-900); font-weight: 600;
}
.form-success.visible { display: block; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--forest-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--amber-600); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 10px; }

/* Footer */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,0.78); padding: 52px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-family: system-ui, sans-serif; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 34ch; }

/* Chatbot widget */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 300;
  background: var(--amber-500); color: var(--forest-900); border: none; border-radius: 999px;
  padding: 14px 20px; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-size: 0.95rem;
}
.chat-panel {
  position: fixed; bottom: 90px; right: 22px; z-index: 300; width: 340px; max-width: calc(100vw - 32px);
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; flex-direction: column; max-height: 460px; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--forest-900); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-head strong { display: block; font-size: 0.95rem; }
.chat-head span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chat-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.chat-body { padding: 14px 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; max-width: 88%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; background: var(--forest-800); color: #fff; }
.chat-options { display: flex; flex-direction: column; gap: 8px; }
.chat-options button {
  text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 0.85rem; cursor: pointer; font-weight: 600; color: var(--forest-800);
}
.chat-options button:hover { border-color: var(--forest-600); background: var(--amber-100); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .header-actions .call-badge { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.menu-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 14px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2, .footer-grid, .gallery-grid, .process-steps { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
  .chat-launcher { right: 16px; }
}
