/*
Theme Name: Tree Marketing 101
Theme URI: https://www.treemarketing101.com/
Author: Tree Marketing 101
Description: An organic-modern, high-converting WordPress theme for Tree Marketing 101 featuring a Forest & Sage aesthetic, interactive ROI growth estimator, case study metrics, filterable Marketing 101 insights, and full Customizer support.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tree-marketing-101
*/

:root {
  --forest: #1B4332;
  --forest-deep: #0F291E;
  --forest-mid: #2D6A4F;
  --sage: #52B788;
  --sage-light: #95D5B2;
  --mint-bg: #EBF5EF;
  --cream: #FAF9F6;
  --warm-sand: #F3EFEA;
  --surface: #FFFFFF;
  --ink: #1C2520;
  --muted: #526058;
  --line: #E2E7E3;
  --gold: #D4A373;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(27, 67, 50, 0.06);
  --shadow: 0 20px 50px rgba(27, 67, 50, 0.10);
  --font-head: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand strong {
  font-family: var(--font-head);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}

/* Top Utility Bar */
.topbar {
  background: var(--forest-deep);
  color: #DCE8E0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar a { transition: color 0.2s; }
.topbar a:hover { color: var(--sage-light); }
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; font-weight: 500; }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1.05;
  color: var(--forest);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--sage-light);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(27, 67, 50, 0.22);
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.brand strong span { color: var(--sage); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.main-nav a { position: relative; padding: 6px 0; transition: color 0.2s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--forest-mid); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width 0.22s ease;
}
.main-nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 14px;
  color: var(--forest);
  font-weight: 600;
  cursor: pointer;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--forest);
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.16);
}
.button:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  transform: translateY(-2px);
  color: #FFFFFF;
}
.button-sage {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--forest-deep);
  font-weight: 700;
}
.button-sage:hover {
  background: var(--sage-light);
  border-color: var(--sage-light);
  color: var(--forest-deep);
}
.button-outline {
  background: transparent;
  color: var(--forest);
  border-color: #C7D3CC;
  box-shadow: none;
}
.button-outline:hover {
  background: var(--forest);
  color: #FFFFFF;
  border-color: var(--forest);
}

/* Eyebrow Badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mint-bg);
  border: 1px solid rgba(82, 183, 136, 0.3);
  color: var(--forest);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background:
    radial-gradient(circle at 88% 14%, rgba(82, 183, 136, 0.14), transparent 36%),
    radial-gradient(circle at 12% 85%, rgba(212, 163, 115, 0.10), transparent 32%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 52px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(40px, 4.9vw, 62px);
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 20px 0 20px;
  color: var(--forest-deep);
}
.hero h1 span {
  color: var(--forest-mid);
  position: relative;
  display: inline-block;
}
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: rgba(82, 183, 136, 0.28);
  z-index: -1;
  border-radius: 6px;
}
.hero-copy {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}

/* Hero Instant Audit Bar */
.audit-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  margin-bottom: 24px;
}
.audit-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.audit-bar button {
  padding: 12px 20px;
  white-space: nowrap;
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta span::before {
  content: "✓";
  color: var(--sage);
  font-weight: 800;
  margin-right: 6px;
}

.hero-visual { position: relative; }
.hero-image {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 8px solid var(--surface);
}
.visual-fallback {
  aspect-ratio: 1.16;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--mint-bg), #CDE6D6);
  display: grid;
  place-items: center;
  color: var(--forest);
  font-size: 96px;
  box-shadow: var(--shadow);
}
.floating-note {
  position: absolute;
  left: -24px;
  bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.floating-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint-bg);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.floating-note b {
  display: block;
  font-family: var(--font-head);
  color: var(--forest);
  font-size: 17px;
  line-height: 1.2;
}
.floating-note small {
  color: var(--muted);
  font-size: 12px;
}

/* Channel Strip */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.6vw, 48px);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  flex-wrap: wrap;
}
.trust-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.88;
}

/* Sections */
.section { padding: 92px 0; }
.section-sand { background: var(--warm-sand); }
.section-surface { background: var(--surface); }
.section-forest { background: var(--forest-deep); color: #F2F7F4; }

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--forest-deep);
}
.section-forest .section-heading h2 { color: #FFFFFF; }
.section-heading p { color: var(--muted); margin: 0; font-size: 16px; }
.section-forest .section-heading p { color: #B8C9BF; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--mint-bg);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--forest-deep);
}
.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}
.text-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--forest-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { color: var(--forest); }

