/* ============================================================
   Mana Holistic Wellness — Stylesheet
   ============================================================ */

/* ---------- Fonts ----------
   Editorial pairing: Cormorant Garamond (display serif) for headings,
   Inter (humanist sans) for body/UI. Calibri kept only as a fallback.
   ------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (warm earthy neutrals) */
  --primary-teal: #3a352e;   /* ink — headings & strong text */
  --secondary-teal: #7d8467; /* olive — links, accents, buttons */
  --light-teal: #9aa080;     /* light olive — hovers */
  --accent-teal: #b08968;    /* clay — warm accent */
  --deep-teal: #2c2822;      /* deep espresso — dark surfaces */

  /* Backwards-compatible aliases (legacy --*-green references) */
  --primary-green: var(--primary-teal);
  --secondary-green: var(--secondary-teal);
  --light-green: var(--light-teal);
  --accent-green: var(--accent-teal);

  /* Neutrals */
  --cream: #f4efe7;
  --soft-cream: #fbf8f2;
  --white: #ffffff;
  --text-dark: #3a352e;
  --text-light: #7c7266;
  --border-soft: #e4dccd;

  /* Effects (softer, warmer, flatter) */
  --shadow-sm: 0 1px 2px rgba(58, 53, 46, 0.05);
  --shadow: 0 3px 12px rgba(58, 53, 46, 0.06), 0 1px 3px rgba(58, 53, 46, 0.04);
  --shadow-lg: 0 10px 26px rgba(58, 53, 46, 0.10), 0 3px 8px rgba(58, 53, 46, 0.06);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --header-height: 80px;
}

/* ---------- Base Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, Tahoma, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--primary-teal);
  line-height: 1.2;
}

p { color: var(--text-light); }

a {
  color: var(--secondary-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--light-teal); }

/* ---------- Buttons ---------- */
button,
.btn-primary,
.btn-secondary {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--secondary-teal);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: none;
}

button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background: var(--primary-teal);
  box-shadow: none;
}

button:active { transform: translateY(0); }

button:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Disabled / coming-soon buttons */
button:disabled,
button.btn-soon,
.btn-soon {
  background: var(--border-soft);
  color: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.9;
}

button:disabled:hover,
button.btn-soon:hover,
.btn-soon:hover {
  background: var(--border-soft);
  box-shadow: none;
}

/* Coming-soon badge */
.soon-badge {
  display: inline-block;
  background: var(--soft-cream);
  color: var(--primary-teal);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- Header / Navigation ---------- */
header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-soft);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 2rem;
  min-height: var(--header-height);
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-teal);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav {
  flex: 1;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition);
}

nav a:hover {
  color: var(--primary-teal);
  background-color: rgba(125, 132, 103, 0.12);
}

nav a.active {
  color: var(--white);
  background: var(--secondary-teal);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--primary-teal);
  font-size: 1.6rem;
  padding: 0.25rem 0.75rem;
  box-shadow: none;
}

.mobile-menu-toggle:hover {
  background: rgba(125, 132, 103, 0.12);
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(176, 137, 104, 0.12), transparent 55%),
    radial-gradient(circle at 85% 78%, rgba(125, 132, 103, 0.14), transparent 55%),
    linear-gradient(135deg, #efe6d8 0%, #f7f2ea 100%);
  color: var(--text-dark);
  padding: 7rem 2rem;
  text-align: center;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.06) 0%, transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 25%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
  color: var(--primary-teal);
  font-weight: 600;
  text-shadow: none;
  position: relative;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  max-width: 640px;
  color: var(--text-light);
  position: relative;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero button {
  background: var(--secondary-teal);
  color: var(--white);
  font-weight: 500;
  padding: 14px 34px;
  font-size: 1rem;
}

.hero button:hover {
  background: var(--primary-teal);
  color: var(--white);
}

.hero a:nth-of-type(2) button {
  background: transparent;
  border: 1.5px solid var(--primary-teal);
  color: var(--primary-teal);
}

