/* Prevent header from shifting when different pages have/lose the scrollbar */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

/* Base layout & typography */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #331f1f;
  background: #f8f5f5;
  line-height: 1.6;
}

/* Links */
a {
  color: #2c725d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb; /* subtle divider */
  padding: 5px 5px 5px 5px;
}

.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2c725d, #4ca3a2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
}

.brand-tagline {
  font-size: 12px;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px; /* more room between items */
  font-size: 16px;
}

.main-nav a {
  color: #374151;
  position: relative;
  padding: 8px 2px;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  letter-spacing: 0.02em; /* tiny bit more open */
}

/* Hover + active underline */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #14532d; /* brand green */
  transition: width 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

/* Active state color tweak */
.main-nav a.is-active {
  color: #14532d;
}

/* Hero */
.hero {
  background: #ebf1ec;
  padding: 40px 20px 40px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-inner {
  max-width: 1040px;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #2c725d;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.2;
  color: #163a30;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: #374151;
  margin-bottom: 22px;
}

.hero-points {
  list-style: none;
  padding-left: 0;
  margin: 0 0 26px;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 16px;
}

.hero-points li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: #2c725d;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-how-it-works {
  background: #ebf1ec !important;
}

/* Primary button */
.btn-primary {
  display: inline-block;
  background: #1f4e45; /* dark green */
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
}

.btn-primary:hover {
  background: #163a30;
}

/* Secondary button */
.btn-secondary {
  display: inline-block;
  color: #1f4e45;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
}

.btn-secondary:hover {
  text-decoration: underline;
}

.hero-note {
  font-size: 16px;
  color: #4b5563;
  font-style: italic;
  padding-top: 16px;
  margin-top: 4px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 600;
}
.avatar {
  width: 64px;
  height: 64px;
  background: #2c725d;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
}

.highlight-strip {
  background: #ebf1ec;
  border-left: 4px solid #ebf1ec;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 18px 0;
  font-weight: 500;
}
.soft-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin: 24px 0;
}

/* Sections */
.section {
  padding: 20px 20px;
  background: transparent; /* default: let body bg show through */
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section h2 {
  font-size: 32px;
  margin: 0 0 10px;
  color: #163a30;
}

.section-intro {
  font-size: 18px;
  color: #4b5563;
}

/* Cards & grids */
.card-grid {
  display: grid;
  gap: 20px;
}

/* Default (mobile): 1 column */
.card-grid-3 {
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 0 24px;
}

/* Tablet: 2 columns */
@media (min-width: 720px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Optional: if you actually use card-grid-2 anywhere */
.card-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #ffffff;
  width: 100%;
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(22, 58, 48, 0.08);
  border-top: 4px solid #ebf1eb; /* subtle green accent */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-icon {
  margin-bottom: 0px;
}

.card-icon svg {
  width: 45px;
  height: 45px;
  display: block;
}

.card h3 {
  margin: 0 0 8px 8px;
  font-size: 24px;
  color: #111827;
}

.card p {
  margin: 2px 0 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.5;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 14px;
}

.card ul li {
  position: relative;
  padding-left: 24px; /* space for the arrow */
  margin-bottom: 8px;
  font-size: 16px;
}

.card ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: #2c725d; /* your brand green */
  top: 0.4em;
  font-weight: 900; /* same styling as hero bullets */
  font-size: 14px;
  line-height: 1;
}

.bullet-list {
  padding-top: 10px;
  color: #4b5563;
}

.step-content .micro {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #14532d;
  margin-top: 12px;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  display: block; /* makes spacing consistent */
}

/* How it works – vertical steps timeline (refined) */

/* Each step row */
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0px 0 26px;
}

/* Marker + number */
.step-marker {
  position: relative;
  z-index: 1;
  flex: 0 0 52px; /* wider to match the mock */
  display: flex;
  justify-content: center;
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: #ebf1eb;
  border: 2px solid #163a30;
  color: #163a30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
}

/* Content area */
.step-content {
  flex: 1;
}

.step-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #163a30; /* same dark green as elsewhere */
}

.step-text {
  margin: 0 0 4px;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
  padding-right: 20px;
}

