/* ============================================================
   My Studio Widgets — GC Pillars
   Fonts are enqueued by WordPress, not imported here.
   CSS tokens are overridden per-widget via inline style.
   ============================================================ */

.gc-pillars {
  --gc-gold:        #b8953a;
  --gc-gold-light:  #d4af6a;
  --gc-gold-pale:   #ecddb8;
  --gc-cream:       #faf5ec;
  --gc-cream-mid:   #f0e6cf;
  --gc-dark:        #1c1914;
  --gc-text:        #3a3228;
  --gc-text-light:  #7a6e62;
  --gc-white:       #ffffff;
  --gc-border:      rgba(184,149,58,0.25);
  --gc-pillar-count: 7;
}

.gc-pillars *,
.gc-pillars *::before,
.gc-pillars *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Section ── */
.gc-pillars {
  width: 100%;
  background: var(--gc-white);
  padding: 5rem 2rem 5.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--gc-text);
  border-top: 1px solid var(--gc-border);
  border-bottom: 1px solid var(--gc-border);
}

.gc-pillars-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

/* ── Ornament ── */
.gc-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.gc-ornament-line {
  flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gc-gold-light));
}
.gc-ornament-line.r {
  background: linear-gradient(90deg, var(--gc-gold-light), transparent);
}
.gc-ornament-diamond {
  width: 6px; height: 6px;
  background: var(--gc-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Overline ── */
.gc-overline {
  display: block;
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gc-gold); margin-bottom: 0.75rem;
}

/* ── Heading ── */
.gc-pillars-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--gc-dark);
  letter-spacing: 0.04em; line-height: 1.15;
  margin-bottom: 0.55rem;
}

/* ── Sub-heading ── */
.gc-pillars-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem; font-style: italic; font-weight: 300;
  color: var(--gc-text-light); margin-bottom: 0.8rem; line-height: 1.6;
}

/* ── Grid ── */
.gc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(var(--gc-pillar-count), 1fr);
  gap: 0.75rem;
}

/* ── Pillar ── */
.gc-pillar {
  padding: 1.4rem 0.8rem 1.2rem; text-align: center;
  border: 1px solid var(--gc-border);
  border-radius: 6px;
  position: relative; cursor: default;
  transition: background 0.3s ease;
  overflow: hidden;
}

/* Hover image background layer (only when image is set) */
.gc-pillar.has-hover-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--gc-hover-img);
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.gc-pillar.has-hover-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(28, 25, 20, 0.52); /* dark scrim so text stays readable */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.gc-pillar.has-hover-img:hover::before,
.gc-pillar.has-hover-img:hover::after { opacity: 1; }

/* Keep card content above the image layers */
.gc-pillar.has-hover-img > * { position: relative; z-index: 2; }

/* Gold underline for cards WITHOUT a hover image */
.gc-pillar:not(.has-hover-img)::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gc-gold);
  transition: width 0.38s cubic-bezier(0.4,0,0.2,1);
}
.gc-pillar:hover { background: var(--gc-cream); }
.gc-pillar.has-hover-img:hover { background: transparent; }
.gc-pillar:not(.has-hover-img):hover::after { width: 50%; }

/* Text colour inversion on hover — all cards */
.gc-pillar:hover .gc-pillar-name { color: var(--gc-white); }
.gc-pillar:hover .gc-pillar-sub  { color: var(--gc-white); }
.gc-pillar.has-hover-img:hover .gc-pillar-icon { background: rgba(255,255,255,0.12); border-color: var(--gc-gold); }

/* ── Icon circle ── */
.gc-pillar-icon {
  width: 58px; height: 58px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  border: 1.5px solid var(--gc-border);
  background: var(--gc-cream-mid);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s,
              transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.gc-pillar:hover .gc-pillar-icon {
  border-color: var(--gc-gold);
  background: var(--gc-gold-pale);
  transform: translateY(-4px) scale(1.06);
}
.gc-pillar-icon i,
.gc-pillar-icon svg,
.gc-pillar-icon [class*="eicon"] {
  font-size: 35px; color: var(--gc-gold);
  stroke: var(--gc-gold); fill: none;
  stroke-width: 1.4; width: 35px; height: 35px;
}

/* ── Name ── */
.gc-pillar-name {
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gc-dark); margin-bottom: 0.45rem; line-height: 1.3;
}

/* ── Sub ── */
.gc-pillar-sub {
    font-family: 'arial';
    font-size: 13px;
    /* font-style: italic; */
    font-weight: 400;
  color: var(--gc-dark); line-height: 1.55;
}

/* ── Breathing glow (border pulse) ── */
@keyframes gc-pillar-breathe {
  0%, 100% { border-color: rgba(184,149,58,0.22); }
  50%       { border-color: rgba(184,149,58,0.6);  }
}
.gc-pillar { animation: gc-pillar-breathe 3.5s ease-in-out infinite; }
.gc-pillar:hover { animation-play-state: paused; }

/* ── Icon spin on hover ── */
@keyframes gc-icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.gc-pillar:hover .gc-pillar-icon i,
.gc-pillar:hover .gc-pillar-icon svg {
  animation: gc-icon-spin 0.5s ease-out forwards;
}

/* ── Cursor trail dot ── */
.gc-pillars-cursor-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gc-gold);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  z-index: 10;
}
.gc-pillars-cursor-dot.active { opacity: 0.45; }

/* ── Reveal ── */
.gc-pillars [data-gc-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gc-pillars [data-gc-reveal].gc-visible {
  opacity: 1; transform: translateY(0);
}
/* Always visible inside Elementor editor canvas */
.elementor-editor-active .gc-pillars [data-gc-reveal] {
  opacity: 1; transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .gc-pillars-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .gc-pillars { padding: 3.5rem 1.2rem 4rem; }
  .gc-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .gc-pillars-grid { grid-template-columns: 1fr; }
}
