/*
Theme Name: Vireo
Theme URI: https://example.com/vireo
Author: Vireo Studio
Author URI: https://example.com
Description: A minimal, modern block theme (Full Site Editing) for a WordPress design & development studio. Purple brand palette, glass sticky header, full-width cover hero. Edit everything in the Site Editor or directly in these files.
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vireo
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, sticky-header, one-column
*/

/* ============================================================
   Vireo — theme styles. Everything the blocks need is here so
   you can tweak it in code. Brand: #7c3aed / #a855f7 on #08070c.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body { font-family: 'Space Grotesk', system-ui, sans-serif; background: #08070c; color: #ece8f6; }
a { color: #a855f7; }

/* remove the default 24px gap above top-level sections (header + hero) */
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* ---------- Sticky glass header ---------- */
.vh-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 999; padding: 0 20px; box-sizing: border-box; }
/* keep the bar below the WordPress admin bar when logged in */
.admin-bar .vh-wrap { top: 48px; }
@media (max-width: 782px) { .admin-bar .vh-wrap { top: 62px; } }
.vh-bar {
  max-width: 1180px; margin: 0 auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 11px 12px 11px 24px; border-radius: 999px;
  background: rgba(18,14,26,0.62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(168,85,247,0.34);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.vh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.vh-brand span { font-weight: 600; font-size: 22px; color: #ece8f6; }
.vh-brand b { color: #a855f7; font-weight: 600; }
.vh-nav { display: flex; align-items: center; gap: 26px; }
.vh-nav > a, .vh-item > a { color: #cbc4dc; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .18s; cursor: pointer; }
.vh-nav > a:hover, .vh-item > a:hover { color: #fff; }
.vh-caret { color: #8a7fb0; font-size: 11px; margin-left: 2px; }
.vh-item { position: relative; }
.vh-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 200px; padding: 8px; border-radius: 14px; background: rgba(20,16,30,0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(168,85,247,0.28); box-shadow: 0 16px 44px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; }
.vh-item:hover .vh-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.vh-menu a { display: block; padding: 10px 14px; border-radius: 9px; text-decoration: none; color: #cbc4dc; font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.vh-menu a:hover { background: rgba(168,85,247,0.16); color: #fff; }
.vh-cta { display: inline-flex; align-items: center; justify-content: center; line-height: 1; background: linear-gradient(120deg,#7c3aed,#a855f7); color: #fff; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; flex-shrink: 0; box-shadow: 0 6px 20px rgba(124,58,237,0.4); transition: filter .18s, transform .18s; }
.vh-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.vh-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-shrink: 0; }
.vh-burger span { display: block; width: 22px; height: 2px; background: #ece8f6; border-radius: 2px; margin: 4px 0; transition: .25s; }
/* language switcher */
.vh-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.vh-lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(168,85,247,0.10); border: 1px solid rgba(168,85,247,0.28); }
.vh-lang-opt { font-size: 13px; font-weight: 600; letter-spacing: .03em; color: #b3a9c9; text-decoration: none; padding: 6px 12px; border-radius: 999px; line-height: 1; transition: color .18s, background .18s; }
.vh-lang-opt:hover { color: #fff; }
.vh-lang-opt.is-active { color: #fff; background: linear-gradient(120deg,#7c3aed,#a855f7); box-shadow: 0 2px 10px rgba(124,58,247,0.4); }

/* ============================================================
   Themes page (page-themes.html)
   ============================================================ */
@keyframes tpReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.tp-reveal { animation: tpReveal .8s cubic-bezier(.2,.7,.2,1) both; animation-timeline: view(); animation-range: entry 2% cover 26%; }
@keyframes tpFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px,-18px); } }
.tp-blob { position: absolute; border-radius: 50%; filter: blur(60px); animation: tpFloat 14s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes tpSheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.sheen { background: linear-gradient(100deg,#ece8f6 0%,#ece8f6 40%,#a855f7 50%,#ece8f6 60%,#ece8f6 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: tpSheen 6s ease-in-out infinite alternate; }
.tp-hero { position: relative; overflow: hidden; padding: 160px 24px 60px; text-align: center; }
.tp-hero > *:not(.tp-blob) { position: relative; z-index: 1; }
.tp-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: .34em; text-transform: uppercase; color: #a855f7; margin: 0; }
.tp-h1 { font-size: clamp(40px,6vw,80px); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; margin: 14px auto 0; max-width: 920px; }
.tp-sub { font-size: 21px; color: #a49dba; max-width: 620px; margin: 22px auto 0; }
.tp-wrap { max-width: 1280px; margin: 0 auto; }
.tp-chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 8px 24px 0; }
.chip { font-size: 14px; font-weight: 500; color: #cbc4dc; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(139,92,246,.22); background: rgba(255,255,255,.02); cursor: pointer; transition: all .18s; }
.chip:hover { color: #fff; border-color: rgba(168,85,247,.5); }
.chip.on { color: #fff; background: linear-gradient(120deg,#7c3aed,#a855f7); border-color: transparent; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(360px,1fr)); gap: 26px; padding: 34px 24px 30px; max-width: 1280px; margin: 0 auto; }
.tcard { background: linear-gradient(180deg,#140f1f,#0d0916); border: 1px solid rgba(139,92,246,.16); border-radius: 22px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tcard:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.5); box-shadow: 0 24px 60px rgba(124,58,237,.22); }
.tprev { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tprev-img { position: absolute; inset: 0; background: linear-gradient(160deg,#231a3d,#140d22); transition: transform .5s; }
.tprev-img::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(168,85,247,.12) 0 10px, transparent 10px 24px); }
.tcard:hover .tprev-img { transform: scale(1.06); }
.tprev-mono { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; color: rgba(233,221,255,.65); }
.tbadge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(124,58,237,.85); }
.tag { font-size: 12px; color: #b7aecb; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(139,92,246,.22); }
.btn-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(120deg,#7c3aed,#a855f7); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 20px rgba(124,58,237,.4); transition: filter .18s, transform .18s; text-decoration: none; }
.btn-buy:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #e9ddff; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(168,85,247,.5); background: rgba(124,58,237,.08); white-space: nowrap; transition: background .18s, border-color .18s; text-decoration: none; }
.btn-ghost:hover { background: rgba(168,85,247,.16); border-color: rgba(168,85,247,.85); }
.tp-tier { background: linear-gradient(180deg,#140f1f,#0d0916); border: 1px solid rgba(139,92,246,.16); border-radius: 22px; padding: 32px; transition: transform .3s, border-color .3s; text-align: left; display: flex; flex-direction: column; }
.tp-plans .wp-block-column { display: flex; }
.tp-plans .tp-tier { flex: 1; }
.tp-tier > a { margin-top: auto; }
.btn-buy, .btn-ghost, .tp-tier > a, .tcard .wp-block-button__link { box-sizing: border-box; }
.tp-tier:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.45); }
.tp-tier.feat { border-color: rgba(168,85,247,.6); box-shadow: 0 20px 60px rgba(124,58,237,.25); }
.tp-cta { position: relative; overflow: hidden; border-radius: 26px; padding: 60px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, #2a1e49 0%, #140d22 60%); border: 1px solid rgba(168,85,247,.3); }
.tp-cta > *:not(.tp-blob) { position: relative; z-index: 1; }
@media (max-width: 640px) { .tp-hero { padding-top: 130px; } }

/* ---------- Query Loop theme cards (CPT) ---------- */
.tp-grid.wp-block-post-template { list-style: none; margin: 0 auto; padding: 34px 24px 30px; max-width: 1280px; }
.tp-cat-src { display: none !important; }
.tbadge:empty { display: none; }
.tcard .wp-block-post-title { margin: 0; font-size: 22px; font-weight: 600; }
.tcard .wp-block-post-title a { color: #ece8f6; text-decoration: none; }
.tprev .wp-block-post-featured-image { margin: 0; height: 100%; }
.tprev .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.tp-price { margin: 0; font-size: 20px; font-weight: 600; color: #c9b6f5; white-space: nowrap; }
.tcard .wp-block-post-excerpt { color: #9a93ad; font-size: 14.5px; line-height: 1.55; }
.tcard .wp-block-post-excerpt__excerpt { margin: 8px 0 16px; display: block; }
.tcard .wp-block-buttons { gap: 10px; margin-top: 4px; }
.tcard .wp-block-button { flex: 1; }
.tcard .wp-block-button__link { width: 100%; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; font-size: 15px; padding: 12px 22px; }
.tcard .wp-block-button.tp-buy, .tcard .wp-block-button.tp-ghost { background: none; border: 0; box-shadow: none; padding: 0; }
.tcard .tp-buy .wp-block-button__link { background: linear-gradient(120deg,#7c3aed,#a855f7); color: #fff; box-shadow: 0 6px 20px rgba(124,58,237,.4); }
.tcard .tp-ghost .wp-block-button__link { background: rgba(124,58,237,.08); color: #e9ddff; border: 1px solid rgba(168,85,247,.5); }

/* ---------- Hero (cover) ---------- */
.vireo-hero { display: flex; flex-direction: column; }
.vireo-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; flex: 1; width: 100%; }
.vh-hero-copy { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; }
.vh-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: .36em; text-transform: uppercase; color: #a855f7; margin: 0 0 18px; }
.vh-h1 { font-size: clamp(38px,6vw,74px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: #f3f0fa; margin: 0 auto; max-width: 900px; }
.vh-sub { font-size: clamp(17px,2.2vw,22px); color: #cfc7dd; margin: 22px auto 0; max-width: 720px; }
.vh-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; justify-content: center; align-items: center; }
.vh-ghost { display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: #e9ddff; font-weight: 600; font-size: 16px; padding: 13px 28px; border-radius: 999px; text-decoration: none; border: 1px solid rgba(168,85,247,0.55); background: rgba(124,58,237,0.1); transition: background .18s, border-color .18s; }
.vh-ghost:hover { background: rgba(168,85,247,0.18); border-color: rgba(168,85,247,0.85); }

/* ---------- Inner pages: clear the fixed header ---------- */
.vireo-page { padding-top: 140px; padding-bottom: 80px; }
.vireo-page .wp-block-post-title, .vireo-page h1 { color: #f3f0fa; letter-spacing: -0.02em; }

/* ---------- Cards / sections ---------- */
.vireo-card { border-radius: 18px; background: linear-gradient(160deg,#1a1428,#120d1c); border: 1px solid rgba(139,92,246,0.18); padding: 30px; }
.vireo-kicker { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #7c3aed; }

/* ---------- Footer ---------- */
.vireo-footer { border-top: 1px solid rgba(139,92,246,0.16); color: #9a93ad; }
.vireo-footer a { color: #cbc4dc; text-decoration: none; }
.vireo-footer a:hover { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .vh-burger { display: block; }
  .vh-nav { position: absolute; top: calc(100% + 12px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border-radius: 18px; background: rgba(20,16,30,0.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(168,85,247,0.28); box-shadow: 0 16px 44px rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
  .vh-bar.vh-open .vh-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .vh-nav > a, .vh-item > a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .vh-item { width: 100%; }
  .vh-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 4px 12px; }
  .vh-bar.vh-open .vh-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .vh-bar.vh-open .vh-burger span:nth-child(2) { opacity: 0; }
  .vh-bar.vh-open .vh-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