.step-meta {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  padding-right: 25px;
}
/* Micro-headings inside cards */
.card p.micro {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #2c725d;
  margin-top: 16px;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

/* Insights index page
   ----------------------------------------------- */

.insights-hero {
  background: #eef1f0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.insights-title {
  font-size: 32px;
  margin: 0 0 6px;
  color: #163a30;
}

.insights-intro {
  max-width: 640px;
}

#insights-show-more.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: #2c725d;
  color: #ffffff; /* your main green */
  border: 2px solid #164b3c;
  border-radius: 9999px; /* pill shape */
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#insights-show-more.btn-secondary:hover {
  background: #164b3c;
  color: #ffffff;
}

.insights-show-more-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

/* Featured Post
   ----------------------------------------------- */

.insights-featured {
  background: #f3f4f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.insights-featured .section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.insight-card--featured {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  padding: 18px 20px 20px;
}

.insights-featured .insight-card--featured {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  padding: 18px 20px 20px;
  background: #fdfefc; /* very slight warm tint */
  border-left: 4px solid #166534; /* green accent ribbon */

  .insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  }
}

/* Insights list (recent posts)
   ----------------------------------------------- */

/* 2 columns on medium screens */
@media (min-width: 720px) {
  .insights-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns on desktop */
@media (min-width: 1100px) {
  .insights-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Individual insight cards */

.insight-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.insight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #166534;
  margin: 0 0 6px;
  font-weight: 600;
}

.insight-card-title {
  margin: 0 0 6px;
  font-size: 22px;
  color: #111827;
}

.insight-card-title a {
  color: inherit;
  text-decoration: none;
}

.insight-card-title a:hover {
  text-decoration: underline;
}

.insight-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

.insight-excerpt {
  margin: 0 0 12px;
  font-size: 16px;
  color: #4b5563;
}

.insight-read-more {
  font-weight: 600;
  font-size: 14px;
}

/* Article layout (single post)
   ----------------------------------------------- */

.article-hero {
  background: #eef1f0;
}

.article-layout {
  max-width: 760px;
}

.article-header h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: #163a30;
}

.article-meta {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
}

.article-body {
  font-size: 16px;
  color: #1f2933;
}

.article-body h2 {
  font-size: 24px;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #163a30;
}

.article-body h3 {
  font-size: 20px;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #163a30;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body ul {
  margin: 0 0 14px 20px;
}

.article-body li {
  margin-bottom: 6px;
}

/* Insight article enhancements (Serious Eats-style structure) */
.insight-block {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 18px 18px;

}

.insight-block-title {
  margin: 0 0 10px;
  font-size: 20px;
  color: #163a30;
}

.insight-summary {
  background: #eef2f1;
  border-color: rgba(22, 58, 48, 0.18);
}

.insight-checklist-list {
  margin: 0;
  padding-left: 18px;
}

.insight-section {
  margin: 22px 0;
}

.insight-section-header {
  margin-bottom: 10px;
}

.insight-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 58, 48, 0.75);
}

.insight-h2 {
  margin: 0;
}

.insight-h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #163a30;
}

.insight-callout {
  margin: 14px 0 0;
  padding: 14px 14px;
  border-radius: 14px;
  background: #f7f7f7;
  border-left: 4px solid #163a30;
}

.insight-callout-muted {
  background: #fafafa;
  border-left-color: rgba(22, 58, 48, 0.45);
}

