/* ===========================================================
   GoldenVeil Style System — Skylineverse
   Namespace: gv-
   =========================================================== */

/* -------------------------
   Core Tokens & Variables
-------------------------- */
:root {
  --gv-primary: #d4af37;              /* Golden accent */
  --gv-surface: #1a1a1a;              /* Deep neutral background */
  --gv-paper: #121416;                /* Slightly lighter surface */
  --gv-ink: #f5f5f0;                  /* Primary text color */
  --gv-muted: #b3ab97;
  --gv-edge: rgba(255,255,255,0.08);
  --gv-edge-strong: rgba(255,255,255,0.25);
  --gv-shadow: rgba(0,0,0,0.25);
  --gv-container-width: 960px;
  --gv-logo-height: 200px;            /* <<< change this value anytime */

  --gv-motion-fast: 150ms;
  --gv-motion-med: 260ms;
  --gv-motion-slow: 420ms;
  --gv-easing: cubic-bezier(.22,.61,.36,1);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* -------------------------
   Base & Layout
-------------------------- */
html, body {
  margin: 0;
  padding: 0;
  background: var(--gv-surface);
  color: var(--gv-ink);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height: 1.7;
  scroll-behavior: smooth;
}

body::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background: radial-gradient(120% 60% at 80% 20%, rgba(255,255,255,.06), transparent 60%),
              linear-gradient(120deg, rgba(0,0,0,.02), rgba(255,255,255,.02));
  animation: gv-wash 24s ease-in-out infinite alternate;
  opacity:.35;
}

@keyframes gv-wash{
  0%{ transform: translate3d(0,0,0) scale(1); }
  100%{ transform: translate3d(0,-2%,0) scale(1.02); }
}

/* Layout container */
.gv-main, article {
  max-width: var(--gv-container-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--gv-primary);
  letter-spacing: 0.03em;
}

/* Paragraphs - justified text */
article p,
section p,
main p,
p {
  text-align: justify !important;
  text-justify: inter-word !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
  color: var(--gv-ink);
  margin-bottom: 1.25rem;
}

/* -------------------------
   Header & Navigation
-------------------------- */
.gv-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
}

/* --- Logo (fixed height, adjustable via variable) --- */
.gv-logo {
  height: var(--gv-logo-height);  /* <<< change this in :root to adjust */
  width: auto;
  display: block;
  margin: 0 auto 1.5rem;
  image-rendering: auto;
}

.gv-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.gv-nav a {
  color: var(--gv-ink);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  transition: background var(--gv-motion-med) var(--gv-easing),
              color var(--gv-motion-med) var(--gv-easing);
  position: relative;
}

.gv-nav a:hover {
  background: var(--gv-primary);
  color: #111;
}

.gv-nav a.active {
  background: var(--gv-primary);
  color: #111;
}

/* Underline grow (for all links) */
.gv-link, .gv-nav a {
  position: relative;
  text-decoration: none;
  border-bottom: none;
}
.gv-link::after, .gv-nav a::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px; height:2px;
  background: linear-gradient(90deg, var(--gv-primary), transparent);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform var(--gv-motion-med) var(--gv-easing);
}
.gv-link:hover::after, .gv-nav a:hover::after {
  transform: scaleX(1);
}

/* -------------------------
   Hero Image
-------------------------- */
.gv-hero img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--gv-edge-strong);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  display: block;
  margin-top: 1rem;
}

.gv-title {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.gv-dek {
  font-size: 1.2rem;
  color: var(--gv-muted);
}

/* -------------------------
   Enhanced Section Capsules
-------------------------- */
section.gv-section {
  position: relative;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--gv-edge);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px) brightness(1.05);
  transition:
    transform var(--gv-motion-slow) var(--gv-easing),
    box-shadow var(--gv-motion-slow) var(--gv-easing),
    border-color var(--gv-motion-slow) var(--gv-easing),
    background var(--gv-motion-slow) var(--gv-easing);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

section.gv-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border-color: var(--gv-edge-strong);
}

section.gv-section.is-seen {
  opacity: 1;
  transform: translateY(0);
}

section.gv-section h2 {
  margin-top: 0;
  padding-bottom: 0.4rem;
  font-size: 1.6rem;
  background: linear-gradient(90deg, var(--gv-primary), #fff0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Glowing capsule header line */
section.gv-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gv-primary), transparent);
  transition: width var(--gv-motion-slow) var(--gv-easing);
  box-shadow: 0 0 8px var(--gv-primary);
}
section.gv-section.is-seen::before {
  width: 100%;
}

/* Divider between paragraphs for depth */
section.gv-section p + p {
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
}

/* Accent pull-quote style */
.gv-quote {
  font-style: italic;
  border-left: 3px solid var(--gv-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--gv-muted);
}

/* -------------------------
   Footer (centered & styled)
-------------------------- */
.gv-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--gv-edge-strong);
  color: var(--gv-muted);
  font-size: 0.9rem;
  position: relative;
}

.gv-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gv-primary), transparent);
  box-shadow: 0 0 12px var(--gv-primary);
}

.gv-footer p {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gv-edge);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  color: var(--gv-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(212,175,55,0.5);
  transition: background var(--gv-motion-med) var(--gv-easing);
}
.gv-footer p:hover {
  background: rgba(255,255,255,0.08);
}

/* -------------------------
   Progress Bar
-------------------------- */
.gv-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gv-primary), transparent);
  z-index: 9998;
  transition: width var(--gv-motion-fast) linear;
}

/* -------------------------
   Back to Top — simple arrow
-------------------------- */
.gv-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: none;
  border: none;
  color: var(--gv-primary);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
  z-index: 9999;
}
.gv-to-top:hover {
  color: #fff;
}
.gv-to-top.gv-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* -------------------------
   Responsiveness
-------------------------- */
@media (max-width: 700px) {
  .gv-title { font-size: 1.8rem; }
  .gv-dek { font-size: 1rem; }
  .gv-main, article { padding: 1.5rem 1rem; }
  .gv-nav a { padding: 0.4rem 1rem; font-size: 0.95rem; }
  .gv-to-top { font-size: 2rem; right: 16px; bottom: 16px; }
  .gv-logo { height: 140px; } /* smaller on mobile */
}
