/* ============================================
   EGITROKA.COM — Global Styles
   ============================================ */

/* VARIABLES */
:root {
  --ink: #1a1a1a;
  --warm-black: #2c2826;
  --cream: #f8f5f0;
  --warm-white: #fdfcfa;
  --olive: #4a5c3f;
  --olive-light: #6b7f5e;
  --olive-muted: #8a9a7d;
  --terracotta: #b8593e;
  --terracotta-light: #d4754f;
  --sand: #e8dfd4;
  --sand-light: #f0ebe3;
  --stone: #9c9488;
  --text-secondary: #6b635a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--olive);
  color: var(--cream);
}

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 252, 250, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 0.85rem 3rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--warm-black);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--olive); }

.nav-links a.cta-link {
  color: var(--warm-white);
  background: var(--olive);
  padding: 0.55rem 1.25rem;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.nav-links a.cta-link:hover { background: var(--olive-light); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.hero-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  opacity: 0;
  animation: fadeIn 1.2s ease 0.3s forwards;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
}

.hero-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--warm-black);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--olive);
}

.hero-sub {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-socials a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.hero-socials a:hover {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
section {
  padding: 7rem 6rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  margin-bottom: 2rem;
}

.section-rule {
  width: 3rem;
  height: 2px;
  background: var(--olive);
  margin-bottom: 2rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--cream); }
.about-inner { max-width: 720px; }
.about-inner p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.75;
  color: var(--warm-black);
  margin-bottom: 1.5rem;
}
.about-inner p.standout {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--olive);
  font-style: italic;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--olive-muted);
}
.about-inner p:last-child { margin-bottom: 0; }
.about-inner a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   SPEAKING
   ============================================ */
.speaking { background: var(--warm-black); color: var(--cream); }
.speaking .section-label { color: var(--olive-muted); }
.speaking .section-rule { background: var(--olive-muted); }

.speaking-intro {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--sand);
  max-width: 680px;
  margin-bottom: 4rem;
}

.keynotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.keynote-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 2.25rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.keynote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--terracotta);
  transition: height 0.4s ease;
}

.keynote-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}

.keynote-card:hover::before { height: 100%; }

.keynote-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.keynote-desc {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--stone);
}

.speaking-cta { text-align: center; padding-top: 1rem; }
.speaking-cta a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid var(--cream);
  transition: all 0.3s ease;
  display: inline-block;
}
.speaking-cta a:hover { background: var(--cream); color: var(--warm-black); }

.speaking-note {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--stone);
  font-style: italic;
}

/* ============================================
   LAB
   ============================================ */
.lab { background: var(--sand-light); }

.lab-intro {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--warm-black);
  max-width: 680px;
  margin-bottom: 3rem;
}

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

.lab-card {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.lab-card:hover {
  border-color: var(--olive);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.lab-card-featured {
  border-top: 3px solid var(--olive);
}

.lab-card-badge {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-white);
  background: var(--olive);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}

.lab-card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--warm-black);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.lab-card-desc {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.lab-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.lab-feature {
  display: flex; gap: 1rem; align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand-light);
}
.lab-feature:last-child { border-bottom: none; padding-bottom: 0; }

.lab-feature-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--olive); white-space: nowrap; min-width: 140px;
}

.lab-feature-text {
  font-family: var(--sans); font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary);
}

.lab-card-link {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: var(--olive); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.lab-card-link:hover { border-bottom-color: var(--olive); }

.lab-card-tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.lab-card-tag {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--olive); background: var(--sand-light);
  padding: 0.3rem 0.65rem; border: 1px solid var(--sand);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--warm-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.testimonial-card { padding: 2.5rem 0; border-top: 2px solid var(--olive); }
.testimonial-quote {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.7;
  color: var(--warm-black); margin-bottom: 1.75rem; font-style: italic;
}
.testimonial-name { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.testimonial-role { font-family: var(--sans); font-size: 0.78rem; color: var(--stone); }

/* ============================================
   NEWSLETTER / THINKING
   ============================================ */
.thinking { background: var(--cream); }

.thinking-intro {
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.7;
  color: var(--warm-black); max-width: 680px; margin-bottom: 3rem;
}

.thinking-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }

.thinking-card {
  background: var(--warm-white); padding: 2.25rem;
  border: 1px solid var(--sand); transition: all 0.4s ease;
  text-decoration: none; display: block; position: relative;
}
.thinking-card:hover {
  border-color: var(--olive); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.thinking-tag {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--terracotta); margin-bottom: 0.85rem;
}
.thinking-title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--warm-black); line-height: 1.35; margin-bottom: 0.85rem;
}
.thinking-excerpt { font-family: var(--sans); font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); }
.thinking-link {
  display: inline-block; margin-top: 1.25rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  color: var(--olive); text-transform: uppercase; letter-spacing: 0.1em;
}