/* Case Study Metrics Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}
.metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.metric-value {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--sage-light);
  line-height: 1.1;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 14px;
  color: #D2E0D8;
  font-weight: 500;
}

/* Interactive ROI Growth Simulator */
.roi-box {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.roi-controls h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--forest-deep);
}
.roi-controls p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 24px;
}
.slider-row { margin-bottom: 24px; }
.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--forest);
}
.roi-range {
  width: 100%;
  accent-color: var(--forest);
  height: 6px;
  cursor: pointer;
}
.channel-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pill-btn.active {
  background: var(--forest);
  color: #FFFFFF;
  border-color: var(--forest);
}
.roi-output {
  background: var(--mint-bg);
  border: 1px solid rgba(82, 183, 136, 0.35);
  border-radius: var(--radius);
  padding: 28px;
}
.roi-output-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--forest-mid);
  margin-bottom: 6px;
}
.roi-big-num {
  font-family: var(--font-head);
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 800;
  color: var(--forest-deep);
  line-height: 1.1;
  margin-bottom: 18px;
}
.roi-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 67, 50, 0.12);
  margin-bottom: 20px;
}
.roi-subgrid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.roi-subgrid strong {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--forest);
}

/* About Split */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.split h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.13;
  letter-spacing: -1.4px;
  margin: 16px 0;
  color: var(--forest-deep);
}
.split p { color: var(--muted); }
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: grid;
  gap: 13px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--forest);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.about-card-visual {
  background: linear-gradient(145deg, var(--forest), var(--forest-mid));
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-card-visual::after {
  content: "101";
  position: absolute;
  right: -12px;
  bottom: -28px;
  font-family: var(--font-head);
  font-size: 140px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}
.about-pillars {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.pillar-item {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 16px 20px;
}
.pillar-item strong {
  display: block;
  color: var(--sage-light);
  font-size: 15px;
  margin-bottom: 4px;
}
.pillar-item span {
  font-size: 13px;
  color: #DCE8E0;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.process-card:hover { transform: translateY(-4px); }
.process-number {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-bg);
  font-size: 11px;
  color: var(--forest);
  font-weight: 800;
  letter-spacing: 0.8px;
}
.process-card h3 { margin: 14px 0 8px; font-size: 18px; color: var(--forest-deep); }
.process-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Marketing 101 Insights / Blog Grid */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.blog-card.is-hidden { display: none; }
.blog-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint-bg);
  color: var(--forest);
  margin-bottom: 14px;
}
.blog-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--forest-deep);
}
.blog-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* CTA Banner */
.cta {
  padding: 76px 0;
  background: linear-gradient(125deg, var(--forest-deep), var(--forest));
  color: #FFFFFF;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.cta p { color: #CBE0D4; margin: 0; font-size: 16px; }

/* Footer */
.site-footer {
  background: #0A1C14;
  color: #D2E0D8;
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
}
.footer-brand { color: #FFFFFF; }
.footer-copy { font-size: 14px; color: #9BB0A4; max-width: 300px; margin-top: 14px; }
.footer-col h4 { font-size: 14px; color: #FFFFFF; margin: 0 0 16px; letter-spacing: 0.4px; }
.footer-col a, .footer-col p {
  display: block;
  font-size: 13.5px;
  color: #9BB0A4;
  margin: 9px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sage-light); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 44px;
  padding-top: 20px;
  color: #7D9487;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

/* WordPress Default Content & Single/Page Views */
.page-content { padding: 72px 0; min-height: 50vh; }
.page-content h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.12; color: var(--forest-deep); }
.entry-content { max-width: 820px; }
.entry-content p { color: var(--muted); }
.entry-content a { color: var(--forest-mid); text-decoration: underline; }

/* Consultation Modal */
.tm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 41, 30, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tm-modal.is-open { display: flex; }
.tm-modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.tm-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-weight: 700;
}
.tm-field { margin-bottom: 14px; }
.tm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--forest-deep);
}
.tm-field input, .tm-field select, .tm-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 14px;
}
.tm-toast {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mint-bg);
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid, .split, .roi-box { grid-template-columns: 1fr; gap: 34px; }
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1200px); }
  .topbar-right { display: none; }
  .topbar-inner { justify-content: center; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 20px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .main-nav.is-open { display: flex; }
  .nav-wrap > .button { display: none; }
  .hero { padding: 54px 0 64px; }
  .floating-note { left: 12px; bottom: 12px; padding: 12px 14px; }
  .section { padding: 66px 0; }
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .roi-box { padding: 26px; }
}
@media (max-width: 460px) {
  .audit-bar { flex-direction: column; border-radius: 20px; padding: 10px; }
  .audit-bar input, .audit-bar button { width: 100%; }
  .metrics-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
}
