/* ============================================================
   shared.css — Sibylity / SibylSoft
   Global styles shared across all pages.
   Page-specific styles live in each HTML file's <style> block.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --primary: #7f44f8;
  --primary-dark: #6530d4;
  --primary-light: #b590ff;
  --primary-subtle: #f3eeff;
  --orange: #c2561b;
  --blue: #007cbe;
  --green: #598219;
  --muted: #767676;
  --border: #c4c4c4;
  --off-white: #f8f8fb;
  --ink: #1a1a2e;
  --ink-soft: #444458;
  --shadow-sm: 0 1px 4px rgba(127, 68, 248, 0.08);
  --shadow-md: 0 4px 16px rgba(127, 68, 248, 0.12);
  --shadow-lg: 0 8px 32px rgba(127, 68, 248, 0.18);
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
}

.sublist {
  list-style-type: lower-alpha;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
}

/* ── Navigation placeholder (reserves space before partial loads) */
#nav-placeholder {
  height: 64px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-subtle);
}

.btn-download {
  background: var(--green);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-download:hover {
  background: #476b14;
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ── Typography helpers ────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 58ch;
}

/* ── Shared hero chrome ────────────────────────────────────── */
.hero {
  background: linear-gradient(145deg, #f3eeff 0%, #e8f1ff 60%, #eef4fb 100%);
  padding: 8rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(127, 68, 248, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(127, 68, 248, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: heroFade 0.6s ease 0.1s both;
}

.hero h1 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  animation: heroFade 0.6s ease 0.25s both;
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 2rem;
  animation: heroFade 0.6s ease 0.4s both;
}

/* ── Scroll-reveal ─────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Shared section layouts ────────────────────────────────── */
.quotes-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 6rem 2.5rem;
}

.quotes-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.quote-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.quote-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-weight: 500;
  font-size: 0.875rem;
  color: white;
}

.quote-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}

.cta-section {
  padding: 6rem 2.5rem;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Quote card author ─────────────────────────────────────── */
.quote-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.quote-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* ── Global responsive ─────────────────────────────────────── */
/* ── Hamburger button (hidden on desktop) ──────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: var(--primary-subtle);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animated X state */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  nav {
    padding: 0 1.25rem;
    position: fixed;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;

    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    padding: 1rem 1.25rem 1.5rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--ink-soft);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .nav-cta {
    display: block;
    text-align: center;
    padding: 0.75rem 1.25rem !important;
  }

  .quotes-grid {
    grid-template-columns: 1fr;
  }

  .quotes-section,
  .cta-section {
    padding: 4rem 1.25rem;
  }

  footer {
    padding: 2rem 1.25rem;
  }

  .footer-links {
    gap: 1rem;
  }
}