/*
 Theme Name:   Revolution Child
 Theme URI:    https://gclgroupglobal.com/
 Description:  Child theme for the Revolution Theme by GCL Group Global
 Author:       GCL Group Global
 Author URI:   https://gclgroupglobal.com/
 Template:     revolution
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  revolution-child
*/

/* ==========================================================================
   GCL Child Theme — Consolidated, inheritance-friendly, premium footer glow
   ========================================================================== */

/* ---------------------------
   Brand variables (single source)
   --------------------------- */
:root{
  --gcl-gold:   #D4AF37;
  --gcl-blue:   #1F3C88;
  --gcl-red:    #A30202;
  --gcl-red-dark:#C40000;
  --gcl-silver: #C0C0C0;
  --gcl-black:  #000000;
  --gcl-teal:   #00C6AE;
  --gcl-muted:  #6b7280;

  --gcl-radius-sm: 4px;
  --gcl-radius-md: 6px;
  --gcl-radius-lg: 10px;

  --gcl-max-width: 1200px;
  --gcl-page-pad: 20px;
  --gcl-header-height: 88px; /* default; JS will update */
}

/* Basic body fallback (let parent override where appropriate) */
body{
  color: var(--gcl-black);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Header (minimal, inheritance-first; use !important only where necessary)
   ========================================================================== */
header,
header a,
header nav a,
header .mobile-menu a {
  /* prefer parent theme background, but provide brand fallback */
  background: linear-gradient(to right,#000000,var(--gcl-red),var(--gcl-red-dark));
  color: #ffffff;
}

/* link hover */
header a:hover,
header nav a:hover { color: var(--gcl-red) !important; }

/* CTA */
header .cta,
.header-cta .btn-gcl {
  background: var(--gcl-red);
  color: #fff;
  transition: background .25s ease, transform .15s ease;
}
header .cta:hover,
.header-cta .btn-gcl:hover { background: var(--gcl-red-dark); transform: translateY(-2px); }

/* mobile menu fallback */
#mobile-menu, #mobile-menu a { background: #000; color: #fff; }
#mobile-menu a:hover { color: var(--gcl-red); }

/* ==========================================================================
   Footer — layout, visibility safeguards, and premium 3-column structure
   ========================================================================== */

/* Ensure footer elements are visible (defensive) */
#site-footer, .site-footer, footer, #gcl-footer, .footer-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  position: relative !important;
  z-index: 1000 !important;
  background: inherit;
  color: inherit;
  -webkit-font-smoothing: antialiased;
}

/* Main footer container (premium 3-column layout on desktop) */
.footer-wrapper,
footer .footer-inner,
#site-footer .footer-inner,
#gcl-footer .gcl-footer-inner {
  max-width: var(--gcl-max-width);
  margin: 0 auto;
  padding: 36px 20px;
  box-sizing: border-box;
}

/* 3-column grid */
footer .footer-inner,
.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px 40px;
  align-items: start;
  text-align: center;
}

/* Column alignment classes */
footer .footer-inner .left   { text-align: left; }
footer .footer-inner .center { text-align: center; }
footer .footer-inner .right  { text-align: right; }

/* Stack on mobile */
@media (max-width: 768px) {
  footer .footer-inner,
  .footer-wrapper { grid-template-columns: 1fr; text-align: center; }
  footer .footer-inner .left,
  footer .footer-inner .right { text-align: center; }
}

/* Footer columns / helpers */
.footer-columns { display:flex; flex-wrap:wrap; gap:24px; justify-content:space-between; align-items:flex-start; }
.footer-column { flex:1 1 220px; min-width:160px; box-sizing:border-box; }

/* Credits */
.gcl-footer-credits,
.site-footer p {
  font-size: 13px;
  color: var(--gcl-silver);
  margin-top: 14px;
  text-align: center;
}

/* Footer links (clean + accessible) */
.footer-menu,
.site-footer nav,
footer .menu {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 0.6rem;
  list-style:none;
  padding:0;
  margin:0;
}
.footer-menu a,
#site-footer a,
#gcl-footer a {
  color: var(--gcl-teal);
  text-decoration: none;
  transition: color .25s ease, text-shadow .25s ease;
}
.footer-menu a:hover,
#site-footer a:hover,
#gcl-footer a:hover { color: var(--gcl-red); text-shadow: 0 0 6px rgba(163,2,2,0.28); }

