/*
Theme Name: Zovay
Theme URI: https://zovay.app
Author: Zovay
Description: Official custom WordPress theme for Zovay, the travel companion app. Built directly from the real Zovay iOS app and backend — no invented features, no dating-app language, no paid plugin dependency. Includes a lightweight built-in multilingual routing system (no WPML/Polylang required).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: zovay
*/

/* ==========================================================================
   Design tokens — mirrors Zovay's native iOS design system exactly
   (ZovayColors.swift / ZovayTypography.swift). Do not hand-pick new
   colors elsewhere in this theme; add a token here instead.
   ========================================================================== */
:root {
  --zv-ink: #0E2336;
  --zv-surface: #173B52;
  --zv-ivory: #F5F1E8;
  --zv-gold: #D4B45E;
  --zv-gold-bright: #E5C875;
  --zv-gold-deep: #B8932F;
  --zv-success: #7DA88C;
  --zv-danger: #C77878;

  --zv-ivory-70: rgba(245, 241, 232, 0.7);
  --zv-ivory-50: rgba(245, 241, 232, 0.5);
  --zv-ivory-12: rgba(245, 241, 232, 0.12);
  --zv-ivory-06: rgba(245, 241, 232, 0.06);

  --zv-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --zv-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --zv-radius-sm: 8px;
  --zv-radius-md: 14px;
  --zv-radius-lg: 22px;

  --zv-max-width: 1120px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--zv-ink);
  color: var(--zv-ivory);
  font-family: var(--zv-font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--zv-gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--zv-font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--zv-ivory);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--zv-ivory-70); }

/* Visible, unmissable focus states — never removed for aesthetics. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--zv-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.zv-container {
  max-width: var(--zv-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.zv-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.zv-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--zv-gold);
  color: var(--zv-ink);
  padding: 12px 20px;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.zv-skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.zv-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(14, 35, 54, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--zv-ivory-12);
}
.zv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--zv-max-width);
  margin: 0 auto;
}
.zv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--zv-font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--zv-ivory);
}
.zv-logo img { width: 32px; height: 32px; }
.zv-logo:hover, .zv-logo:focus-visible { text-decoration: none; opacity: 0.9; }

.zv-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.zv-nav a {
  color: var(--zv-ivory-70);
  font-size: 0.95rem;
  font-weight: 500;
}
.zv-nav a:hover, .zv-nav a:focus-visible { color: var(--zv-ivory); text-decoration: none; }

.zv-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zv-lang-select {
  background: var(--zv-ivory-06);
  border: 1px solid var(--zv-ivory-12);
  color: var(--zv-ivory);
  border-radius: var(--zv-radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: var(--zv-font-sans);
}

.zv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.zv-btn:hover, .zv-btn:focus-visible { text-decoration: none; }
.zv-btn-primary {
  background: linear-gradient(180deg, var(--zv-gold-bright), var(--zv-gold) 55%, var(--zv-gold-deep));
  color: #1A1208;
}
.zv-btn-primary:hover, .zv-btn-primary:focus-visible { filter: brightness(1.05); }
.zv-btn-ghost {
  background: transparent;
  border: 1px solid rgba(212, 180, 94, 0.5);
  color: var(--zv-gold);
}
.zv-btn-ghost:hover, .zv-btn-ghost:focus-visible { background: rgba(212, 180, 94, 0.08); }

/* Mobile nav */
.zv-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--zv-ivory-12);
  border-radius: var(--zv-radius-sm);
  color: var(--zv-ivory);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width: 860px) {
  .zv-nav {
    display: none;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--zv-ink);
    border-left: 1px solid var(--zv-ivory-12);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 24px 24px;
    gap: 22px;
    overflow-y: auto;
  }
  .zv-nav.is-open { display: flex; }
  .zv-nav a { font-size: 1.05rem; }
  .zv-nav-toggle { display: inline-flex; }
  .zv-header-actions .zv-btn-primary { display: none; }
  .zv-nav .zv-mobile-cta { display: inline-flex; margin-top: 10px; }
}
.zv-nav .zv-mobile-cta { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.zv-hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}
.zv-hero::before {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(closest-side, rgba(229, 200, 117, 0.22), transparent);
  pointer-events: none;
}
.zv-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.zv-eyebrow {
  display: inline-block;
  color: var(--zv-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.zv-hero h1 .zv-gold-word { color: var(--zv-gold); }
.zv-hero-sub {
  font-size: 1.1rem;
  color: var(--zv-ivory-70);
  max-width: 560px;
  margin: 0 auto 32px;
}
.zv-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.zv-store-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--zv-ivory-50);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.zv-section {
  padding: 70px 0;
  border-top: 1px solid var(--zv-ivory-06);
}
.zv-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.zv-section-head p { max-width: 520px; margin-left: auto; margin-right: auto; }

.zv-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .zv-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .zv-steps { grid-template-columns: 1fr; }
}
.zv-step-card {
  background: var(--zv-ivory-06);
  border: 1px solid var(--zv-ivory-12);
  border-radius: var(--zv-radius-lg);
  padding: 26px 22px;
}
.zv-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(212, 180, 94, 0.14);
  color: var(--zv-gold);
  font-weight: 700;
  font-family: var(--zv-font-serif);
  margin-bottom: 14px;
}
.zv-step-card h3 { margin-bottom: 8px; }
.zv-step-card p { margin: 0; font-size: 0.95rem; }

