/* ============================
   Joplin Tree Experts
   Modern Professional · Deep Green & Slate
   ============================ */

:root {
  --green: #2e7d5b;
  --green-dark: #1e3a3a;
  --green-deep: #143030;
  --green-mid: #3a9b6e;
  --green-light: #4eb583;
  --slate: #2a3942;
  --slate-light: #4a5b66;
  --bark: #5e4a3a;
  --bark-light: #7a6450;
  --cream: #f5f1ea;
  --sand: #e3dcc9;
  --warm-white: #fafaf7;
  --charcoal: #1f2a2e;
  --text: #2c3338;
  --muted: #6a747a;
  --shadow-sm: 0 2px 8px rgba(20,48,48,0.07);
  --shadow-md: 0 6px 22px rgba(20,48,48,0.12);
  --shadow-lg: 0 14px 44px rgba(20,48,48,0.18);
  --radius: 8px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-mid); }

h1, h2, h3, h4 {
  font-family: 'Source Serif Pro', 'Cambria', Georgia, 'Times New Roman', serif;
  color: var(--green-dark);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================
   HEADER (Sticky)
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--sand);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Source Serif Pro', Cambria, Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-tag {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--green); }

/* Keep the header CTA button white regardless of nav-link color */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.btn {
  display: inline-block;
  padding: 0.78rem 1.55rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 0;
  font-size: 1rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-mid);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--slate);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--slate-light);
  color: #fff;
}

.btn-header { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--green-dark);
}

.menu-toggle svg { width: 28px; height: 28px; }

/* ============================
   HERO
   ============================ */
.hero {
  background:
    linear-gradient(135deg, rgba(20,48,48,0.88) 0%, rgba(30,58,58,0.70) 100%),
    image-set(
      url("heroimage.webp") type("image/webp"),
      url("heroimage.jpg") type("image/jpeg")
    ) center/cover no-repeat;
  color: #fff;
  padding: 3.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--cream);
  font-weight: 600;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green-mid) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/70% no-repeat;
}

/* Form Card */
.form-card {
  background: var(--warm-white);
  color: var(--text);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--green-mid);
}

.form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.form-card .form-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--slate);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,91,0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem;
  font-size: 1.05rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 0.75rem 0 0;
}

