/* ============================================================
   MONOGRAM CAPITAL LIMITED — Stylesheet
   Fonts: Monument Extended (commercial), Inter, Public Sans, Roboto
   ============================================================ */

/* Monument Extended — place font files in assets/fonts/ */
/* @font-face {
  font-family: 'Monument Extended';
  src: url('../fonts/MonumentExtended-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
} */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@400&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy-dark:   #011545;
  --navy-main:   #213A75;
  --navy-nav:    #586c99;
  --navy-hero-text: #0f2f7a;
  --blue-card:   #365498;
  --gray-light:  #ebebeb;
  --gray-notice: #eaeaea;
  --gray-card:   #e0e0e0;

  --text-white:  #ffffff;
  --text-light:  #e0e0e0;
  --text-medium: #d2d2d2;
  --text-muted:  #c1c1c1;
  --text-gray:   #454545;
  --text-navy:   #203974;

  --font-display: 'Monument Extended', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-body:    'Public Sans', sans-serif;
  --font-form:    'Roboto', sans-serif;

  --nav-height: 72px;
  --section-pad-v: 100px;
  --section-pad-v-sm: 64px;
  --container-max: 1320px;
  --container-pad: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* scroll-behavior géré par Lenis (main.js) — smooth natif retiré pour éviter les conflits */
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-main);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.5' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.10;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--navy-nav);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-white);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 0;
}

.nav__logo img {
  height: 18px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 0.7; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: #021646;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/gradient_hero.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.5;
}

.hero__map {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__map svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  max-width: none;
  height: auto;
  mix-blend-mode: screen;
}
.hero__map path {
  fill: transparent;
  stroke: none;
  pointer-events: none;
}
.hero__map .dot-base {
  fill: rgba(200, 220, 255, 0.18);
  opacity: 0;
  animation: dot-appear 0.08s ease forwards;
  transition: fill 0.15s ease;
}
.hero__map .dot-hover {
  fill: rgba(160, 210, 255, 0.9);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 60px var(--container-pad) 80px;
  width: 100%;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: #eaeaea;
  line-height: 1.7;
  max-width: 480px;
  text-align: center;
}

.hero__tagline strong {
  font-weight: 700;
}

.hero__wordmark {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  user-select: none;
}

.hero__wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-dark {
  background-color: var(--navy-main);
  padding-block: var(--section-pad-v);
}

.section-light {
  background-color: var(--gray-light);
  padding-block: var(--section-pad-v);
}

.section-notice {
  background-color: var(--gray-notice);
  padding-block: var(--section-pad-v);
}

.section__heading {
  font-family: var(--font-heading);
  font-size: 45px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section__heading--dark {
  color: var(--text-gray);
}

.section__subheading {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 24px;
}

.section__subheading--dark {
  color: var(--text-gray);
}

/* ============================================================
   WHO WE ARE
   ============================================================ */
#who-we-are {
  padding-top: 140px;
  padding-bottom: 0;
  overflow: hidden;
}

.who-we-are__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.who-we-are__left {
  padding-bottom: 140px;
}

.who-we-are__right {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.who-we-are__right svg {
  width: 100%;
  height: auto;
  display: block;
}

.who-we-are__right path {
  fill: #001851;
  stroke: none;
  opacity: 0;
  transition: fill 0.15s ease;
}
.who-we-are__right .dot-base {
  animation: dot-appear 0.08s ease forwards;
}
.who-we-are__right .dot-hover {
  fill: rgba(150, 200, 255, 0.85);
}

.who-we-are__body {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 30px;
}

/* ============================================================
   INVESTMENT FOCUS (ACCORDION)
   ============================================================ */
.investment-focus__lead {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.accordion {
  border-top: 1px solid #ccc;
}

.accordion__item {
  border-bottom: 1px solid #ccc;
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  background: none;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.accordion__header:hover { color: var(--navy-main); }

.accordion__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-main);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.accordion__item.open .accordion__icon { transform: rotate(45deg); }

.accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion__item.open .accordion__body { max-height: 300px; }

.accordion__body p {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.7;
  padding-bottom: 28px;
  max-width: 820px;
}

/* ============================================================
   CLIENTS
   ============================================================ */
#clients {
  padding-block: 0;
  padding-top: 60px;
  overflow: hidden;
}

.clients__inner {
  position: relative;
  overflow: hidden;
  padding: 60px 72px 100px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.clients__tree-wrap {
  position: absolute;
  left: -11.3%;
  top: 40px;
  width: 78.7%;
  pointer-events: none;
}
.clients__tree-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.clients__left {
  flex: 0 0 44%;
  position: relative;
  z-index: 1;
  padding-right: 24px;
}

.clients__heading {
  font-family: var(--font-heading);
  font-size: 45px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.clients__sub {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
}

.clients__body {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: #e1e1e1;
  line-height: 30px;
  max-width: 560px;
}

.clients__right {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 145px;
}

.clients__card {
  background: #375499;
  border-radius: 37px;
  padding: 36px 48px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clients__card-title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 14px;
}

.clients__card-body {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: #e1e1e1;
  line-height: 1.4;
}

/* Tree dots */
.clients__tree-wrap path {
  fill: #0e2459;
  stroke: none;
  opacity: 0;
  transition: fill 0.15s ease;
}
.clients__tree-wrap .dot-base {
  animation: dot-appear 0.08s ease forwards;
}
.clients__tree-wrap .dot-hover {
  fill: rgba(160, 210, 255, 0.85);
}

/* ============================================================
   WHY MONOGRAM
   ============================================================ */
.why-monogram__lead {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why-card {
  padding: 40px;
  border-radius: 20px;
  background-color: rgba(255,255,255,0.06);
  outline: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.25s ease, outline-color 0.25s ease;
}
.why-card--light {
  background-color: rgba(255,255,255,0.06);
  outline: 1px solid rgba(255,255,255,0.08);
}

.why-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 24px;
  background-color: rgba(255,255,255,0.3);
  transition: background-color 0.25s ease;
}

.why-card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text-light);
  transition: color 0.25s ease;
}

.why-card__body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
  transition: color 0.25s ease;
}

