/* ==========================================
   0. SHARED BLOG / DEFAULT LAYOUT
   ========================================== */
:root {
  --sage: #678760;
  --sage-light: #dfead7;
  --leaf-mist: #edf5e8;
  --orange: #fb9b27;
  --gold: #fcc15d;
  --cream: #f5f4ef;
  --text: #243126;
  --muted: #5e675f;
  --line: rgba(36,49,38,0.10);
  --max: 1120px;
  --shadow: 0 14px 30px rgba(36,49,38,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,248,214,0.78), transparent 28%),
    linear-gradient(180deg, #f8fbf3 0%, #eff6ea 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(36,49,38,0.08);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(36,49,38,0.04);
}

.topbar::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--sage));
}

.nav {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-head {
  display: contents;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(36,49,38,0.08);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { min-width: 0; }
.brand-title { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.1; }
.brand-subtitle { margin-top: 4px; font-size: 0.88rem; color: var(--muted); line-height: 1.3; }

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  transition: all 0.25s ease;
  flex-wrap: wrap;
}

.nav-links button,
.nav-links a {
  min-height: 96px;
  padding: 0 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(36,49,38,0.06);
  transition: 0.18s ease;
  text-align: center;
}

/* BEGIN: Organic mobile menu toggle */
.menu-toggle {
  display: none;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(251,155,39,0.30);
  border-radius: 55% 45% 58% 42% / 44% 53% 47% 56%;
  background: linear-gradient(135deg, rgba(251,155,39,0.42), rgba(252,193,93,0.52) 48%, rgba(103,135,96,0.30));
  box-shadow:
    0 18px 40px rgba(36,49,38,0.14),
    0 0 0 8px rgba(255,244,196,0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: organic-toggle-float 4.2s ease-in-out infinite;
  transition:
    transform 0.28s ease,
    border-radius 0.34s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.28s ease, border-radius 0.35s ease;
}

.menu-toggle::before {
  inset: 4px;
  border-radius: 58% 42% 46% 54% / 48% 58% 42% 52%;
  background: rgba(255,255,255,0.70);
  z-index: 0;
}

.menu-toggle::after {
  width: 84px;
  height: 84px;
  right: -22px;
  top: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.54), rgba(255,255,255,0));
  opacity: 1;
  z-index: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 0.28s ease, opacity 0.22s ease, width 0.28s ease;
  position: relative;
  z-index: 1;
}

.menu-toggle span:nth-child(2) {
  width: 18px;
}

