/* ============================================================
   RESILIENT CAPITAL — Complete Design System
   styles.css
   Structural replica of Novexa Advisory layout
   ============================================================ */


/* ---- CSS Custom Properties (Design Tokens) --------------- */

:root {
  /* Colour palette — private equity institutional */
  --navy:         #0B1121;   /* primary dark — institutional navy */
  --navy-mid:     #0F1729;   /* mid navy — hover states */
  --navy-light:   #2D5A9E;   /* light navy — accents */
  --gold:         #B08D57;   /* gold accent — labels, highlights */
  --slate:        #2D3748;   /* body text */
  --grey:         #718096;   /* secondary text */
  --grey-light:   #A0AEC0;   /* placeholder, disabled */
  --border:       #E2E8F0;   /* dividers, borders */
  --bg-light:     #F7F6F3;   /* alternating section background */
  --bg-white:     #FFFFFF;   /* default background */

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Aliases for legacy internal page markup */
  --ff-serif:     var(--font-heading);
  --ff-sans:      var(--font-body);
  --text:         var(--slate);

  /* Layout */
  --max-w:        1180px;
  --section-py:   96px;
  --header-h:     68px;

  /* Transitions */
  --ease:         0.25s ease;
}


/* ---- Reset ---------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  background-color: var(--bg-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}


/* ---- Container ------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}


/* ---- Typography ----------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }

p {
  color: var(--slate);
  max-width: 68ch;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--grey);
}


/* ---- Section label (eyebrow) ---------------------------- */

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 58ch;
  margin-bottom: 48px;
}


/* ---- Buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--bg-white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--bg-white);
}


/* ---- Card link (inline text arrow) ---------------------- */

.card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.card-link:hover {
  color: var(--navy-mid);
  border-color: var(--navy-mid);
}


/* ============================================================
   HEADER — Pill-shaped floating navigation
   Struttura identica a Novexa Advisory site-header
   ============================================================ */

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 80px);
  max-width: 1180px;
  height: var(--header-h);
  background: #F8F7F4;
  border-radius: 60px;                    /* pill shape */
  border-bottom: none;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--ease);
}

/* Elevated shadow on scroll */
.site-header.scrolled {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Container override — pill padding */
.site-header .container {
  padding-inline: 40px;
  max-width: none;
  width: 100%;
}

/* Logo — text wordmark (no local image) */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-wordmark--footer {
  font-size: 1.4rem;
  color: var(--bg-white);
}

/* Desktop navigation */
.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav .nav-list a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color var(--ease);
  white-space: nowrap;
}

.site-nav .nav-list a:hover,
.site-nav .nav-list a.active {
  color: var(--navy);
}

/* CTA nav button — dark pill */
.site-nav .nav-list .nav-cta {
  background: var(--navy);
  color: var(--bg-white) !important;
  padding: 8px 22px;
  border-radius: 100px;
  font-weight: 600;
  border: none;
  transition: background var(--ease);
}

.site-nav .nav-list .nav-cta:hover {
  background: var(--navy-mid);
}

/* Active page indicator — same pill as CTA */
.site-nav .nav-list a.nav-active:not(.nav-cta) {
  background: var(--navy);
  color: var(--bg-white) !important;
  padding: 8px 22px;
  border-radius: 100px;
  font-weight: 600;
}

/* Search field */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input {
  width: 140px;
  padding: 6px 12px 6px 32px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  outline: none;
  transition: border-color var(--ease), width var(--ease);
}

.nav-search input:focus {
  width: 180px;
  border-color: var(--navy);
}

.nav-search svg {
  position: absolute;
  left: 10px;
  color: var(--grey-light);
  pointer-events: none;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}


/* ============================================================
   HERO — Full viewport, video background + dark overlay
   Struttura identica a .question-panel di Novexa Advisory

   Z-INDEX STACK (dal basso verso l'alto):
     0  .hero-video       → video fisicamente più in basso
     1  ::before          → overlay blu notte sopra il video
     2  .panel-content    → testo sopra tutto
     2  .scroll-indicator → indicatore sopra tutto
   ============================================================ */

.question-panel {
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---- VIDEO BACKGROUND ------------------------------------ */
/* Assoluto, copre tutta la hero, sotto l'overlay.           */
/* background-color del panel-1 rimane come fallback visibile*/
/* mentre il video carica o se non supportato dal browser.   */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* copre tutto il viewport, nessuna barra */
  object-position: center;
  z-index: 0;             /* strato base: sotto overlay e contenuto */
  pointer-events: none;   /* non intercetta click */
}

/* ---- DARK OVERLAY --------------------------------------- */
/* Copre il video con il blu notte istituzionale.             */
/* Opacità 0.82 → video percepibile ma molto sottile,        */
/* effetto quasi-statico con leggero movimento visibile.      */
.question-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);   /* dark overlay hero */
  z-index: 1;                           /* sopra il video */
}

/* Panel 1 — colore di fallback (mostrato prima che il video carichi) */
.panel-1 {
  background-color: #0B1121;
}

/* ---- CENTERED CONTENT ----------------------------------- */
/* z-index: 2 → sopra sia il video sia l'overlay             */
.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 80px;
  max-width: 920px;
  width: 100%;
}

