/* ═══ XO LOVE — Pages (Home, FAQ, Contact, etc.) ═══ */

/* Hero — fullscreen video, overlaps header */
.xo-hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: -82px; /* overlap sticky header */
  padding-top: 82px; /* compensate */
}
.xo-hero-video {
  position: absolute;
  inset: 0;
}
.xo-hero-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Grey-ish tint like original xolove */
  filter: brightness(0.85) contrast(1.1);
}
.xo-hero-vid-mobile { display: none; }
/* Gradient — only at very bottom, subtle */
.xo-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, rgba(14,14,14,0.5) 60%, var(--xo-bg) 100%);
  pointer-events: none;
}

/* Header transparent on homepage until scroll */
body.home .xo-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
body.home .xo-header.scrolled {
  background: rgba(14, 14, 14, 0.95);
  border-bottom-color: var(--xo-border);
  backdrop-filter: blur(12px);
}

/* Text block below video — visible, hides on scroll up to video */
.xo-hero-text {
  padding: 40px 0 50px;
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.xo-hero-title {
  font-size: 2.8rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.xo-hero-sub {
  font-size: 1.1rem;
  color: var(--xo-text-secondary);
  margin-bottom: 0;
}

/* SEO content (visible) */
.xo-seo-content h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.xo-seo-content p {
  font-size: 1rem;
  color: var(--xo-text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: none;
}
.xo-seo-content a {
  color: var(--xo-accent);
}
.xo-seo-content a:hover { text-decoration: underline; }

/* FAQ */
.xo-faq-list { max-width: 800px; margin: 0 auto; }
.xo-faq-item {
  border: 1px solid var(--xo-border);
  border-radius: var(--xo-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.xo-faq-q {
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--xo-bg-card);
  transition: background var(--xo-transition);
  color: var(--xo-accent);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--xo-font);
}
.xo-faq-q:hover { background: var(--xo-bg-elevated); }
.xo-faq-q svg {
  width: 16px;
  height: 16px;
  color: var(--xo-text-muted);
  transition: transform var(--xo-transition);
  flex-shrink: 0;
}
.xo-faq-item.open .xo-faq-q svg { transform: rotate(180deg); }
.xo-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--xo-transition-slow), padding var(--xo-transition-slow);
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.8;
  padding: 0 18px;
}
.xo-faq-item.open .xo-faq-a {
  max-height: 300px;
  padding: 14px 18px 16px;
}

/* Contact form */
.xo-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}
.xo-contact-info h2 { margin-bottom: 16px; }
.xo-contact-info a {
  color: var(--xo-text-secondary);
}
.xo-contact-info a:hover { color: var(--xo-accent); }

/* CF7 form styling — dark theme */
.wpcf7 label { display: block; font-size: 0.85rem; color: var(--xo-text-muted); margin-bottom: 14px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%; padding: 12px 14px; margin-top: 5px;
  background: var(--xo-bg-elevated); border: 1px solid var(--xo-border);
  border-radius: var(--xo-radius-sm); color: var(--xo-text); font-size: 0.9rem;
  font-family: var(--xo-font); transition: border-color var(--xo-transition);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--xo-accent); }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--xo-accent); color: #000; border: none; padding: 14px 32px;
  border-radius: var(--xo-radius-sm); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; font-family: var(--xo-font); transition: all var(--xo-transition);
  margin-top: 8px;
}
.wpcf7 input[type="submit"]:hover { background: var(--xo-accent-hover); }
.wpcf7-response-output { color: var(--xo-accent); border-color: var(--xo-accent) !important; font-size: 0.85rem; }

/* Generic page */
.xo-page-content {
  max-width: 800px;
  margin: 0 auto;
}
.xo-page-content p,
.xo-page-content li {
  font-size: 0.9rem;
  color: var(--xo-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.xo-page-content h2 { margin: 24px 0 12px; }
.xo-page-content a { color: var(--xo-accent); }
.xo-page-content ul { padding-left: 20px; }
.xo-page-content ul li { list-style: disc; }

@media (max-width: 768px) {
  .xo-hero { height: 70vh; min-height: 350px; }
  .xo-hero-title { font-size: 1.8rem; }
  .xo-hero-vid-desktop { display: none; }
  .xo-hero-vid-mobile { display: block; }
  .xo-contact-grid { grid-template-columns: 1fr; }
}
