/* ==========================================================================
   L6P Solutions — Design tokens & base
   ========================================================================== */

:root {
  --brand: #8C288C;
  --brand-dark: #6E1F6E;
  --accent: #C9184A;
  --accent-dark: #A61240;
  --soft: #DCC8DC;
  --alt: #F0C8DC;
  --ink: #332733;
  --ink-soft: rgba(51, 39, 51, 0.68);
  --ink-faint: rgba(51, 39, 51, 0.46);
  --bg: #FFFDFB;
  --white: #ffffff;
  --border: rgba(51, 39, 51, 0.10);
  --shadow-sm: 0 2px 10px rgba(140, 40, 140, 0.08);
  --shadow-md: 0 12px 32px rgba(140, 40, 140, 0.14);
  --shadow-lg: 0 24px 64px rgba(140, 40, 140, 0.18);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;

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

  --container: 1160px;
  --header-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

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

a { color: inherit; text-decoration: none; }

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--brand);
  margin-bottom: 0.6em;
}

.eyebrow::before {
  content: '';
  width: 22px; height: 22px;
  background: var(--heart-icon, none);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--soft);
}
.btn-ghost:hover {
  background: var(--soft);
  border-color: var(--soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 253, 251, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(140,40,140,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo img { height: 80px; width: auto; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--soft); color: var(--brand); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  border: 1.5px solid var(--soft);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 13px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle:hover span { background: var(--brand); }

/* ---------- Sections ---------- */
section { position: relative; padding: 108px 0; }
.bg-soft { background: linear-gradient(180deg, var(--soft) 0%, #E9DCE9 100%); }
.bg-alt { background: linear-gradient(180deg, var(--alt) 0%, #F5DCE9 100%); }
.bg-white { background: var(--bg); }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }

/* decorative dividers between sections */
.wave {
  position: absolute;
  left: 0; width: 100%;
  height: 90px;
  pointer-events: none;
}
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 120px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.hero-cta .micro { font-size: 0.88rem; color: var(--ink-faint); }

.hero-art { position: relative; height: 420px; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card .icon svg { width: 26px; height: 26px; }
.why-card h3 { margin-bottom: 0.4em; }
.why-card p { margin: 0; font-size: 0.98rem; }

/* ---------- Services ---------- */
.service-group { margin-bottom: 56px; }
.service-group:last-child { margin-bottom: 0; }
.service-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.service-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card .icon svg { width: 24px; height: 24px; stroke: var(--brand); }
.service-card:nth-child(3n+1) .icon { background: var(--soft); }
.service-card:nth-child(3n+2) .icon { background: var(--alt); }
.service-card:nth-child(3n+3) .icon { background: #F3E9D9; }
.service-card:nth-child(3n+3) .icon svg { stroke: var(--accent); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.35em; }
.service-card p { font-size: 0.95rem; margin: 0; }

/* single-card groups (FUNDAE) center nicely */
.service-cards.single { grid-template-columns: 1fr; max-width: 420px; }

/* ---------- How we work ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 27px; left: 12%; right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.93rem; }

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.commitments { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.commitments li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 500;
}
.commitments svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.example-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.example-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--alt);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.example-card blockquote {
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-box {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box h2, .contact-box p { color: #fff; }
.contact-box p { color: rgba(255,255,255,0.72); }
.contact-box .section-head { margin-left: auto; margin-right: auto; }
.contact-box .btn-primary { background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand img { height: 60px; width: auto; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 64px 0 96px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-page h1 { font-size: 2.2rem; margin-bottom: 0.3em; }
.legal-page .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2.5em; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-page ul { padding-left: 1.2em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 32px;
}
.back-link:hover { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { height: 280px; order: -1; }
}

@media (max-width: 720px) {
  section { padding: 76px 0; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions { gap: 8px; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-box { padding: 48px 24px; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .site-header.nav-open .main-nav a { padding: 14px 16px; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 80px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