/* Headline — aesthetic serif, ultra-light italic, wide tracking */
.panel-question {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);  /* leggermente più grande */
  font-weight: 300;               /* ultra-light — delicato, moderno */
  font-style: italic;             /* Cormorant italic = massima eleganza */
  letter-spacing: 0.10em;        /* tracking ampio — aesthetic/editorial */
  color: rgba(255, 255, 255, 0.92); /* bianco lievemente smorzato */
  line-height: 1.15;
  margin-bottom: 44px;
  white-space: nowrap;            /* forza tutto su una riga */
}

/* CTA — minimal, uppercase, letter-spaced, thin underline */
.panel-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.panel-cta:hover {
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.80);
}

/* Scroll indicator — circular, bottom-centre, animated bounce */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;   /* sopra overlay, visibile sopra il video */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.scroll-indicator:hover {
  border-color: rgba(255, 255, 255, 0.60);
  color: var(--bg-white);
  animation-play-state: paused;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}


/* ============================================================
   SECTION 2 — WHO WE ARE (intro)
   Struttura identica a .intro-section di Novexa
   ============================================================ */

.intro-section {
  padding: var(--section-py) 0;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.intro-text h2 {
  margin-bottom: 20px;
}

.intro-text p {
  color: var(--grey);
  max-width: none;
}

/* Three pillars */
.intro-pillars {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pillar-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.pillar-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.pillar-content p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
  max-width: none;
}


/* ============================================================
   SECTION 3 — STRATEGY (services grid)
   Struttura identica a .services-section di Novexa
   ============================================================ */

.services-section {
  padding: var(--section-py) 0;
}

.section-light {
  background: var(--bg-light);
}

.services-header {
  margin-bottom: 56px;
}

/* Four-column grid of service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: box-shadow var(--ease), transform var(--ease);
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card-index {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: none;
}

.service-card-list {
  margin-bottom: 24px;
}

.service-card-list li {
  font-size: 0.82rem;
  color: var(--grey);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.service-card-list li:last-child {
  border-bottom: none;
}


/* ============================================================
   SECTION 4 — HOW WE ADD VALUE (approach phases)
   Struttura identica a .approach-section di Novexa
   ============================================================ */

.approach-section {
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--navy);
}

.section-dark .section-label {
  color: rgba(176, 141, 87, 0.9);   /* gold on dark */
}

.section-dark h2 {
  color: var(--bg-white);
}

.approach-header {
  margin-bottom: 64px;
}

/* Horizontal four-column phases */
.approach-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.phase-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(176, 141, 87, 0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.phase-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bg-white);
  margin-bottom: 12px;
}

.phase-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  max-width: none;
}


/* ============================================================
   SECTION 5 — FOR FOUNDERS / FOR INVESTORS
   Struttura identica a .for-who-section di Novexa
   ============================================================ */

.for-who-section {
  padding: var(--section-py) 0;
}

.for-who-header {
  margin-bottom: 56px;
}

/* 2×2 grid of audience cards */
.for-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.for-who-card {
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.for-who-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.for-who-card p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: none;
}


/* ============================================================
   SECTION 6 — CTA WITH FORM
   Struttura identica a .cta-section di Novexa
   ============================================================ */

.cta-section {
  padding: var(--section-py) 0;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--navy);
}

.cta-inner .lead {
  margin-bottom: 48px;
}

.cta-form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--slate);
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--bg-white);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 40px;
  background: var(--navy);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--ease);
}

.form-submit:hover {
  background: var(--navy-mid);
}

.form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--grey-light);
  max-width: none;
}


/* ============================================================
   FOOTER
   Struttura identica al footer di Novexa Advisory
   ============================================================ */

.site-footer {
  background: var(--navy);
  padding: 72px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  max-width: 36ch;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--ease);
}

.footer-nav a:hover {
  color: var(--bg-white);
}

.footer-legal p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
  max-width: none;
}

.footer-privacy-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-privacy-link:hover {
  color: var(--gold);
}

.footer-bottom {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.30);
  text-align: center;
  max-width: none;
}


/* ============================================================
   RESPONSIVE — Mobile / Tablet
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-phases {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}

/* Mobile */
@media (max-width: 768px) {

  :root {
    --section-py: 64px;
  }

  /* Header pill adapts */
  .site-header {
    width: calc(100% - 32px);
    top: 16px;
  }

  .site-header .container {
    padding-inline: 24px;
  }

  /* Hide desktop nav and search on mobile */
  .site-nav,
  .nav-search {
    display: none;
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Mobile nav drawer — shown when JS adds .is-open */
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 190;
    padding: 100px 40px 40px;
    overflow-y: auto;
  }

  .site-nav.is-open .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .site-nav.is-open .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open .nav-list a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
  }

  .site-nav.is-open .nav-list .nav-cta {
    background: none;
    color: var(--navy) !important;
    padding: 16px 0;
    border-radius: 0;
    border-bottom: none;
  }

  /* Hero */
  .panel-content {
    padding: 0 24px;
  }

  .panel-question {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  /* Grids → single column */
  .services-grid,
  .approach-phases,
  .for-who-grid {
    grid-template-columns: 1fr;
  }

  .for-who-card {
    padding: 28px 24px;
  }

  /* Form */
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .cta-form-wrap {
    padding: 28px 24px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}

/* Small phones */
@media (max-width: 480px) {

  .container {
    padding-inline: 20px;
  }

  .panel-content {
    padding: 0 20px;
  }

}
