/* ==========================================================================
   Vibrant Sino Ventures — design system
   Deep blue + white, with red reserved for calls to action and highlights.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #04101f;
  --navy-900: #071a31;
  --navy-850: #08213c;
  --navy-800: #0a2240;
  --navy-700: #123a6b;
  --navy-600: #1b4c8c;
  --blue-600: #1b5fbf;
  --blue-500: #2f79d8;
  --blue-300: #8ab4f0;
  --blue-100: #dfeafb;
  --blue-50:  #f2f6fd;

  --red-700: #ab1424;
  --red-600: #c81a2c;
  --red-500: #d91e2e;
  --red-100: #fde8ea;

  /* Neutrals */
  --ink-900: #0b1524;
  --ink-700: #2b3a4e;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line:    #e3e8ef;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef3f9;

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Space & shape */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 7.5vw, 7rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(10, 34, 64, .06);
  --shadow-sm: 0 2px 8px rgba(10, 34, 64, .06), 0 1px 2px rgba(10, 34, 64, .04);
  --shadow-md: 0 10px 28px rgba(10, 34, 64, .09), 0 2px 6px rgba(10, 34, 64, .05);
  --shadow-lg: 0 22px 54px rgba(8, 33, 60, .16), 0 6px 14px rgba(10, 34, 64, .06);
  --shadow-nav: 0 6px 24px rgba(8, 33, 60, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 82px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-600); text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.85rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.08rem; }
p  { text-wrap: pretty; }

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

::selection { background: var(--navy-800); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--muted { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line-soft); }

.section--navy {
  background: linear-gradient(160deg, var(--navy-850) 0%, var(--navy-950) 100%);
  color: #cddaea;
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------- section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--red-500); border-radius: 2px;
}
.section--navy .eyebrow { color: #ff8d97; }
.section--navy .eyebrow::before { background: #ff8d97; }

.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p {
  margin-top: 1rem; font-size: 1.06rem; color: var(--ink-600);
}
.section--navy .section-head p { color: #a9bdd6; }

.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; max-width: none;
}
.section-head--split > div:first-child { max-width: 660px; }
@media (max-width: 860px) {
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

.text-highlight { color: var(--blue-600); }
.section--navy .text-highlight,
.hero .text-highlight { color: #79b0ff; }

/* ------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn i, .btn svg { font-size: .95em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--red-500); --btn-bd: var(--red-500); }
.btn--primary:hover { --btn-bg: var(--red-600); --btn-bd: var(--red-600);
  box-shadow: 0 14px 30px rgba(200, 26, 44, .3); }

.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-50); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--navy-800); --btn-bg: var(--navy-800); --btn-fg: #fff; }

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }

.btn--whatsapp { --btn-bg: #1faa53; --btn-bd: #1faa53; }
.btn--whatsapp:hover { --btn-bg: #178f44; --btn-bd: #178f44; }

.btn--sm { padding: .62rem 1.15rem; font-size: .85rem; }
.btn--lg { padding: 1.08rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--navy-800);
}
.link-more i { transition: transform .25s var(--ease); color: var(--red-500); }
.link-more:hover i { transform: translateX(5px); }

/* -------------------------------------------------------------- cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(10, 34, 64, .22);
  transition: transform .35s var(--ease);
}
.card:hover .card__icon { transform: translateY(-3px) rotate(-4deg); }
.card__title { margin-bottom: .6rem; }
.card__text { color: var(--ink-600); font-size: .97rem; }
.card__foot { margin-top: 1.25rem; }

.card--accent::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--navy-700));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card--accent:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------- media card */
.media-card {
  position: relative; /* anchors the quote-list toggle */
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.media-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.media-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.media-card:hover .media-card__media img { transform: scale(1.07); }
.media-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 16, 31, .62), rgba(4, 16, 31, .04) 55%);
  opacity: .85; transition: opacity .35s var(--ease);
}
.media-card:hover .media-card__media::after { opacity: 1; }

.media-card__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .93); color: var(--navy-800);
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}
.media-card__tag--accent { background: var(--red-500); color: #fff; }
.media-card__tag--br { top: auto; left: auto; right: 1rem; bottom: 1rem; }

.media-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.media-card__body h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.media-card__body p { color: var(--ink-600); font-size: .94rem; flex: 1; }
.media-card__body .link-more { margin-top: 1.1rem; }

.media-card__meta {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-500);
}
.media-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.media-card__meta i { color: var(--blue-600); }

/* ------------------------------------------------------------- badges */
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem; border-radius: var(--r-pill);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  color: var(--navy-700);
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
}
.pill i { color: var(--red-500); }
.pill--light {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff;
}
.pill--light i { color: #ff8d97; }

.tick-list { display: grid; gap: .75rem; }
.tick-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .97rem; color: var(--ink-600);
}
.tick-list i {
  flex: none; margin-top: .32rem; font-size: .85rem;
  color: var(--red-500);
}
.section--navy .tick-list li { color: #b8c9dd; }
.section--navy .tick-list i { color: #ff8d97; }

/* ------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(26px); }
.js-ready .reveal {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}