.insight-mini-box {
  margin: 14px 0 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

/* Mobile spacing tune */
@media (max-width: 640px) {
  .insight-block {
    padding: 16px 16px;
    border-radius: 14px;
  }
  .insight-callout,
  .insight-mini-box {
    border-radius: 12px;
  }

  .insight-checklist {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .insight-checklist .insight-block-title {
    font-size: 20px;
  }
  .contact-actions {
    flex-direction: row;
  }

  .contact-cta {
    flex: 1;
  }
}

/* Article CTA */

.article-cta {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fdfefc;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.article-cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #163a30;
}

.article-cta p {
  margin: 0 0 12px;
  font-size: 16px;
}

/* Serious-Eats style checklist box */
.insight-checklist {
  position: relative;
  background: #fff;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-radius: 16px;
  padding: 22px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Accent strip (right + bottom) */
.insight-checklist::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background: rgba(22, 58, 48, 0.22); /* your brand green tint */
}

.insight-checklist::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: rgba(22, 58, 48, 0.22);
}

/* The title: mimic “WHY IT WORKS” */
.insight-checklist .insight-block-title {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 22px; /* tune to taste */
  color: #163a30;
}

/* List styling: more “editorial” spacing */
.insight-checklist-list {
  margin: 0;
  padding-left: 18px;
}

.insight-checklist-list li {
  margin: 10px 0;
  line-height: 1.55;
}

/* Optional: make the bullet slightly stronger */
.insight-checklist-list li::marker {
  color: rgba(22, 58, 48, 0.65);
}

/* Jump-to-bottom-line button */
/* Centered jump link (editorial style) */
.insight-jump-centered {
  margin: 10px 0 26px;
  text-align: center;
}

.insight-jump-centered .insight-jump-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #163a30;
  text-decoration: none;
  text-align: center;
}

.insight-jump-centered .insight-jump-link:hover {
  text-decoration: underline;
}

.insight-nav-stack {
  margin: 10px 0 0px;
}

/* Centered jump link */
.insight-jump-centered {
  margin: 10px 0 26px;
  text-align: center;
}
.insight-jump-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #163a30;
  text-decoration: none;
}
.insight-jump-link:hover {
  text-decoration: underline;
}

.insight-jump-btn:hover {
  background: #163a30;
  color: #ffffff;
  transform: translateY(-1px);
}

.insight-nav .back-link {
  margin: 0; /* IMPORTANT: override the standalone back-link margin */
  font-size: 0.95rem; /* match the row size */
  line-height: 1.2;
}

.insight-nav .insight-jump-link {
  font-weight: 600; /* consistent with other link weight */
  line-height: 1.2;
}

/* Optional: make the separator feel lighter and less "in your face" */
.insight-nav-separator {
  color: rgba(22, 58, 48, 0.35);
}

.insight-nav a {
  color: #163a30;
  font-weight: 600;
  text-decoration: none;
}

.insight-nav a:hover {
  text-decoration: underline;
}

.insight-nav-separator {
  color: rgba(22, 58, 48, 0.5);
}

/* Browse by Category
   ----------------------------------------------- */

.insights-categories {
  margin-top: 2.5rem;
}

.insights-category-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 2 columns on small screens */
@media (min-width: 600px) {
  .insights-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sidebar version of Browse by Category: subtle vertical pills */
.sidebar-filter .insights-category-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
  max-width: none;
}

.sidebar-filter .insights-category-card {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: #f9fafb;
  font-size: 13px;
  text-align: left;
}

/* Hide the description line to keep it compact */
.sidebar-filter .insights-category-card p {
  display: none;
}

.sidebar-filter .insights-category-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

/* Active state: keep it obvious but small */
.sidebar-filter .insights-category-card.is-active {
  background: #2c725d;
  border-color: #111827;
  color: #ffffff;
}

.sidebar-filter .insights-category-card.is-active h3 {
  color: #ffffff;
}

.insights-category-card {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid #e3e3e3;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.1s ease;
}

.insights-category-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.insights-category-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}

