/* Garza, Gómez y Asociados — Site-Wide GSAP ScrollTrigger + 21st.dev Executive Motion Styles */

:root {
  --gga-navy: #1a2238;
  --gga-navy-deep: #131a2c;
  --gga-gold: #b08d57;
  --gga-gold-light: #c9ab7c;
  --gga-gold-pale: #f6e4c1;
  --gga-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1. Gold Scroll Progress Hairline at very top */
.gga-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #b08d57 0%, #f6e4c1 55%, #c9ab7c 100%);
  box-shadow: 0 0 10px rgba(201, 171, 124, 0.55);
  will-change: transform;
}

/* 2. Adaptive Glass Header on Scroll */
header {
  transition: box-shadow 0.35s var(--gga-ease-smooth), border-color 0.35s var(--gga-ease-smooth), background-color 0.35s var(--gga-ease-smooth);
}

header.gga-header-scrolled {
  border-bottom-color: rgba(176, 141, 87, 0.35);
  box-shadow: 0 10px 30px -12px rgba(19, 26, 44, 0.14);
}

/* 3. Kinetic Editorial Word Mask Reveal */
.gga-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.gga-word {
  display: inline-block;
  will-change: transform, opacity;
}

/* 4. Animated Architectural Eyebrow Line */
.gga-eyebrow-lined {
  display: inline-flex;
  align-items: center;
}

.gga-eyebrow-lined::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.75rem;
  transform-origin: left center;
  transform: scaleX(var(--eyebrow-line, 1));
  opacity: 0.85;
}

/* 5. 21st.dev Spotlight Glow Cards */
.gga-spotlight-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gga-spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(201, 171, 124, 0.18),
    transparent 65%
  );
  transition: opacity 0.35s var(--gga-ease-smooth);
}

.gga-spotlight-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #b08d57 0%, #f6e4c1 55%, #c9ab7c 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s var(--gga-ease-smooth);
}

.gga-spotlight-card:hover::before {
  opacity: 1;
}

.gga-spotlight-card:hover::after {
  transform: scaleX(1);
}

/* 6. 21st.dev Border-Beam Accent on Institutional Callouts & Contact Form */
.gga-border-beam {
  position: relative;
  overflow: hidden;
}

.gga-border-beam::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #c9ab7c 40%, #f6e4c1 52%, transparent);
  animation: gga-beam-slide 4.8s var(--gga-ease-smooth) infinite;
}

@keyframes gga-beam-slide {
  0% {
    transform: translate3d(-110%, 0, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(260%, 0, 0);
    opacity: 0;
  }
}

/* 7. Editorial Image Reveal Frame */
.gga-img-frame {
  position: relative;
  overflow: hidden;
}

.gga-img-frame > img {
  display: block;
  width: 100%;
  will-change: transform, clip-path;
}

/* 8. 21st.dev Dark Section Ambient Aura (Subpage Heroes + Dark CTA Bands) */
.gga-dark-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.gga-dark-aura {
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    radial-gradient(620px circle at 78% 36%, rgba(201, 171, 124, 0.16), transparent 62%),
    radial-gradient(460px circle at 18% 72%, rgba(176, 141, 87, 0.1), transparent 65%),
    linear-gradient(to right, rgba(201, 171, 124, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 171, 124, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 82% 76% at 62% 46%, #000 18%, rgba(0, 0, 0, 0.4) 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 76% at 62% 46%, #000 18%, rgba(0, 0, 0, 0.4) 64%, transparent 100%);
  will-change: transform;
}

/* 9. 21st.dev Magnetic Executive CTA Buttons */
.gga-magnetic-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.gga-magnetic-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 80%
  );
  transform: translate3d(-125%, 0, 0);
  transition: transform 0.65s var(--gga-ease-smooth);
}

.gga-magnetic-btn:hover::after {
  transform: translate3d(125%, 0, 0);
}
