:root {
  --ink: #172033;
  --paper: #f7f7f2;
  --cream: #efefe8;
  --accent: #7c5df2;
  --accent-soft: #efeffd;
  --muted: #5a6477;
  --border: #d6ddcf;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: rgba(247, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  font-weight: 500;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: #6346d0;
  transform: translateY(-1px);
}

#header-placeholder {
  min-height: 72px; /* Standard Nav Height */
}

#footer-placeholder {
  min-height: 240px; /* Standard Footer Height */
}

/* ── FOOTER ── */
footer {
  padding: 64px 48px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-logo img {
  width: 24px;
  height: 24px;
}

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

.copyright {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}

.copyright a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.copyright a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── COMMON UTILITIES ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #6346d0;
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--cream);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  footer {
    padding: 48px 24px;
    gap: 40px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 24px;
  }
  .copyright {
    text-align: center;
  }
}

/* ── FAQ ── */
.faq {
  padding: 96px 48px;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-item:hover .faq-q {
  color: var(--accent);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.faq-item.open .faq-a {
  max-height: 200px;
  margin-bottom: 24px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 140px 48px 80px;
  text-align: center;
  background: var(--cream);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 80%, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.4;
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
}

.page-header h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.page-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 16px auto 0;
  position: relative;
  line-height: 1.6;
}

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

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  line-height: 1.1;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--ink);
  padding: 96px 48px;
  text-align: center;
}

.cta-section h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.1;
}

.cta-section h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
}

.cta-section p {
  color: rgba(245, 242, 236, 0.55);
  font-size: 1rem;
  margin-bottom: 40px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(245, 242, 236, 0.35);
}
