:root {
  --mfb-green: #438d35;
  --mfb-green-dark: #245b2b;
  --mfb-deep: #173f28;
  --mfb-green-light: #edf5e9;
  --mfb-cream: #f8f5ed;
  --mfb-white: #ffffff;
  --mfb-card: #ffffff;
  --mfb-text: #173f28;
  --mfb-muted: #68766c;
  --mfb-line: rgba(24, 51, 35, 0.12);
  --mfb-border: #bdecb6;
  --mfb-radius-xs: 8px;
  --mfb-radius-sm: 12px;
  --mfb-radius: 18px;
  --mfb-radius-lg: 24px;
  --mfb-shadow-sm: 0 8px 24px rgba(24, 51, 35, 0.05);
  --mfb-shadow: 0 14px 36px rgba(24, 51, 35, 0.08);
  --mfb-shadow-lg: 0 22px 60px rgba(24, 51, 35, 0.12);
  --mfb-container: 1320px;
  --mfb-header-height: 92px;
  --mfb-font-heading: "Manrope", sans-serif;
  --mfb-font-body: "DM Sans", sans-serif;
  --mfb-h1: clamp(42px, 5vw, 54px);
  --mfb-h2: clamp(30px, 3.5vw, 36px);
  --mfb-h3: clamp(22px, 2.5vw, 24px);
  --mfb-body: 17px;
  --mfb-small: 15px;
  --mfb-caption: 13px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mfb-cream);
  color: var(--mfb-text);
  font-family: var(--mfb-font-body);
  font-size: var(--mfb-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.mobile-menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

button,
input,
textarea,
select { font: inherit; }

button { cursor: pointer; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--mfb-deep);
  font-family: var(--mfb-font-heading);
}

h1,
.mfb-h1 {
  margin-bottom: 18px;
  font-size: var(--mfb-h1);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.4px;
}

h2,
.mfb-h2 {
  margin-bottom: 14px;
  font-size: var(--mfb-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

h3,
.mfb-h3 {
  margin-bottom: 10px;
  font-size: var(--mfb-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

p {
  margin-top: 0;
  color: var(--mfb-muted);
  font-size: var(--mfb-body);
  line-height: 1.7;
}

small,
.mfb-small {
  color: var(--mfb-muted);
  font-size: var(--mfb-small);
  line-height: 1.5;
}

.mfb-caption {
  color: var(--mfb-muted);
  font-size: var(--mfb-caption);
  line-height: 1.45;
}

.eyebrow,
.mfb-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--mfb-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.mfb-container,
.container,
.page-shell,
.shell {
  width: min(var(--mfb-container), 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 58px);
}

.mfb-section { padding-block: 72px; }
.mfb-stack { display: grid; gap: 24px; }

.mfb-card,
.card {
  border: 1px solid var(--mfb-border);
  border-radius: var(--mfb-radius);
  background: var(--mfb-card);
  box-shadow: var(--mfb-shadow-sm);
}

.mfb-card-padded { padding: 24px; }

.mfb-button,
.button,
.primary,
.secondary,
button.primary,
button.secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: var(--mfb-radius-sm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.mfb-button-primary,
.primary,
button.primary {
  border: 1px solid var(--mfb-green);
  background: var(--mfb-green);
  color: var(--mfb-white);
}

.mfb-button-primary:hover,
.primary:hover,
button.primary:hover {
  border-color: var(--mfb-green-dark);
  background: var(--mfb-green-dark);
  transform: translateY(-1px);
}

.mfb-button-secondary,
.secondary,
button.secondary {
  border: 1px solid var(--mfb-border);
  background: var(--mfb-white);
  color: var(--mfb-green-dark);
}

.mfb-button-secondary:hover,
.secondary:hover,
button.secondary:hover {
  border-color: rgba(67, 141, 53, 0.35);
  background: var(--mfb-green-light);
}

label {
  color: var(--mfb-text);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--mfb-border);
  border-radius: var(--mfb-radius-sm);
  outline: none;
  background: var(--mfb-white);
  color: var(--mfb-text);
  font-family: var(--mfb-font-body);
  font-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 16px;
}

textarea {
  min-height: 112px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mfb-green);
  box-shadow: 0 0 0 3px rgba(67, 141, 53, 0.1);
}

input::placeholder,
textarea::placeholder { color: #98a39a; }

.mfb-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mfb-green-light);
  color: var(--mfb-green-dark);
  font-size: 13px;
  font-weight: 700;
}

#site-header {
  position: relative;
  z-index: 1000;
  min-height: var(--mfb-header-height);
}

.site-header {
  position: relative;
  width: min(1440px, 100%);
  min-height: var(--mfb-header-height);
  margin: 0 auto;
  padding: 14px clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--mfb-line);
  background: rgba(248, 245, 237, 0.96);
  backdrop-filter: blur(18px);
}

