/* ==========================================================================
   DESIGN SYSTEM — Warm / Earthy theme (sand, terracotta, olive)
   ========================================================================== */
:root {
  --bg: #f6efe2;
  --bg-elevated: #efe4d1;
  --surface: #fffcf6;
  --surface-2: #f8f0e2;
  --ink: #2b2015;
  --ink-soft: #4d3f2e;
  --muted: #8a795f;
  --line: rgba(43, 32, 21, 0.12);
  --accent: #b3552f;
  --accent-dark: #93431f;
  --accent-light: rgba(179, 85, 47, 0.10);
  --accent-soft: rgba(179, 85, 47, 0.15);
  --olive: #6d7548;
  --olive-dark: #565c38;
  --olive-soft: rgba(109, 117, 72, 0.15);
  --gold: #c8923a;
  --gold-soft: rgba(200, 146, 58, 0.16);
  --glow: 0 0 60px rgba(179, 85, 47, 0.18);
  --shadow-sm: 0 4px 20px rgba(43, 32, 21, 0.08);
  --shadow-md: 0 14px 42px rgba(43, 32, 21, 0.10);
  --shadow-lg: 0 28px 64px rgba(43, 32, 21, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1180px;
  --nav-h: 72px;
}

/* Warm DARK variant — toggled via [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --bg: #1c140d;
  --bg-elevated: #241a11;
  --surface: #2b2015;
  --surface-2: #241a11;
  --ink: #f3e9da;
  --ink-soft: #d9c9b2;
  --muted: #a8967d;
  --line: rgba(255, 245, 230, 0.10);
  --accent: #dd8552;
  --accent-dark: #e89b6d;
  --accent-light: rgba(221, 133, 82, 0.14);
  --accent-soft: rgba(221, 133, 82, 0.20);
  --olive: #98a86a;
  --olive-dark: #7d8c58;
  --olive-soft: rgba(152, 168, 106, 0.20);
  --gold: #dba848;
  --gold-soft: rgba(219, 168, 72, 0.20);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 42px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(221, 133, 82, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(152, 168, 106, 0.10), transparent),
    var(--bg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(179, 85, 47, 0.10), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(109, 117, 72, 0.08), transparent),
    var(--bg);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent-text { color: var(--accent); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 239, 226, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin-left: auto;
  padding: 0;
}

.nav .nav-links a,
.nav .lang-btn {
  color: var(--ink-soft) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1rem !important;
  border-radius: 999px !important;
  transition: all 0.25s ease;
  background: transparent !important;
  box-shadow: none !important;
}

.nav .nav-links a:hover,
.nav .lang-btn:hover {
  color: var(--ink) !important;
  background: rgba(43, 32, 21, 0.06) !important;
}

.nav .nav-links a.active {
  color: #fff !important;
  background: var(--accent) !important;
  box-shadow: 0 4px 16px rgba(179, 85, 47, 0.3) !important;
}

.nav .lang-btn.active {
  color: #fff !important;
  background: var(--accent) !important;
  box-shadow: 0 4px 20px rgba(179, 85, 47, 0.3) !important;
}

.lang-sep { color: rgba(43, 32, 21, 0.2); margin: 0 0.15rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(43, 32, 21, 0.06);
  border: 1px solid rgba(43, 32, 21, 0.12);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: auto;
}

.nav-toggle-text { font-weight: 600; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(179, 85, 47, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 85, 47, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 50%, black, transparent);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.orb-1 { width: 420px; height: 420px; background: rgba(179, 85, 47, 0.20); top: -8%; left: -5%; }
.orb-2 { width: 320px; height: 320px; background: rgba(200, 146, 58, 0.18); top: 20%; right: -4%; animation-delay: -4s; }
.orb-3 { width: 260px; height: 260px; background: rgba(109, 117, 72, 0.16); bottom: 5%; left: 35%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  background: rgba(43, 32, 21, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(43, 32, 21, 0.10);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(179, 85, 47, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(179, 85, 47, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(179, 85, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 85, 47, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.hero-tagline {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2rem;
  color: var(--muted);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  min-width: 110px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(179, 85, 47, 0.3);
}

.stat-pill:nth-child(1) { border-top: 3px solid var(--accent); }
.stat-pill:nth-child(2) { border-top: 3px solid var(--olive); }
.stat-pill:nth-child(3) { border-top: 3px solid var(--gold); }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hero-sidebar { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }

/* Profile circular */
.profile-frame {
  padding: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md), var(--glow);
  width: 200px;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
}

