/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #F4F1EA;
  color: #1E293B;
  position: relative;
  overflow-x: hidden;
}

/* ==================== PAPER TEXTURE BACKGROUND ==================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ==================== WATERCOLOR CORNER WASHES ==================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at -10% -10%, rgba(112,130,56,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 500px 350px at 110% -5%, rgba(217,119,6,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 400px 300px at 110% 110%, rgba(112,130,56,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 450px 350px at -5% 105%, rgba(217,119,6,0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== LAYOUT HELPERS ==================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ==================== NAVIGATION ==================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30,41,59,0.10);
  padding: 1.1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.logo-icon {
  width: 52px;
  height: 36px;
}

.logo-text {
  line-height: 1.1;
}

.logo-text .mindful {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: #1E293B;
  text-transform: uppercase;
}

.logo-text .agile {
  display: block;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #1E293B;
  text-transform: uppercase;
}

.logo-text .agile span { color: #D97706; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1E293B;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #D97706; }

/* Active nav link (set via JS per page) */
.nav-links a.active { color: #D97706; }

.nav-links .nav-cta a {
  background: #D97706;
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.nav-links .nav-cta a:hover { background: #b45309; transform: translateY(-1px); }

.nav-links .nav-cta-secondary a {
  border: 1.5px solid rgba(30,41,59,0.28);
  padding: 0.5rem 1rem;
  border-radius: 3px;
}

.nav-links .nav-cta-secondary a:hover {
  border-color: #D97706;
  color: #D97706;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(30,41,59,0.22);
  border-radius: 4px;
  background: rgba(255, 252, 245, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #1E293B;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ==================== HERO (centered) ==================== */
.hero-center {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-center h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1E293B;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}

/* ==================== MINDFUL BOARD SECTION ==================== */
.board-feature {
  padding: 0 0 4.5rem;
  position: relative;
  z-index: 1;
}

.mindful-board {
  background: rgba(255, 252, 245, 0.92);
  border: 7px solid #C8A87A;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(200,168,122,0.3),
    5px 7px 0 rgba(30,41,59,0.10),
    0 2px 30px rgba(30,41,59,0.07);
  overflow: hidden;
}

.mb-header-row {
  display: grid;
  grid-template-columns: 1fr 1.5px 1fr 1.5px 1fr;
  border-bottom: 1.5px solid rgba(30,41,59,0.11);
  background: rgba(244,241,234,0.6);
}

.mb-col-header {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(0.58rem, 1.4vw, 0.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1E293B;
  text-align: center;
  padding: 0.95rem 0.5rem;
}

.mb-divider-v {
  background: rgba(30,41,59,0.11);
}

.mb-scene {
  display: block;
  width: 100%;
  height: auto;
}

/* ==================== HERO (legacy — kept for hero-left if used elsewhere) ==================== */
.hero {
  padding: 6rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {}

.hero-left h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1E293B;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}

/* Subtle hand-drawn underline effect */
.hero-left h1 em {
  font-style: normal;
  position: relative;
}

.hero-left h1 em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8'%3E%3Cpath d='M0 5 Q50 2 100 5 Q150 8 200 4' stroke='%23D97706' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
}

.hero-mission {
  font-size: 1rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 1.4rem;
  font-weight: 400;
  font-style: italic;
}

.hero-subtext {
  font-size: 0.95rem;
  color: #6B7280;
  margin-bottom: 2.4rem;
  font-style: italic;
}

.btn-amber {
  display: inline-block;
  background: #708238;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: 2.5px solid #708238;
  border-radius: 4px;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 3px 4px 0 rgba(112,130,56,0.28);
}

.btn-amber:hover {
  background: #5a6b2c;
  border-color: #5a6b2c;
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 rgba(112,130,56,0.25);
}

/* ==================== KANBAN BOARD ==================== */
.kanban-wrap {
  position: relative;
}

.quote-stone {
  position: absolute;
  top: -2.8rem;
  right: -0.5rem;
  background: #e8e0d0;
  border: 2px solid rgba(30,41,59,0.20);
  border-radius: 50% 45% 55% 48% / 48% 52% 46% 54%;
  padding: 0.85rem 1.3rem;
  max-width: 200px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.5;
  text-align: center;
  box-shadow: 2px 3px 8px rgba(30,41,59,0.10);
  z-index: 2;
}

.kanban-board {
  background: rgba(244, 241, 234, 0.75);
  border: 2px solid rgba(30,41,59,0.22);
  border-radius: 2px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 4px 5px 0 rgba(30,41,59,0.12), 0 1px 18px rgba(30,41,59,0.06);
}

.kanban-board::before,
.kanban-board::after {
  content: '';
  position: absolute;
  border: 1.5px solid rgba(30,41,59,0.15);
  border-radius: 2px;
  pointer-events: none;
}
.kanban-board::before { inset: 3px; }
.kanban-board::after {
  inset: 6px;
  border-style: dashed;
  border-width: 1px;
  opacity: 0.4;
}

.kanban-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.kanban-col-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1E293B;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid rgba(30,41,59,0.18);
  margin-bottom: 0.9rem;
}

.kanban-card {
  background: #FAF7F0;
  border: 1.5px solid rgba(30,41,59,0.16);
  border-radius: 2px;
  padding: 0.75rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #1E293B;
  margin-bottom: 0.65rem;
  position: relative;
  box-shadow: 2px 3px 0 rgba(30,41,59,0.08);
  transform: rotate(-0.3deg);
}

.kanban-card:nth-child(2) { transform: rotate(0.4deg); }

.kanban-card.sage {
  background: rgba(112,130,56,0.10);
  border-color: rgba(112,130,56,0.35);
}

/* ==================== DIVIDER ==================== */
.section-divider {
  width: 100%;
  height: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 6'%3E%3Cpath d='M0 3 Q150 1 300 3 Q450 5 600 3 Q750 1 900 3 Q1050 5 1200 3' stroke='rgba(30,41,59,0.12)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  margin: 0;
}

/* ==================== SECTION HEADERS ==================== */
.section-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D97706;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1E293B;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.7;
  max-width: 540px;
}

/* ==================== BLOG / INSIGHTS SECTION ==================== */
.insights {
  padding: 6rem 0;
}

.insights-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.insights-header .section-subtitle { margin: 0 auto; }

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

.insight-card {
  background: rgba(244, 241, 234, 0.7);
  border: 1.5px solid rgba(30,41,59,0.14);
  border-radius: 3px;
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 3px 4px 0 rgba(30,41,59,0.08);
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #708238, #D97706);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
}

.insight-card:nth-child(2) {
  background: rgba(112,130,56,0.07);
  border-color: rgba(112,130,56,0.25);
  transform: translateY(8px);
}

.insight-card:nth-child(3) {
  background: rgba(217,119,6,0.06);
  border-color: rgba(217,119,6,0.22);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 8px 0 rgba(30,41,59,0.10);
}

.insight-card:nth-child(2):hover { transform: translateY(4px); }

.card-number {
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  color: #D97706;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Lora', serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1E293B;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.card-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #708238;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(112,130,56,0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.card-link:hover { color: #D97706; border-color: rgba(217,119,6,0.5); }

/* ==================== CONTACT FORM SECTION ==================== */
.contact {
  padding: 6rem 0 5rem;
  position: relative;
}

.contact-cta {
  padding: 5rem 0 5.5rem;
  position: relative;
}

.contact-cta-box {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,252,245,0.85);
  border: 1.5px solid rgba(30,41,59,0.13);
  border-radius: 4px;
  padding: 2.6rem 2.2rem;
  box-shadow: 5px 7px 0 rgba(30,41,59,0.07), 0 2px 30px rgba(30,41,59,0.05);
  text-align: center;
}

.contact-cta-btn {
  display: inline-block;
  width: auto;
  min-width: 280px;
  text-decoration: none;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(112,130,56,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,252,245,0.85);
  border: 1.5px solid rgba(30,41,59,0.13);
  border-radius: 4px;
  padding: 3rem 3.5rem;
  box-shadow: 5px 7px 0 rgba(30,41,59,0.07), 0 2px 30px rgba(30,41,59,0.05);
  position: relative;
  z-index: 1;
}

.form-container .section-title {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.form-container .section-subtitle {
  font-size: 0.92rem;
  max-width: 100%;
  margin-bottom: 2.2rem;
}

.form-success {
  display: none;
  margin: 0 auto 1.4rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(112,130,56,0.45);
  background: rgba(112,130,56,0.12);
  color: #365314;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 3px;
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  margin: 0 auto 1.4rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(180,83,9,0.45);
  background: rgba(217,119,6,0.12);
  color: #7C2D12;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 3px;
  text-align: center;
}

.form-error.is-visible {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(244, 241, 234, 0.6);
  border: 1.5px solid rgba(30,41,59,0.18);
  border-radius: 3px;
  padding: 0.8rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.93rem;
  color: #1E293B;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
  font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #708238;
  box-shadow: 0 0 0 3px rgba(112,130,56,0.12);
}

.form-group textarea { min-height: 130px; }

.btn-submit {
  width: 100%;
  background: #D97706;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 1.15rem 2rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 3px 4px 0 rgba(180,83,9,0.3);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: #b45309;
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 rgba(180,83,9,0.28);
}

.form-disclaimer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.76rem;
  color: #9CA3AF;
  font-style: italic;
}

/* ==================== FOOTER ==================== */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(30,41,59,0.10);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: #9CA3AF;
  letter-spacing: 0.05em;
}

footer .footer-logo {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.5rem;
}

footer .footer-logo span { color: #D97706; }

footer .footer-mission {
  max-width: 920px;
  margin: 0.9rem auto 1.2rem;
  color: #4B5563;
  font-size: 0.92rem;
  line-height: 1.75;
  letter-spacing: 0;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 0.78rem;
  color: #9CA3AF;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: #D97706; }

/* ==================== ZEN DECORATIONS (SVG) ==================== */
.zen-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-left h1 { font-size: 2.4rem; }

  .kanban-wrap { order: -1; }

  .quote-stone {
    top: -2rem;
    right: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .insight-card:nth-child(2) { transform: translateY(0); }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .contact-cta-box {
    padding: 2rem 1.4rem;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(30,41,59,0.12);
    background: rgba(255,252,245,0.95);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  nav.is-open .nav-links {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 0.5rem;
  }

  nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero { padding: 3.5rem 0 3rem; }
  .kanban-cols { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .kanban-card { font-size: 0.75rem; padding: 0.6rem; }
}