/* Underline animation for footer links */
.footer-wrapper a {
  position: relative;
}
.footer-wrapper a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--gcl-teal);
  transition: width .28s ease;
}
.footer-wrapper a:hover::after { width: 100%; }

/* ======================================================================
   Social icons — round, centered, premium unified glow & pulse animation
   ====================================================================== */

/* wrapper layout */
.footer-social .social-icons,
.footer-column.socials .footer-socials,
.footer-social-fallback {
  display:flex;
  gap: 12px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 6px;
}

/* each icon */
.footer-social .social-icons a,
.footer-social-fallback a,
.footer-column.socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  background: #111;
  color: var(--gcl-silver);
  font-size: 18px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  position: relative;
  overflow: visible;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Base pulse pseudo-element (same corporate rhythm across all icons) */
.footer-social .social-icons a::before,
.footer-column.socials a::before,
.footer-social-fallback a::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,2,2,0.14), rgba(0,198,174,0.06));
  opacity: 0;
  transform: scale(0.9);
  z-index: -1;
  animation: gcl-pulse 3.6s ease-in-out infinite;
}

/* Hover / focus — stronger unified glow */
.footer-social .social-icons a:hover,
.footer-column.socials a:hover,
.footer-social-fallback a:hover,
.footer-social .social-icons a:focus,
.footer-column.socials a:focus {
  color: #fff;
  background: var(--gcl-red);
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 6px 18px rgba(163,2,2,0.18),
    0 0 32px rgba(0,198,174,0.12);
  outline: none;
}

/* Individual platform accents (optional) */
.footer-social .social-icons a.social-whatsapp:hover  { background: #25D366; box-shadow: 0 0 18px rgba(37,211,102,0.12); }
.footer-social .social-icons a.social-youtube:hover   { background: #FF0000;  box-shadow: 0 0 18px rgba(255,0,0,0.12); }
.footer-social .social-icons a.social-linkedin:hover  { background: #0A66C2;  box-shadow: 0 0 18px rgba(10,102,194,0.12); }
.footer-social .social-icons a.social-twitter:hover   { background: #1DA1F2;  box-shadow: 0 0 18px rgba(29,161,242,0.12); }

/* pulse keyframes (unified corporate glow) */
@keyframes gcl-pulse {
  0%   { opacity: 0; transform: scale(0.9); }
  50%  { opacity: 0.6; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(0.9); }
}

/* Pause animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-social .social-icons a::before,
  .footer-column.socials a::before { animation: none !important; }
}

/* Focus-visible accessibility */
.footer-social .social-icons a:focus-visible,
.footer-column.socials a:focus-visible {
  outline: 3px solid rgba(31,60,136,0.14);
  outline-offset: 4px;
}

/* ==========================================================================
   Footer glow line (top subtle stripe) — toggled by JS (.active)
   ========================================================================== */
#gcl-footer { position: relative; overflow: hidden; }
#gcl-footer .glow-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gcl-red), var(--gcl-teal), var(--gcl-gold), var(--gcl-blue));
  background-size: 300% 100%;
  opacity: 0;
  filter: blur(2px);
  transition: opacity .6s ease, transform .6s ease;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 10;
}
#gcl-footer .glow-line.active {
  opacity: 1;
  transform: scaleX(1);
  animation: gcl-footer-glow 6s linear infinite;
}
@keyframes gcl-footer-glow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   Footer bottom strip
   ========================================================================== */
.footer-bottom {
  text-align: center;
  padding: 15px 20px;
  background: #000;
  color: var(--gcl-silver);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ==========================================================================
   Defensive (some themes hide footer with inline styles, counteract that)
   ========================================================================== */
#site-footer[style*="display:none"],
#gcl-footer[style*="display:none"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Small utilities used in templates
   ========================================================================== */
.text-gcl-silver { color: var(--gcl-silver) !important; }
.text-gcl-gold   { color: var(--gcl-gold) !important; }
.bg-gcl-black    { background: var(--gcl-black) !important; color: var(--gcl-silver) !important; }

/* ============================================================
   GCL FOOTER — Fine-Tune Adjustments (Flush Fit + Glow Harmony)
   ============================================================ */

/* Ensure footer sits flush with preceding content */
#site-footer,
#gcl-footer,
.site-footer {
  margin-top: 0 !important;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(circle at top center,
              rgba(0,198,174,0.04),
              rgba(0,0,0,0.92) 60%) !important;
}

/* Align inner container precisely to parent theme’s grid */
.footer-wrapper {
  max-width: var(--gcl-max-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
  gap: clamp(16px, 2vw, 40px);
}

/* Slight vertical rhythm tweak for mobile */
@media (max-width: 768px) {
  .footer-wrapper { padding-block: 28px; }
  .footer-col { margin-bottom: 20px; }
}

/* Balanced glow under icons (less intensity on mobile) */
.footer-social .social-icons a {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.footer-social .social-icons a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 16px rgba(163,2,2,0.22),
    0 0 26px rgba(0,198,174,0.18);
}

@media (max-width: 768px) {
  .footer-social .social-icons a:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(163,2,2,0.16);
  }
}

/* Improve glow-line transition between sections */
#gcl-footer .glow-line {
  filter: blur(2.5px);
  height: 3px;
  opacity: 0.85;
}
#gcl-footer .glow-line.active {
  opacity: 1;
  transform: scaleX(1.02);
}

/* Tighten spacing before footer-bottom text */
.footer-bottom {
  padding-block: 14px;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(to bottom, #000000 0%, #0a0a0a 100%);
}

/* Subtle fade-in animation on page load (optional) */
#site-footer {
  animation: gcl-footer-fadein 0.9s ease-in-out both;
}
@keyframes gcl-footer-fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==============================
   Corporate Premium Footer Styling
   ============================== */

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 50px 20px;
  align-items: start;
  background: linear-gradient(135deg, #00264D 0%, #0A0A0A 100%);
  color: #C0C0C0;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.footer-col p {
  color: #C0C0C0;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #C0C0C0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #00C6AE;
  text-shadow: 0 0 6px rgba(0,198,174,0.7);
}

/* Social Icons */
.footer-social .social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social .social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111;
  color: #C0C0C0;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.footer-social .social-icons a:hover {
  color: #FFFFFF;
  background: #A30202;
  box-shadow: 0 0 10px rgba(163,2,2,0.7), 0 0 20px rgba(163,2,2,0.5);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 15px 20px;
  background: #000000;
  color: #C0C0C0;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
}

