/* ===== MIND ROOTS AFRICA ===== */

/* --- Self-hosted brand fonts --- */
@font-face {
  font-family: 'Donau';
  src: url('/assets/fonts/donau-uppercase-neue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Antic';
  src: url('/assets/fonts/antic-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/futura-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shadows Into Light';
  src: url('/assets/fonts/shadows-into-light.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage: #699992;
  --sage-mist: #A9C5BF;
  --deep-teal: #1F3733;
  --clay: #B85C38;
  --rosewood: #C98E72;
  --blush: #E2C4AF;
  --stone: #5C6962;
  --smoke: #9AA39C;
  --ash: #DDD9D0;
  --petal: #F4ECE6;
  --paper: #FBF6F2;
  --white: #FFFFFF;
  --font-display: 'Donau', 'Futura', 'Helvetica Neue', sans-serif;
  --font-heading: 'Futura', 'Helvetica Neue', sans-serif;
  --font-body: 'Antic', Georgia, serif;
  --font-accent: 'Shadows Into Light', cursive;
  --nav-height: 72px;
  --container: 1100px;
  --radius: 20px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  color: var(--deep-teal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; }

/* --- Typography --- */
h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
}
h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  display: inline-block;
}
.accent-text {
  font-family: var(--font-accent);
  font-style: normal;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--deep-teal); color: var(--petal); }
.btn-primary:hover { background: var(--sage); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(31, 55, 51, 0.18); }
.btn-outline { background: transparent; color: var(--deep-teal); border: 1.5px solid var(--ash); }
.btn-outline:hover { border-color: var(--deep-teal); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1ead56; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.2); }

/* ======================== */
/*       NAVIGATION         */
/* ======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(251, 246, 242, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(221, 217, 208, 0.5);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 50px; width: auto; }
.nav-logo span {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 400;
  color: var(--deep-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--deep-teal); }
.nav-cta .btn { padding: 10px 24px; font-size: 13px; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--deep-teal); transition: all 0.3s; display: block; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ======================== */
/*          HERO            */
/* ======================== */
.hero {
  padding: 180px 0 140px;
  text-align: center;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  max-width: 750px;
  margin: 0 auto 24px;
}
.hero h1 em {
  font-family: var(--font-accent);
  font-style: normal;
  color: var(--sage);
  text-transform: none;
  letter-spacing: 0;
}
.hero-sub {
  font-size: 18px;
  color: var(--stone);
  margin-top: 32px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ======================== */
/*     SERVICE BENTO        */
/* ======================== */
.services { padding: 100px 0; background: var(--white); }
.services-header {
  margin-bottom: 56px;
}
.services-header .eyebrow { margin-bottom: 16px; }
.services-header h2 { max-width: 400px; }

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento-card {
  border-radius: var(--radius);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(31, 55, 51, 0.1);
}
.bento-card--sage { background: var(--sage); color: var(--petal); }
.bento-card--teal { background: var(--deep-teal); color: var(--petal); }
.bento-card--clay { background: var(--clay); color: var(--petal); }
.bento-card--petal { background: var(--petal); color: var(--deep-teal); }
.bento-card--full { grid-column: 1 / -1; }

.bento-number {
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.08;
  position: absolute;
  top: 20px;
  right: 32px;
}
.bento-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
  position: relative;
}
.bento-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 400px;
}
.bento-expand-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease, background 0.3s;
}
.bento-card:hover .bento-expand-icon { background: rgba(255,255,255,0.25); }
.bento-card--petal .bento-expand-icon { background: rgba(31, 55, 51, 0.08); }
.bento-card--petal:hover .bento-expand-icon { background: rgba(31, 55, 51, 0.12); }
.bento-expand-icon svg {
  width: 18px; height: 18px;
  transition: transform 0.4s ease;
}
.bento-card.expanded .bento-expand-icon svg { transform: rotate(45deg); }

/* Collapsible detail panel */
.bento-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  padding: 0;
}
.bento-card.expanded .bento-detail {
  max-height: 600px;
  opacity: 1;
  padding: 28px 0 0;
}
.bento-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.bento-detail h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 12px;
  font-weight: 500;
}
.bento-detail ul li {
  font-size: 14px;
  padding: 5px 0;
  opacity: 0.85;
  line-height: 1.55;
}
.bento-detail-divider {
  height: 1px;
  background: currentColor;
  opacity: 0.1;
  margin-bottom: 24px;
}

/* ======================== */
/*         ABOUT            */
/* ======================== */
.about { padding: 140px 0; }
.about-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}

/* Blob-masked photo */
.about-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-photo svg { width: 100%; max-width: 420px; height: auto; }

/* Decorative blob behind */
.about-blob-bg {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  background: var(--sage-mist);
  opacity: 0.25;
  z-index: 0;
  animation: blobMorph 12s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%; }
  33% { border-radius: 40% 60% 50% 50% / 60% 40% 50% 60%; }
  66% { border-radius: 60% 50% 40% 60% / 40% 50% 60% 40%; }
}

.about-content { }
.about-content .eyebrow { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 24px; }
.about-text {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-meta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--ash);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.about-meta-item { }
.about-meta-label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
  margin-bottom: 4px;
}
.about-meta-value {
  font-size: 15px;
  color: var(--deep-teal);
}

/* ======================== */
/*       PHILOSOPHY         */
/* ======================== */
.philosophy {
  padding: 100px 0;
  background: var(--deep-teal);
  color: var(--petal);
  text-align: center;
}
.philosophy-inner { max-width: 680px; margin: 0 auto; }
.philosophy blockquote {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
  text-wrap: balance;
}
.philosophy cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage-mist);
  font-weight: 500;
}

/* ======================== */
/*        CONTACT           */
/* ======================== */
.contact { padding: 120px 0; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left .eyebrow { margin-bottom: 16px; }
.contact-left h2 { margin-bottom: 20px; }
.contact-intro {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-right {
  background: var(--petal);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(221, 217, 208, 0.7);
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--sage);
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-label {
  font-family: var(--font-heading);
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--smoke);
  font-weight: 500; margin-bottom: 3px;
}
.contact-value { font-size: 15px; color: var(--deep-teal); }
.contact-value a { color: var(--sage); transition: color 0.25s; }
.contact-value a:hover { color: var(--clay); }

/* ======================== */
/*         FOOTER           */
/* ======================== */
.footer {
  background: var(--deep-teal);
  color: var(--petal);
  padding: 52px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(169, 197, 191, 0.12);
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--sage-mist); max-width: 260px; line-height: 1.6; opacity: 0.7; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sage-mist);
  margin-bottom: 16px; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--petal);
  opacity: 0.6; padding: 4px 0; transition: opacity 0.25s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}
.footer-bottom p,
.footer-bottom a { font-size: 12px; color: var(--sage-mist); opacity: 0.45; }
.footer-bottom a:hover { opacity: 0.8; }

/* ======================== */
/*       ANIMATIONS         */
/* ======================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

/* ======================== */
/*       RESPONSIVE         */
/* ======================== */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-detail-inner { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-photo svg { max-width: 300px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 20px; }
  .nav-links.open .nav-cta { display: block; margin-left: 0; margin-top: 12px; }
  .hero { padding: 140px 0 100px; }
  .hero h1 { font-size: 2.4rem; }
  .bento-card { min-height: 260px; padding: 32px 28px; }
  .about-meta { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