.site-logo { display: inline-flex; align-items: center; }

.site-logo img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.site-nav a {
  position: relative;
  color: var(--mfb-green-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--mfb-green); }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--mfb-green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.member-menu { display:flex; align-items:center; gap:9px; white-space:nowrap; }
.header-greeting { color:var(--mfb-green-dark); font-size:13px; font-weight:800; }
.header-account,.header-signin { padding:9px 11px; border-radius:9px; background:var(--mfb-green-light); color:var(--mfb-green-dark); font-size:13px; font-weight:800; }
.header-logout { color:var(--mfb-muted); font-size:12px; font-weight:700; }

.mfb-global-loader { position:fixed; inset:0; z-index:9999; display:grid; place-items:center; padding:20px; background:rgba(20,54,29,.18); backdrop-filter:blur(4px); }
.mfb-global-loader-card { min-width:220px; display:grid; justify-items:center; gap:7px; padding:24px; border:1px solid var(--mfb-border); border-radius:18px; background:var(--mfb-white); box-shadow:0 22px 60px rgba(20,54,29,.2); text-align:center; }
.mfb-global-loader-card > span { width:29px; height:29px; border:3px solid #dce6d9; border-top-color:var(--mfb-green); border-radius:50%; animation:mfb-global-spin .75s linear infinite; }
.mfb-global-loader-card strong { color:var(--mfb-deep); font-size:14px; }
.mfb-global-loader-card small { color:var(--mfb-muted); font-size:12px; }
@keyframes mfb-global-spin { to { transform:rotate(360deg); } }

.header-cart {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--mfb-line);
  border-radius: var(--mfb-radius-sm);
  background: rgba(255, 255, 255, 0.78);
  color: var(--mfb-green-dark);
  font-size: 13px;
  font-weight: 700;
}

.header-cart:hover {
  border-color: rgba(67, 141, 53, 0.35);
  background: var(--mfb-white);
}

.header-cart strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mfb-green);
  color: var(--mfb-white);
  font-size: 11px;
}

.header-cta {
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid transparent;
  outline: none;
  border-radius: var(--mfb-radius-sm);

  background: var(--mfb-green);
  color: var(--mfb-white);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 6px 18px rgba(67, 141, 53, 0.14);

  appearance: none;
  -webkit-appearance: none;
}

.header-cta:hover {
  border-color: transparent;
  background: var(--mfb-green-dark);
  color: var(--mfb-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(36, 91, 43, 0.18);
}

.header-cta:focus,
.header-cta:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow:
    0 6px 18px rgba(67, 141, 53, 0.14),
    0 0 0 3px rgba(67, 141, 53, 0.14);
}

.header-cta:hover {
  background: var(--mfb-green-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--mfb-line);
  border-radius: var(--mfb-radius-sm);
  background: var(--mfb-white);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--mfb-green-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-button.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-button.open span:nth-child(2) { opacity: 0; }
.mobile-menu-button.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-navigation {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  z-index: 1100;
  padding: 10px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--mfb-line);
  border-radius: var(--mfb-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--mfb-shadow-lg);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-navigation.open { opacity: 1; transform: translateY(0); }
.mobile-navigation[hidden] { display: none; }

.mobile-navigation a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--mfb-radius-sm);
  color: var(--mfb-green-dark);
  font-size: 15px;
  font-weight: 700;
}

.mobile-navigation a:hover,
.mobile-navigation a.active { background: var(--mfb-green-light); }

.mobile-navigation a strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mfb-green);
  color: var(--mfb-white);
  font-size: 11px;
}

.mobile-navigation .mobile-join {
  justify-content: center;
  margin-top: 4px;
  background: var(--mfb-green);
  color: var(--mfb-white);
}

.mobile-member-menu {
  display: none;
}

