/* ─────────────────────────────────────────
   Invest42 — Main Stylesheet
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500&family=DM+Mono:wght@300;400&display=swap');

:root {
  --forest:      #1a3a2a;
  --green:       #2d6a4f;
  --green-mid:   #40916c;
  --green-light: #74c69d;
  --cream:       #f8f5ef;
  --warm:        #f0ebe0;
  --paper:       #faf8f4;
  --ink:         #1c1c1a;
  --muted:       #6b7b72;
  --rule:        #d8d4c8;
  --gold:        #b8956a;
  --gold-light:  #d4b896;

  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Jost', sans-serif;
  --mono:   'DM Mono', 'Courier New', monospace;

  --radius: 3px;
  --shadow: 0 4px 32px rgba(26, 58, 42, 0.08);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE TEXTURE ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── SITE WRAPPER ── */
.site { display: flex; flex-direction: column; min-height: 100vh; }

/* ─────────────────────────────────────────
   NAV / HEADER
   ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}

/* Tab links */
.nav-tabs {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-tabs li a {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-tabs li a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
}

.nav-tabs li a.active {
  color: var(--green-light);
  background: rgba(116, 198, 157, 0.1);
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
  background: var(--forest);
  padding: 100px 40px 88px;
  position: relative;
  overflow: hidden;
}

/* Geometric background decoration */
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(116,198,157,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: 40px;
  top: 40px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(116,198,157,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
  opacity: 0;
  animation: rise 0.7s ease 0.1s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  max-width: 640px;
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 0.7s ease 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--green-light);
}

.hero-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.75;
  opacity: 0;
  animation: rise 0.7s ease 0.3s forwards;
}

/* ─────────────────────────────────────────
   MAIN CONTENT AREA
   ───────────────────────────────────────── */
.main-content {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  width: 100%;
}

/* ─────────────────────────────────────────
   PANELS (tab content)
   ───────────────────────────────────────── */
.panel { display: none; }
.panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ─────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.section-label .num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.section-label .title {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ─────────────────────────────────────────
   ABOUT PANEL
   ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--forest);
  margin-bottom: 24px;
}

.about-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: 32px;
}

.info-card h3 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.info-row:last-child { border-bottom: none; }

.info-row .lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.info-row .val {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

/* ─────────────────────────────────────────
   CONSULTING PANEL
   ───────────────────────────────────────── */
.services-intro {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--forest);
  max-width: 680px;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 56px;
}

.service-card {
  background: var(--paper);
  padding: 32px 28px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover { background: #fff; }

.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--green);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.approach-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}

.approach-block h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.3;
}

.approach-block p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   CONTACT PANEL
   ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-intro {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: var(--forest);
  margin-bottom: 40px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-list li { display: flex; flex-direction: column; gap: 5px; }

.contact-list .lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list a,
.contact-list span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-list a:hover { color: var(--green); }

.map-placeholder {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  gap: 16px;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--green-mid);
  opacity: 0.6;
}

.map-placeholder p {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.6;
}

.legal-note {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer {
  background: var(--forest);
  padding: 32px 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.footer-reg {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(116,198,157,0.5);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .hero { padding: 64px 20px 56px; }
  .main-content { padding: 48px 20px 64px; }
  .site-footer { padding: 24px 20px; }

  .about-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr; }

  .approach-block { grid-template-columns: 1fr; gap: 24px; }

  .nav-tabs li a { padding: 8px 10px; font-size: 0.6rem; }
}
