/* =================================================================
   MANGO STUDIO — Design System
   Based on the Final Branding deck:
   - Warm mango base, plum headings, mango-orange CTAs, ink body text
   - Viga (display/logo) + Poppins (round, human, readable body)
   - Organic / fluid shapes, lots of breathing space
   - No stock photos -> clearly marked placeholder frames
   ================================================================= */

:root {
  /* Core palette (Final Branding) */
  --mango-yellow: #ffc250;   /* primary accent / warm base */
  --mango-soft:   #ffce6e;   /* lighter warm */
  --mango-orange: #f97316;   /* CTAs / buttons / logo */
  --mango-orange-dark: #e2620a;
  --plum:         #5b2b6e;   /* headings / eyebrows on warm bg */
  --plum-soft:    #7a4b8c;
  --ink:          #1f2430;   /* body text */
  --charcoal:     #111827;
  --off-white:    #fffcf7;   /* page background */
  --paper:        #ffffff;

  /* Secondary pastels */
  --leaf:  #aee5c6;
  --sky:   #ddeeff;
  --lilac: #e8d9ff;
  --coral: #ffc8c2;

  /* Functional */
  --line: rgba(31, 36, 48, 0.12);
  --line-strong: rgba(31, 36, 48, 0.22);
  --shadow-sm: 0 2px 10px rgba(91, 43, 110, 0.08);
  --shadow-md: 0 14px 40px rgba(91, 43, 110, 0.12);
  --shadow-lg: 0 24px 70px rgba(91, 43, 110, 0.16);

  /* Type */
  --font-display: "Viga", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing & layout */
  --container: 1180px;
  --radius: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--plum); line-height: 1.12; overflow-wrap: break-word; }
p { margin: 0 0 1rem; }

/* ---------- Typography scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .5px;
}
h1, .h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.3rem); letter-spacing: .5px; }
h2, .h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: .4px; }
h3, .h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink); max-width: 60ch; }
.muted { color: rgba(31,36,48,.7); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stack-lg > * + * { margin-top: 1.4rem; }

/* Section backgrounds */
.bg-mango   { background: var(--mango-yellow); }
.bg-mango h2, .bg-mango h1, .bg-mango .eyebrow { color: var(--plum); }
.bg-paper   { background: var(--paper); }
.bg-leaf    { background: var(--leaf); }
.bg-lilac   { background: var(--lilac); }
.bg-ink     { background: var(--charcoal); color: var(--off-white); }
.bg-ink h2, .bg-ink h3, .bg-ink .eyebrow { color: var(--off-white); }
.bg-ink .muted { color: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: 1rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mango-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--mango-orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.5); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-arrow::after { content: "→"; font-weight: 700; transition: transform .2s ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,252,247,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--mango-orange);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 1.35rem; line-height: 1;
  box-shadow: var(--shadow-sm);
}
.brand__name {
  font-family: var(--font-display); font-size: 1.45rem; color: var(--mango-orange);
  letter-spacing: .5px; line-height: 1;
}
.brand__name small { display:block; font-size: .58rem; letter-spacing: .42em; color: var(--ink); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  padding: .5rem .85rem; border-radius: var(--radius-pill); font-weight: 500;
  color: var(--ink); transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: rgba(91,43,110,.08); color: var(--plum); }
.nav__links a.is-active { color: var(--plum); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
/* On desktop, only the CTA in nav__actions shows; the one inside the link list is for mobile */
.nav__links > .nav__cta { display: none; }

/* Language switcher */
.lang {
  display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  overflow: hidden; background: rgba(255,255,255,.6);
}
.lang button {
  border: 0; background: transparent; padding: .4rem .7rem; font-weight: 600; font-size: .82rem;
  color: var(--ink); letter-spacing: .04em; transition: background .15s, color .15s;
}
.lang button.is-active { background: var(--plum); color: #fff; }

/* Mobile nav */
.nav__toggle {
  display: none; border: 0; background: transparent; padding: .4rem;
  width: 44px; height: 44px; border-radius: 12px;
}
.nav__toggle span { display:block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; margin: 4px auto; transition: .25s; }

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--off-white); padding: 1rem clamp(1.1rem,4vw,2rem) 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 55;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .8rem .9rem; font-size: 1.05rem; }
  .nav__actions .nav__cta { display: none; }
  .nav__links.is-open > .nav__cta { display: inline-flex; margin-top: .6rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-y); overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero__title { color: var(--plum); }
.hero__title em { font-style: normal; color: var(--mango-orange); }
.hero__sub { font-size: clamp(1.05rem,1.7vw,1.3rem); max-width: 56ch; margin-inline: auto; color: var(--ink); }