.hero a:nth-of-type(2) button:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: var(--white);
}

/* ---------- Sections ---------- */
section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 2rem;
}

section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1.25rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--secondary-teal), var(--accent-teal));
}

section h3 {
  color: var(--secondary-teal);
  font-size: 1.6rem;
  margin-top: 2rem;
}

/* ---------- Cards ---------- */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

/* Quick-access CTA: balanced, centered 2x2 grid */
#quick-access .cards-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--secondary-teal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-teal), var(--accent-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { transform: scaleX(1); }

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-teal);
  font-size: 1.4rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.card p:last-child { margin-bottom: 0; }

.card > a:last-child {
  margin-top: auto;
  align-self: flex-start;
}

.card > .card-cta:last-child {
  margin-top: auto;
}

.card .promo-code {
  background-color: var(--cream);
  border: 1px dashed var(--secondary-teal);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary-teal);
  text-align: center;
  margin: 0.75rem 0 1rem;
  letter-spacing: 1px;
  font-family: Calibri, 'Carlito', 'Segoe UI', monospace;
}

/* ---------- Program cards (programs.html) ---------- */
.program-card {
  display: flex;
  flex-direction: column;
}

.program-card h3 { margin-bottom: 0.75rem; }

.program-card .program-icon {
  margin-bottom: 0.6rem;
  line-height: 1;
  color: var(--secondary-teal);
}

.program-meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.75rem 0;
}

.program-meta li {
  padding: 0.25rem 0;
}

.program-meta strong {
  color: var(--primary-teal);
  font-weight: 600;
  margin-right: 0.35rem;
}

.program-card a {
  margin-top: auto;
  align-self: flex-start;
}

.program-card-custom {
  background: linear-gradient(135deg, var(--soft-cream), var(--cream));
  border-top: 4px solid var(--accent-teal);
}

/* ---------- Service Categories (circles on home) ---------- */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.category-item {
  text-align: center;
  flex: 0 0 150px;
}

.category-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 6px 18px rgba(58, 53, 46, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--secondary-teal);
}

.category-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(58, 53, 46, 0.16);
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-circle img.breathwork-image {
  object-position: center 35%;
}

.category-item h3 {
  color: var(--primary-teal);
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Gallery filters ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  max-width: 800px;
}

.filter-chip {
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--border-soft);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-chip:hover {
  background: var(--soft-cream);
  border-color: var(--secondary-teal);
  transform: none;
  color: var(--primary-teal);
}

.filter-chip.active {
  background: var(--secondary-teal);
  color: var(--white);
  border-color: transparent;
}

/* ---------- Gallery ---------- */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

/* Empty post slot — visible while no real embed has been pasted in */
.post-placeholder {
  background: var(--white);
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-light);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: border-color var(--transition);
}

.post-placeholder:hover { border-color: var(--secondary-teal); }

.post-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.post-placeholder-icon svg {
  width: 46px;
  height: 46px;
  stroke: var(--secondary-teal);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-placeholder strong {
  color: var(--primary-teal);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.post-placeholder small {
  color: var(--text-light);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Make embedded social posts sit nicely in the grid */
.gallery-item .instagram-media,
.gallery-item .fb-post,
.gallery-item .fb-post > span {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.gallery-item {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img,
.gallery-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--secondary-teal), var(--light-teal));
}

.gallery-placeholder.alt-1 { background: linear-gradient(135deg, var(--light-teal), var(--accent-teal)); }
.gallery-placeholder.alt-2 { background: linear-gradient(135deg, var(--primary-teal), var(--deep-teal)); }

.gallery-item-caption { padding: 1.5rem; }
.gallery-item-caption p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }
.gallery-item-caption strong { color: var(--primary-teal); display: block; margin-bottom: 0.4rem; font-size: 1.05rem; }

/* ---------- Sponsors ---------- */
#sponsors {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(42, 95, 111, 0.02));
}