/* ==============================
   Corporate Premium Footer Styling (Unified Glow + Pulse)
   ============================== */

/* Footer Wrapper */
.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 50px 20px;
  align-items: start;
  background: linear-gradient(135deg, #00264D 0%, #0A0A0A 100%);
  color: #C0C0C0;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.footer-col p {
  color: #C0C0C0;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #C0C0C0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #00C6AE;
  text-shadow: 0 0 6px rgba(0,198,174,0.7);
}

/* ==============================
   Social Icons with Glow
   ============================== */
.footer-social .social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social .social-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111;
  color: #C0C0C0;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

/* Hover Glow */
.footer-social .social-icons a:hover {
  color: #FFFFFF;
  background: #A30202;
  box-shadow: 0 0 12px rgba(163, 2, 2, 0.9),
              0 0 24px rgba(0, 198, 174, 0.7);
  transform: translateY(-3px) scale(1.08);
}

/* Animated Pulse Glow */
.footer-social .social-icons a::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, rgba(163,2,2,0.6), rgba(0,198,174,0.4));
  opacity: 0;
  transform: scale(0.8);
  z-index: -1;
  animation: gcl-pulse 3s infinite ease-in-out;
}

@keyframes gcl-pulse {
  0%   { opacity: 0; transform: scale(0.8); }
  50%  { opacity: 0.7; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* ==============================
   Footer Bottom
   ============================== */
.footer-bottom {
  text-align: center;
  padding: 15px 20px;
  background: #000000;
  color: #C0C0C0;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
}

/* Unified social icons */
.footer-social .social-icons.unified a {
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  color: #fff;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.footer-social .social-icons.unified a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  background: linear-gradient(45deg, #00aaff, #00ffcc);
}

/* Ensure footer is visible site-wide */
body:not(.elementor-page) footer#gcl-footer {
  display: block !important;
}


/* End of child theme CSS */
