/* ============================================================
   LATESTINVEST.EU — shared design system
   Extracted from the original landing page + extended with
   per-page layout primitives. Same visual language site-wide.
   ============================================================ */

:root {
  --ink: #0a0c0f;
  --paper: #f4f1ec;
  --gold: #c8a96e;
  --gold-light: #e8d5b0;
  --steel: #1e2530;
  --mist: #6b7280;
  --accent: #2a6049;
  --accent-bright: #3d8f6b;
  --red: #c0392b;
  --border: rgba(200, 169, 110, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--paper);
  font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 16px;
  overflow-x: hidden;
}
.site-wrap { max-width: 1440px; margin: 0 auto; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.25rem 3rem;
  background: linear-gradient(to bottom, rgba(10, 12, 15, 0.97), transparent);
  transition: background 0.4s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto;
}
nav.scrolled {
  background: rgba(10, 12, 15, 0.97);
  border-bottom: 1px solid var(--border);
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo svg { display: block; }
.nav-links { display: flex; gap: 1.9rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(244, 241, 236, 0.6); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: 0.5rem 1.1rem; transition: all 0.3s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--gold); font-size: 1.5rem; line-height: 1; padding: 0.25rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--ink);
  padding: 0.9rem 2rem; font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.3s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: rgba(244, 241, 236, 0.6);
  padding: 0.9rem 2rem; font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; border: 1px solid rgba(244, 241, 236, 0.2);
  cursor: pointer; text-decoration: none; transition: all 0.3s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(244, 241, 236, 0.5); color: var(--paper); }

/* ── SHARED TYPOGRAPHIC HELPERS ──────────────────────────── */
.section-tag {
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.section-tag::before {
  content: ''; width: 24px; height: 1px; background: var(--gold); opacity: 0.5;
}
.section-tag.center { justify-content: center; }
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 300; }
.lead {
  font-size: 1.05rem; line-height: 1.8; color: rgba(244, 241, 236, 0.6);
  max-width: 60ch;
}
.lead strong { color: var(--paper); font-weight: 500; }

/* ── HERO (home, full viewport) ──────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(42, 96, 73, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200, 169, 110, 0.05) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 169, 110, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-inner {
  position: relative; z-index: 10; max-width: 1440px; margin: 0 auto;
  padding: 9rem 3rem 5rem; width: 100%;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--gold); opacity: 0.5;
}
.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 300; line-height: 1.12;
  color: var(--paper); margin-bottom: 1.75rem;
  max-width: min(94%, 64rem); text-wrap: balance;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; line-height: 1.8; color: rgba(244, 241, 236, 0.6);
  max-width: 60ch; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}

/* ── PAGE HEADER (sub-pages, compact hero) ───────────────── */
.page-head {
  position: relative; overflow: hidden;
  padding: 11rem 3rem 5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 70% at 80% 40%, rgba(42, 96, 73, 0.07) 0%, transparent 70%),
    rgba(8, 10, 13, 0.6);
}
.page-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 169, 110, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-head-inner { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; }
.page-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 300; line-height: 1.12;
  color: var(--paper); margin-bottom: 1.5rem;
  max-width: min(92%, 46rem); text-wrap: balance;
}
.page-head h1 em { font-style: italic; color: var(--gold); }
.page-head .lead { color: rgba(244, 241, 236, 0.55); }

/* ── GENERIC SECTION ─────────────────────────────────────── */
.section { padding: 7rem 3rem; }
.section-inner { max-width: 1440px; margin: 0 auto; }
.section.alt { background: rgba(30, 37, 48, 0.3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.tint { background: rgba(200, 169, 110, 0.04); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 300; line-height: 1.18;
  color: var(--paper); margin-bottom: 1rem;
  max-width: min(90%, 40rem); text-wrap: balance;
}
.section-title em { color: var(--gold); font-style: italic; }
.section-intro {
  font-size: 1rem; line-height: 1.8; color: rgba(244, 241, 236, 0.5);
  max-width: 64ch; margin-bottom: 3.5rem;
}

/* ── SPLIT (two-column) ──────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: start;
}
.split.sticky-left > :first-child { position: sticky; top: 7rem; }
.split p { font-size: 1rem; line-height: 1.85; color: rgba(244, 241, 236, 0.6); margin-bottom: 1.4rem; }
.split p strong { color: var(--paper); font-weight: 500; }

/* ── CAPABILITY / FOCUS GRID ─────────────────────────────── */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.cap-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cap-card {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem; position: relative; overflow: hidden;
  transition: background 0.4s;
}
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.cap-card:hover { background: rgba(200, 169, 110, 0.04); }
.cap-card:hover::before { transform: scaleX(1); }
.cap-num {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em;
  color: rgba(200, 169, 110, 0.4); margin-bottom: 1.25rem;
}
.cap-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400;
  color: var(--paper); margin-bottom: 0.75rem; line-height: 1.25;
}
.cap-desc { font-size: 0.9rem; line-height: 1.7; color: rgba(244, 241, 236, 0.5); }

/* ── TAG CHIPS ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-block; padding: 0.45rem 0.95rem;
  border: 1px solid var(--border); font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); transition: all 0.3s;
}
.chip:hover { background: rgba(200, 169, 110, 0.06); border-color: var(--gold); }

/* ── BULLET LIST ─────────────────────────────────────────── */
.feature-list { list-style: none; display: flex; flex-direction: column; }
.feature-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.98rem; line-height: 1.6; color: rgba(244, 241, 236, 0.6);
}
.feature-list li::before {
  content: ''; flex-shrink: 0; width: 7px; height: 7px; margin-top: 0.55rem;
  background: var(--gold); transform: rotate(45deg);
}
.feature-list li strong { color: var(--paper); font-weight: 500; }

