/* =========================================================
HERO SCALE — SINGLE SOURCE OF TRUTH
========================================================= */

:root {
  --hero-pad-y: clamp(3.25rem, 5vw, 4.5rem);
  --hero-pad-y-home: clamp(4.5rem, 6vw, 6rem);

  --hero-title-size: clamp(2.2rem, 4.5vw, 3.2rem);
  --hero-title-line: 1.15;

  --hero-desc-size: 1.05rem;
  --hero-desc-line: 1.7;

  --hero-max-width: 46rem;
}

/* =========================================================
PAGE HERO — LISTING PAGES
========================================================= */

.page-hero {
  background: var(--warm);
  padding: var(--hero-pad-y) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-hero-inner {
  max-width: var(--hero-max-width);
  margin: 0 auto;
  text-align: center;
}

.page-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-family: "Crimson Pro", serif;
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line);
  color: var(--charcoal);
  margin-bottom: 0.9rem;
}

.page-hero-description {
  font-size: var(--hero-desc-size);
  line-height: var(--hero-desc-line);
  color: #4b5563;
  max-width: 46ch;
  margin: 0 auto;
}

.page-hero-search {
  padding-inline: 1rem;
  max-width: 36rem;      /* mobile + small screens */
  margin-inline: auto;   /* center horizontally */
}

@media (min-width: 768px) {
  .page-hero-search {
    max-width: 42rem;
  }
}

@media (min-width: 1024px) {
  .page-hero-search {
    max-width: 48rem;
  }
}

/* Ensure the input fills the container */
.page-hero-search input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 9999px;
}


.hero-search-empty {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}

.hero-search-empty:not(.hidden) {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================
EDITORIAL HERO — BASE (MOBILE FIRST)
===================================== */

.editorial-hero {
  position: relative;
  background: var(--warm);
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.editorial-hero .container {
  position: relative;
  z-index: 2;
}

.editorial-hero h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
}

.editorial-hero p {
  font-size: 0.95rem;
  max-width: 34ch;
}

/* =====================================
EDITORIAL HERO — IMAGE PANEL
===================================== */

.editorial-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;

  background-image: url("/assets/images/hero-pattern.png");
  background-repeat: repeat;
  background-size: 420px auto;
  background-position: top right;

  opacity: 0.7;
  pointer-events: none;

  /* Gentle left fade */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.25) 20%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.85) 60%,
    black 75%
  );
}

/* =====================================
EDITORIAL HERO — MEDIUM SCREENS
===================================== */

@media (min-width: 768px) {

  .editorial-hero {
    padding: 3.5rem 0 3rem;
  }

  .editorial-hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .editorial-hero p {
    font-size: 1rem;
    max-width: 36ch;
  }

  .editorial-hero::after {
    width: 50%;
    opacity: 0.65;
  }
}

#mobile-menu-btn {
  display: block;
}

@media (min-width: 1024px) {
  #mobile-menu-btn {
    display: none;
  }
}


/* =====================================
EDITORIAL HERO — LARGE SCREENS
===================================== */

@media (min-width: 1200px) {

  .editorial-hero {
    padding: 4.25rem 0 3.75rem;
  }

  .editorial-hero h1 {
    font-size: 2.9rem;
  }

  .editorial-hero p {
    font-size: 1.05rem;
    max-width: 38ch;
  }

  .editorial-hero::after {
    width: 50%;
    opacity: 0.6;
  }
}

@media (max-width: 767px) {
  .editorial-hero::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .editorial-hero p {
    max-width: 40ch;
  }
}

/* Navbar badge (Courses → Members) */
.nav-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(127,156,134,0.15); /* sage tint */
  color: var(--sage);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .nav-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
  }
}

.site-header .container {
  align-items: center;
}

/* Prevent script logo from visually floating */
.logo-script {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin-top: 0.05em; /* subtle optical correction */
}

.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1100px) {
  .nav-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
  }
}

.editorial-hero {
  padding-inline: calc((100vw - 100%) / 2);
}

/* Tablet balance fix */
@media (max-width: 1100px) {
  .logo-script {
    font-size: 1.85rem;
  }
}