@media (max-width: 820px) {
  :root {
    --mfb-header-height: 66px;
    --mfb-h1: 34px;
    --mfb-h2: 28px;
    --mfb-h3: 20px;
    --mfb-body: 16px;
    --mfb-small: 14px;
    --mfb-caption: 12px;
  }

  h1,
  .mfb-h1 { letter-spacing: -1.7px; }

  .mfb-container,
  .container,
  .page-shell,
  .shell { padding-inline: 16px; }

  .mfb-section { padding-block: 48px; }
  .mfb-card-padded { padding: 18px; }

  #site-header { min-height: var(--mfb-header-height); }

  .site-header {
    min-height: var(--mfb-header-height);
    grid-template-columns: auto 1fr;
    padding: 9px 14px;
    gap: 12px;
  }

  .site-logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .desktop-nav,
  .desktop-cta,
  .desktop-member-menu { display: none; }

  .header-actions { grid-column: 2; gap: 8px; }
  .mobile-menu-button { display: grid; }
  .header-cart-text { display: none; }

  .header-cart {
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 7px 8px;
    gap: 5px;
  }

  .header-cart strong {
    min-width: 19px;
    height: 19px;
    font-size: 10px;
  }

  .mobile-menu-button {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .mobile-navigation {
    top: calc(100% + 5px);
    left: 12px;
    right: 12px;
    padding: 9px;
    border-radius: 16px;
  }

  .mobile-member-menu {
    display: grid;
    gap: 7px;
    padding: 9px 8px 12px;
    border-bottom: 1px solid var(--mfb-line);
  }

  .mobile-member-menu .member-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .mobile-member-menu .header-greeting {
    flex-basis: 100%;
    font-size: 12px;
  }

  .mobile-member-menu .header-account,
  .mobile-member-menu .header-signin {
    padding: 9px 10px;
    font-size: 12px;
  }

  .mobile-member-menu .header-logout {
    align-self: center;
    padding: 8px 4px;
  }
}

@media (max-width: 390px) {
  .site-header { gap: 10px; }
  .header-actions { gap: 7px; }

  .header-cart,
  .mobile-menu-button {
    width: 42px;
    height: 42px;
  }
}

/* ===========================================================
   GLOBAL FOOTER
=========================================================== */

#site-footer { margin-top: 72px; }

.site-footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 72px) 30px;
  display: grid;
  grid-template-columns: 1fr 1.15fr .9fr .8fr 1.35fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--mfb-line);
  background: transparent;
}

.footer-brand img {
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border-radius: 18px;
  object-fit: contain;
}

.footer-brand-line {
  max-width: 180px;
  margin: 0;
  color: var(--mfb-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.footer-philosophy p {
  margin: 0;
  max-width: 260px;
  color: var(--mfb-deep);
  font-family: var(--mfb-font-heading);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.6px;
}

.footer-links,
.footer-social,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
  margin: 0 0 6px;
  color: var(--mfb-deep);
  font-family: var(--mfb-font-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.footer-links a,
.footer-social a,
.footer-contact a {
  color: var(--mfb-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-contact a:hover { color: var(--mfb-green); }

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

.social-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--mfb-line);
  border-radius: 12px;
  background: rgba(255,255,255,.74);
  color: var(--mfb-green-dark);
}

.social-link:hover {
  border-color: rgba(67,141,53,.35);
  background: var(--mfb-green-light);
  color: var(--mfb-green);
  transform: translateY(-1px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact h4 { max-width: 280px; }

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--mfb-line);
  color: var(--mfb-muted);
  font-size: 13px;
}

/* Floating WhatsApp */

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 950;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(23,63,40,.2);
}

.floating-whatsapp:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23,63,40,.26);
}

.floating-whatsapp svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Talk to us dialog */

.mfb-call-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  border-radius: var(--mfb-radius-lg);
  background: transparent;
}

.mfb-call-dialog::backdrop {
  background: rgba(17,43,28,.48);
  backdrop-filter: blur(6px);
}

.call-dialog-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--mfb-border);
  border-radius: var(--mfb-radius-lg);
  background: var(--mfb-white);
  box-shadow: var(--mfb-shadow-lg);
}

.call-dialog-card h2 { margin-bottom: 12px; }
.call-dialog-card p { margin-bottom: 12px; }

.call-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--mfb-border);
  border-radius: 12px;
  background: var(--mfb-white);
  color: var(--mfb-deep);
  font-size: 22px;
  line-height: 1;
}

.call-dialog-close:hover {
  border-color: rgba(67,141,53,.35);
  background: var(--mfb-green-light);
}

.call-dialog-hours {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--mfb-line);
  border-radius: var(--mfb-radius-sm);
  background: var(--mfb-green-light);
}

.call-dialog-hours small {
  display: block;
  margin-bottom: 4px;
}

.call-dialog-hours strong {
  color: var(--mfb-deep);
  font-family: var(--mfb-font-heading);
  font-size: 18px;
}

.call-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.call-dialog-actions > * { flex: 1; }

@media (max-width: 1080px) {
  .site-footer { grid-template-columns: 1fr 1fr 1fr; }
  .footer-contact { grid-column: span 2; }
}

@media (max-width: 820px) {
  #site-footer { margin-top: 52px; }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 46px 18px 24px;
  }

  .footer-brand,
  .footer-philosophy,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    width: 66px;
    height: 66px;
  }

  .footer-philosophy p {
    max-width: 420px;
    font-size: 24px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 82px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp strong { display: none; }
}

@media (max-width: 560px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-links,
  .footer-social { grid-column: 1; }

  .footer-philosophy p { font-size: 23px; }

  .call-dialog-card { padding: 28px 20px 20px; }

  .call-dialog-actions {
    flex-direction: column-reverse;
  }
}