/* Hover / focus state */
.insights-category-card:hover,
.insights-category-card:focus-visible {
  background: #f5f5f5;
  border-color: #d4d4d4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Active (selected) state */
.insights-category-card.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.insights-category-card.is-active h3,
.insights-category-card.is-active p {
  color: #ffffff;
}

.insights-category-card .category-count {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Pricing */

.section-pricing {
  background: linear-gradient(180deg, #f7faf9 0%, #f9fbfa 100%);
}
.card-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06); /* soft grey line */
  margin: 16px 0 20px;
}

.pricing-card .price {
  font-size: 20px;
  font-weight: 800;
  color: #163a30;
  margin: 4px 0px;
  margin-bottom: px;
}

.price {
  display: inline-block;
  background: #eef1f0;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #14532d;
  margin-bottom: 6px;
}

.pricing-card .price-note {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.pricing-footnote {
  font-size: 13px;
  color: #6b7280;
  margin-top: 18px;
  margin-bottom: 8px;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
}

/* Projects */
.project-card .project-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e5f3ef;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* About split layout */
.section-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.section-split-aside h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

/* Contact page */

.section-contact .section-intro {
  margin-bottom: 24px;
}

/* Main contact card */

.contact-card {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border-top: 3px solid #2c725d; /* green accent */
}

.contact-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.contact-card-body {
  margin: 0 0 14px;
  font-size: 16px;
  color: #4b5563;
}

/* Email / phone actions */

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px; /* adds breathing room */
  margin-bottom: 14px;
}

.contact-cta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px; /* was 999px */
  background: #f3f6f5; /* lighter, closer to card */
  border: 1px solid rgba(148, 163, 184, 0.7);
  text-decoration: none;
  color: #111827;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.1s ease;
}

.contact-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.contact-cta-value {
  font-size: 15px;
  font-weight: 600;
  color: #14532d;
  text-decoration: none; /* kill underline */
}

.contact-cta-email {
  background: #e7edea;
  border-color: #2c725d;
}

.contact-cta-email:hover,
.contact-cta-email:focus-visible {
  background: #d6ece7;
}

.contact-cta-phone:hover,
.contact-cta-phone:focus-visible {
  background: #d6ece7;
}

/* remove underline on the <a> itself */
.contact-cta:hover .contact-cta-value,
.contact-cta:focus-visible .contact-cta-value {
  text-decoration: none;
}

.contact-cta:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

/* Context note under the CTAs */

.contact-note {
  margin-top: 6px;
  font-size: 16px;
  color: #4b5563;
}

/* Reassurance block */

.contact-reassurance {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef1f4;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 16px;
  color: #4b5563;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #2d6a4f; /* your green */
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Larger screens: lay email + phone side-by-side */

/* Desktop CTA size adjustments */
@media (min-width: 768px) {
  .hero-ctas-2 {
    max-width: 240px; /* Prevents ultra-wide button */
    font-size: 1rem; /* Optional: reduce text size */
    align-self: flex-start; /* Keeps it left aligned instead of full-width */
  }
}

/* Overall footer container */
.site-footer {
  background: #ffffff;
  margin-top: 1rem;
  border-top: 1px solid #e3dfdf;
  font-size: 0.95rem;
}

/* Grid: brand column a bit wider, others equal */
.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr));
}

/* Stack to single column on small screens */
@media (max-width: 800px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #163a30;
}

.site-footer p {
  margin: 0 0 0.4rem;
  line-height: 1.5;
}