/* Prevent nav compression */
.site-header .container {
  gap: 2rem;
}

/* Keep nav items vertically aligned */
.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .logo-script {
    font-size: 2.1rem; /* slightly calmer than desktop */
  }

  #mobile-menu-btn {
    margin-left: 1rem; /* optical breathing room */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header a[href="/"] {
    align-items: center;
  }

  .logo-script {
    line-height: 0.95;
  }
}



/* =========================================================
DETAIL CONTENT — RESTORE RHYTHM
========================================================= */

.editorial-shell {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.editorial-content {
  max-width: 42rem;
  margin: 0 auto;
}

/* =========================================================
DETAIL PAGES — GLOBAL FIX
Articles / Recipes / Courses
NO TEMPLATE CHANGES REQUIRED
========================================================= */

/* ---------- HERO WRAPPER ---------- */

.detail-hero {
  background: var(--warm);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.detail-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ---------- HERO IMAGE ---------- */

.detail-hero-image {
  margin-bottom: 2rem;
}

.detail-hero-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

/* Prevent giant images on very wide screens */
@media (min-width: 1280px) {
  .detail-hero-image img {
    max-height: 380px;
  }
}

/* ---------- META ---------- */

.detail-hero-meta {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* ---------- TITLE ---------- */

.detail-hero-title {
  font-family: "Crimson Pro", serif;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
  max-width: 28ch;
}

/* ---------- EXCERPT ---------- */

.detail-hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 52ch;
}

/* =========================================================
CONTENT AREA — EDITORIAL SHELL FIX
========================================================= */

.editorial-shell {
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 6vw, 5rem);
}

.editorial-page {
  max-width: 860px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Improve readable flow */
.editorial-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

/* Headings inside content */
.editorial-content h2,
.editorial-content h3 {
  font-family: "Crimson Pro", serif;
  color: var(--charcoal);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.editorial-content h2 {
  font-size: 1.6rem;
}

.editorial-content h3 {
  font-size: 1.35rem;
}

/* Lists */
.editorial-content ul,
.editorial-content ol {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.25rem;
}

.editorial-content li {
  margin-bottom: 0.5rem;
}

/* Images inside content (Ghost cards) */
.editorial-content img {
  border-radius: 1.25rem;
  margin: 2.5rem auto;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* ---------- BACK LINKS / ACTIONS ---------- */

.editorial-back,
.editorial-actions {
  margin-top: 3rem;
}

/* ---------- MOBILE TIGHTENING ---------- */

@media (max-width: 640px) {

  .detail-hero {
    padding: 2.25rem 0;
  }

  .detail-hero-title {
    font-size: 1.9rem;
  }

  .detail-hero-image img {
    max-height: 300px;
    border-radius: 1.25rem;
  }
}

/* Homepage hero image */
.hero--home .hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* Optional: soften on very large screens */
@media (min-width: 1280px) {
  .hero--home .hero-image img {
    max-width: 560px;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .hero--home .hero-image {
    display: none;
  }
}

/* IMAGE — takes 50% with editorial left fade */
.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 1.75rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);

  /* Full visibility */
  opacity: 1;

  /* Fade ONLY toward the left */
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );
}

/* =========================================================
NAVBAR — FINAL BALANCE REFINEMENTS
========================================================= */

/* Prevent awkward wrapping on nav links only */
.site-header nav .nav-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* Compact desktop / tablet mode */
@media (max-width: 1100px) {
  .site-header nav {
    gap: 1.25rem;
  }

  .site-header .nav-link {
    font-size: 0.875rem;
  }
}

/* Logo polish at medium sizes */
@media (max-width: 1100px) {
  .logo-script {
    font-size: 1.15rem;
    line-height: 1;
    white-space: nowrap;
  }
}

/* Language switch spacing */
.site-header .language-switch {
  margin-left: 1.5rem;
}

@media (max-width: 1100px) {
  .site-header .language-switch {
    margin-left: 1rem;
  }
}

/* Bulgarian navbar only — readability */
html[lang="bg"] .site-header nav {
  letter-spacing: 0.01em;
}

/* =========================================================
MEMBERSHIP CTA — RESTORED & STYLED
========================================================= */

.members-cta {
  margin-top: 4.5rem;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    #8faa98 100%
  );
  border-radius: 1.75rem;
  color: white;
}

.members-cta-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.members-cta-title {
  font-family: "Crimson Pro", serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.members-cta-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 40ch;
}

/* Button */
.members-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.85rem 1.75rem;
  border-radius: 999px;

  background: white;
  color: var(--sage);
  font-weight: 600;
  font-size: 0.95rem;

  text-decoration: none;
  white-space: nowrap;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.members-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Mobile */
@media (max-width: 768px) {
  .members-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .members-cta-description {
    max-width: none;
  }
}

/* =========================================================
SIX PILLARS — HERO (REFINED)
========================================================= */

.page-hero--pillars {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  text-align: center;
}

/* Center buttons cleanly */
.page-hero--pillars .page-hero-inner > .flex {
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Prevent hero buttons stretching too wide */
.page-hero--pillars .cta-btn {
  min-width: 180px;
  max-width: 240px;
  justify-content: center;
}

/* Subtle divider after hero */
.page-hero--pillars::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 85%);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.08),
    transparent
  );
}

