/* ==========================================================================
   Mem Enterprise — Main Stylesheet
   Pastel, vector-first design system
   ========================================================================== */

:root {
  /* Pastel palette */
  --lavender: #EDE7F6;
  --lavender-deep: #B8A9DC;
  --mint: #E1F5EC;
  --mint-deep: #A3D9BF;
  --peach: #FFEEE3;
  --peach-deep: #F3B79D;
  --sky: #E1EFFB;
  --sky-deep: #A6CDE9;
  --blush: #FBE7EE;
  --blush-deep: #E7A9BF;

  --bg: #FBFAFD;
  --surface: #FFFFFF;
  --ink: #3A3550;
  --ink-soft: #6B6480;
  --border: #ECE7F5;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 45px -25px rgba(90, 76, 130, 0.25);
  --shadow-card: 0 12px 30px -18px rgba(90, 76, 130, 0.22);

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Nunito Sans", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; color: var(--ink-soft); }

a { color: var(--lavender-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  background: var(--lavender);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--lavender-deep), var(--sky-deep));
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { box-shadow: 0 18px 34px -16px rgba(90,76,130,0.4); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--lavender-deep); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 253, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand svg { width: 42px; height: 42px; }
.brand .brand-sub {
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--lavender-deep);
  transition: width 0.25s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { width: 100%; }
nav.main-nav a:hover { text-decoration: none; }
nav.main-nav a.active { color: var(--lavender-deep); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--lavender);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  border-radius: 2px;
}

@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .nav-cta .btn-primary { display: none; }
  .menu-toggle { display: flex; }

  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }
  nav.main-nav.open ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  nav.main-nav.open li { border-top: 1px solid var(--border); }
  nav.main-nav.open a { display: block; padding: 14px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-art { position: relative; }
.hero-blob {
  position: absolute;
  z-index: 0;
  filter: blur(0.5px);
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  color: var(--ink);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Sections generic ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 52px; }

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .icon-badge { margin-bottom: 20px; }

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 30px; height: 30px; }
.bg-lavender { background: var(--lavender); }
.bg-mint { background: var(--mint); }
.bg-peach { background: var(--peach); }
.bg-sky { background: var(--sky); }
.bg-blush { background: var(--blush); }

.alt-surface { background: var(--surface); }
.section-lavender { background: var(--lavender); }
.section-mint { background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); }
.section-sky { background: var(--sky); }

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.step-num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lavender-deep);
  background: var(--lavender);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---------- Quote / callout ---------- */
.callout {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.callout svg { flex-shrink: 0; width: 96px; height: 96px; }

@media (max-width: 700px) {
  .callout { flex-direction: column; text-align: center; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--sky) 60%, var(--mint) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Timeline (About) ---------- */
.timeline {
  border-left: 2px dashed var(--lavender-deep);
  padding-left: 32px;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sky-deep);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--lavender-deep);
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-year {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lavender-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Values grid ---------- */
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .icon-badge { flex-shrink: 0; }

/* ---------- Team / person card ---------- */
.person-card {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.person-card .avatar { width: 130px; height: 130px; flex-shrink: 0; }
@media (max-width: 620px) { .person-card { flex-direction: column; text-align: center; } }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon-badge { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; }
.contact-detail .icon-badge svg { width: 22px; height: 22px; }
.contact-detail h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-detail p { margin: 0; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

form.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--lavender-deep);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #E7E3F2;
  padding: 64px 0 28px;
}
footer a { color: #E7E3F2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; }
.footer-brand svg { width: 38px; height: 38px; }
footer p { color: #C8C2DC; }
footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer ul a { color: #C8C2DC; font-size: 0.92rem; }
footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #A7A0C2;
}
.footer-bottom a { color: #A7A0C2; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 999;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner svg { width: 44px; height: 44px; flex-shrink: 0; }
.cookie-text { flex: 1; }
.cookie-text p { margin: 0; font-size: 0.9rem; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 18px; font-size: 0.85rem; }

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Legal pages ---------- */
.legal-page { max-width: 780px; margin: 0 auto; }
.legal-page h2 { margin-top: 2em; }
.legal-page h3 { margin-top: 1.6em; }
.legal-page ul { color: var(--ink-soft); padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-updated {
  display: inline-block;
  background: var(--lavender);
  color: var(--lavender-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0 44px;
}
.legal-toc h4 { margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--lavender-deep); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: 60px 0 20px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ---------- Breadcrumb-ish ---------- */
.crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumb a { color: var(--ink-soft); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
