/* ================================================================
   ritacyber.com — shared stylesheet for non-tutoring section pages
   Matches the design language of the existing CyberScholars page.
   ================================================================ */

:root {
  --bg: #f5f1ea;
  --bg-warm: #ede5d3;
  --paper: #faf6ee;
  --ink: #0f1714;
  --ink-soft: #2a322e;
  --forest: #1a3328;
  --forest-deep: #0d1f17;
  --terracotta: #d96239;
  --terracotta-deep: #b94c25;
  --gold: #c9a45c;
  --muted: #6b6b63;
  --line: rgba(15, 23, 20, 0.12);
  --line-soft: rgba(15, 23, 20, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR
   Uses mix-blend-mode: difference with a WHITE cursor.
   On light backgrounds (cream/paper) → cursor appears dark.
   On dark backgrounds (ink) → cursor appears light.
   Both ring and dot must be white for difference blending to work. */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  mix-blend-mode: difference;
  will-change: transform, left, top;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #ffffff;
  border-radius: 50%;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  transition: transform 0.15s ease-out, width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 960px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--line-soft);
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-style: italic;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:not(.btn-book)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn-book):hover::after { width: 100%; }
.nav-links a:not(.btn-book):hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after { width: 100%; }

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.btn-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.btn-book:hover::before { transform: translateY(0); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

/* MAGNETIC BUTTON */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 36px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.btn-magnetic::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.btn-magnetic:hover::before { transform: scaleX(1); }
.btn-magnetic .arrow {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  transition: transform 0.3s ease;
}
.btn-magnetic .arrow::before {
  content: '↗';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.btn-magnetic:hover .arrow { transform: rotate(45deg); color: var(--terracotta); }

/* GHOST BUTTON (light bg) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* GENERIC SECTION */
section { padding: 140px 40px; position: relative; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header { margin-bottom: 80px; }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--terracotta);
}

h2.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 1000px;
}
h2.section-title .italic {
  font-style: italic;
  color: var(--terracotta);
}

/* DARK SECTION VARIANT */
.dark { background: var(--ink); color: var(--bg); }
.dark .section-title { color: var(--bg); }
.dark .section-eyebrow { color: var(--terracotta); }
.dark .section-eyebrow::before { background: var(--terracotta); }

/* FOOTER */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 40px 32px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--bg); }
.footer-brand p {
  margin-top: 16px;
  font-size: 14.5px;
  max-width: 320px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer-brand a.email {
  color: var(--terracotta);
  text-decoration: none;
  margin-top: 16px;
  display: inline-block;
  font-size: 14.5px;
}
.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--terracotta);
  margin-bottom: 22px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.4);
  font-size: 12.5px;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* MOBILE BASE */
@media (max-width: 960px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 28px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  section { padding: 90px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