.thinking-subscribe { text-align: center; margin-top: 3rem; }
.thinking-subscribe a {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--olive); text-decoration: none;
  padding: 0.85rem 2rem; border: 1.5px solid var(--olive);
  transition: all 0.3s ease; display: inline-block;
}
.thinking-subscribe a:hover { background: var(--olive); color: var(--cream); }

/* ============================================
   CREDENTIALS
   ============================================ */
.credentials { background: var(--warm-white); padding: 4rem 6rem; text-align: center; }
.credentials .section-label { margin-bottom: 2.5rem; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: nowrap; }
.logo-item {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--stone); opacity: 0.7; transition: opacity 0.3s ease;
  white-space: nowrap;
}
a.logo-item {
  text-decoration: none;
  color: var(--stone);
}
a.logo-item:hover { opacity: 1; color: var(--olive); }

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact { background: var(--warm-black); color: var(--cream); padding: 7rem 6rem 4rem; text-align: center; }
.contact-headline { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.contact-sub { font-family: var(--sans); font-size: 1rem; color: var(--sand); margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.contact-email { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--olive-muted); transition: all 0.3s ease; }
.contact-email:hover { color: var(--terracotta-light); border-bottom-color: var(--terracotta-light); }

.footer-bar { margin-top: 6rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--sans); font-size: 0.75rem; color: var(--stone); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-family: var(--sans); font-size: 0.75rem; color: var(--stone); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--cream); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
/* Inner page top spacing (below fixed nav) */
.page-top { padding-top: 10rem; }

/* ============================================
   RESPONSIVE — TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
  section { padding: 5rem 3rem; }
  nav { padding: 1rem 2rem; }
  .hero-text { padding: 5rem 3rem; }
  .keynotes-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .thinking-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ============================================
   RESPONSIVE — MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
  /* NAV — hamburger menu */
  nav {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .nav-name { font-size: 1.15rem; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--warm-black);
    transition: all 0.3s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .nav-links a.cta-link {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
  }

  /* HERO */
  .hero {
    min-height: auto;
    padding: 7rem 1.5rem 3rem;
  }
  .hero-portrait {
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
  }
  .hero-headline { font-size: 2rem; margin-bottom: 1.25rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-socials { gap: 1.25rem; margin-top: 2rem; }
  .hero-socials a { font-size: 0.82rem; }

  /* SECTIONS */
  section { padding: 3.5rem 1.5rem; }
  .page-top { padding-top: 7rem; }

  .section-label { font-size: 0.65rem; margin-bottom: 1.25rem; }

  /* ABOUT */
  .about-inner p { font-size: 1.1rem; line-height: 1.7; }
  .about-inner p.standout { font-size: 1.25rem; margin: 2rem 0; }

  /* SPEAKING */
  .speaking-intro { font-size: 1.1rem; margin-bottom: 2.5rem; }
  .keynote-card { padding: 1.5rem; }
  .keynote-title { font-size: 1.15rem; }
  .keynote-desc { font-size: 0.85rem; }
  .speaking-cta a { padding: 0.85rem 2rem; font-size: 0.8rem; }

  /* LAB */
  .lab-intro { font-size: 1.1rem; }
  .lab-card { padding: 1.75rem; }
  .lab-card-title { font-size: 1.2rem; }
  .lab-feature { flex-direction: column; gap: 0.35rem; }
  .lab-feature-label { min-width: auto; }

  /* NEWSLETTER */
  .thinking-intro { font-size: 1.1rem; }
  .thinking-card { padding: 1.5rem; }
  .thinking-title { font-size: 1.1rem; }
  .thinking-subscribe a { padding: 0.75rem 1.5rem; font-size: 0.78rem; }

  /* CREDENTIALS */
  .credentials { padding: 2.5rem 1.5rem; }
  .logos-row { gap: 1.25rem 2rem; justify-content: center; flex-wrap: wrap; text-align: center; }
  .logo-item { text-align: center; }
  .logo-item { font-size: 0.7rem; }

  /* CONTACT / FOOTER */
  .contact { padding: 4rem 1.5rem 2.5rem; }
  .contact-headline { font-size: 1.75rem; }
  .contact-sub { font-size: 0.9rem; }
  .contact-email { font-size: 1.15rem; }
  .footer-bar { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  .hero { padding: 6rem 1.25rem 2rem; }
  .hero-portrait { width: 150px; height: 150px; }
  .hero-headline { font-size: 1.75rem; }
  .hero-sub { font-size: 0.9rem; }

  section { padding: 3rem 1.25rem; }

  .about-inner p { font-size: 1rem; }
  .about-inner p.standout { font-size: 1.15rem; }

  .keynotes-grid { gap: 1rem; }
  .keynote-card { padding: 1.25rem; }

  .lab-card { padding: 1.5rem; }

  .thinking-card { padding: 1.25rem; }

  .credentials { padding: 2rem 1.25rem; }
  .logos-row { flex-direction: column; align-items: center; gap: 0.85rem; }

  .contact { padding: 3rem 1.25rem 2rem; }
}

