/* =============================================================================
   Synzo CMS public pages — legal docs, section templates, home style variants
   Works WITHOUT Bootstrap. Always load after website.css.
   ============================================================================= */

.ws-main { position: relative; z-index: 1; min-height: 50vh; }

.ws-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.cms-section { position: relative; z-index: 1; }
.cms-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
  color: var(--text-primary, #fff);
}

.cms-html--bleed { padding: 0; }
.cms-html--contained { padding: 2rem 0 3rem; }
.cms-html__body { width: 100%; }
.cms-html__body > *:first-child { margin-top: 0; }

/* ── Shared CMS section kit (hero / features / stats / …) ── */
.cms-hero,
.cms-features,
.cms-stats,
.cms-cta,
.cms-faq,
.cms-pricing,
.cms-testimonials,
.cms-gallery,
.cms-contact,
.cms-custom {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.cms-hero { text-align: center; padding-top: clamp(7rem, 16vw, 9rem); }
.cms-hero .cms-hero__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.cms-hero .cms-hero__sub {
  color: var(--text-secondary, #B0BEC5);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}
.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.cms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cms-btn:hover { transform: translateY(-1px); }
.cms-btn--primary {
  background: linear-gradient(135deg, #00D4FF 0%, #1FB8E8 100%);
  color: #041018;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}
.cms-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(0, 212, 255, 0.45);
}

.cms-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.cms-card {
  background: rgba(13, 27, 46, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 16px;
  padding: 1.35rem;
}
.cms-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.cms-card p { margin: 0; color: var(--text-secondary, #B0BEC5); line-height: 1.55; }

.cms-stat { text-align: center; }
.cms-stat__value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent-cyan, #00D4FF);
}
.cms-stat__label { color: var(--text-muted, #78909C); margin-top: 0.35rem; }

.cms-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(0,212,255,0.08), transparent);
  border-block: 1px solid rgba(0,212,255,0.12);
}
.cms-faq details {
  background: rgba(13, 27, 46, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}
.cms-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.cms-faq summary::-webkit-details-marker { display: none; }
.cms-faq details[open] summary { color: var(--accent-cyan, #00D4FF); margin-bottom: 0.65rem; }
.cms-faq details p { color: var(--text-secondary, #B0BEC5); margin: 0; line-height: 1.6; }

.cms-price {
  text-align: center;
  padding: 1.5rem;
}
.cms-price--featured {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}
.cms-price__amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin: 0.75rem 0;
}
.cms-price ul { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; }
.cms-price li {
  padding: 0.35rem 0;
  color: var(--text-secondary, #B0BEC5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cms-contact form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0 auto;
}
.cms-contact input,
.cms-contact textarea,
.cms-contact select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(10, 22, 40, 0.9);
  color: #fff;
  font: inherit;
}
.cms-contact textarea { min-height: 140px; resize: vertical; }

/* ── Legal / policy documents ── */
.legal-doc {
  padding: clamp(6.5rem, 12vw, 8rem) 0 4rem;
}
.legal-doc__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.legal-doc__eyebrow {
  display: inline-block;
  color: var(--accent-cyan, #00D4FF);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}
.legal-doc__hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 0.75rem 0 0.85rem;
}
.legal-doc__meta {
  color: var(--text-muted, #78909C);
  font-size: 0.9rem;
}
.legal-doc__divider {
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--accent-cyan, #00D4FF), transparent);
  border-radius: 99px;
}
.legal-doc__body {
  background: rgba(13, 27, 46, 0.72);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  line-height: 1.7;
  color: var(--text-secondary, #B0BEC5);
}
.legal-doc__body h2 {
  color: #fff;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
  font-family: 'Syne', sans-serif;
}
.legal-doc__body h2:first-child { margin-top: 0; }
.legal-doc__body p,
.legal-doc__body ul { margin: 0 0 0.9rem; }
.legal-doc__body ul { padding-left: 1.2rem; }
.legal-doc__body a { color: var(--accent-cyan, #00D4FF); }
.legal-doc__body .legal-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #fff;
}

/* ── Home style variants (body.template-*) ── */
body.template-classic-vintage {
  --accent-cyan: #c9a227;
  --bg-primary: #1a1510;
  --bg-secondary: #241c14;
  font-family: 'Source Serif 4', Georgia, serif;
}
body.template-modern-vintage {
  --accent-cyan: #e8a87c;
  --bg-primary: #12151c;
  font-family: 'Playfair Display', Georgia, serif;
}
body.template-tech {
  --accent-cyan: #39ff14;
  --bg-primary: #05080f;
  font-family: 'Space Mono', monospace;
}
body.template-premium {
  --accent-cyan: #d4af37;
  --bg-primary: #0b0b12;
  font-family: 'Libre Franklin', sans-serif;
}
body.template-classic {
  --accent-cyan: #4ea1ff;
  --bg-primary: #0f172a;
  font-family: 'IBM Plex Sans', sans-serif;
}
body.template-landing-single {
  --accent-cyan: #00e5ff;
}

.home-style-hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse at top, rgba(0,212,255,0.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.home-style-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.home-style-hero p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--text-secondary, #B0BEC5);
}

/* Footer safety */
.ws-footer,
footer {
  position: relative;
  z-index: 2;
}
.footer-grid {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: var(--text-secondary, #B0BEC5);
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent-cyan, #00D4FF); }
.footer-contact { margin: 1rem 0; padding: 0; list-style: none; }
.footer-contact a { color: var(--text-secondary, #B0BEC5); text-decoration: none; }

/* Responsive legal + CMS */
@media (max-width: 767.98px) {
  .legal-doc__body { border-radius: 14px; }
  .cms-actions { flex-direction: column; }
  .cms-btn { width: 100%; }
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
}
