/* =========================================================
   Timanfaya Partners — Stylesheet
   Palette: solidified-lava dark grey + hot-lava orange
   ========================================================= */

:root {
  /* Lava field */
  --lava-950: #0e0d0c;   /* deepest solidified lava */
  --lava-900: #16130f;   /* page background */
  --lava-850: #1c1815;   /* alt sections */
  --lava-800: #241f1a;   /* cards */
  --lava-700: #33291f;   /* borders / hover */

  /* Hot lava accents */
  --lava-orange: #ff5a1f;
  --lava-orange-bright: #ff7a3c;
  --lava-ember: #ffb066;

  /* Neutrals / text */
  --text: #f4efe9;
  --text-muted: #b7aa9c;
  --text-dim: #8a7d70;
  --line: rgba(255, 255, 255, 0.08);

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--lava-900);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.text-lava { color: var(--lava-orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--lava-orange), var(--lava-orange-bright));
  color: #1a0f08;
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 90, 31, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--lava-orange); color: var(--lava-ember); }
.btn-block { width: 100%; }

/* ---------- Eyebrows / section headings ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lava-orange);
  margin: 0 0 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.section-head { margin-bottom: 3rem; }
.section-intro {
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 1.2rem;
  font-size: 1.08rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(14, 13, 12, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.5));
}
.brand-accent { color: var(--lava-orange); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-cta:hover { border-color: var(--lava-orange); color: var(--lava-ember) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 90, 31, 0.14), transparent 60%),
    linear-gradient(180deg, var(--lava-950), var(--lava-900));
}
.hero-glow {
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(circle, rgba(255, 122, 60, 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; }
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 60ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--lava-950);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
}
.stat {
  padding: 2.4rem 1rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--lava-orange);
  font-weight: 600;
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--lava-850); }
.section-dark {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(255, 90, 31, 0.08), transparent 60%),
    var(--lava-950);
}

/* ---------- Purpose ---------- */
.purpose-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.purpose-lead p { font-size: 1.12rem; color: var(--text-muted); }
.purpose-lead strong { color: var(--text); }
.purpose-points { display: grid; gap: 1.5rem; }
.purpose-points li {
  padding: 1.6rem 1.7rem;
  background: var(--lava-800);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lava-orange);
  border-radius: var(--radius-sm);
}
.purpose-points h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.purpose-points p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Card grids ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  padding: 2.2rem 2rem;
  background: var(--lava-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--lava-700);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.card-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--lava-orange);
  margin-bottom: 1rem;
  opacity: 0.85;
}
.card-dark { background: var(--lava-850); }
.card-ps { border-top: 3px solid var(--lava-orange); }

.triad-closer {
  text-align: center;
  margin: 2.6rem auto 0;
  max-width: 60ch;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--lava-ember);
}

/* ---------- Focus grid ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.focus-item {
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--lava-800);
}
.focus-key {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.focus-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
}

/* ---------- Difference ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}
.diff-item { display: flex; gap: 1.3rem; align-items: flex-start; }
.diff-num {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--lava-orange);
  color: var(--lava-orange);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.diff-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.diff-item p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-intro p { color: var(--text-muted); max-width: 46ch; }
.contact-meta { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-meta li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.98rem;
}
.contact-meta span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.contact-meta a:hover { color: var(--lava-ember); }

.contact-form {
  background: var(--lava-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--lava-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lava-orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}
.field textarea { resize: vertical; }
.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 1rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--lava-950);
  border-top: 1px solid var(--line);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.6rem 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--lava-ember); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--lava-950);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav-menu.is-open {
    max-height: 380px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 0.95rem 0; }
  .nav-cta { border: none; padding: 0.95rem 0; }

  .purpose-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .cards-3,
  .diff-grid,
  .focus-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .cards-3,
  .diff-grid,
  .focus-grid { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.6rem; }
  .hero-actions .btn { flex: 1; }
  .footer-bottom { justify-content: flex-start; }
}
