/* 
 * GPMORG - Global Performance Management 
 * Premium Liquid Redesign 2026 - Refined
 */

:root {
  --gpm-dark: #0b0f19;
  --gpm-navy: #001A70;
  --gpm-fuchsia: #C5299B;
  --gpm-aqua: #2DCCD3;
  --gpm-white: #ffffff;
  --gpm-glass: rgba(15, 23, 42, 0.6);
  --gpm-glass-border: rgba(255, 255, 255, 0.1);
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Utilities */
.text-center { text-align: center; }
.lead { font-size: 1.25rem; font-weight: 300; }
a { text-decoration: none; color: inherit; }

/* Accessibility - Hide screen-reader text generated by Joomla */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Force dark theme over Cassiopeia defaults */
html, body.site-gpm {
  margin: 0;
  padding: 0;
  background-color: var(--gpm-dark) !important;
  color: var(--gpm-white) !important;
  font-family: var(--font-secondary) !important;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(197, 41, 155, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(45, 204, 211, 0.15), transparent 40%) !important;
  background-attachment: fixed !important;
}

.gpm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary) !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gpm-white) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gpm-white) 0%, var(--gpm-aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.text-accent {
  color: var(--gpm-fuchsia) !important;
}

/* Header & Logo */
.gpm-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gpm-glass-border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.gpm-logo-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(224, 26, 132, 0.4));
}
.gpm-logo-text {
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gpm-logo-text span {
  font-size: 0.75rem;
  color: var(--gpm-white);
}
.gpm-logo-text span:nth-child(1) { color: var(--gpm-fuchsia); }
.gpm-logo-text span:nth-child(3) { color: var(--gpm-aqua); }

.gpm-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.gpm-nav ul.mod-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.gpm-nav ul.mod-menu li a {
  color: var(--gpm-white) !important;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.gpm-nav ul.mod-menu li a:hover {
  color: var(--gpm-aqua) !important;
}

.gpm-nav .mod-languages {
  margin: 0;
}

.gpm-nav .mod-languages ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Buttons */
.gpm-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gpm-fuchsia) 0%, #ff52cb 100%) !important;
  color: var(--gpm-white) !important;
  box-shadow: 0 4px 15px rgba(197, 41, 155, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 41, 155, 0.6);
  color: var(--gpm-white) !important;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero-section p.lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Glassmorphic Cards & Icons */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.glass-card {
  background: var(--gpm-glass) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gpm-glass-border) !important;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(45, 204, 211, 0.5) !important;
  box-shadow: 0 15px 40px rgba(45, 204, 211, 0.15);
}

.glass-card h3 {
  color: var(--gpm-aqua) !important;
  font-size: 1.5rem;
  margin-top: 1rem;
}

.card-icon-wrapper {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gpm-icon {
  color: var(--gpm-fuchsia);
  filter: drop-shadow(0 0 8px rgba(197, 41, 155, 0.5));
}

/* Scroll-Driven Animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes slide-up-fade {
      from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .animate-on-scroll {
      animation: slide-up-fade auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

.js-reveal-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Hub Architecture Layout */
.hub-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 4rem auto;
}
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.hub-card {
  background: var(--gpm-glass);
  border: 1px solid var(--gpm-glass-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gpm-fuchsia), var(--gpm-aqua));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hub-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(224, 26, 132, 0.4);
}
.hub-card:hover::before {
  opacity: 1;
}
.hub-card svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  color: var(--gpm-aqua);
}
.hub-card h3 {
  color: var(--gpm-white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.hub-card p {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Poppins', sans-serif;
  flex-grow: 1;
}
.hub-card .btn-glass {
  margin-top: 2rem;
  align-self: center;
}

/* SG-SST Landing Page Specifics */
.landing-header {
  text-align: center;
  margin-bottom: 4rem;
}
.landing-header h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--gpm-white), var(--gpm-aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.sst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.sst-card {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gpm-fuchsia);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}
.sst-card h4 {
  color: var(--gpm-white);
  margin-bottom: 0.5rem;
}
.sst-timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding-left: 2rem;
  border-left: 2px dashed rgba(255,255,255,0.1);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gpm-aqua);
  box-shadow: 0 0 10px var(--gpm-aqua);
}
.timeline-item h3 {
  color: var(--gpm-aqua);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.roi-section {
  background: linear-gradient(135deg, rgba(224,26,132,0.1) 0%, rgba(0,210,211,0.1) 100%);
  border: 1px solid var(--gpm-glass-border);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 4rem;
}

/* Footer */
.gpm-footer {
  border-top: 1px solid var(--gpm-glass-border);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Hide Language Switcher Text/Labels */
.mod-languages label,
.mod-languages .pretext,
.gpm-nav h3,
.gpm-nav h3.module-title {
  display: none !important;
}

/* Force Hide Joomla Article Metadata */
.article-info,
dl.article-info,
.item-page > .page-header,
.page-header h2[itemprop="headline"],
.article-header {
  display: none !important;
}
