/*
Theme Name: Sovereign Custom
Theme URI: https://sovereignroutes.com
Description: A custom theme for SovereignRoutes.com. "Locked" to prevent vendor updates from overwriting custom logic (front-page.php, footer.php).
Author: Sovereign Team
Version: 2.0.0
Text Domain: gomiqaat-custom
*/

/* ==========================================================================
   CUSTOM STYLES (Stage 2: Migration Area)
   ========================================================================== */
/* 
   Future Plan: Move specific styles from front-page.php to here 
   to clean up templates and improve caching.
*/

/* ==========================================================================
   IMPORTED STYLES FROM FRONT-PAGE.PHP
   ========================================================================== */

:root {
   /* Spacing Scale (Tighter for Desktop) */
   --space-xs: 0.5rem;
   --space-sm: 0.75rem;
   --space-md: 1.25rem;
   --space-lg: 1.5rem;
   --space-xl: 2rem;
   --space-2xl: 3rem;
   --space-3xl: 4rem;

   /* Typography Scale */
   --text-xs: 0.875rem;
   --text-sm: 1rem;
   --text-base: 1.125rem;
   --text-lg: 1.5rem;
   --text-xl: 2rem;
   --text-2xl: 2.5rem;
   --text-3xl: 3.5rem;

   /* Color System */
   --glass-bg: rgba(0, 0, 0, 0.65);
   --glass-border: rgba(255, 255, 255, 0.1);
   --accent-primary: #d35400;
   --accent-hover: #e67e22;
   --text-dark: #1F2937;
   --text-muted: #6B7280;
   --text-light: #F9FAFB;
   --border-subtle: #E5E7EB;

   /* Visual Effects */
   --radius-sm: 12px;
   --radius-md: 16px;
   --radius-lg: 24px;
   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
   --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
   --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

   /* Animation Timing */
   --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
   --animation-duration-fast: 0.3s;
   --animation-duration-normal: 0.6s;
   --animation-duration-slow: 1.2s;

   /* New "Guru" Visuals */
   --bg-alt: #F3F4F6;
}

/* Theme Integration: bloglo-container match */
.gq-site-align {
   max-width: 1200px;
   margin: 0 auto;
   padding-left: 15px;
   padding-right: 15px;
}

/* Force Full Width Breakout */
.gq-full-width-breakout {
   width: 100vw;
   position: relative;
   left: 50%;
   right: 50%;
   margin-left: -50vw;
   margin-right: -50vw;
}

/* Hero Section */
.gq-hero {
   position: relative;
   height: 65vh;
   min-height: 500px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   overflow: hidden;
}

/* Animated Background (Ken Burns) */
.gq-hero-bg {
   position: absolute;
   inset: 0;
   background: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?q=80&w=2021&auto=format&fit=crop') center/cover no-repeat;
   z-index: 1;
   animation: kenBurns 25s ease-in-out infinite alternate;
   transform-origin: center center;
}

@keyframes kenBurns {
   0% {
      transform: scale(1);
   }

   100% {
      transform: scale(1.15);
   }
}

/* Overlay for Text Legibility - Now Animated */
.gq-hero-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7), rgba(211, 84, 0, 0.2));
   background-size: 200% 200%;
   animation: gradientShift 15s ease infinite;
   z-index: 2;
}

@keyframes gradientShift {
   0% {
      background-position: 0% 50%;
   }

   50% {
      background-position: 100% 50%;
   }

   100% {
      background-position: 0% 50%;
   }
}

.gq-hero-content {
   position: relative;
   z-index: 10;
   text-align: center;
   max-width: 900px;
   padding: var(--space-lg);
   animation: heroEntry 1.2s var(--ease-out-quart);
}

@keyframes heroEntry {
   from {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
   }

   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

.gq-glass-card {
   background: var(--glass-bg);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border: 1px solid var(--glass-border);
   border-radius: var(--radius-lg);
   padding: var(--space-xl);
   box-shadow: var(--shadow-lg);
   color: white !important;
   max-width: 800px;
   margin: 0 auto;
   position: relative;
   overflow: hidden;
   animation: float 6s ease-in-out infinite;
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0px);
   }

   50% {
      transform: translateY(-10px);
   }
}

/* Subtle Shimmer Effect on Glass Card */
.gq-glass-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 50%;
   height: 100%;
   background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
   transform: skewX(-25deg);
   animation: shimmer 6s infinite;
   pointer-events: none;
}

@keyframes shimmer {
   0% {
      left: -100%;
   }

   20% {
      left: 200%;
   }

   100% {
      left: 200%;
   }
}

/* Integrated Search Box Styles */
.gq-search-wrapper {
   margin-top: var(--space-lg);
   background: rgba(255, 255, 255, 0.1);
   padding: var(--space-md);
   border-radius: var(--radius-md);
   border: 1px solid rgba(255, 255, 255, 0.2);
   position: relative;
   z-index: 50;
}

