@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ============================================
   MASS MEDICAL MISSION — PREMIUM HEADER
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand palette — refined from logo greens & pinks */
  --mmm-forest:      #1a3c34;
  --mmm-forest-deep: #0f2a24;
  --mmm-emerald:     #2a6e5a;
  --mmm-sage:        #3d8b74;
  --mmm-rose:        #c4567a;
  --mmm-rose-muted:  #a8496a;
  --mmm-cream:       #faf8f5;
  --mmm-warm-white:  #f5f2ee;
  --mmm-gold:        #c9a96e;
  --mmm-text:        #2c2c2c;
  --mmm-text-light:  #6b6b6b;
  --mmm-border:      rgba(26,60,52,0.08);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --header-height: 88px;
  --header-height-scrolled: 72px;
}

body {
  font-family: var(--font-body);
  color: var(--mmm-text);
  background: var(--mmm-cream);
  -webkit-font-smoothing: antialiased;
}

/* --- Utility --- */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ============================================
   HEADER SHELL
   ============================================ */
.mmm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: height 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  background: #ffffff; 
  box-shadow: 0 1px 0 var(--mmm-border);
}

.mmm-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--mmm-border), 0 4px 24px rgba(0,0,0,0.04);
}

.mmm-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   LOGO / WORDMARK
   ============================================ */
.mmm-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.mmm-logo__img {
  height: 52px;
  width: auto;
  transition: height 0.4s ease;
}

.mmm-header.scrolled .mmm-logo__img {
  height: 44px;
}

.mmm-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mmm-logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--mmm-forest-deep);
}

.mmm-header:not(.scrolled) .mmm-logo__name {
  color: var(--mmm-forest-deep);
}

.mmm-logo__tagline {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mmm-sage);
  margin-top: 2px;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.mmm-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.mmm-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mmm-nav__item {
  position: relative;
}

.mmm-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--mmm-forest-deep);
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.mmm-nav__link:hover,
.mmm-nav__link:focus-visible {
  color: var(--mmm-emerald);
  background: rgba(42,110,90,0.06);
}

.mmm-nav__link[aria-current="page"] {
  color: var(--mmm-emerald);
}

/* Dropdown caret */
.mmm-nav__link .caret {
  width: 10px;
  height: 10px;
  opacity: 0.45;
  transition: transform 0.3s ease, opacity 0.25s;
}

.mmm-nav__item:hover .caret,
.mmm-nav__item:focus-within .caret {
  transform: rotate(180deg);
  opacity: 0.7;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.mmm-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 10px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.mmm-nav__item:hover > .mmm-dropdown,
.mmm-nav__item:focus-within > .mmm-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Small decorative top accent */
.mmm-dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--mmm-emerald), var(--mmm-sage));
  border-radius: 2px 2px 0 0;
}

.mmm-dropdown__link {
  display: block;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mmm-text);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.01em;
}

.mmm-dropdown__link:hover,
.mmm-dropdown__link:focus-visible {
  background: rgba(42,110,90,0.06);
  color: var(--mmm-emerald);
}

.mmm-dropdown__desc {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--mmm-text-light);
  margin-top: 2px;
  letter-spacing: 0;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.mmm-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.mmm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mmm-btn--ghost {
  color: var(--mmm-forest-deep);
  border: 1.5px solid rgba(26,60,52,0.18);
}

.mmm-btn--ghost:hover {
  border-color: var(--mmm-emerald);
  color: var(--mmm-emerald);
  background: rgba(42,110,90,0.04);
}

.mmm-btn--primary {
  background: var(--mmm-forest);
  color: #fff;
  border: 1.5px solid var(--mmm-forest);
}

.mmm-btn--primary:hover {
  background: var(--mmm-forest-deep);
  border-color: var(--mmm-forest-deep);
}

/* ============================================
   MOBILE HAMBURGER
   ============================================ */
.mmm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  z-index: 1010;
}

.mmm-hamburger span {
  display: block;
  height: 2px;
  background: var(--mmm-forest-deep);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

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

.mmm-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mmm-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  background: #fff;
  z-index: 1005;
  padding: 100px 36px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.08);
}

.mmm-mobile-menu.open {
  transform: translateX(0);
}

.mmm-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,42,36,0.3);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.mmm-mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile nav links */
.mmm-mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--mmm-forest-deep);
  border-bottom: 1px solid var(--mmm-border);
  transition: color 0.2s;
}

.mmm-mobile-nav__link:hover {
  color: var(--mmm-emerald);
}

.mmm-mobile-nav__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--mmm-forest-deep);
  border-bottom: 1px solid var(--mmm-border);
  width: 100%;
  text-align: left;
}

.mmm-mobile-nav__group-title .m-caret {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: transform 0.3s ease;
}

.mmm-mobile-nav__group-title.open .m-caret {
  transform: rotate(180deg);
}

.mmm-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mmm-mobile-submenu.open {
  max-height: 400px;
}

.mmm-mobile-submenu a {
  display: block;
  padding: 12px 0 12px 20px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--mmm-text-light);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: color 0.2s;
}

