/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--color-base-900);
  background: var(--color-base-50);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Navigation ── */
nav#navbar {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: oklch(0.974 0.005 78.25 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(0.693 0.143 50.61 / 0.1);
  transition: all 0.4s ease;
}
nav#navbar.scrolled {
  padding: 0 2rem;
  box-shadow: 0 4px 30px oklch(0.319 0.01 80.65 / 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-base-800);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-base-600);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary-400);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--color-primary-400); }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-primary { color: var(--color-base-50); }
.nav-links .btn-primary::after { display: none; }
.nav-links .btn-primary:hover { color: var(--color-base-50); }

/* Menu manager: class on <li> — style the child <a> as CTA */
.nav-links li.btn-primary,
.nav-links li.btnprimary { list-style: none; }
.nav-links li.btn-primary a,
.nav-links li.btnprimary a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-primary-400);
  color: var(--color-base-50);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px oklch(0.693 0.143 50.61 / 0.25);
}
.nav-links li.btn-primary a::after,
.nav-links li.btnprimary a::after { display: none; }
.nav-links li.btn-primary a:hover,
.nav-links li.btnprimary a:hover {
  background: var(--color-primary-500);
  color: var(--color-base-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px oklch(0.693 0.143 50.61 / 0.35);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-primary-400);
  color: var(--color-base-50);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px oklch(0.693 0.143 50.61 / 0.25);
}
.btn-primary:hover {
  background: var(--color-primary-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px oklch(0.693 0.143 50.61 / 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--color-primary-400);
  border: 1.5px solid var(--color-primary-200);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
}
.btn-secondary:hover {
  background: oklch(0.693 0.143 50.61 / 0.08);
  border-color: var(--color-primary-400);
  transform: translateY(-2px);
}

/* ── Mobile menu ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-base-800);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ── Section shared ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-tertiary-500);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--color-base-800);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-base-600);
  max-width: 600px;
  line-height: 1.8;
}

/* ── Leaf divider ── */
.leaf-divider {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.leaf-divider svg {
  width: 40px;
  height: 40px;
  color: var(--color-tertiary-400);
  opacity: 0.4;
}

/* ── Footer ── */
footer {
  background: var(--color-base-800);
  color: var(--color-base-50);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid oklch(0.956 0.007 80.68 / 0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  color: oklch(0.956 0.007 80.68 / 0.6);
  line-height: 1.7;
  margin-top: 0.75rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-base-50);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-base-50);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: oklch(0.956 0.007 80.68 / 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--color-primary-200); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: oklch(0.956 0.007 80.68 / 0.4);
}

/* ── Page template ── */
.page-content {
  padding: calc(72px + 3rem) 2rem 4rem;
}
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--color-base-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ── Content lists ── */
.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.35rem; }

/* ── Content images ── */
.page-content img,
.faq-answer img {
  max-width: 100%;
  height: auto;
}

/* ── FAQ Accordion ── */
.faq-intro {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--color-base-600);
  line-height: 1.8;
  max-width: 700px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid oklch(0.693 0.143 50.61 / 0.15);
  border-radius: 12px;
  background: oklch(0.974 0.005 78.25 / 0.6);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
  border-color: oklch(0.693 0.143 50.61 / 0.3);
}
.faq-item[open] {
  border-color: var(--color-primary-200);
  box-shadow: 0 2px 16px oklch(0.693 0.143 50.61 / 0.08);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-base-800);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-left: 1rem;
  border-right: 2px solid var(--color-primary-400);
  border-bottom: 2px solid var(--color-primary-400);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-item[open] > .faq-question::after {
  transform: rotate(-135deg);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-base-600);
  line-height: 1.8;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── Animations ── */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--color-base-50);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.active a { font-size: 1.2rem; }
  .menu-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
