/*
Theme Name: GVSO — German Virtual Symphonic Orchestra
Theme URI: https://gvso.net
Author: COVESCO / GVSO
Description: COVESCO shared-theme adaptation for the approved GVSO 2027 mockup v1.1. Elementor-first; setup creates all pages and hierarchical menus; Elementor templates supplied separately.
Version: 0.2.0
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: gvso
*/

/* Original values from the approved GVSO_Website_Mockup_2027_v1.1.html. */
:root {
  --navy: #081529;
  --navy2: #13233a;
  --navy3: #1d3045;
  --silver: #d5dbe5;
  --mist: #b9c2d0;
  --cream: #f5f3ee;
  --ink: #172334;
  --text: #dce4eb;
  --plum: #781848;
  --accent: #e1cdab;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Manrope', Arial, sans-serif;
  --gvso-logo-width: 133px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
body, button, input, textarea { font-family: var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #dbc394; outline-offset: 4px; }
.gvso-container { width: min(1320px, calc(100% - 9.6vw)); margin-inline: auto; }
.gvso-skip { position: absolute; top: -9999px; left: 12px; z-index: 10000; color: #081529; background: #fff; padding: 10px 14px; }
.gvso-skip:focus { top: 10px; }

/* COVESCO header mechanics, adapted precisely to the mockup v1.1. */
#site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 999; color: #fff;
  border-bottom: 1px solid rgba(237,241,247,.18);
  background: linear-gradient(to bottom,rgba(3,11,23,.55),transparent); }
.header-inner { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; align-items: center; gap: 15px; min-width: 268px; }
.site-branding .site-logo, .site-branding .custom-logo-link { display: block; flex: none; line-height: 0; }
.site-branding img, .site-branding .custom-logo { display: block; width: var(--gvso-logo-width) !important; max-width: none; height: auto !important; filter: drop-shadow(0 1px 6px rgba(0,0,0,.25)); }
.brand-label { display: block; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.65; color: #ebedf2; font-weight: 700; }
#primary-navigation { display: flex; align-items: center; }
#primary-navigation .menu { list-style: none; display: flex; align-items: center; gap: 29px; margin: 0; padding: 0; }
#primary-navigation li { margin: 0; padding: 0; }
#primary-navigation a { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #d8e0eb; transition: color .2s; }
#primary-navigation a:hover, #primary-navigation .current-menu-item > a, #primary-navigation .current_page_item > a { color: #fff; }
#primary-navigation li:last-child > a { padding: 13px 17px; border: 1px solid rgba(245,247,250,.42); border-radius: 1px; white-space: nowrap; }
#primary-navigation li:last-child > a::after { content: ' ↗'; }
.nav-toggle { display: none; background: none; border: 1px solid #fff8; color: white; padding: 9px 12px; font-size: 20px; cursor: pointer; }
/* Empty/non-home pages do not have a photographic hero behind the header. */
body:not(.home) #site-header { position: relative; background: #081529; }
#main-content { min-height: 40vh; }

/* Footer from the approved mockup, with legal navigation prepared. */
#site-footer { background: #07111f; color: #c0c9d5; border-top: 1px solid #ffffff2e; padding: 48px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; flex-wrap: wrap; }
.footer-brand img { width: 129px; display: block; }
.footer-brand p { margin: 12px 0 0; color: #a5b2c4; font-size: 11px; line-height: 1.9; }
.footer-brand .footer-copyright { opacity: .8; }
.footer-navigation { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer-navigation ul { display: flex; gap: 25px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-navigation a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #c0c9d5; }
.footer-navigation a:hover { color: #fff; }
.footer-legal a { font-size: 10px; color: #a5b2c4; }

/* Theme-only blank-page state. All actual Home widgets will be native Elementor. */
.gvso-blank-page, .gvso-default-article { padding-top: 110px; padding-bottom: 135px; }
.gvso-blank-page .gvso-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: #777e88; font-weight: 700; }
.gvso-blank-page h1, .gvso-default-article h1 { font: 400 clamp(43px,5vw,77px)/1.12 var(--serif); letter-spacing: -.04em; margin: 18px 0; }
.gvso-blank-page > p { max-width: 600px; }
.gvso-default-article p { max-width: 850px; }

/* Allow all native Elementor full-width containers and keep Theme separate. */
.gvso-has-elementor .elementor { width: 100%; }
.gvso-has-elementor .elementor-widget-heading .elementor-heading-title { margin: 0; }

@media (max-width: 1100px) {
  .gvso-container { width: min(1200px,calc(100% - 7vw)); }
  .site-branding { min-width: 210px; }
  .brand-label { font-size: 8px; }
  #primary-navigation .menu { gap: 16px; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 76px; }
  .site-branding { gap: 10px; min-width: 0; }
  .site-branding img, .site-branding .custom-logo { width: 100px !important; }
  .brand-label { font-size: 7px; }
  .nav-toggle { display: inline-block; }
  #primary-navigation { position: absolute; left: 0; right: 0; top: 76px; display: none; padding: 25px 6%; background: #0c1b30ef; border-bottom: 1px solid #ffffff30; }
  #primary-navigation.is-open { display: block; }
  #primary-navigation .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #primary-navigation a { display: block; padding: 10px; }
  #primary-navigation li:last-child > a { display: inline-block; margin-top: 12px; }
}
@media (max-width: 580px) {
  .gvso-container { width: calc(100% - 38px); }
  .header-inner { min-height: 70px; }
  .site-branding .brand-label { display: none; }
  .site-branding img, .site-branding .custom-logo { width: 112px !important; }
  #primary-navigation { top: 70px; }
  .footer-inner { display: block; }
  .footer-navigation { align-items: flex-start; margin-top: 20px; }
  .footer-navigation ul { gap: 16px; }
  .gvso-blank-page, .gvso-default-article { padding-top: 75px; padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* GVSO v0.2 — native Elementor home and repertoire submenu. */
body.home #main-content { min-height: 0; }
#primary-navigation .sub-menu { display: none; position: absolute; top: calc(100% - 3px); min-width: 245px;
  background: #0a192d; border:1px solid #ffffff32; box-shadow:0 18px 36px #0005;
  padding: 13px 0; list-style:none; margin:0; z-index:1010; }
#primary-navigation .menu-item-has-children { position: relative; }
#primary-navigation .menu-item-has-children:hover > .sub-menu,
#primary-navigation .menu-item-has-children:focus-within > .sub-menu { display: block; }
#primary-navigation .sub-menu li a { display:block; padding: 9px 18px; white-space:nowrap; font-size:10px; }
#primary-navigation .sub-menu li:last-child > a { border:0; margin:0; padding:9px 18px; }
#primary-navigation .sub-menu li:last-child > a::after {content:none;}
#primary-navigation a[aria-current='page'] {color:#fff;}
.gvso-has-elementor .elementor-widget {max-width:100%;}
@media(max-width:820px) {
 #primary-navigation .sub-menu {display:block; position:static; min-width:0; box-shadow:none;
   background:transparent; border:0; border-left:1px solid #ffffff30; padding:0 0 0 12px; margin:0 0 5px 8px; }
 #primary-navigation .sub-menu li a { padding:6px 10px; }
}
