/* ============================================================
   Glass Container Widget  –  gcw-style.css  v1.0.2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ─── Outer wrapper ─────────────────────────────────────── */
.gcw-wrap {
  --gcw-container-glass-color: rgba(255,255,255,0.10);
  --gcw-container-blur: 18px;

  position: relative;
  border-radius: 24px;
  padding: 36px 32px;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  isolation: isolate;

  background-color: #4a2e1a;
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(240,122,20,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(120,60,10,0.30) 0%, transparent 60%);
  backdrop-filter: blur(var(--gcw-container-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--gcw-container-blur)) saturate(160%);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.18),
    inset -1px -1px 0 rgba(0,0,0,0.25),
    0 8px 40px rgba(0,0,0,0.35);
}

/* Top-left glass shine */
.gcw-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(
    160deg,
    var(--gcw-container-glass-color) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 70%
  );
  border-radius: 24px 24px 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Bottom rim light */
.gcw-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.30) 35%,
    rgba(255,255,255,0.30) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.gcw-wrap > * { position: relative; z-index: 1; }

/* ─── Eyebrow ────────────────────────────────────────────── */
.gcw-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f07a14;
  margin: 0 0 12px;
}

/* ─── Heading ────────────────────────────────────────────── */
.gcw-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  color: #f5e6d0;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

/* ─── Grid ───────────────────────────────────────────────── */
.gcw-grid {
  display: grid;
  gap: 14px;
}
.gcw-cols-1 { grid-template-columns: 1fr; }
.gcw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gcw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gcw-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Card ───────────────────────────────────────────────── */
.gcw-card {
  --gcw-blur: 12px;
  --gcw-glass-opacity: 0.18;
  --gcw-glass-color: #ffffff;

  position: relative;
  border-radius: 18px;
  padding: 22px 20px;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.3),
              box-shadow 0.35s ease;

  background: rgba(255,255,255, var(--gcw-glass-opacity));
  backdrop-filter: blur(var(--gcw-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--gcw-blur)) saturate(180%);

  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.32),
    inset -1px -1px 0 rgba(0,0,0,0.18),
    0 4px 24px rgba(0,0,0,0.22),
    0 1px 0   rgba(255,255,255,0.06);
}

.gcw-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.45),
    inset -1px -1px 0 rgba(0,0,0,0.22),
    0 12px 36px rgba(0,0,0,0.30),
    0 1px 0   rgba(255,255,255,0.10);
}

/* ─── Static glass shine ─────────────────────────────────── */
.gcw-glass-shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.00) 55%,
    rgba(255,255,255,0.08) 80%,
    rgba(255,255,255,0.20) 100%
  );
  mix-blend-mode: screen;
}

/* ─── Glass rim ──────────────────────────────────────────── */
.gcw-glass-rim {
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.45) 40%,
    rgba(255,255,255,0.45) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Card inner ─────────────────────────────────────────── */
.gcw-card-inner {
  position: relative;
  z-index: 1;
}

/* ─── Card link wrapper ──────────────────────────────────── */
.gcw-card-link {
  text-decoration: none;
  display: block;
  position: relative;
  z-index: 1;
}

/* ─── Icon bubble ────────────────────────────────────────── */
.gcw-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #f07a14;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 10px rgba(240,122,20,0.45),
    inset 0 1px 0 rgba(255,255,255,0.30);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gcw-icon-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  pointer-events: none;
}

.gcw-card:hover .gcw-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  box-shadow:
    0 4px 18px rgba(240,122,20,0.55),
    inset 0 1px 0 rgba(255,255,255,0.40);
}

.gcw-icon-wrap i,
.gcw-icon-wrap svg {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #ffffff;
  fill: #ffffff;
  position: relative;
  z-index: 1;
}

/* ─── Card label ─────────────────────────────────────────── */
.gcw-card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c8a882;
  margin: 0 0 5px;
}

/* ─── Card value ─────────────────────────────────────────── */
.gcw-card-value {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f5e6d0;
  margin: 0;
  line-height: 1.3;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .gcw-cols-3,
  .gcw-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gcw-cols-2,
  .gcw-cols-3,
  .gcw-cols-4 { grid-template-columns: 1fr; }
  .gcw-wrap   { padding: 24px 18px; }
}

.elementor-editor-active .gcw-card { cursor: pointer; }