.site-footer a {
  color: #163a30;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-nav a,
.footer-contact a {
  display: block; /* stack links vertically */
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-services p,
.footer-contact p {
  color: #3b312f;
  opacity: 0.9;
}

/* Subscribe card
   ----------------------------------------------- */

.insights-subscribe {
  background: #f9fafb;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.subscribe-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscribe-text h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #163a30;
}

.subscribe-text p {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 420px;
}

.subscribe-label {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.subscribe-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscribe-input-row input[type="email"] {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.subscribe-input-row input[type="email"]:focus {
  outline: 2px solid #0f766e;
  outline-offset: 1px;
  border-color: #0f766e;
}

.subscribe-button {
  width: 100%;
  justify-content: center;
}

.subscribe-note {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Subscribe UX states
   ----------------------------------------------- */

.subscribe-form.subscribe-has-error input[type="email"] {
  border-color: #dc2626;
  outline: 2px solid rgba(220, 38, 38, 0.2);
  outline-offset: 1px;
}

.subscribe-form.subscribe-has-error .subscribe-note {
  color: #b91c1c;
}

/* subtle success highlight on the card */
.subscribe-form.subscribe-success ~ .subscribe-note,
.subscribe-form.subscribe-success .subscribe-note {
  color: #166534;
}

.subscribe-form.subscribe-success input[type="email"] {
  border-color: #16a34a;
}

/* disabled button look */
.subscribe-button:disabled {
  opacity: 0.8;
  cursor: default;
}

/* Checkmark for subscribe success
   ----------------------------------------------- */

.subscribe-button.subscribe-success-check {
  position: relative;
  padding-left: 1.8rem; /* space for the checkmark */
}

/* The checkmark */
.subscribe-button.subscribe-success-check::before {
  content: "✓";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #166534; /* your green */
  opacity: 0;
  animation: subscribeCheckFade 0.3s ease forwards;
}

/* Fade-in animation */
@keyframes subscribeCheckFade {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Popular posts styling
   ----------------------------------------------- */

/* Remove big gaps – we’ll control spacing per item */
.sidebar-popular .sidebar-list {
  gap: 0;
}

/* Each popular post as a compact row */
.sidebar-popular .sidebar-post {
  position: relative;
  padding: 6px 8px 6px 18px; /* left space for bullet */
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

/* Small spacing between rows */
.sidebar-popular .sidebar-post + .sidebar-post {
  margin-top: 2px;
}

/* The link itself */
.sidebar-popular .sidebar-post a {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #111827;
  text-decoration: none;
}

/* Subtle bullet/accent on the left */
.sidebar-popular .sidebar-post::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #9ca3af; /* neutral grey */
}

/* Hover state – light background + darker bullet */
.sidebar-popular .sidebar-post:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.sidebar-popular .sidebar-post:hover::before {
  background: #166534; /* your green */
}

/* Optional: active/focus state for keyboard users */
.sidebar-popular .sidebar-post a:focus-visible {
  outline: 2px solid #166534;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Main insights layout: content + sidebar
   ----------------------------------------------- */

.insights-main-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.insights-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.insights-recent {
  margin-top: 0.5rem;
}

.insights-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Insights — tighten card spacing */
.insights-recent .insights-list {
  row-gap: 16px; /* was 24px */
}

.insights-recent .insight-card {
  padding: 14px 16px 15px; /* a bit less padding */
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.insights-recent .insight-label {
  margin-bottom: 4px;
}

.insights-recent .insight-card-title {
  margin-bottom: 4px;
  font-size: 20px; /* slightly smaller on list cards */
}

.insights-recent .insight-meta {
  margin-bottom: 6px;
}

.insights-recent .insight-excerpt {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.45;
}

/* Desktop: two columns like the wireframe */
@media (min-width: 960px) {
  .insights-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) minmax(260px, 1fr);
    align-items: flex-start;
    column-gap: 2.5rem;
  }
}

/* Recent posts list: one column stack (wireframe-style) */

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sidebar cards */

.sidebar-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  padding: 14px 16px 16px;
}

.sidebar-title {
  margin: 0 0 6px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b5563;
}

/* Sidebar lists */

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.sidebar-list li {
  color: #111827;
}

.sidebar-list a {
  text-decoration: none;
  color: #111827;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

/* Sidebar — soften visual weight */
.insights-sidebar {
  row-gap: 0.9rem;
}

.insights-sidebar .sidebar-card {
  border-radius: 12px;
  border: 0px solid rgba(148, 163, 184, 0.35); /* lighter border */
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03); /* softer shadow */
  padding: 12px 14px 14px; /* slightly tighter */
}

.insights-sidebar .sidebar-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 4px;
}
/* Sidebar-specific overrides for the Subscribe card
   ----------------------------------------------- */

@media (min-width: 900px) {
  .insights-sidebar .subscribe-card {
    /* Undo the horizontal layout; keep it stacked in the narrow sidebar */
    flex-direction: column;
    align-items: stretch;
  }

  .insights-sidebar .subscribe-text {
    max-width: none;
  }

  .insights-sidebar .subscribe-form {
    align-items: stretch;
    width: 100%;
    max-width: none;
  }

  .insights-sidebar .subscribe-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-sidebar .subscribe-button {
    width: 100%;
  }
  /* 3 columns on desktop */
  .insights-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Desktop layout: text left, form right */
  .subscribe-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .subscribe-text {
    max-width: 420px;
  }

  .subscribe-form {
    align-items: flex-end;
  }

  .subscribe-input-row {
    flex-direction: row;
    align-items: center;
  }

  .subscribe-input-row input[type="email"] {
    flex: 1;
  }

  .subscribe-button {
    width: auto;
  }
  /* Desktop: featured uses a 2-column layout: text | CTA */
  .insight-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 3.5fr) auto;
    column-gap: 2.5rem;
    align-items: center;
  }

  .insight-card--featured .insight-label,
  .insight-card--featured .insight-card-title,
  .insight-card--featured .insight-meta,
  .insight-card--featured .insight-excerpt {
    grid-column: 1;
  }

  .insight-card--featured .insight-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
  }

  .insight-card--featured .insight-meta {
    margin-bottom: 0.4rem;
  }

  .insight-card--featured .insight-excerpt {
    margin-bottom: 0.25rem;
    max-width: 40rem; /* keeps line length comfortable */
  }

  .insight-card--featured .insight-read-more {
    grid-column: 2;
    align-self: center;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .insights-featured .insight-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 3.8fr) auto;
    column-gap: 2.5rem;
    align-items: center;
  }

  .insights-featured .insight-card--featured .insight-read-more {
    white-space: nowrap;
    justify-self: end;
  }
  .section-split {
    grid-template-columns: 1fr;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Floating bottom nav (mobile) */

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(241, 245, 243, 0.96); /* soft light pill */
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 50;
  max-width: calc(100% - 24px);
  transition: transform 0.28s ease, opacity 0.25s ease;
  align-items: center;
}

/* Each item inside the pill */
.bottom-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}