.profile-image-box {
  border-radius: 50%;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--surface);
}

.profile-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.sidebar-detail i {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
}

.sidebar-detail a:hover { color: var(--accent); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.65rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(179, 85, 47, 0.3);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(179, 85, 47, 0.4);
  background: var(--accent-dark);
}

.btn-primary i { font-size: 0.8rem; transition: transform 0.25s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(43, 32, 21, 0.03);
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: rgba(179, 85, 47, 0.4);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(179, 85, 47, 0.25);
  transition: all 0.25s;
}

.btn-linkedin:hover {
  background: var(--accent);
  color: #fff !important;
  border-color: transparent;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 5rem 0 6rem; }

.page-hero {
  padding: 4rem 0 2rem;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 720px;
  color: var(--ink);
}

.page-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 600px;
  margin-top: 1rem;
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--ink);
}

.section-head { margin-bottom: 2.5rem; }

.about-text-content { max-width: 720px; }
.about-text-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--muted);
}

/* Cards */
.card,
.contact-card,
.value-box,
.modern-form-box,
.contact-card-item,
.cv-modern-card,
.cv-modern-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Expertise — bento-style tinted tiles */
.expertise-section { padding-top: 2rem; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.expertise-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.expertise-card:nth-child(1) { background: linear-gradient(160deg, rgba(179,85,47,.10), var(--surface) 60%); border-color: rgba(179,85,47,.22); }
.expertise-card:nth-child(2) { background: linear-gradient(160deg, rgba(109,117,72,.10), var(--surface) 60%); border-color: rgba(109,117,72,.22); }
.expertise-card:nth-child(3) { background: linear-gradient(160deg, rgba(200,146,58,.12), var(--surface) 60%); border-color: rgba(200,146,58,.22); }

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.expertise-card:nth-child(1):hover { border-left: 3px solid var(--accent); }
.expertise-card:nth-child(2):hover { border-left: 3px solid var(--olive); }
.expertise-card:nth-child(3):hover { border-left: 3px solid var(--gold); }

.expertise-icon {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.expertise-card:nth-child(2) .expertise-icon { background: var(--olive-soft); color: var(--olive); }
.expertise-card:nth-child(3) .expertise-icon { background: var(--gold-soft); color: var(--gold); }

.expertise-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; color: var(--ink); }
.expertise-card p { font-size: 0.93rem; line-height: 1.65; color: var(--muted); }

/* Journey */
.journey-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.journey-text p { font-size: 1.02rem; line-height: 1.8; color: var(--muted); margin-bottom: 1rem; }

.sectors-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.sectors-heading { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--ink); }

.sectors-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sectors-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.sectors-list i { color: var(--accent); margin-top: 0.2rem; font-size: 0.8rem; }

.certs-block { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.certs-block strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; }
.certs-block p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

/* Values — bento-style tinted tiles */
.values-section { background: var(--bg-elevated); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-box {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-box:nth-child(1) { background: linear-gradient(160deg, rgba(179,85,47,.10), var(--surface) 60%); }
.value-box:nth-child(2) { background: linear-gradient(160deg, rgba(109,117,72,.10), var(--surface) 60%); }
.value-box:nth-child(3) { background: linear-gradient(160deg, rgba(200,146,58,.12), var(--surface) 60%); }

.value-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(179, 85, 47, 0.25);
}

.value-box:nth-child(2) .value-icon { background: var(--olive); box-shadow: 0 8px 24px rgba(109,117,72,.25); }
.value-box:nth-child(3) .value-icon { background: var(--gold); box-shadow: 0 8px 24px rgba(200,146,58,.25); }

.value-box strong { display: block; margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--ink); }
.value-box p { font-size: 0.93rem; line-height: 1.65; color: var(--muted); }

