/* ================================================================
   FireGuard Compliance Widget — fg-compliance-widget v1.0.0
================================================================ */

/* ── CSS Variables (overridable by Elementor color controls) ── */
.fgc {
  --fgc-ink:      #2F4858;
  --fgc-dim:      #4a5f70;
  --fgc-lime:     #a6ce3a;
  --fgc-lime-dk:  #7ea028;
  --fgc-lime-lt:  #f2f7e3;
  --fgc-bg:       #f8f9f2;
  --fgc-card:     #ffffff;
  --fgc-border:   #2F4858;
  --fgc-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --fgc-font:     'Exo 2', 'Exo', sans-serif;

  font-family: var(--fgc-font);
  background: var(--fgc-bg);
  color: var(--fgc-ink);
  line-height: 1.6;
}

*, .fgc *,
.fgc *::before,
.fgc *::after {
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.fgc-hero {
  background: var(--fgc-card);
  border-bottom: 3px solid var(--fgc-ink);
  position: relative;
  overflow: hidden;
  --fgc-tilt: #f2f7e3;
}

/* diagonal tint panel */
.fgc-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--fgc-tilt);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.fgc-hero-ghost {
  position: absolute;
  bottom: -30px;
  left: 32px;
  font-size: 220px;
  font-weight: 900;
  color: var(--fgc-ink);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -10px;
  font-family: var(--fgc-font);
}

.fgc-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 64px 48px 56px;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Eyebrow */
.fgc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.fgc-eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--fgc-lime);
  flex-shrink: 0;
}
.fgc-eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--fgc-lime-dk);
  font-family: var(--fgc-font);
}

/* Title */
.fgc-hero-title {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fgc-ink);
  font-family: var(--fgc-font);
  margin: 0;
}
.fgc-hero-accent {
  display: block;
  color: var(--fgc-lime-dk);
  font-style: italic;
  font-weight: 800;
}

/* Subtitle */
.fgc-hero-sub {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 300;
  color: var(--fgc-dim);
  max-width: 480px;
  line-height: 1.7;
}

/* Badges */
.fgc-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.fgc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1.5px solid var(--fgc-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fgc-ink);
  background: transparent;
  font-family: var(--fgc-font);
  transition: all 0.2s var(--fgc-ease);
}
.fgc-badge--filled {
  background: var(--fgc-ink);
  color: var(--fgc-lime);
}

/* Stat box */
.fgc-stat-box {
  background: var(--fgc-ink);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.fgc-stat-box::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(166,206,58,0.25);
  pointer-events: none;
}
.fgc-stat-box-icon {
  width: 56px;
  height: 56px;
  background: var(--fgc-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.fgc-stat-box-icon svg {
  width: 28px; height: 28px;
  stroke: var(--fgc-ink);
  stroke-width: 2;
  fill: none;
}
.fgc-stat-box-num {
  font-size: 52px;
  font-weight: 900;
  color: var(--fgc-lime);
  line-height: 1;
  letter-spacing: -2px;
  font-family: var(--fgc-font);
}
.fgc-stat-box-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  font-family: var(--fgc-font);
}
.fgc-stat-box-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   MAIN WRAP
════════════════════════════════════════════════════ */
.fgc-main {
  padding: 0 48px 80px;
}

/* ════════════════════════════════════════════════════
   PERSON STRIP
════════════════════════════════════════════════════ */
.fgc-person {
  background: var(--fgc-ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.fgc-person::after {
  content: 'OWNER';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 100px;
  font-weight: 900;
  color: rgba(166,206,58,0.04);
  letter-spacing: 8px;
  pointer-events: none;
  user-select: none;
  font-family: var(--fgc-font);
}
.fgc-person-avatar {
  width: 80px;
  height: 80px;
  border: 2px solid var(--fgc-lime);
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(166,206,58,0.1);
}
.fgc-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fgc-person-avatar svg {
  width: 36px; height: 36px;
  stroke: var(--fgc-lime);
  fill: none;
  stroke-width: 1.5;
}
.fgc-person-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  font-family: var(--fgc-font);
}
.fgc-person-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  max-width: 480px;
  line-height: 1.65;
}
.fgc-person-tag {
  background: var(--fgc-lime);
  color: var(--fgc-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 16px;
  flex-shrink: 0;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  font-family: var(--fgc-font);
}

/* ════════════════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════════════════ */
.fgc-sec-header {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 64px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(47,72,88,0.12);
  padding-bottom: 16px;
}
.fgc-sec-num {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.85;
  color: var(--fgc-lime);
  letter-spacing: -4px;
  margin-right: 16px;
  flex-shrink: 0;
  opacity: 0.8;
  font-family: var(--fgc-font);
}
.fgc-sec-body { flex: 1; }
.fgc-sec-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fgc-ink);
  font-family: var(--fgc-font);
}
.fgc-sec-desc {
  font-size: 12px;
  color: var(--fgc-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
  font-family: var(--fgc-font);
}

/* ════════════════════════════════════════════════════
   CARDS GRID
════════════════════════════════════════════════════ */
.fgc-cards {
  display: grid;
  gap: 2px;
  background: var(--fgc-border);
  margin-top: 2px;
}
.fgc-cards--2col { grid-template-columns: repeat(2, 1fr); }
.fgc-cards--3col { grid-template-columns: repeat(3, 1fr); }
.fgc-full        { grid-column: 1 / -1; }

/* ── Item Card ── */
.fgc-item-card {
  background: var(--fgc-card);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s var(--fgc-ease), transform 0.2s var(--fgc-ease);
}
.fgc-item-card:hover { background: var(--fgc-lime-lt); }

/* hover left accent bar */
.fgc-item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--fgc-lime);
  transition: height 0.35s var(--fgc-ease);
}
.fgc-item-card:hover::before { height: 100%; }

