/* ── ParsedThoughts Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F8F7F3;
  --bg2: #EEECEA;
  --surface: #FFFFFF;
  --surface2: #F2F0EC;
  --border: rgba(0,0,0,0.08);
  --text: #111010;
  --muted: rgba(17,16,16,0.5);
  --accent: #C8973A;
  --accent2: #1A6B4A;
  --accent-bg: rgba(200,151,58,0.08);
  --accent2-bg: rgba(26,107,74,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --radius: 8px;
  --max: 1100px;
  --toggle-bg: #E2E0DC;
  --nav-bg: rgba(248,247,243,0.88);
}

[data-theme="dark"] {
  --bg: #0C0C0E;
  --bg2: #141416;
  --surface: #141416;
  --surface2: #1C1C1F;
  --border: rgba(255,255,255,0.07);
  --text: #F0EEE8;
  --muted: rgba(240,238,232,0.45);
  --accent: #E8C547;
  --accent2: #4ECDC4;
  --accent-bg: rgba(232,197,71,0.08);
  --accent2-bg: rgba(78,205,196,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --toggle-bg: #2A2A2E;
  --nav-bg: rgba(12,12,14,0.88);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-logo {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--text); text-decoration: none;
  transition: color 0.3s;
}
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* THEME TOGGLE */
.theme-toggle {
  width: 44px; height: 24px; background: var(--toggle-bg);
  border-radius: 999px; border: 1px solid var(--border);
  cursor: pointer; position: relative; transition: background 0.3s;
  flex-shrink: 0;
}
.theme-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s ease, background 0.3s;
}
[data-theme="dark"] .theme-toggle-knob { transform: translateX(20px); }
.theme-toggle-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 9px; pointer-events: none; transition: opacity 0.3s;
}
.icon-sun { right: 5px; opacity: 1; }
.icon-moon { left: 5px; opacity: 0; }
[data-theme="dark"] .icon-sun { opacity: 0; }
[data-theme="dark"] .icon-moon { opacity: 1; }

/* MESH BG */
.hero-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 10% 40%, rgba(200,151,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(26,107,74,0.06) 0%, transparent 60%);
  transition: opacity 0.3s;
}
[data-theme="dark"] .hero-mesh {
  background:
    radial-gradient(ellipse 50% 40% at 10% 40%, rgba(232,197,71,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(78,205,196,0.05) 0%, transparent 60%);
}

/* SECTION UTILITY */
.section-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.section-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-family: 'Inter', sans-serif; font-size: clamp(1.8rem,3.5vw,2.6rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.75rem;
}
.section-sub { font-size: 0.95rem; color: var(--muted); max-width: 500px; line-height: 1.75; }

hr.divider { border: none; border-top: 1px solid var(--border); max-width: var(--max); margin: 0 auto; }

/* BUTTONS */
.btn-gold {
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 1.8rem; background: var(--accent); color: #fff;
  border-radius: var(--radius); transition: opacity 0.2s, transform 0.15s; display: inline-block;
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-ghost {
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 1.8rem; background: transparent; color: var(--text);
  border-radius: var(--radius); border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.15s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--surface2); border-top: 1px solid var(--border);
  padding: 2rem 3rem; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.footer-logo { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text); text-decoration: none; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: 'Inter', sans-serif; font-size: 0.68rem; color: var(--muted); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.7); } }

/* RESPONSIVE */
@media (max-width: 860px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; padding: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }
}

/* THEME TOGGLE SCRIPT HELPER */
.theme-init { transition: none !important; }