/* CTA */
.cta-section { padding-top: 2rem; }

.cta-box {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; color: var(--ink); }
.cta-box p { max-width: 520px; margin: 0 auto 1.5rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.cta-box .btn-primary { display: inline-flex; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-panel { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem 1.4rem;
  transition: all 0.3s ease;
}

.contact-card-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(179, 85, 47, 0.2);
}

.contact-card-item:nth-child(1) .contact-icon { background: var(--accent); box-shadow: 0 6px 20px rgba(179,85,47,.25); }
.contact-card-item:nth-child(2) .contact-icon { background: var(--olive); box-shadow: 0 6px 20px rgba(109,117,72,.25); }
.contact-card-item:nth-child(3) .contact-icon { background: var(--gold); box-shadow: 0 6px 20px rgba(200,146,58,.25); }

.contact-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(179, 85, 47, 0.25);
}

.contact-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem; font-weight: 600; }
.contact-value { color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; }
.contact-value:hover { color: var(--accent); }

.modern-form-box { padding: 2rem; }
.form-heading { margin: 0 0 1.5rem; font-size: 1.35rem; font-weight: 700; color: var(--ink); }

.modern-form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.15rem; }
.modern-form-group label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

.modern-input-field {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  transition: all 0.2s;
}

.modern-input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(179, 85, 47, 0.15);
  background: var(--surface);
}

.modern-input-field::placeholder { color: #a3927a; }
textarea.modern-input-field { resize: vertical; min-height: 130px; }

.modern-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(179, 85, 47, 0.3);
}

.modern-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(179, 85, 47, 0.4); }

.status-alert-box { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.15rem; font-weight: 500; font-size: 0.92rem; }
.status-alert-box.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #0e7d5b; }
.status-alert-box.error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #b83b3b; }

.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   CV
   ========================================================================== */
.cv-modern-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cv-sidebar-panel { display: flex; flex-direction: column; gap: 1rem; }
.cv-modern-card { padding: 1.5rem; }

.cv-card-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.cv-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.cv-tab-btn {
  padding: 0.6rem 1.1rem;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
}

.cv-tab-btn:hover { color: var(--accent); border-color: rgba(179, 85, 47, 0.3); }

.cv-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(179, 85, 47, 0.3);
}

.cv-tab-content { display: none; }
.cv-tab-content.active {
  display: block;
  animation: rise 0.4s ease;
  border-left: 1px solid rgba(179, 85, 47, 0.25);
  padding-left: 0.75rem;
  margin-left: 0.75rem;
}

.cv-modern-entry {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.85rem;
  margin-left: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.cv-modern-entry::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.cv-modern-entry:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(179, 85, 47, 0.5);
  border-left-color: var(--accent);
}

.cv-entry-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cv-entry-role { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.cv-entry-company { margin: 0.2rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--accent); }

.cv-entry-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.3rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
}