.fgc-card-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--fgc-lime-dk);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fgc-font);
  text-transform: uppercase;
}
.fgc-card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(47,72,88,0.1);
}

.fgc-card-icon {
  width: 44px;
  height: 44px;
  background: var(--fgc-lime-lt);
  border: 1.5px solid rgba(47,72,88,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.25s var(--fgc-ease), border-color 0.25s var(--fgc-ease);
}
.fgc-item-card:hover .fgc-card-icon {
  background: var(--fgc-lime);
  border-color: var(--fgc-lime);
}
.fgc-card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--fgc-ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s var(--fgc-ease);
}

.fgc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fgc-ink);
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: var(--fgc-font);
}
.fgc-card-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--fgc-dim);
  line-height: 1.75;
  margin: 0;
}

/* ── Quote Card ── */
.fgc-quote {
  background: var(--fgc-ink);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.fgc-quote::before {
  content: '"';
  position: absolute;
  top: -20px; right: 20px;
  font-size: 160px;
  font-weight: 900;
  color: rgba(166,206,58,0.08);
  line-height: 1;
  pointer-events: none;
  font-family: var(--fgc-font);
}
.fgc-quote-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--fgc-lime);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.8;
  font-family: var(--fgc-font);
}
.fgc-quote-text {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  font-family: var(--fgc-font);
}
.fgc-quote-ref {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  line-height: 1.6;
  margin: 0;
}
.fgc-quote-ref strong { color: var(--fgc-lime); font-weight: 700; }

/* ════════════════════════════════════════════════════
   CHECKLIST
════════════════════════════════════════════════════ */
.fgc-check-wrap {
  background: var(--fgc-card);
  border: 1.5px solid rgba(47,72,88,0.1);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.fgc-check-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: var(--fgc-lime-lt);
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
  pointer-events: none;
}
.fgc-check-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--fgc-ink);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fgc-font);
}
.fgc-check-heading::before {
  content: '✔';
  width: 32px; height: 32px;
  background: var(--fgc-lime);
  color: var(--fgc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}
.fgc-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fgc-cl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--fgc-bg);
  border: 1px solid rgba(47,72,88,0.1);
  transition: border-color 0.2s, background 0.2s;
}
.fgc-cl-item:hover {
  border-color: var(--fgc-lime);
  background: var(--fgc-lime-lt);
}
.fgc-cl-box {
  width: 20px; height: 20px;
  background: var(--fgc-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fgc-cl-box svg {
  width: 11px; height: 11px;
  stroke: var(--fgc-ink);
  fill: none;
}
.fgc-cl-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--fgc-ink);
  line-height: 1.4;
  font-family: var(--fgc-font);
}

/* ════════════════════════════════════════════════════
   STATS BLOCK
════════════════════════════════════════════════════ */
.fgc-stats { margin-top: 48px; }
.fgc-stats-hdr {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}
.fgc-stats-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--fgc-ink);
  margin: 0;
  font-family: var(--fgc-font);
}
.fgc-stats-title em {
  font-style: italic;
  color: var(--fgc-lime-dk);
}
.fgc-stats-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fgc-dim);
  border: 1px solid rgba(47,72,88,0.15);
  padding: 6px 14px;
  white-space: nowrap;
  font-family: var(--fgc-font);
}
.fgc-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--fgc-border);
}
.fgc-stat-item {
  background: var(--fgc-card);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.25s var(--fgc-ease);
}
.fgc-stat-item:hover { background: var(--fgc-lime-lt); }
.fgc-stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fgc-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--fgc-ease);
}
.fgc-stat-item:hover::after { transform: scaleX(1); }