.zv-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .zv-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .zv-features { grid-template-columns: 1fr; }
}
.zv-feature-card {
  background: var(--zv-ivory-06);
  border: 1px solid var(--zv-ivory-12);
  border-radius: var(--zv-radius-lg);
  padding: 24px;
}
.zv-feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.zv-feature-card p { font-size: 0.9rem; margin: 0; }

.zv-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .zv-trust-grid { grid-template-columns: 1fr; }
}
.zv-trust-card {
  background: var(--zv-surface);
  border: 1px solid var(--zv-ivory-12);
  border-radius: var(--zv-radius-lg);
  padding: 28px 24px;
}
.zv-trust-card h3 { font-size: 1.1rem; }
.zv-trust-card p { font-size: 0.92rem; }
.zv-trust-card a.zv-inline-link { font-weight: 600; }

.zv-cta-band {
  background: linear-gradient(135deg, rgba(212,180,94,0.16), rgba(212,180,94,0.03));
  border: 1px solid rgba(212,180,94,0.28);
  border-radius: var(--zv-radius-lg);
  padding: 44px 32px;
  text-align: center;
}
.zv-cta-band h2 { margin-bottom: 10px; }

/* ==========================================================================
   Legal / content pages
   ========================================================================== */
.zv-page-header {
  padding: 56px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--zv-ivory-06);
}
.zv-page-header .zv-meta {
  color: var(--zv-ivory-50);
  font-size: 0.85rem;
}
.zv-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
.zv-prose h2 { margin-top: 2em; font-size: 1.4rem; }
.zv-prose h3 { margin-top: 1.5em; font-size: 1.1rem; }
.zv-prose ul, .zv-prose ol { color: var(--zv-ivory-70); padding-left: 1.3em; }
.zv-prose li { margin-bottom: 0.5em; }
.zv-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem; }
.zv-prose th, .zv-prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--zv-ivory-12); vertical-align: top; }
.zv-prose th { color: var(--zv-ivory); background: var(--zv-ivory-06); }

.zv-callout {
  background: rgba(199, 120, 120, 0.1);
  border: 1px solid rgba(199, 120, 120, 0.4);
  border-radius: var(--zv-radius-md);
  padding: 18px 20px;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.zv-callout strong { color: var(--zv-danger); }

.zv-source-link-box {
  background: var(--zv-ivory-06);
  border: 1px solid var(--zv-ivory-12);
  border-radius: var(--zv-radius-md);
  padding: 18px 20px;
  margin-bottom: 2em;
  font-size: 0.92rem;
}

/* ==========================================================================
   FAQ (support page)
   ========================================================================== */
.zv-faq details {
  border-bottom: 1px solid var(--zv-ivory-12);
  padding: 16px 0;
}
.zv-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--zv-ivory);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.zv-faq summary::-webkit-details-marker { display: none; }
.zv-faq summary::after { content: "+"; color: var(--zv-gold); font-size: 1.2rem; flex-shrink: 0; }
.zv-faq details[open] summary::after { content: "−"; }
.zv-faq .zv-faq-answer { margin-top: 10px; font-size: 0.95rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.zv-footer {
  border-top: 1px solid var(--zv-ivory-12);
  padding: 56px 0 32px;
  background: var(--zv-surface);
}
.zv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 780px) {
  .zv-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .zv-footer-grid { grid-template-columns: 1fr; }
}
.zv-footer-brand .zv-logo { margin-bottom: 12px; }
.zv-footer-brand p { font-size: 0.9rem; max-width: 260px; }
.zv-footer h4 {
  font-family: var(--zv-font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zv-gold);
  margin-bottom: 14px;
}
.zv-footer ul { list-style: none; margin: 0; padding: 0; }
.zv-footer li { margin-bottom: 10px; }
.zv-footer a { color: var(--zv-ivory-70); font-size: 0.9rem; }
.zv-footer a:hover, .zv-footer a:focus-visible { color: var(--zv-ivory); }
.zv-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--zv-ivory-12);
  font-size: 0.82rem;
  color: var(--zv-ivory-50);
}

/* ==========================================================================
   404
   ========================================================================== */
.zv-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.zv-404 .zv-eyebrow { margin-bottom: 6px; }

/* ==========================================================================
   Widths — no horizontal scroll, ever
   ========================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
table, pre { display: block; overflow-x: auto; }