.gq-search-form {
   display: flex;
   gap: var(--space-sm);
   flex-wrap: wrap;
}

.gq-input-group {
   flex: 1;
   min-width: 200px;
   display: flex;
   flex-direction: column;
   gap: 0.25rem;
}

.gq-search-label {
   font-size: 0.75rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: var(--text-light);
   opacity: 0.9;
}

.gq-search-input {
   background: white;
   border: none;
   padding: 0.75rem 1rem;
   border-radius: 8px;
   font-size: 1rem;
   color: var(--text-dark);
   width: 100%;
   position: relative;
   z-index: 51;
   transition: box-shadow 0.2s ease;
}

.gq-search-input:focus {
   outline: none;
   box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.4);
}

.gq-search-btn-hero {
   background: var(--accent-primary);
   color: white;
   border: none;
   padding: 0 2rem;
   border-radius: 8px;
   font-weight: 700;
   cursor: pointer;
   transition: all 0.3s ease;
   margin-top: auto;
   height: 48px;
   align-self: flex-end;
   position: relative;
   z-index: 51;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gq-search-btn-hero:hover {
   background: var(--accent-hover);
   transform: translateY(-2px);
   box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
   .gq-search-form {
      text-align: center;
   }

   /* Optional centering */
   .gq-search-btn-hero {
      width: 100%;
   }
}

/* Badge & Typography */
.gq-badge {
   background: var(--accent-primary);
   color: white;
   padding: var(--space-xs) var(--space-md);
   border-radius: 50px;
   text-transform: uppercase;
   font-size: var(--text-xs);
   letter-spacing: 1.5px;
   font-weight: 800;
   margin-bottom: var(--space-md);
   display: inline-block;
   box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
   animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {

   0%,
   100% {
      box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
   }

   50% {
      box-shadow: 0 4px 20px rgba(211, 84, 0, 0.6);
   }
}

/* Trending Badge */
.gq-badge-trending {
   background: #e74c3c;
   color: white;
   font-size: 0.7rem;
   padding: 4px 8px;
   border-radius: 4px;
   margin-left: 12px;
   vertical-align: middle;
   animation: pulse 2s infinite;
   display: inline-flex;
   align-items: center;
   gap: 4px;
   text-transform: uppercase;
   font-weight: 800;
   letter-spacing: 1px;
}

.gq-badge-trending::before {
   content: '🔥';
   font-size: 0.9em;
}

@keyframes pulse {
   0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
   }

   70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
   }

   100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
   }
}

.gq-title {
   font-family: 'Poppins', sans-serif;
   font-size: var(--text-3xl);
   font-weight: 900;
   line-height: 1.1;
   margin-bottom: var(--space-md);
   color: white !important;
   text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.gq-subtitle {
   font-size: var(--text-2xl);
   color: var(--text-light) !important;
   margin-bottom: var(--space-xl);
   font-weight: 300;
}

.gq-btn {
   background: white;
   color: var(--text-dark);
   padding: var(--space-md) var(--space-xl);
   border-radius: 50px;
   font-weight: 800;
   text-decoration: none;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   display: inline-block;
   font-size: var(--text-base);
}

.gq-btn:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
   background: #f9f9f9;
   color: var(--text-dark);
}

/* Sections */
.gq-section-wrapper {
   width: 100%;
   padding: var(--space-3xl) 0;
}

.gq-bg-alt {
   background-color: var(--bg-alt);
   border-top: 1px solid rgba(0, 0, 0, 0.03);
   border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.gq-section-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: var(--space-xl);
   padding-bottom: var(--space-lg);
}

.gq-section-title {
   font-family: 'Poppins', sans-serif;
   font-size: var(--text-xl);
   color: var(--text-dark);
   font-weight: 800;
   margin: 0;
   position: relative;
   padding-bottom: var(--space-sm);
   display: flex;
   align-items: center;
}

.gq-section-title::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 80px;
   height: 4px;
   background: var(--accent-primary);
   border-radius: 2px;
   transition: width 0.3s ease;
   animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {

   0%,
   100% {
      width: 80px;
   }

   50% {
      width: 100px;
   }
}

.gq-section-header:hover .gq-section-title::after {
   width: 120px;
   animation: none;
}

.gq-link-accent {
   font-weight: 700;
   color: var(--accent-primary);
   text-decoration: none;
   white-space: nowrap;
   transition: color 0.3s ease;
}

.gq-link-accent:hover {
   color: var(--accent-hover);
}

.gq-link-inherit {
   text-decoration: none;
   color: inherit;
   transition: color 0.3s ease;
}

.gq-link-inherit:hover {
   color: var(--accent-primary);
}

.gq-meta-featured {
   color: var(--accent-primary);
}