.fgc-stat-icon {
  width: 48px; height: 48px;
  background: var(--fgc-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.25s var(--fgc-ease);
}
.fgc-stat-item:hover .fgc-stat-icon { transform: rotate(-6deg) scale(1.05); }
.fgc-stat-icon svg {
  width: 24px; height: 24px;
  stroke: var(--fgc-ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fgc-stat-val {
  font-size: 52px;
  font-weight: 900;
  color: var(--fgc-ink);
  line-height: 1;
  letter-spacing: -2px;
  font-family: var(--fgc-font);
}
.fgc-stat-val sup {
  font-size: 22px;
  letter-spacing: 0;
  vertical-align: super;
}
.fgc-stat-val--sm { font-size: 32px; letter-spacing: -1px; }
.fgc-stat-unit {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fgc-lime-dk);
  margin-top: 4px;
  font-family: var(--fgc-font);
}
.fgc-stat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--fgc-ink);
  margin-top: 10px;
  font-family: var(--fgc-font);
}
.fgc-stat-note {
  font-size: 11.5px;
  color: var(--fgc-dim);
  margin-top: 5px;
  font-weight: 300;
}

/* ════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════ */
@keyframes fgc-fadeup {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fgc-item-card  { animation: fgc-fadeup 0.5s ease both; }
.fgc-stat-item  { animation: fgc-fadeup 0.5s ease both; }
.fgc-item-card:nth-child(1) { animation-delay: 0.05s; }
.fgc-item-card:nth-child(2) { animation-delay: 0.10s; }
.fgc-item-card:nth-child(3) { animation-delay: 0.15s; }
.fgc-item-card:nth-child(4) { animation-delay: 0.20s; }
.fgc-item-card:nth-child(5) { animation-delay: 0.25s; }
.fgc-item-card:nth-child(6) { animation-delay: 0.30s; }
.fgc-stat-item:nth-child(1) { animation-delay: 0.10s; }
.fgc-stat-item:nth-child(2) { animation-delay: 0.18s; }
.fgc-stat-item:nth-child(3) { animation-delay: 0.26s; }

/* ════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 900px
════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .fgc-hero-inner        { grid-template-columns: 1fr; gap: 0; padding: 48px 28px 40px; }
  .fgc-stat-box          { display: none; }
  .fgc-hero-ghost        { font-size: 120px; }
  .fgc-person            { grid-template-columns: auto 1fr; gap: 20px; padding: 28px 24px; }
  .fgc-person-tag        { display: none; }
  .fgc-person::after     { display: none; }
  .fgc-cards--2col       { grid-template-columns: 1fr; }
  .fgc-cards--3col       { grid-template-columns: 1fr 1fr; }
  .fgc-stats-row         { grid-template-columns: 1fr 1fr; }
  .fgc-stats-hdr         { grid-template-columns: 1fr; gap: 8px; }
  .fgc-stats-note        { align-self: start; }
  .fgc-check-grid        { grid-template-columns: 1fr 1fr; }
  .fgc-main              { padding: 0 24px 60px; }
  .fgc-sec-num           { font-size: 60px; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 600px
════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .fgc-hero-inner        { padding: 32px 20px 28px; }
  .fgc-hero-title        { font-size: 26px; letter-spacing: -1px; }
  .fgc-hero-ghost        { font-size: 72px; bottom: -10px; left: 12px; }
  .fgc-person            { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; gap: 16px; }
  .fgc-person-avatar     { margin: 0 auto; }
  .fgc-person-desc       { max-width: 100%; }
  .fgc-cards--2col,
  .fgc-cards--3col       { grid-template-columns: 1fr; }
  .fgc-stats-row         { grid-template-columns: 1fr; }
  .fgc-check-grid        { grid-template-columns: 1fr; }
  .fgc-sec-header        { gap: 0; }
  .fgc-sec-num           { font-size: 48px; margin-right: 10px; }
  .fgc-sec-title         { font-size: 17px; }
  .fgc-main              { padding: 0 16px 50px; }
  .fgc-check-wrap        { padding: 24px 16px; }
  .fgc-stat-val          { font-size: 40px; }
  .fgc-stats-title       { font-size: 20px; }
  .fgc-quote             { padding: 24px 20px; }
  .fgc-quote-text        { font-size: 16px; }
  .fgc-badges            { gap: 8px; }
  .fgc-badge             { font-size: 10px; padding: 6px 12px; letter-spacing: 1px; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile ≤ 380px
════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .fgc-hero-title   { font-size: 22px; }
  .fgc-card-title   { font-size: 14px; }
  .fgc-item-card    { padding: 20px 16px; }
  .fgc-stat-val     { font-size: 34px; }
}