.menu-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 20px 42px rgba(36,49,38,0.16),
    0 0 0 10px rgba(251,155,39,0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

@media (hover: hover) {
  .menu-toggle:hover {
    transform: translateY(-3px) rotate(-7deg) scale(1.10);
    border-radius: 42% 58% 44% 56% / 53% 41% 59% 47%;
    box-shadow:
      0 26px 48px rgba(36,49,38,0.18),
      0 0 0 10px rgba(255,244,196,0.22),
      inset 0 1px 0 rgba(255,255,255,0.88);
  }

  .menu-toggle:hover::before {
    transform: scale(1.06) rotate(10deg);
    border-radius: 46% 54% 42% 58% / 56% 42% 58% 44%;
  }

  .menu-toggle:hover::after {
    transform: translate(-6px, 6px) scale(1.14);
  }
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 8px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.menu-toggle[aria-expanded="true"] {
  animation: none;
  transform: rotate(10deg) scale(1.12);
  border-radius: 38% 62% 42% 58% / 56% 38% 62% 44%;
  background: linear-gradient(135deg, rgba(251,155,39,0.48), rgba(252,193,93,0.58) 48%, rgba(103,135,96,0.34));
  box-shadow:
    0 28px 54px rgba(36,49,38,0.20),
    0 0 0 12px rgba(255,244,196,0.24),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.menu-toggle[aria-expanded="true"]::before {
  transform: scale(1.10) rotate(14deg);
  border-radius: 42% 58% 36% 64% / 64% 34% 66% 36%;
  background: rgba(255,255,255,0.78);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translate(-8px, 9px) scale(1.18);
}

@keyframes organic-toggle-float {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35% { transform: rotate(-3deg) translateY(-1px); }
  70% { transform: rotate(2deg) translateY(1px); }
}
/* END: Organic mobile menu toggle */
/*
  FALLBACK: Classic mobile menu toggle
  To revert, replace the entire "BEGIN/END: Organic mobile menu toggle" block above
  with the snippet below.

  .menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(36,49,38,0.12);
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
*/

.nav-links button:hover,
.nav-links a:hover,
.nav-links button.active,
.nav-links a.active { background: var(--sage); color: white; }

.nav-links a.lang-switch,
.nav-links a.lang-switch:visited,
.nav-links a.lang-switch:active,
.nav-links a.lang-link,
.nav-links a.lang-link:visited,
.nav-links a.lang-link:active {
  background: var(--orange) !important;
  color: white !important;
  font-weight: 800;
}

.nav-links a.lang-switch:hover,
.nav-links a.lang-switch:focus-visible,
.nav-links a.lang-link:hover,
.nav-links a.lang-link:focus-visible {
  background: #e68e20 !important;
  color: white !important;
}

.page {
  padding: 42px 0 56px;
  background:
    radial-gradient(circle at top right, rgba(251,155,39,0.025), transparent 12%),
    radial-gradient(circle at top left, rgba(255,248,214,0.18), transparent 16%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)),
    linear-gradient(180deg, #f4f9ef 0%, #deead7 100%);
}

.nav-label { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.08; gap: 4px; }
.nav-pl { display: block; font-size: 0.94rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .nav {
    min-height: auto;
    padding: 12px 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .brand {
    width: auto;
    flex: 1;
  }

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

  /* BEGIN: Organic mobile menu panel */
  .nav-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,251,242,0.98));
    border: 1px solid rgba(251,155,39,0.12);
    border-radius: 30px 24px 34px 22px;
    box-shadow:
      0 20px 44px rgba(36,49,38,0.10),
      inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    transform: translateY(-8px) scale(0.985, 0.94);
    transform-origin: top center;
    will-change: max-height, opacity, transform, border-radius;
    transition:
      max-height 0.58s cubic-bezier(0.25, 0.9, 0.3, 1),
      opacity 0.32s ease,
      transform 0.58s cubic-bezier(0.25, 0.9, 0.3, 1),
      border-radius 0.58s cubic-bezier(0.25, 0.9, 0.3, 1);
  }

  .nav-links::before,
  .nav-links::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition: transform 0.58s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.32s ease;
  }

  .nav-links::before {
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(circle at 14% 12%, rgba(255,244,196,0.58), transparent 22%),
      radial-gradient(circle at 88% 18%, rgba(251,155,39,0.16), transparent 18%),
      radial-gradient(circle at 18% 82%, rgba(103,135,96,0.12), transparent 20%);
    opacity: 0.85;
  }

  .nav-links::after {
    width: 130px;
    height: 68px;
    top: -14px;
    right: 18px;
    border-radius: 58% 42% 60% 40% / 46% 58% 42% 54%;
    background: radial-gradient(circle, rgba(255,255,255,0.48), rgba(255,255,255,0));
    opacity: 0.8;
  }

  .nav-links.active {
    max-height: 460px;
    opacity: 1;
    transform: translateY(0) scale(1);
    border-radius: 28px 26px 32px 24px;
  }

  .nav-links button,
  .nav-links a {
    min-height: 56px;
    width: 100%;
    padding: 0 18px;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(36,49,38,0.06);
    justify-content: flex-start;
    flex: none;
    position: relative;
    z-index: 1;
    transition: background 0.22s ease, transform 0.22s ease, padding-left 0.22s ease;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links.active::before {
    transform: scale(1.01, 1.03);
  }

  .nav-links.active::after {
    transform: translate(-5px, 6px) scale(1.03);
  }

  .nav-label {
    align-items: flex-start;
  }

  @media (hover: hover) {
    .nav-links button:hover,
    .nav-links a:hover {
      transform: translateX(4px);
      padding-left: 22px;
    }
  }

  /* END: Organic mobile menu panel */
  /*
    FALLBACK: Classic mobile menu panel
    To revert, replace the entire "BEGIN/END: Organic mobile menu panel" block above
    with the snippet below.

    .nav-links {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
      background: rgba(255,255,255,0.96);
      border: 1px solid rgba(36,49,38,0.06);
      border-radius: 18px;
      box-shadow: var(--shadow);
      transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .nav-links.active {
      max-height: 400px;
      opacity: 1;
    }

    .nav-links a {
      min-height: 56px;
      width: 100%;
      padding: 0 18px;
      border-left: none;
      border-right: none;
      border-bottom: 1px solid rgba(36,49,38,0.06);
      justify-content: flex-start;
      flex: none;
    }

    .nav-links a:last-child {
      border-bottom: none;
    }
  */
}

@media (max-width: 640px) {
  .nav {
    gap: 10px;
  }

  .page {
    background:
      radial-gradient(circle at top center, rgba(255,244,196,0.18), transparent 14%),
      radial-gradient(circle at bottom left, rgba(223,234,215,0.50), transparent 28%),
      linear-gradient(180deg, #fbfdf7 0%, #e9f3e4 100%);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
  }

  .nav-links button,
  .nav-links a {
    min-height: 48px;
    padding: 0 16px;
  }

  .nav-pl {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }
}

.leaf-icon {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}

.leaf-icon span {
  display: block;
  height: 2px;
  background: #243126;
  margin: 3px 0;
}

/* ==========================================
   1. BLOG INDEX (The List of Posts)
   ========================================== */
.blog-index { margin-top: 20px; }
.blog-intro { text-align: center; margin-bottom: 34px; }
.blog-intro h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
.blog-intro p { margin: 0 auto; max-width: 60ch; color: #5e675f; line-height: 1.8; }

.post-list { display: grid; gap: 18px; }
.post-link { display: block; text-decoration: none; color: inherit; }
.post-card { 
  display: grid; 
  grid-template-columns: 180px minmax(0, 1fr); 
  gap: 20px; 
  align-items: stretch; 
  background: rgba(255,255,255,0.9); 
  border: 1px solid rgba(36,49,38,0.08); 
  border-radius: 18px; 
  padding: 18px; 
  box-shadow: 0 14px 30px rgba(36,49,38,0.06); 
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; 
}
.post-link:hover .post-card { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(36,49,38,0.10); border-color: rgba(103,135,96,0.35); }

.post-thumb-frame { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid rgba(36,49,38,0.08); overflow: hidden; background: linear-gradient(180deg, #f8f5ee 0%, #efe9de 100%); }
.post-thumb-frame.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================
   2. INDIVIDUAL BLOG POST (The "Before" Look)
   ========================================== */
.post {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header h1 {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  color: #243126;
  margin: 0;
  letter-spacing: 0.02em;
}

.post-cover-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.post-cover-frame {
  width: 100%;
  max-width: 650px; /* Limits width to match your screenshot */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.post-cover-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* THE WHITE CARD FOR CONTENT */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 45px 60px;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(36, 49, 38, 0.05);
  line-height: 1.8;
  color: #243126;
  font-family: 'Inter', sans-serif;
}

/* ==========================================
   3. POST NAVIGATION (Next/Prev Cards)
   ========================================== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 48px auto 0;
  max-width: 720px;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(36,49,38,0.06);
  transition: all 0.2s ease;
  border: 1px solid rgba(36,49,38,0.08);
}

.post-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(36,49,38,0.10);
  border-color: rgba(103,135,96,0.35);
}

.post-nav-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #678760;
  font-weight: 600;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-nav-card.prev { text-align: left; }
.post-nav-card.next { text-align: right; }

/* ==========================================
   4. RESPONSIVE / MOBILE
   ========================================== */
@media (max-width: 768px) {
  .post-card { grid-template-columns: 1fr; }
  .post-thumb-frame { aspect-ratio: 16 / 9; }
  
  .post-body { 
    padding: 30px 20px; 
    border-radius: 0; 
    box-shadow: none; 
    background: transparent; 
  }
  
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card.next { text-align: left; }
}