.cv-entry-text,
.cv-modern-bullets {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.cv-modern-bullets { padding-left: 1.1rem; }
.cv-modern-bullets li { margin-bottom: 0.3rem; }

.compact-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.compact-list a { color: var(--accent); }
.compact-list a:hover { text-decoration: underline; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.modern-pill {
  padding: 0.35rem 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(179, 85, 47, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

/* ==========================================================================
   FOOTER — kept as a dark contrast band
   ========================================================================== */
.footer {
  background: #241a10;
  color: rgba(255, 255, 255, 0.45);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer .nav-logo { color: #fff !important; display: inline-block; margin-bottom: 0.35rem; }
.footer-brand p, .footer-copy { color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-nav, .footer-social { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a, .footer-social a { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover, .footer-social a:hover { color: var(--gold); }
.footer-social a { font-size: 1.25rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-inner,
  .cv-modern-container,
  .contact-grid-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-sidebar { order: -1; max-width: 320px; margin: 0 auto; width: 100%; }
  .values-grid, .expertise-grid, .journey-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 3rem 0; }
}

@media (max-width: 768px) {
  .nav { padding: 0 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250, 244, 233, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.show { display: flex; }
  .nav .nav-links a, .nav .lang-btn { width: 100%; text-align: center; }
  .lang-switcher { display: flex; gap: 0.5rem; width: 100%; }
  .lang-sep { display: none; }
  .hero-title { font-size: 2.5rem; }
  .stats-row { gap: 0.65rem; }
  .stat-pill { flex: 1; min-width: 90px; padding: 0.85rem 1rem; }
  .cv-entry-top { flex-direction: column; }
}

/* ==========================================================================
   CURSOR SPOTLIGHT
   ========================================================================== */
.cursor-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 85, 47, 0.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left 0.1s ease, top 0.1s ease;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(179, 85, 47, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(179, 85, 47, 0.5);
}

/* ==========================================================================
   PAGE TRANSITION
   ========================================================================== */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================================
   GRADIENT HERO TITLE
   ========================================================================== */
.hero-title .accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; } 50% { background-position: 100% center; } 100% { background-position: 0% center; }
}

/* ==========================================================================
   ANIMATED PROFILE BORDER
   ========================================================================== */
.profile-animated {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, #b3552f, #c8923a, #6d7548, #b3552f) border-box !important;
  border: 4px solid transparent !important; border-radius: 50% !important;
  animation: rotateBorder 4s linear infinite !important; background-size: 200% 200% !important;
}
@keyframes rotateBorder {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}

/* ==========================================================================
   CV ENTRY SLIDE IN
   ========================================================================== */
.cv-tab-content.active .cv-modern-entry {
  animation: slideInLeft 0.4s ease both;
}

.cv-tab-content.active .cv-modern-entry:nth-child(1) { animation-delay: 0.0s; }
.cv-tab-content.active .cv-modern-entry:nth-child(2) { animation-delay: 0.07s; }
.cv-tab-content.active .cv-modern-entry:nth-child(3) { animation-delay: 0.14s; }
.cv-tab-content.active .cv-modern-entry:nth-child(4) { animation-delay: 0.21s; }
.cv-tab-content.active .cv-modern-entry:nth-child(5) { animation-delay: 0.28s; }
.cv-tab-content.active .cv-modern-entry:nth-child(6) { animation-delay: 0.35s; }
.cv-tab-content.active .cv-modern-entry:nth-child(7) { animation-delay: 0.42s; }
.cv-tab-content.active .cv-modern-entry:nth-child(8) { animation-delay: 0.49s; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   PROGRESS BARS (skills)
   ========================================================================== */
.skill-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-bar-item { display: flex; flex-direction: column; gap: 0.3rem; }

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.skill-bar-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   MOBILE NAV — slide-in drawer
   ========================================================================== */
.mobile-nav-dimmer {
  display: none; position: fixed; inset: 0;
  background: rgba(43,32,21,0.45); backdrop-filter: blur(6px);
  z-index: 998; opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav-dimmer.show { display: block; opacity: 1; }

.mobile-nav-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); font-weight: 700; padding: 0 0.5rem 1rem;
  border-bottom: 1px solid var(--line); margin-bottom: 0.5rem;
}

.mobile-nav-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(43,32,21,0.06); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; transition: all 0.2s;
}
.mobile-nav-close:hover { background: rgba(43,32,21,0.12); transform: rotate(90deg); }

@media (max-width: 768px) {
  .nav-links {
    background: #fffaf2;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(43,32,21,0.18);
  }

  .nav .nav-links a.active {
    background: var(--accent) !important; color: #fff !important;
    border-color: transparent !important;
  }

  .nav .nav-links a:hover {
    background: rgba(43,32,21,0.05) !important;
    border-color: var(--line) !important;
  }

  .lang-switcher {
    border-top: 1px solid var(--line);
  }

  .nav .lang-btn {
    background: rgba(43,32,21,0.04) !important;
    border: 1px solid var(--line) !important;
  }

  .nav .lang-btn.active {
    background: var(--accent) !important;
    border-color: transparent !important;
    color: #fff !important;
  }

  .hero-title { font-size: 2.4rem; }
}

/* ==========================================================================
   EASTER EGG
   ========================================================================== */
.easter-egg-msg {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 1.5rem 2.5rem;
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
  z-index: 9998; box-shadow: var(--shadow-lg);
  animation: popIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes popIn { from { opacity:0; transform:translate(-50%,-50%) scale(0.8); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }

/* Hide mobile-only elements on desktop */
.mobile-nav-label,
.mobile-nav-close { display: none; }

@media (max-width: 768px) {
  .mobile-nav-label { display: block; }
  .mobile-nav-close { display: flex; }
}

/* ==========================================================================
   STORY PAGE — Timeline
   ========================================================================== */
.story-section { padding-top: 1rem; }

.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(179,85,47,0.12) 100%);
  border-radius: 2px;
}

.story-entry {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.story-entry.animate {
  opacity: 0;
  transform: translateX(-24px);
}

.story-entry.animate.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Warm-toned icons — each entry gets its own earthy color */
.story-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  z-index: 1;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-entry:nth-child(1) .story-icon { background: linear-gradient(135deg, #b3552f, #c8923a); box-shadow: 0 8px 24px rgba(179,85,47,0.35); }
.story-entry:nth-child(2) .story-icon { background: linear-gradient(135deg, #6d7548, #8c9a5e); box-shadow: 0 8px 24px rgba(109,117,72,0.35); }
.story-entry:nth-child(3) .story-icon { background: linear-gradient(135deg, #8a4a2f, #b3552f); box-shadow: 0 8px 24px rgba(138,74,47,0.35); }
.story-entry:nth-child(4) .story-icon { background: linear-gradient(135deg, #c8923a, #b3552f); box-shadow: 0 8px 24px rgba(200,146,58,0.35); }
.story-entry:nth-child(5) .story-icon { background: linear-gradient(135deg, #a15c3f, #c8923a); box-shadow: 0 8px 24px rgba(161,92,63,0.35); }
.story-entry:nth-child(6) .story-icon { background: linear-gradient(135deg, #565c38, #6d7548); box-shadow: 0 8px 24px rgba(86,92,56,0.35); }
.story-entry:nth-child(7) .story-icon { background: linear-gradient(135deg, #93431f, #8a4a2f); box-shadow: 0 8px 24px rgba(147,67,31,0.35); }
.story-entry:nth-child(8) .story-icon { background: linear-gradient(135deg, #a67a1e, #6d7548); box-shadow: 0 8px 24px rgba(166,122,30,0.4); }

.story-entry:hover .story-icon {
  transform: scale(1.08) rotate(-3deg);
}

.story-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.story-body::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 26px;
  border: 10px solid transparent;
  border-right-color: var(--line);
}

.story-body::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 27px;
  border: 9px solid transparent;
  border-right-color: var(--surface);
}

.story-entry:hover .story-body {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(179,85,47,0.25);
}

.story-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.85rem;
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(179,85,47,0.2);
}

.story-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.4rem 0 0.75rem;
  font-family: var(--font-display);
}

.story-body p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Closing quote */
.story-quote-block {
  max-width: 640px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.story-quote-block::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 1rem;
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.08;
  font-family: var(--font-display);
  line-height: 1;
  pointer-events: none;
}

.story-quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .story-timeline::before { left: 24px; }
  .story-entry { gap: 1.25rem; }
  .story-icon { width: 52px; height: 52px; font-size: 1.2rem; border-radius: 14px; }
  .story-body { padding: 1.25rem; }
  .story-body::before, .story-body::after { display: none; }
  .story-quote-block { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   STORY HIGHLIGHT — last sentence emphasis
   ========================================================================== */
.story-highlight {
  display: inline;
  color: var(--accent);
  font-weight: 700;
  font-style: italic;
  position: relative;
}

/* ==========================================================================
   DARK MODE — overrides for elements using literal (non-variable) colors
   ========================================================================== */
[data-theme="dark"] .nav { background: rgba(28, 20, 13, 0.82); }
[data-theme="dark"] .nav .nav-links a:hover,
[data-theme="dark"] .nav .lang-btn:hover { background: rgba(255, 245, 230, 0.06) !important; }
[data-theme="dark"] .lang-sep { color: rgba(255, 245, 230, 0.22); }
[data-theme="dark"] .nav-toggle { background: rgba(255, 245, 230, 0.07); border-color: rgba(255, 245, 230, 0.14); }
[data-theme="dark"] .hero-badge { background: rgba(255, 245, 230, 0.06); border-color: rgba(255, 245, 230, 0.12); }
[data-theme="dark"] .btn-ghost { background: rgba(255, 245, 230, 0.04); }

@media (max-width: 768px) {
  [data-theme="dark"] .nav-links { background: rgba(36, 26, 17, 0.98); }
  [data-theme="dark"] .nav .nav-links a:hover { background: rgba(255, 245, 230, 0.06) !important; }
  [data-theme="dark"] .nav .lang-btn { background: rgba(255, 245, 230, 0.05) !important; }
}

[data-theme="dark"] .mobile-nav-dimmer { background: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .mobile-nav-close { background: rgba(255, 245, 230, 0.07); }
[data-theme="dark"] .mobile-nav-close:hover { background: rgba(255, 245, 230, 0.14); }

[data-theme="dark"] .nav-dropdown { background: rgba(36, 26, 17, 0.98); }

/* ==========================================================================
   THEME TOGGLE — segmented sun/moon control
   ========================================================================== */
.theme-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(43, 32, 21, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.theme-btn:hover { color: var(--accent); }

.theme-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(179, 85, 47, 0.35);
}

[data-theme="dark"] .theme-toggle-group { background: rgba(255, 245, 230, 0.07); }
[data-theme="dark"] .theme-btn.active { box-shadow: 0 3px 10px rgba(221, 133, 82, 0.4); }

@media (max-width: 768px) {
  .theme-toggle-group { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; }
}
/* ==========================================================================
   TESTIMONIALS — bento-style tinted quote cards
   ========================================================================== */
.testimonials-section { background: var(--bg-elevated); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card:nth-child(1) { background: linear-gradient(160deg, rgba(179,85,47,.10), var(--surface) 55%); border-color: rgba(179,85,47,.20); }
.testimonial-card:nth-child(2) { background: linear-gradient(160deg, rgba(109,117,72,.10), var(--surface) 55%); border-color: rgba(109,117,72,.20); }
.testimonial-card:nth-child(3) { background: linear-gradient(160deg, rgba(200,146,58,.12), var(--surface) 55%); border-color: rgba(200,146,58,.20); }

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card .quote-mark {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

.testimonial-card:nth-child(2) .quote-mark { color: var(--olive); }
.testimonial-card:nth-child(3) .quote-mark { color: var(--gold); }

.testimonial-quote {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.testimonial-avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-card:nth-child(2) .testimonial-avatar { background: var(--olive); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: var(--gold); }

.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-meta strong { font-size: 0.9rem; color: var(--ink); font-weight: 700; }
.testimonial-meta span { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

@media (max-width: 992px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NAV DROPDOWN — undermenu
   ========================================================================== */
.nav-links li { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 250, 242, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-width: 200px;
  list-style: none;
  box-shadow: 0 16px 48px rgba(43,32,21,0.16);
  z-index: 200;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--line);
}

.nav-links li:hover .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block !important;
  padding: 0.6rem 1rem !important;
  border-radius: 8px !important;
  color: var(--ink-soft) !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-dropdown li a:hover {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}

/* Indicator arrow on parent */
.nav-links li:has(.nav-dropdown) > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(43,32,21,0.04);
    border: none;
    border-left: 2px solid rgba(179,85,47,0.3);
    border-radius: 0;
    margin-left: 1rem;
    padding: 0.25rem 0;
    display: block;
  }

  .nav-dropdown li a {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
  }

  .nav-links li:has(.nav-dropdown) > a::after { display: none; }
}