/* ── PILLAR CARDS (risk management) ──────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.pillar {
  background: rgba(10, 12, 15, 0.85); padding: 2.5rem 1.75rem;
  transition: background 0.3s;
}
.pillar:hover { background: rgba(30, 37, 48, 0.9); }
.pillar-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300;
  color: rgba(200, 169, 110, 0.2); line-height: 1; margin-bottom: 1rem;
}
.pillar h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400;
  color: var(--paper); margin-bottom: 0.6rem; line-height: 1.25;
}
.pillar p { font-size: 0.85rem; line-height: 1.65; color: rgba(244, 241, 236, 0.45); }

/* ── QUOTE BLOCK ─────────────────────────────────────────── */
.quote-band {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(200, 169, 110, 0.04); padding: 6rem 3rem;
}
.quote-band blockquote {
  max-width: 1000px; margin: 0 auto;
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-style: italic; line-height: 1.45; color: var(--paper); text-align: center;
}
.quote-band blockquote::before { content: '\201C'; color: var(--gold); }
.quote-band blockquote::after { content: '\201D'; color: var(--gold); }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  padding: 9rem 3rem; text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 300; color: var(--paper);
  margin-bottom: 1.25rem; position: relative;
  max-width: min(92%, 42rem); text-wrap: balance;
  margin-left: auto; margin-right: auto;
}
.cta-band h2 em { color: var(--gold); font-style: italic; }
.cta-band p {
  font-size: 1rem; color: rgba(244, 241, 236, 0.5); max-width: 52ch;
  margin: 0 auto 2.5rem; line-height: 1.7; position: relative;
}
.cta-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-split {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem;
  align-items: start;
}
.contact-meta { display: flex; flex-direction: column; gap: 2.25rem; }
.contact-block h4 {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.contact-block p, .contact-block a {
  font-size: 0.98rem; line-height: 1.6; color: rgba(244, 241, 236, 0.6);
  text-decoration: none;
}
.contact-block a:hover { color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(244, 241, 236, 0.45);
}
.field input, .field textarea, .field select {
  background: rgba(10, 12, 15, 0.6); border: 1px solid var(--border);
  color: var(--paper); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  padding: 0.85rem 1rem; transition: border-color 0.3s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
}
.form-note { font-size: 0.78rem; color: rgba(244, 241, 236, 0.35); line-height: 1.6; }
.form-status { font-size: 0.9rem; line-height: 1.5; min-height: 1.2rem; }
.form-status.ok { color: var(--accent-bright); }
.form-status.err { color: var(--red); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer-wrap { background: rgba(10, 12, 15, 0.8); border-top: 1px solid var(--border); }
footer {
  padding: 3.5rem 3rem; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  max-width: 1440px; margin: 0 auto;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--paper);
  font-weight: 400; margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.88rem; color: rgba(244, 241, 236, 0.35); line-height: 1.6;
  max-width: 320px;
}
.footer-geo {
  margin-top: 1.5rem; font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: rgba(244, 241, 236, 0.25); letter-spacing: 0.1em;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(244, 241, 236, 0.4); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04); padding: 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: rgba(244, 241, 236, 0.25); letter-spacing: 0.08em;
  max-width: 1440px; margin: 0 auto; flex-wrap: wrap; gap: 0.5rem;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 1.75rem;
    background: rgba(8, 10, 13, 0.98); padding: 6rem 2rem 2rem;
    transform: translateX(100%); transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 901; }
  .hero-inner, .page-head, .section, .quote-band, .cta-band { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .page-head { padding-top: 8rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.sticky-left > :first-child { position: static; }
  .cap-grid, .cap-grid.cols-2 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