/* ---------- VSL placeholder (marked, not an image/video) ---------- */
.vsl {
  position: relative; margin: 2.4rem auto 0; max-width: 880px;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  border: 3px dashed var(--plum-soft);
  background:
    repeating-linear-gradient(135deg, rgba(91,43,110,.04) 0 14px, transparent 14px 28px),
    var(--paper);
  display: grid; place-content: center; text-align: center; gap: .6rem; padding: 2rem;
}
.vsl__badge {
  justify-self: center;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem;
  color: var(--plum); background: var(--mango-yellow); padding: .35rem .8rem; border-radius: var(--radius-pill);
}
.vsl__play {
  justify-self: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--mango-orange); display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.vsl__play::after { content: ""; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.vsl__label { font-weight: 600; color: var(--plum); }
.vsl__note { font-size: .85rem; color: rgba(31,36,48,.6); margin: 0; }

/* ---------- Image placeholders (no stock photos) ---------- */
.ph {
  position: relative; border-radius: var(--radius);
  border: 2px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, rgba(31,36,48,.035) 0 12px, transparent 12px 24px),
    rgba(255,255,255,.5);
  display: grid; place-content: center; gap: .4rem; text-align: center; padding: 1.4rem; min-height: 180px;
  color: rgba(31,36,48,.55);
}
.ph svg { opacity: .5; }
.ph__label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.ph--ratio { aspect-ratio: 4 / 3; min-height: 0; }
.ph--wide { aspect-ratio: 16 / 9; min-height: 0; }
.ph--tall { aspect-ratio: 3 / 4; min-height: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--plum); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 1.1rem; font-size: 1.6rem; background: var(--mango-yellow);
}
.card--leaf .card__icon { background: var(--leaf); }
.card--sky .card__icon  { background: var(--sky); }
.card--lilac .card__icon{ background: var(--lilac); }
.card--coral .card__icon{ background: var(--coral); }

.feature-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; }
.feature-list li::before { content: "✓"; color: var(--mango-orange); font-weight: 800; margin-top: .05rem; }

/* ---------- Tool / trust marquee ---------- */
.trust { padding-block: clamp(1.6rem, 3vw, 2.4rem); border-block: 1px solid var(--line); background: var(--paper); }
.trust__label { text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(31,36,48,.55); margin-bottom: 1.2rem; }
.marquee { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1rem; }
.tool-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--off-white); border: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: .95rem;
}
.tool-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mango-orange); }

/* ---------- Stats / metrics ---------- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--mango-orange); line-height: 1; }
.bg-ink .stat__num { color: var(--mango-yellow); }
.stat__label { font-weight: 500; color: inherit; margin-top: .4rem; }

/* ---------- Result cards ---------- */
.result-card { display: flex; flex-direction: column; gap: 1rem; }
.result-card .metrics { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: .4rem 0 .2rem; }
.result-card .metric { min-width: 120px; }
.result-card .metric b { display:block; font-family: var(--font-display); font-size: 1.7rem; color: var(--mango-orange); line-height: 1.1; }
.result-card .metric span { font-size: .85rem; color: rgba(31,36,48,.65); }
.tag { display:inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); background: var(--lilac); padding: .3rem .7rem; border-radius: var(--radius-pill); }
.tag--auto { background: var(--mango-yellow); }
.tag--content { background: var(--coral); }
.link-arrow { font-weight: 600; color: var(--mango-orange); display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Case study (projects) ---------- */
.case { scroll-margin-top: 90px; }
.case + .case { margin-top: clamp(3rem, 6vw, 5rem); }
.case__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.case:nth-child(even) .case__media { order: -1; }
.case__pillars { display: grid; gap: 1rem; margin-top: 1.2rem; }
.case__pillar { background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.case__pillar h4 { color: var(--plum); margin: 0 0 .25rem; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.case__pillar p { margin: 0; }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step__num {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mango-orange); color: #fff; font-family: var(--font-display); font-size: 1.25rem;
}
.step h3 { margin-bottom: .2rem; }

/* ---------- Contact ---------- */
.contact-head { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.contact-head p { max-width: 62ch; margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.contact-main { display: flex; flex-direction: column; }
.contact-main .card { flex: 1; }
.field { margin-bottom: 1rem; }
.field label { display:block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--plum); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--paper); font: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(249,115,22,.3); border-color: var(--mango-orange); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: rgba(31,36,48,.6); }
.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-aside .card { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-chip { display:inline-flex; align-items:center; gap:.5rem; padding:.6rem 1rem; border-radius: var(--radius-pill); background: var(--off-white); border: 1px solid var(--line); font-weight: 600; }
.social-chip:hover { background: var(--mango-yellow); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--off-white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--plum); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--mango-orange); transition: transform .2s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band.bg-mango h2 { color: var(--plum); }
.cta-band .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.78); padding-block: clamp(2.5rem,5vw,3.5rem) 1.5rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--mango-yellow); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.6rem; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: .8rem; }
.site-footer .brand__name { color: var(--mango-yellow); }
.site-footer .brand__name small { color: rgba(255,255,255,.55); }
.site-footer .muted { color: rgba(255,255,255,.6); }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); display:flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Organic decorations ---------- */
.blob { position: absolute; z-index: 1; pointer-events: none; opacity: .9; }
.blob--tr { top: -60px; right: -40px; width: 320px; }
.blob--bl { bottom: -80px; left: -60px; width: 340px; }
.wave-divider { display:block; width: 100%; height: auto; }
.squiggle-bg { position:absolute; inset:0; z-index:0; opacity:.5; pointer-events:none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .case__grid { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  /* Long CTA labels must wrap, never force the page wider than the screen */
  .btn { white-space: normal; text-align: center; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
}