/* Space before first pillar section */
.page-hero--pillars + section {
  margin-top: clamp(4rem, 7vw, 6rem);
}

/* =========================================================
SIX PILLARS — OVERVIEW CARDS
========================================================= */

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);

  transition: transform .25s ease, box-shadow .25s ease;
}

.pillar-card i {
  font-size: 1.8rem;
  color: var(--sage);
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-family: "Crimson Pro", serif;
  font-size: 1.4rem;
  margin-bottom: .4rem;
}

.pillar-card p {
  font-size: .95rem;
  color: #6b7280;
  max-width: 26ch;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

/* =========================================================
SIX PILLARS — DETAIL SECTIONS
========================================================= */

.pillars-wrapper {
  padding-block: clamp(5rem, 9vw, 7rem);
}

.pillar-detail {
  max-width: 720px;
  margin-inline: auto;
}

.pillar-detail + .pillar-detail {
  margin-top: clamp(4.5rem, 8vw, 6rem);
}

.pillar-detail h2 {
  font-family: "Crimson Pro", serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.pillar-detail p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.5rem;
}

.pillar-detail ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem 1.5rem;
  padding-left: 1rem;
}

.pillar-detail li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .95rem;
  color: #4b5563;
}

.pillar-detail li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--sage);
}

/* =========================================================
MOBILE REFINEMENTS
========================================================= */

@media (max-width: 768px) {
  .pillar-card {
    padding: 2rem 1.5rem;
  }

  .pillar-detail ul {
    grid-template-columns: 1fr;
  }
}


/* Mobile breathing room */
@media (max-width: 768px) {
  .page-hero--pillars {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
  }
}


/* Mobile tuning */
@media (max-width: 640px) {
  .page-hero--pillars .cta-btn {
    width: 100%;
    min-width: unset;
  }
}

.page-hero--courses .page-hero-search {
  margin-top: 2rem;
}


/* MOBILE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .hero--strip::after {
    display: none;
  }
}

/* =========================================================
HOMEPAGE HERO — VERTICAL RHYTHM FIX
========================================================= */

/* Ensure breathing room below homepage hero */
.hero--home {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

/* Space before first section after hero */
.hero--home + section {
  margin-top: clamp(3.5rem, 6vw, 5rem);
}

/* Mobile comfort */
@media (max-width: 640px) {
  .hero--home {
    padding-bottom: 3.5rem;
  }

  .hero--home + section {
    margin-top: 3rem;
  }
}

/* =========================================================
HOMEPAGE SECTION HEADERS — MOBILE TAP FIX
========================================================= */

.editorial-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Improve spacing + tap accuracy on mobile */
@media (max-width: 640px) {
  .editorial-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .editorial-section-header h2 {
    margin-bottom: 0.25rem;
  }

  .editorial-section-header .editorial-text-link {
    padding: 0.35rem 0;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .editorial-text-link {
    font-weight: 500;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
}


/* ============================
   Recipe Nutrition Card
============================ */

/* =========================================================
NUTRITION CARD
========================================================= */

.nutrition-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1.5rem;
  padding: 1.75rem;
  max-width: 360px;
}

.nutrition-card--featured {
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.nutrition-card-header {
  margin-bottom: 1.25rem;
}

.nutrition-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.35rem;
}

.nutrition-card-title {
  font-family: "Crimson Pro", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
}

.nutrition-card-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.nutrition-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nutrition-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}

.nutrition-list li:last-child {
  border-bottom: none;
}

.nutrition-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.nutrition-label i {
  font-size: 0.8rem;
  color: var(--sage);
}

.nutrition-card strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.nutrition-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
}


