/* filepath: c:\Users\sorot\Desktop\faq\faq.css */
/* ...existing code... */
:root{
  /* darker green theme */
  --bg: #042921;        /* page background (very dark green) */
  --card: #073826;      /* panel background (slightly lighter) */
  --muted: #cfeadd;     /* muted text on dark bg */
  --accent: #0fb06f;    /* primary accent (darker green) */
  --accent-2: #08a063;  /* secondary accent */
  --glass: rgba(67,181,135,0.12); /* unified liquid-glass value */
  --shadow: 0 10px 30px rgba(2,18,14,0.6);
  --radius: 12px;
  --transition: 240ms cubic-bezier(.2,.9,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,body {
  height:100%;
  margin:0;
  background: transparent; /* allow the video to show through */
  background-color: transparent;
  font-family: var(--font);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  color: var(--muted);
}

.faq {
  max-width: 760px;
  margin: 48px auto;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), var(--card));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,61,47,0.18);
  background: transparent; /* allow video to show through */
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border: 1px solid rgba(67,181,135,0.12);
  position: relative;
  z-index: 1;
}

.faq h2 {
  margin: 0 0 18px 0;
  font-size: 1.375rem;
  letter-spacing: -0.2px;
  color: var(--accent-2);
}

/* each item appears as a soft card */
.faq-item {
  background: linear-gradient(180deg, rgba(11,61,47,0.04), transparent);
  border-radius: calc(var(--radius) - 6px);
  padding: 14px;
  margin: 10px 0;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: none;
  border: 1px solid rgba(6,32,26,0.18);
  background: linear-gradient(180deg, rgba(67,181,135,0.04), rgba(7,56,38,0.02));
  border: 1px solid rgba(67,181,135,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

/* elevate open item */
.faq-item.open {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(3,28,22,0.55);
  /* use the unified glass color for the subtle open background */
  background: linear-gradient(180deg, rgba(67,181,135,0.12), rgba(7,56,38,0.02));
}

/* question button styled as pill */
.faq-question {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e6f6ef;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

/* hover/focus */
.faq-question:hover { background: var(--glass); }
.faq-question:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(67, 181, 135, 0.12);
  border-radius: 8px;
}

/* arrow indicator */
.faq-question::after {
  /* liquid-glass circular icon with centered arrow */
  content: "▸";
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -6px 18px rgba(2,18,14,0.06),
    0 8px 18px rgba(2,18,14,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .22s ease, color .22s ease, box-shadow .22s ease, background .22s ease;
  margin-left: 12px;
}

/* subtle glossy highlight to sell the liquid effect */
.faq-question::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
  position: relative;
  right: -18px;
  top: -8px;
  pointer-events: none;
  background: radial-gradient(closest-side at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 45%, transparent 60%);
  opacity: 0.9;
  transform: translateY(0);
  transition: transform .28s var(--transition), opacity .22s ease;
}

/* rotate icon and shift highlight when open */
.faq-item.open .faq-question::after {
  transform: rotate(90deg) translateX(2px);
  color: var(--accent-2);
  background: linear-gradient(180deg, rgba(15,176,111,0.06), rgba(255,255,255,0.01));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -6px 18px rgba(6,32,26,0.08),
    0 18px 36px rgba(3,28,22,0.55);
}

.faq-item.open .faq-question::before {
  transform: translateY(-2px) translateX(4px) scale(0.95);
  opacity: 0.95;
}

/* answer animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), opacity var(--transition), padding var(--transition);
  color: var(--muted);
  padding: 0 10px;
  opacity: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* visible answer */
.faq-item.open .faq-answer {
  padding: 10px;
  opacity: 1;
  /* JS will set max-height inline for smooth sizing; this provides a fallback */
  max-height: 400px;
}

/* paragraph spacing */
.faq-answer p { margin: 0; }

/* small screens */
@media (max-width:520px){
  .faq { margin: 20px; padding: 16px; }
  .faq-question { padding: 10px; font-size: 0.98rem; }
}

/* video background: covers the viewport behind the page */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: contrast(0.95) saturate(0.9) brightness(0.6);
}

/* translucent tint layer to ensure legible foreground (uses your 67,181,135,0.12 color) */
.bg-overlay {
  display: none !important; /* ensure overlay is fully removed */
  background: transparent !important;
  pointer-events: none;
}

/* ensure main content sits above the overlay/video */
.faq {
  position: relative;
  z-index: 1;
}

/* optionally slightly lift FAQ cards for contrast */
.faq-item {
  position: relative;
  z-index: 2;
}

/* top-right small static logo */
#site-logo{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 72px; /* slightly bigger for better presence */
  height: auto;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 12px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  object-fit: cover;
  box-shadow:
    0 10px 22px rgba(2,10,8,0.55),
    inset 0 2px 6px rgba(67,181,135,0.06);
  transition: transform 420ms cubic-bezier(.16,.84,.36,1), box-shadow 420ms cubic-bezier(.16,.84,.36,1), filter 420ms cubic-bezier(.16,.84,.36,1), opacity 420ms;
  will-change: transform, box-shadow, filter, opacity;
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* hover / focus - smooth modern lift + soft glow */
#site-logo:hover,
#site-logo:focus,
#site-logo:focus-visible {
  transform: translate3d(0,-8px,0) scale(1.08) rotate(-3deg);
  box-shadow:
    0 26px 54px rgba(2,10,8,0.66),
    0 0 36px rgba(67,181,135,0.18),
    inset 0 3px 8px rgba(255,255,255,0.02);
  filter: saturate(1.06) drop-shadow(0 8px 22px rgba(0,0,0,0.45));
  animation: logo-glow 1100ms cubic-bezier(.16,.84,.36,1) both;
}

/* pressed effect (subtle) */
#site-logo:active {
  transform: translate3d(0,-4px,0) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 12px 30px rgba(2,10,8,0.6), 0 0 16px rgba(67,181,135,0.12);
}

/* refined keyframes: smooth pulse for glow only */
@keyframes logo-glow {
  0% {
    box-shadow:
      0 18px 40px rgba(2,10,8,0.6),
      0 0 12px rgba(67,181,135,0.12);
    transform: translate3d(0,-6px,0) scale(1.06) rotate(-2deg);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 30px 70px rgba(2,10,8,0.7),
      0 0 40px rgba(67,181,135,0.22);
    transform: translate3d(0,-9px,0) scale(1.1) rotate(-3deg);
    opacity: 1;
  }
  100% {
    box-shadow:
      0 26px 54px rgba(2,10,8,0.66),
      0 0 36px rgba(67,181,135,0.18);
    transform: translate3d(0,-8px,0) scale(1.08) rotate(-3deg);
    opacity: 1;
  }
}

/* accessible: respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  #site-logo {
    transition: none;
    animation: none !important;
  }
  #site-logo:hover,
  #site-logo:focus,
  #site-logo:focus-visible {
    transform: none;
    box-shadow: 0 12px 28px rgba(2,10,8,0.6);
    filter: none;
  }
}

/* responsive tweak */
@media (max-width:520px){
  #site-logo{ width:60px; top:10px; right:10px; padding:4px; }
}