.gq-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: var(--space-xl);
   justify-content: center;
}

@media(min-width: 1200px) {
   .gq-grid {
      grid-template-columns: repeat(3, 1fr);
   }
}

.gq-card {
   background: white;
   border-radius: var(--radius-md);
   overflow: hidden;
   box-shadow: var(--shadow-sm);
   transition: all 0.4s var(--ease-out-quart);
   height: 100%;
   display: flex;
   flex-direction: column;
   border: 1px solid var(--border-subtle);
   opacity: 0;
   transform: translateY(30px);
   animation: cardBreathe 4s ease-in-out infinite;
}

@keyframes cardBreathe {

   0%,
   100% {
      transform: scale(1);
   }

   50% {
      transform: scale(1.005);
   }
}

/* Stagger breathing animation for each card */
.gq-card:nth-child(1) {
   animation-delay: 0s;
}

.gq-card:nth-child(2) {
   animation-delay: 0.3s;
}

.gq-card:nth-child(3) {
   animation-delay: 0.6s;
}

.gq-card:nth-child(4) {
   animation-delay: 0.9s;
}

.gq-card:nth-child(5) {
   animation-delay: 1.2s;
}

.gq-card:nth-child(6) {
   animation-delay: 1.5s;
}

.gq-reveal-active {
   opacity: 1 !important;
   transform: translateY(0) !important;
}

.gq-card:hover {
   transform: translateY(-12px) scale(1.02) !important;
   box-shadow: var(--shadow-lg);
   border-color: var(--accent-primary);
}

.gq-card-img {
   height: 140px;
   width: 100%;
   object-fit: cover;
   transition: transform 0.6s var(--ease-out-quart);
}

.gq-card:hover .gq-card-img {
   transform: scale(1.08);
}

.gq-card-body {
   padding: var(--space-lg);
   display: flex;
   flex-direction: column;
   flex-grow: 1;
   position: relative;
   background: white;
   z-index: 2;
}

.gq-card-title {
   font-family: 'Playfair Display', serif;
   font-size: 1.5rem;
   font-weight: 800;
   margin-bottom: var(--space-sm);
   color: #111827;
   line-height: 1.3;
   transition: color 0.2s;
   letter-spacing: -0.5px;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
   text-overflow: ellipsis;
   min-height: 4em;
}

/* First line emphasis removed - cleaner look */

.gq-card:hover .gq-card-title {
   color: var(--accent-primary);
}