.thank-you {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.thank-you .check-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you .check-circle svg {
  width: 38px;
  height: 38px;
  fill: #fff;
}

.thank-you h2 { color: var(--green-dark); margin-bottom: 0.5rem; }
.thank-you p { color: var(--text); }

/* ============================
   SECTIONS
   ============================ */
section { padding: 4rem 0; }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.service-icon svg { width: 32px; height: 32px; }

.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Why Us */
.why { background: var(--warm-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 1.25rem;
}

.why-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.why-item h3 { margin-bottom: 0.5rem; }
.why-item p { color: var(--muted); font-size: 0.97rem; }

/* About */
.about {
  background: var(--green-deep);
  color: var(--cream);
}

.about h2 { color: #fff; }
.about .section-eyebrow { color: var(--green-mid); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  height: 320px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%234eb583'/><stop offset='1' stop-color='%231e3a3a'/></linearGradient></defs><rect width='800' height='600' fill='url(%23s)'/><circle cx='200' cy='180' r='110' fill='%233a9b6e' opacity='0.7'/><circle cx='400' cy='150' r='140' fill='%232e7d5b' opacity='0.85'/><circle cx='620' cy='200' r='120' fill='%231e3a3a' opacity='0.75'/><rect x='190' y='280' width='25' height='200' fill='%235e4a3a'/><rect x='390' y='280' width='30' height='220' fill='%235e4a3a'/><rect x='610' y='290' width='25' height='200' fill='%235e4a3a'/><rect y='480' width='800' height='120' fill='%234a3528'/></svg>") center/cover no-repeat;
  box-shadow: var(--shadow-md);
}

.about p { color: var(--cream); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-stat strong {
  display: block;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 2rem;
  color: #fff;
}

.about-stat span {
  font-size: 0.82rem;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Testimonials */
.testimonials { background: var(--cream); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-mid);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
  font-size: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
}

.testimonial .location {
  font-size: 0.85rem;
  color: var(--muted);
}

.stars { color: #d49e3b; margin-bottom: 0.5rem; font-size: 1.05rem; }

/* Service Area */
.service-area { background: var(--warm-white); }
.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.area-list li {
  background: var(--sand);
  color: var(--green-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.area-list .zip {
  font-family: 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* CTA */
.cta-band {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: var(--cream); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; }

/* ============================
   FOOTER (no logo!)
   ============================ */
.site-footer {
  background: var(--charcoal);
  color: #d4d0c6;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer p, .site-footer a, .site-footer li {
  font-size: 0.92rem;
  color: #c4c0b6;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #2f3a3e;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #908c83;
}

/* ============================
   BLOG PAGES
   ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: var(--cream); max-width: 640px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  height: 170px;
  background: var(--green-mid);
  position: relative;
}

.article-thumb-1 { background: linear-gradient(135deg, #3a9b6e, #143030); }
.article-thumb-2 { background: linear-gradient(135deg, #4eb583, #1e3a3a); }
.article-thumb-3 { background: linear-gradient(135deg, #5e4a3a, #2e7d5b); }
.article-thumb-4 { background: linear-gradient(135deg, #7a6450, #3a9b6e); }
.article-thumb-5 { background: linear-gradient(135deg, #2e7d5b, #4eb583); }
.article-thumb-6 { background: linear-gradient(135deg, #143030, #5e4a3a); }
.article-thumb-7 { background: linear-gradient(135deg, #3a9b6e, #7a6450); }
.article-thumb-8 { background: linear-gradient(135deg, #2e7d5b, #1e3a3a); }
.article-thumb-9 { background: linear-gradient(135deg, #4eb583, #5e4a3a); }
.article-thumb-10 { background: linear-gradient(135deg, #5e4a3a, #3a9b6e); }

.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 20 L30 60 L40 60 L25 80 L75 80 L60 60 L70 60 Z' fill='white' opacity='0.18'/></svg>") center/40% no-repeat;
}

.article-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.article-card h3 a { color: var(--green-dark); }
.article-card h3 a:hover { color: var(--green-mid); }

.article-card p {
  color: var(--muted);
  font-size: 0.93rem;
  flex: 1;
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
}

.read-more::after { content: " \2192"; }

/* Article single page */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.article-body h1 {
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 1rem;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.article-body p, .article-body li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2c3338;
}

.article-body ul, .article-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.article-body li { margin-bottom: 0.4rem; }

.inline-cta {
  background: var(--cream);
  border-left: 4px solid var(--green-mid);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.inline-cta h3 { margin: 0 0 0.5rem; color: var(--green-dark); }
.inline-cta p { margin: 0 0 1rem; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ============================
   BREADCRUMBS
   ============================ */
.breadcrumbs {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 0.85rem 0;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--muted);
  margin-right: 0.4rem;
  font-size: 1rem;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 600;
}

.breadcrumbs a:hover { color: var(--green-mid); }

.breadcrumbs li[aria-current="page"] {
  color: var(--slate);
  font-weight: 600;
  /* Truncate long titles on small screens */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Card title (h2 used for proper heading hierarchy, sized like an h3) */
.article-card-title {
  font-size: 1.1rem;
  font-family: 'Source Serif Pro', Cambria, Georgia, serif;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-card-title a { color: var(--green-dark); }
.article-card-title a:hover { color: var(--green-mid); }

/* ============================
   RELATED ARTICLES
   ============================ */
.related-section {
  background: var(--cream);
  padding: 3rem 0;
  border-top: 1px solid var(--sand);
}

.related-heading {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-bullets { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 3rem; }
}