.nutrition-card strong {
  transition: color 0.3s ease, transform 0.3s ease;
}

.nutrition-card strong:not(:empty) {
  color: var(--charcoal);
}


/* =========================================
NUTRITION CARD — VALUE REVEAL
========================================= */

.nutrition-card span[data-calories],
.nutrition-card span[data-protein],
.nutrition-card span[data-carbs],
.nutrition-card span[data-fat] {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.nutrition-card span.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
HOW TO USE — ACCORDION
========================================================= */

.how-to-use-accordion {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1rem;
  background: #ffffff;
}

.accordion-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: "Crimson Pro", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.accordion-panel {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.accordion-panel ol {
  padding-left: 1.2rem;
  margin: 0.75rem 0 1rem;
}

.accordion-panel li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}

.accordion-note {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Open state */
.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  display: block;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

/* =========================================================
HERO BUTTON WIDTH FIX (MOBILE)
========================================================= */

/* Default hero button behavior */
.page-hero .cta-btn {
  width: auto;
}

/* Mobile: prevent full-width buttons */
@media (max-width: 640px) {
  .page-hero .cta-btn {
    width: 100%;
    max-width: 320px;   /* 👈 key control */
    margin-inline: auto;
  }

  /* Stack spacing */
  .page-hero .hero-actions,
  .page-hero .flex {
    gap: 0.75rem;
  }
}

/* =========================================================
MEMBERSHIP CTA — WIDTH & ALIGNMENT FIX
========================================================= */

.members-cta {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

/* Constrain content width */
.members-cta-inner {
  max-width: 1100px;          /* 👈 keeps content together */
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Text block */
.members-cta-inner > div {
  max-width: 520px;
}

/* Button */
.members-cta-button {
  white-space: nowrap;
}

/* Mobile: stack cleanly */
@media (max-width: 768px) {
  .members-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

.members-cta-button {
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* =========================================================
FOOTER NEWSLETTER — SHAPE CONSISTENCY
========================================================= */

footer input[data-members-email],
footer .cta-btn {
  height: 48px;                 /* 👈 unify height */
  border-radius: 999px;         /* perfect pill */
  font-size: 0.95rem;
}

/* Input specific */
footer input[data-members-email] {
  padding: 0 1.25rem;
}

/* Button specific */
footer .cta-btn {
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optional: subtle visual cohesion */
footer form {
  gap: 0.75rem;
}

footer .cta-btn {
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

@media (min-width: 768px) and (max-width: 1100px) {
  footer form {
    max-width: 22rem;
  }
}

@media (max-width: 1100px) {
  footer .cta-btn {
    box-shadow: 0 4px 10px rgba(0,0,0,0.14);
  }
}

@media (max-width: 1100px) {
  footer input[data-members-email],
  footer .cta-btn {
    height: 44px;
    font-size: 0.9rem;
  }
}

footer .grid {
  align-items: start;
}

@media (min-width: 1024px) {
  footer .lg\:col-span-2 {
    max-width: 42rem;
  }
}


/* =========================================================
MEMBERS CTA — LAYOUT REFINEMENT (SIMPLE)
========================================================= */

.members-cta-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);

  padding: clamp(2.5rem, 4vw, 3.25rem);
}

/* Text block width control */
.members-cta-content {
  max-width: 36rem;
}

/* Button alignment polish */
.members-cta-button {
  white-space: nowrap;
}

/* Tablet & mobile */
@media (max-width: 900px) {
  .members-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .members-cta-button {
    margin-top: 1.5rem;
  }
}