.gq-card-meta {
   font-size: 0.8rem;
   color: #666;
   margin-bottom: var(--space-sm);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

/* =========== EVENT CARD ENHANCEMENTS =========== */
.gq-card--event {
   border-left: 4px solid var(--accent-primary);
   position: relative;
}

.gq-card--event::before {
   content: '📅 EVENT';
   position: absolute;
   top: 12px;
   left: 12px;
   background: linear-gradient(135deg, var(--accent-primary), #e67e22);
   color: white;
   font-size: 0.65rem;
   font-weight: 800;
   padding: 4px 10px;
   border-radius: 4px;
   z-index: 10;
   text-transform: uppercase;
   letter-spacing: 1px;
   box-shadow: 0 2px 8px rgba(211, 84, 0, 0.4);
}

.gq-card--event .gq-card-body {
   background: linear-gradient(180deg, #fffaf5 0%, white 100%);
}

.gq-card--event .gq-card-title {
   color: #c0392b;
}

.gq-card--event:hover .gq-card-title {
   color: var(--accent-primary);
}

/* Event date badge styling */
.gq-event-date {
   display: flex;
   align-items: center;
   gap: 6px;
   background: linear-gradient(135deg, #1F2937, #374151);
   color: white;
   padding: 6px 12px;
   border-radius: 6px;
   font-size: 0.75rem;
   font-weight: 700;
   margin-bottom: var(--space-sm);
   width: fit-content;
}

.gq-event-date::before {
   content: '🗓️';
   font-size: 0.9em;
}

/* Event Location styling */
.gq-event-location {
   display: flex;
   align-items: center;
   gap: 4px;
   color: #666;
   font-size: 0.8rem;
   margin-bottom: var(--space-xs);
}

.gq-event-location::before {
   content: '📍';
   font-size: 0.85em;
}

.gq-card-link {
   margin-top: auto;
   font-weight: 700;
   color: var(--accent-primary);
   text-decoration: none;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 4px;
}

.gq-card-link:hover {
   color: var(--accent-hover);
   gap: 8px;
}

/* Footer Styles (Imported) */
.gq-footer {
   background: #1F2937;
   color: #F9FAFB;
   padding: var(--space-3xl) 0 var(--space-xl);
   margin-top: auto;
   font-family: 'Inter', sans-serif;
   position: relative;
   z-index: 10;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   width: 100vw;
   left: 50%;
   right: 50%;
   margin-left: -50vw;
   margin-right: -50vw;
}

.gq-footer-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
   width: 100%;
}

.gq-footer-grid {
   display: grid;
   grid-template-columns: 1.5fr 1fr 1fr;
   gap: var(--space-2xl);
   margin-bottom: var(--space-2xl);
}

.gq-footer-col {
   display: flex;
   flex-direction: column !important;
   align-items: flex-start !important;
   gap: var(--space-md);
}

.gq-footer-title {
   color: white;
   font-size: 1.3rem;
   /* Synced */
   font-weight: 800;
   margin-bottom: var(--space-sm);
   letter-spacing: -0.5px;
   text-transform: capitalize;
}

.gq-footer-text {
   color: #9CA3AF;
   line-height: 1.6;
   font-size: 1.1rem;
   /* Synced */
   max-width: 300px;
}

.gq-footer-link {
   color: #D1D5DB;
   text-decoration: none;
   transition: color 0.2s;
   display: block !important;
   margin-bottom: 0.5rem;
   font-size: 1.1rem;
   /* Synced */
}

.gq-footer-link:hover {
   color: var(--accent-primary);
   padding-left: 4px;
}

.gq-footer-input {
   width: 100%;
   max-width: 250px;
   padding: 10px;
   border-radius: 6px;
   border: 1px solid #374151;
   background: #374151;
   color: white;
}

.gq-footer-btn {
   background: #e74c3c;
   color: white;
   border: none;
   padding: 0 1rem;
   border-radius: 6px;
   font-weight: 700;
   cursor: pointer;
}

.gq-copyright {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: var(--space-lg);
   text-align: center;
   color: #6B7280;
   font-size: 1rem;
   /* Synced */
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: var(--space-md);
}

.gq-social-links {
   display: flex;
   gap: var(--space-md);
}

.gq-social-icon {
   color: #9CA3AF;
   text-decoration: none;
   font-size: 1.25rem;
   transition: color 0.2s;
}

.gq-social-icon:hover {
   color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .gq-title {
      font-size: var(--text-xl);
   }

   .gq-subtitle {
      font-size: var(--text-lg);
   }

   .gq-glass-card {
      padding: var(--space-lg);
   }

   .gq-grid {
      grid-template-columns: 1fr;
   }

   .gq-section-wrapper {
      padding: var(--space-2xl) 0;
   }

   .gq-section-title {
      font-size: var(--text-lg);
   }

   .gq-footer-grid {
      grid-template-columns: 1fr !important;
      gap: var(--space-xl) !important;
   }
}

/* ========================================================================
   AMBIENT LIFE ENHANCEMENTS - Continuous Motion
   ======================================================================== */

/* Subtle background particles/noise for organic feel */
body::before {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background:
      radial-gradient(circle at 20% 50%, rgba(211, 84, 0, 0.03) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(211, 84, 0, 0.02) 0%, transparent 50%);
   background-size: 200% 200%;
   animation: ambientMove 20s ease-in-out infinite;
   pointer-events: none;
   z-index: -1;
}

@keyframes ambientMove {

   0%,
   100% {
      background-position: 0% 0%;
   }

   50% {
      background-position: 100% 100%;
   }
}

/* Continuous subtle shadow pulse on links */
.gq-link-accent,
.gq-card-link {
   position: relative;
   animation: linkPulse 3s ease-in-out infinite;
}

@keyframes linkPulse {

   0%,
   100% {
      text-shadow: 0 0 0px rgba(211, 84, 0, 0);
   }

   50% {
      text-shadow: 0 0 8px rgba(211, 84, 0, 0.3);
   }
}

/* Micro-movement on section wrappers */
.gq-section-wrapper {
   animation: sectionFloat 8s ease-in-out infinite;
}

@keyframes sectionFloat {

   0%,
   100% {
      transform: translateY(0px);
   }

   50% {
      transform: translateY(-3px);
   }
}

/* Add subtle rotation to card images on idle */
.gq-card-img {
   animation: imageBreath 6s ease-in-out infinite;
}

@keyframes imageBreath {

   0%,
   100% {
      transform: scale(1) rotate(0deg);
   }

   50% {
      transform: scale(1.02) rotate(0.5deg);
   }
}

/* Continuous shimmer on buttons */
.gq-search-btn-hero,
.gq-btn {
   position: relative;
   overflow: hidden;
}

.gq-search-btn-hero::after,
.gq-btn::after {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 50%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
   animation: buttonShimmer 3s infinite;
}

@keyframes buttonShimmer {
   0% {
      left: -100%;
   }

   50%,
   100% {
      left: 200%;
   }
}

/* Smooth Fade Headline Animation - SEO Friendly */
.gq-cursor {
   display: none !important;
}

#gq-typing-text {
   min-height: 1.2em;
   display: inline-block;
   transition: opacity 1s ease-in-out;
}