.why-card:hover {
  background-color: #ffffff;
  outline-color: transparent;
}
.why-card:hover .why-card__dot  { background-color: var(--navy-main); }
.why-card:hover .why-card__title { color: var(--text-navy); }
.why-card:hover .why-card__body  { color: var(--text-navy); }

/* ============================================================
   IMPORTANT NOTICE
   ============================================================ */
.notice__heading {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 36px;
}

.notice__body {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1.8;
  max-width: 1000px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__left .section__heading { margin-bottom: 24px; }

.contact__description {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact__email {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-light);
  word-break: break-all;
  transition: opacity 0.2s;
}
.contact__email:hover { opacity: 0.7; }

.contact__form { display: flex; flex-direction: column; gap: 24px; }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea {
  background: var(--text-white);
  border: none;
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-form);
  font-size: 17px;
  color: #333;
  width: 100%;
  outline: none;
  transition: box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 2px var(--navy-nav);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy-nav);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-medium);
  cursor: pointer;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.form-submit {
  background: transparent;
  border: 1px solid var(--text-medium);
  color: var(--text-medium);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--text-white);
  color: var(--navy-main);
  border-color: var(--text-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--navy-main);
  padding-top: 60px;
  padding-bottom: 0;
  overflow: hidden;
}

.footer__line {
  height: 1px;
  background-color: rgba(0,0,0,0.4);
  margin-inline: var(--container-pad);
  max-width: calc(var(--container-max) - 2 * var(--container-pad));
  margin-inline: auto;
  margin-bottom: 40px;
}

.footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-white); }

.footer__legal {
  max-width: 700px;
  text-align: left;
}

.footer__legal p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
}
.footer__legal p + p { margin-top: 8px; }

.footer__wordmark {
  width: 100%;
  line-height: 0;
  padding-top: 20px;
}
.footer__wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   DOT ANIMATIONS
   ============================================================ */
@keyframes dot-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   WORD REVEAL (scroll-to-read)
   ============================================================ */
.word-reveal {
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.word-reveal.lit {
  opacity: 1;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #dadada;
  padding: 24px 40px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 0.4s ease;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cookie-banner__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  flex: 1;
  min-width: 280px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-cookie:hover { opacity: 0.85; }

.btn-cookie--accept {
  background: var(--navy-main);
  color: var(--text-white);
}
.btn-cookie--manage {
  background: #b8b8b8;
  color: #727272;
}
.btn-cookie--reject {
  background: #b8b8b8;
  color: #727272;
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-pad: 24px;
    --section-pad-v: var(--section-pad-v-sm);
  }

  /* Nav */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy-nav);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
  }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero__tagline { font-size: 14px; }
  .hero__wordmark { bottom: 0; }

  /* Who we are */
  #who-we-are { padding-top: 80px; }
  .who-we-are__inner { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .who-we-are__left { padding-bottom: 48px; }
  .who-we-are__body { font-size: 17px; line-height: 26px; }
  .who-we-are__right img { max-height: 320px; width: auto; margin: 0 auto; }

  /* Sections */
  .section__heading { font-size: 32px; margin-bottom: 32px; }
  .section__subheading { font-size: 20px; }

  /* Investment Focus */
  .accordion__header { font-size: 18px; padding: 20px 0; }

  /* Clients */
  .clients__inner { flex-direction: column; padding: 48px 24px 64px; overflow: hidden; }
  .clients__tree-wrap { left: -20%; width: 100%; top: 20px; }
  .clients__left { flex: none; width: 100%; padding-right: 0; }
  .clients__heading { font-size: 36px; margin-bottom: 32px; }
  .clients__sub { font-size: 22px; }
  .clients__body { font-size: 17px; max-width: 100%; }
  .clients__right { padding-top: 32px; width: 100%; }
  .clients__card { border-radius: 20px; padding: 24px 28px; min-height: auto; }
  .clients__card-title { font-size: 18px; }
  .clients__card-body { font-size: 15px; }

  /* Why Monogram */
  .why-grid { grid-template-columns: 1fr; }
  .why-monogram__lead { font-size: 20px; }
  .why-card { padding: 28px 24px; }
  .why-card__title { font-size: 18px; }
  .why-card__body { font-size: 15px; }

  /* Important Notice */
  .notice__heading { font-size: 30px; }
  .notice__body { font-size: 16px; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__email { font-size: 18px; }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer__legal {
    text-align: left;
    max-width: 100%;
  }
  .footer__legal p { font-size: 14px; }
  .footer__links { gap: 16px; }

  /* Cookie */
  .cookie-banner { padding: 20px 24px; }
  .cookie-banner__inner { gap: 20px; }
}