#sponsors h2 {
  color: var(--primary-teal);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-intro {
  color: #666666;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: stretch;
  justify-items: center;
  padding: 2rem 0;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 220px;
  gap: 0.75rem;
}

.sponsor-card {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  padding: 1rem;
}

.sponsor-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Real-logo image, sits on top of the wordmark fallback. If the file is missing,
   onerror in the HTML hides this and the wordmark below shows through. */
.sponsor-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: inherit;
}

.sponsor-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  z-index: 0;
  position: relative;
  font-family: Calibri, 'Carlito', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
}

/* Brand themes — colors approximate each partner's identity. Swap out by
   placing a real logo at assets/images/sponsors/<name>.png — see HTML. */
.sponsor-pruvit {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: #ff6a35;
}
.sponsor-pruvit .sponsor-wordmark {
  font-weight: 800;
  letter-spacing: 6px;
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.sponsor-pruvit .sponsor-wordmark::after {
  content: 'KETO//OS';
  display: block;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: #ff6a35;
  margin-top: 0.4rem;
  font-weight: 500;
}

.sponsor-doterra {
  background: linear-gradient(135deg, #244530, #2d5341);
  color: #f0e5c3;
}
.sponsor-doterra .sponsor-wordmark {
  font-family: Calibri, 'Carlito', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: #f0e5c3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sponsor-arbonne {
  background: linear-gradient(135deg, #f5e8e6, #edd9d5);
  color: #3d2420;
}
.sponsor-arbonne .sponsor-wordmark {
  font-family: Calibri, 'Carlito', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: 5px;
  font-size: 1.25rem;
  color: #3d2420;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.sponsor-halfmoon {
  background: linear-gradient(135deg, #244240, #305655);
  color: #e5d9c8;
}
.sponsor-halfmoon .sponsor-wordmark {
  font-family: Calibri, 'Carlito', 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1.35rem;
  color: #e5d9c8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sponsor-boutique {
  background: linear-gradient(135deg, #365263, #4a7085);
  color: #f0deb5;
}
.sponsor-boutique .sponsor-wordmark {
  font-family: Calibri, 'Carlito', 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  color: #f0deb5;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sponsor-partner {
  background: linear-gradient(135deg, #f0f8fa, #e8f3f7);
  color: var(--primary-teal);
  border: 2px dashed var(--secondary-teal);
  position: relative;
  overflow: hidden;
}

.sponsor-partner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.sponsor-partner .sponsor-wordmark {
  color: var(--primary-teal);
  letter-spacing: 3px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.sponsor-partner:hover {
  background: linear-gradient(135deg, #e8f3f7, #deeef3);
  border-color: var(--primary-teal);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -10px); }
}

.sponsor-name {
  font-weight: 500;
  color: var(--secondary-teal);
  font-size: 0.95rem;
}

.sponsor-item a.sponsor-name-link {
  font-weight: 500;
  color: var(--secondary-teal);
  transition: color var(--transition);
}

.sponsor-item a.sponsor-name-link:hover {
  color: var(--primary-teal);
  text-decoration: underline;
}

.sponsor-description {
  font-size: 0.85rem;
  color: #888888;
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-teal);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--soft-cream);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(125, 132, 103, 0.16);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(135deg, #efe6d8 0%, #f4efe7 100%);
  color: var(--text-dark);
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  background-color: rgba(125, 132, 103, 0.1);
  border: 1px solid var(--border-soft);
  transition: background-color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  color: var(--text-dark);
  background-color: rgba(125, 132, 103, 0.18);
  transform: translateY(-2px);
}

/* ---------- Social / inline icons ---------- */
.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  fill: currentColor;
  flex-shrink: 0;
}

button .icon,
.btn-with-icon .icon {
  margin-right: 0.5rem;
  vertical-align: -0.18em;
}

.btn-with-icon button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.footer-divider {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.footer-divider p {
  color: var(--text-light);
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.7s ease-out both; }

/* ---------- Helpers ---------- */
.section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.cta-block {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--soft-cream), var(--cream));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.cta-block p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.info-card {
  margin-top: 3rem;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.info-card h3 { text-align: center; margin-top: 0; }
.info-card p  { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  nav.active { display: block; }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  nav ul li { width: 100%; }
  nav a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  .hero { padding: 4.5rem 1.25rem; min-height: 460px; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .hero-buttons a { display: block; }
  .hero button { width: 100%; }

  section { padding: 3rem 1.25rem; }

  .cards-container,
  #quick-access .cards-container,
  .gallery-container { grid-template-columns: 1fr; }

  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form { padding: 1.75rem 1.25rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid > div { width: 100%; }

  /* Improve contact section spacing on tablet/mobile */
  #contact > .contact-grid > div > div {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .logo span { font-size: 1.1rem; }
  .logo-img { height: 42px; }

  section h3 { font-size: 1.3rem; }

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

  /* Contact: stack social buttons (Instagram/Facebook) on small screens.
     We switch the .social-pair container to plain block layout to avoid
     ANY flex weirdness — flex column with grow/basis was producing huge
     vertical gaps between the two buttons. With block + margin, each
     <a> takes its natural height and we get a clean 0.75rem space. */
  .social-pair { display: block !important; }
  .social-pair > a {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }
  .social-pair > a + a { margin-top: 0.75rem !important; }
  .social-pair > a > button { width: 100%; }

  #contact .contact-form { padding: 1.5rem 1rem; }

  /* Better contact section layout on small screens */
  .contact-grid > div > div { margin-bottom: 1rem; }
  .contact-grid > div h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
}

/* ============================================================
   Contact page layout (was inline in contact.html)
   NOTE: the desktop 2-column rule is wrapped in a min-width
   media query so it never overrides the mobile 1fr rule above.
   Without this, the source-order cascade made iPhones (where
   only the @max-width queries should apply) keep the 2-column
   layout, squeezing the contact form into a tiny right column.
   ============================================================ */
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  /* Default: 1 column. Desktop override below. */
  grid-template-columns: 1fr;
}

@media (min-width: 769px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.social-pair {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-pair > a {
  flex: 1 1 140px;
  min-width: 0;
}

.social-pair button {
  width: 100%;
  white-space: nowrap;
}

/* ============================================================
   Language switcher (FR | EN)
   ============================================================ */
.lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-soft);
  margin-left: auto;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  color: var(--text-light);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  box-shadow: none;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  background: rgba(42, 95, 111, 0.08);
  color: var(--primary-teal);
  transform: none;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--secondary-teal), var(--primary-teal));
  color: var(--white);
}

.lang-sep {
  color: var(--border-soft);
  font-weight: 300;
}

@media (max-width: 900px) {
  .navbar {
    gap: 1rem;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding: 0.35rem 0.6rem;
    flex-shrink: 0;
  }
}

/* Show/hide content based on the active language attribute on <html>.
   Only applies to elements that have ONE of data-fr or data-en (not both).
   Elements with BOTH data-fr and data-en have their text swapped by JS. */
[data-lang="fr"] [data-en]:not([data-fr]) { display: none; }
[data-lang="en"] [data-fr]:not([data-en]) { display: none; }

/* ============================================================
   Pillar grid (services.html — 7 strategic pillars)
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.pillar-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-teal);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-card .pillar-icon {
  margin-bottom: 0.9rem;
  line-height: 1;
  color: var(--secondary-teal);
}

.pillar-card .pillar-icon svg,
.program-card .program-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--secondary-teal);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-icon {
  width: 1.15em;
  height: 1.15em;
  stroke: var(--secondary-teal);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.pillar-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-teal);
}

.pillar-card .pillar-services {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.pillar-card .pillar-services li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.pillar-card .pillar-services li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 700;
}

.pillar-card .pillar-note {
  background: var(--soft-cream);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--accent-teal);
}

.pillar-card a {
  margin-top: auto;
  align-self: flex-start;
}