/* Hidden state (scrolling down) */
.bottom-nav.nav-hidden {
  transform: translate(-50%, 130%); /* slide down & out */
  opacity: 0;
  pointer-events: none; /* prevent tapping while hidden */
}

/* Active / current page */
.bottom-nav-item.is-active {
  background: #14532d; /* your deep green */
  color: #ffffff;
}

/* Slight hover / tap feedback (desktop + when user long-presses) */
.bottom-nav-item:hover {
  background: rgba(20, 83, 45, 0.08);
}

/* Hide bottom nav on larger screens */
@media (min-width: 761px) {
  .bottom-nav {
    display: none;
  }
  .hero {
    padding: 40px 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section h2 {
    font-size: 32px;
    margin: 0 0 10px;
    color: #163a30;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
  }
}

/* Make the bottom nav fit small mobile screens (320–360px) */
@media (max-width: 360px) {
  .bottom-nav {
    max-width: calc(100% - 16px); /* tighter sides */
    padding: 4px 6px;
  }

  .bottom-nav-item {
    padding: 6px 10px;
    font-size: 12.5px;
  }
}

/* Header scroll effect */
.site-header {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px); /* optional but very modern */
}

/* Hide top desktop nav on mobile */
@media (max-width: 760px) {
  .site-header .main-nav {
    display: none !important;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    font-size: 13px;
    gap: 8px 14px;
  }
}

/* Slightly compress bottom nav when screen is narrow */
@media (max-width: 450px) {
  .bottom-nav {
    padding: 4px 5px;
    gap: 2px;
  }

  .bottom-nav-item {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* Base layout for new bottom nav structure */

.bottom-nav-links {
  display: flex;
  gap: 4px;
}

.bottom-nav-toggle {
  display: none; /* hidden by default (shown only on very small screens) */
  border: none;
  background: #111827;
  color: #f9fafb;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #111827; /* dark pill */
  color: #f9fafb;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60; /* above bottom nav */
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal on scroll (initial state) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Once revealed */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: hide on very small screens if it feels crowded */
@media (max-width: 480px) {
  .back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

.insight-card--featured .insight-excerpt {
  max-width: none !important;
}

/* --- STANDARDIZE PAGE BACKGROUND --- */
body {
  background: #f9fafb !important;
}

/* --- REMOVE STRIPING SECTIONS --- */
.insights-featured,
.insights-subscribe,
.section-alt,
.insights-list-section {
  background: transparent !important;
}

/* --- CARD STANDARDIZATION --- */
.insight-card,
.insight-card--featured,
.sidebar-card,
.card,
.featured-article-card,
.subscribe-card {
  background: #ffffff !important;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