.mmm-mobile-submenu a:hover {
  color: var(--mmm-emerald);
}

.mmm-mobile-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mmm-mobile-actions .mmm-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .mmm-nav, .mmm-nav__actions { display: none; }
  .mmm-hamburger { display: flex; }
  .mmm-header__inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  .mmm-logo__name { font-size: 18px; }
  .mmm-logo__tagline { font-size: 9px; }
  .mmm-logo__img { height: 42px; }
  .mmm-mobile-menu { padding: 90px 24px 32px; max-width: 100%; }
}

/* Override WordPress/Theme default list margins to fix vertical alignment */
.mmm-nav__list {
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

/* Create an invisible bridge to fix the dropdown hover gap */
.mmm-dropdown::after {
  content: '';
  position: absolute;
  top: -20px; 
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

/* ============================================
   MASS MEDICAL MISSION — PREMIUM FOOTER
   Palette: botanical dark greens, sage, gold
   ============================================ */

/* (We don't need the global reset here because WordPress handles it, 
   and your root variables are mostly already defined in the header, 
   but we will keep the footer-specific ones) */

:root {
  --footer-bg:        #0a1610;
  --divider:          rgba(216,234,209,0.08);
  --divider-strong:   rgba(216,234,209,0.14);
  --link-idle:        rgba(216,234,209,0.50);
  --link-hover:       #d8ead1; /* Soft sage */
}

/* ---------- FOOTER WRAPPER ---------- */
.mmm-footer {
  background: var(--footer-bg);
  color: var(--link-idle);
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 1.05rem; /* INCREASED */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 10; /* Ensures it sits above any theme backgrounds */
}

.mmm-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  box-shadow: none !important; /* Overrides WP default link underlines */
}
.mmm-footer a:hover,
.mmm-footer a:focus-visible {
  color: var(--link-hover);
}

/* ---------- INNER CONTAINER ---------- */
.mmm-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 0;
}

/* ===== TOP SECTION: brand + columns ===== */
.mmm-footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.95fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--divider);
}

/* -- Brand Block -- */
.mmm-footer__brand-name {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.7rem; /* INCREASED */
  letter-spacing: 0.02em;
  color: #f8faf8;
  line-height: 1.3;
  margin-bottom: 18px;
}
.mmm-footer__brand-name span {
  display: block;
  font-size: 0.75rem; /* INCREASED */
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8923a;
  margin-top: 4px;
}

.mmm-footer__mission {
  font-size: 1rem; /* INCREASED */
  line-height: 1.72;
  color: rgba(216,234,209,0.38);
  max-width: 300px;
  margin-bottom: 28px;
}

.mmm-footer__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem; /* INCREASED */
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8923a !important;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184,146,58,0.25);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.mmm-footer__cta-link:hover {
  border-color: #b8923a;
  color: #b8923a !important;
}
.mmm-footer__cta-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.mmm-footer__cta-link:hover svg {
  transform: translateX(3px);
}

/* -- Column Headings -- */
.mmm-footer__heading {
  font-family: 'Outfit', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem; /* INCREASED */
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216,234,209,0.30);
  margin-bottom: 22px;
}

/* -- Link Lists -- */
.mmm-footer__links {
  list-style: none;
  padding-left: 0 !important; /* Overrides WP lists */
  margin-left: 0 !important;
}
.mmm-footer__links li {
  padding: 0 !important;
}
.mmm-footer__links li + li {
  margin-top: 12px;
}
.mmm-footer__links a {
  font-size: 1.05rem; /* INCREASED */
  font-weight: 300;
}

/* ===== CONTACT ROW ===== */
.mmm-footer__contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--divider);
}

.mmm-footer__contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.mmm-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem; /* INCREASED */
}
.mmm-footer__contact-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  flex-shrink: 0;
}

.mmm-footer__social {
  display: flex;
  gap: 16px;
}
.mmm-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--divider-strong);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.mmm-footer__social a:hover {
  border-color: rgba(216,234,209,0.28);
  background: rgba(216,234,209,0.04);
}
.mmm-footer__social a svg {
  width: 15px;
  height: 15px;
  fill: var(--link-idle);
  transition: fill 0.3s ease;
}
.mmm-footer__social a:hover svg {
  fill: var(--link-hover);
}

/* ===== BOTTOM BAR ===== */
.mmm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 40px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem; /* INCREASED */
  color: rgba(216,234,209,0.22);
  letter-spacing: 0.01em;
}
.mmm-footer__bottom a {
  color: rgba(216,234,209,0.30);
}
.mmm-footer__bottom a:hover {
  color: rgba(216,234,209,0.55);
}
.mmm-footer__legal-links {
  display: flex;
  gap: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .mmm-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 36px;
  }
  .mmm-footer__brand-col {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .mmm-footer__inner { padding: 56px 24px 0; }
  .mmm-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mmm-footer__brand-col { max-width: none; }
  .mmm-footer__contact-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .mmm-footer__contact-items {
    flex-direction: column;
    gap: 16px;
  }
  .mmm-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px;
    gap: 8px;
  }
}