/* Elite-FIGCM — Generic Block Styles v1.0 */
/* BEM prefix: efb-b-* */

/* ── Shared utilities ────────────────────────────────────────────── */
.efb-b-section-heading {
  text-align: center;
  margin-bottom: 0.5em;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #1B2A4A;
}
.efb-b-section-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.efb-btn {
  display: inline-block;
  padding: 0.65em 1.5em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.4;
}
.efb-btn:hover { transform: translateY(-1px); }
.efb-btn--primary { background: #C9973C; color: #fff; border-color: #C9973C; }
.efb-btn--primary:hover { background: #b3812e; border-color: #b3812e; color: #fff; }
.efb-btn--navy { background: #1B2A4A; color: #fff; border-color: #1B2A4A; }
.efb-btn--navy:hover { background: #14203b; border-color: #14203b; color: #fff; }
.efb-btn--outline { background: transparent; color: #1B2A4A; border-color: #1B2A4A; }
.efb-btn--outline:hover { background: #1B2A4A; color: #fff; }
.efb-btn--ghost { background: transparent; color: #C9973C; border-color: transparent; }
.efb-btn--ghost:hover { text-decoration: underline; }
.efb-btn--sm { padding: 0.4em 1em; font-size: 0.85rem; }
.efb-btn--lg { padding: 0.85em 2em; font-size: 1.05rem; }

/* ── Image block ─────────────────────────────────────────────────── */
.efb-b-image {
  display: block;
  position: relative;
  margin: 0;
  overflow: hidden;
  line-height: 0;
}
.efb-b-image--full { width: 100%; }
.efb-b-image--rounded .efb-b-image__img,
.efb-b-image--rounded { border-radius: 12px; }
.efb-b-image__img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.efb-b-image__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.efb-b-image__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.efb-b-image__text { color: #fff; font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.efb-b-image__caption {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* ── Heading block ───────────────────────────────────────────────── */
.efb-b-heading { margin-bottom: 1.5rem; }
.efb-b-heading__text { margin: 0 0 0.25em; }
.efb-b-heading__sub { color: #6b7280; margin: 0; font-size: 1.05rem; }

/* ── Text block ──────────────────────────────────────────────────── */
.efb-b-text {
  font-size: 1rem;
  line-height: 1.75;
  color: inherit;
  margin-bottom: 1.5rem;
}
.efb-b-text p { margin: 0 0 1em; }
.efb-b-text p:last-child { margin-bottom: 0; }

/* ── Button group ────────────────────────────────────────────────── */
.efb-b-buttons { padding: 0.75rem 0; }
.efb-b-buttons__group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── Spacer ──────────────────────────────────────────────────────── */
.efb-b-spacer { display: block; width: 100%; }

/* ── Divider ─────────────────────────────────────────────────────── */
.efb-b-divider { margin: 1.5rem 0; }
.efb-b-divider hr { margin: 0; border: none; border-top-width: 2px; }
.efb-b-divider--labeled {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--efb-div-color, #e2e6ea);
}
.efb-b-divider--labeled::before,
.efb-b-divider--labeled::after {
  content: '';
  flex: 1;
  height: 2px;
  background: currentColor;
}
.efb-b-divider__label { white-space: nowrap; font-size: 0.85rem; color: #6b7280; }

/* ── Video embed ─────────────────────────────────────────────────── */
.efb-b-video { margin-bottom: 1.5rem; }
.efb-b-video--full { width: 100%; }
.efb-b-video__wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.efb-b-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.efb-b-video__caption {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  margin: 0.5rem 0 0;
}

/* ── Icon Boxes ──────────────────────────────────────────────────── */
.efb-b-icon-boxes { padding: 4rem 0; }
.efb-b-icon-boxes__grid {
  display: grid;
  grid-template-columns: repeat(var(--efb-cols, 3), 1fr);
  gap: 2rem;
}
.efb-b-icon-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.efb-b-icon-boxes--card .efb-b-icon-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.efb-b-icon-boxes--card .efb-b-icon-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.efb-b-icon-box__icon { font-size: 2.25rem; line-height: 1; }
.efb-b-icon-box__title { font-size: 1.1rem; font-weight: 700; color: #1B2A4A; margin: 0; }
.efb-b-icon-box__text { font-size: 0.9rem; color: #6b7280; line-height: 1.6; margin: 0; }
.efb-b-icon-box__link { font-size: 0.85rem; color: #C9973C; font-weight: 600; text-decoration: none; }
.efb-b-icon-box__link:hover { text-decoration: underline; }

/* ── Columns ─────────────────────────────────────────────────────── */
.efb-b-cols { padding: 4rem 0; }
.efb-b-cols__grid { display: grid; gap: 2rem; }
.efb-b-col { display: flex; flex-direction: column; gap: 1rem; }
.efb-b-col__img { width: 100%; height: auto; border-radius: 8px; display: block; }
.efb-b-col__heading { font-size: 1.25rem; font-weight: 700; color: #1B2A4A; margin: 0; }
.efb-b-col__text { color: #374151; line-height: 1.7; font-size: 0.95rem; }

/* ── Post Grid ───────────────────────────────────────────────────── */
.efb-b-post-grid { padding: 4rem 0; }
.efb-b-post-grid__grid {
  display: grid;
  grid-template-columns: repeat(var(--efb-cols, 3), 1fr);
  gap: 2rem;
}
.efb-b-post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.efb-b-post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.efb-b-post-card__thumb-link { display: block; position: relative; overflow: hidden; }
.efb-b-post-card__thumb { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.35s; }
.efb-b-post-card:hover .efb-b-post-card__thumb { transform: scale(1.04); }
.efb-b-post-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}
.efb-b-post-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.efb-b-post-card__cats { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #C9973C; }
.efb-b-post-card__date { font-size: 0.8rem; color: #9ca3af; }
.efb-b-post-card__title { font-size: 1.05rem; font-weight: 700; color: #1B2A4A; margin: 0; }
.efb-b-post-card__title a { text-decoration: none; color: inherit; }
.efb-b-post-card__title a:hover { color: #C9973C; }
.efb-b-post-card__excerpt { font-size: 0.88rem; color: #6b7280; line-height: 1.6; margin: 0; flex: 1; }
.efb-b-post-card__link { font-size: 0.85rem; font-weight: 600; color: #C9973C; text-decoration: none; margin-top: auto; }
.efb-b-post-card__link:hover { text-decoration: underline; }

/* ── Pricing Table ───────────────────────────────────────────────── */
.efb-b-pricing { padding: 4rem 0; }
.efb-b-pricing__grid {
  display: grid;
  grid-template-columns: repeat(var(--efb-cols, 3), 1fr);
  gap: 1.5rem;
  align-items: end;
}
.efb-b-plan {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.efb-b-plan--featured {
  border-color: #C9973C;
  box-shadow: 0 8px 40px rgba(201,151,60,0.18);
  transform: scale(1.03);
  z-index: 1;
}
.efb-b-plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #C9973C;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25em 1em;
  border-radius: 999px;
  white-space: nowrap;
}
.efb-b-plan__head { text-align: center; }
.efb-b-plan__name { font-size: 1rem; font-weight: 700; color: #1B2A4A; text-transform: uppercase; letter-spacing: 0.06em; }
.efb-b-plan__price { margin-top: 0.5rem; }
.efb-b-plan__amount { display: block; font-size: 2.5rem; font-weight: 800; color: #1B2A4A; line-height: 1; }
.efb-b-plan__period { font-size: 0.85rem; color: #9ca3af; }
.efb-b-plan__desc { font-size: 0.85rem; color: #6b7280; margin-top: 0.5rem; }
.efb-b-plan__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.efb-b-plan__features li { font-size: 0.9rem; color: #374151; padding-left: 1.5em; position: relative; }
.efb-b-plan__features li::before { content: '✓'; position: absolute; left: 0; color: #C9973C; font-weight: 700; }
.efb-b-plan__cta { margin-top: auto; text-align: center; }
.efb-b-plan__cta .efb-btn { width: 100%; text-align: center; }

/* ── Countdown ───────────────────────────────────────────────────── */
.efb-b-countdown { padding: 4rem 0; }
.efb-b-countdown__wrap {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem auto;
  justify-content: center;
}
.efb-b-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.efb-b-countdown--boxes .efb-b-countdown__unit {
  background: #1B2A4A;
  color: #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  min-width: 80px;
}
.efb-b-countdown--plain .efb-b-countdown__unit { padding: 0.5rem 0.75rem; }
.efb-b-countdown__num { font-size: 2.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.efb-b-countdown--boxes .efb-b-countdown__num { color: #C9973C; }
.efb-b-countdown__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.efb-b-countdown--boxes .efb-b-countdown__label { color: #fff; }

/* ── Accordion / FAQ ─────────────────────────────────────────────── */
.efb-b-accordion { padding: 4rem 0; }
.efb-b-acc-list { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.efb-b-acc-item { border-bottom: 1px solid #e5e7eb; }
.efb-b-acc-item:first-child { border-top: 1px solid #e5e7eb; }
.efb-b-acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1B2A4A;
  text-align: left;
  line-height: 1.4;
}
.efb-b-acc-trigger:hover { color: #C9973C; }
.efb-b-acc-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; transition: transform 0.25s; color: #C9973C; }
.efb-b-acc-item.is-open .efb-b-acc-icon { transform: rotate(45deg); }
.efb-b-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.efb-b-acc-item.is-open .efb-b-acc-body { max-height: 1000px; }
.efb-b-acc-body__inner { padding: 0 0 1rem; color: #374151; line-height: 1.7; }

/* ── Tabs ────────────────────────────────────────────────────────── */
.efb-b-tabs { padding: 4rem 0; }
.efb-b-tabs-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.efb-b-tab-btn {
  background: none;
  border: none;
  padding: 0.6em 1.25em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.efb-b-tabs--underline .efb-b-tabs-nav { border-bottom: 2px solid #e5e7eb; }
.efb-b-tabs--underline .efb-b-tab-btn { border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.efb-b-tabs--underline .efb-b-tab-btn.is-active { color: #1B2A4A; border-bottom-color: #C9973C; }
.efb-b-tabs--pill .efb-b-tab-btn { border-radius: 999px; }
.efb-b-tabs--pill .efb-b-tab-btn.is-active { background: #1B2A4A; color: #fff; }
.efb-b-tab-btn.is-active { color: #1B2A4A; }
.efb-b-tab-pane { display: none; }
.efb-b-tab-pane.is-active { display: block; }
.efb-b-tabs-content { padding-top: 1rem; }

/* ── Flip Boxes ──────────────────────────────────────────────────── */
.efb-b-flip-boxes { padding: 4rem 0; }
.efb-b-flip-grid {
  display: grid;
  grid-template-columns: repeat(var(--efb-cols, 3), 1fr);
  gap: 2rem;
}
.efb-b-flip-card { perspective: 1000px; cursor: pointer; }
.efb-b-flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s;
  transform-style: preserve-3d;
}
.efb-b-flip-card:hover .efb-b-flip-card__inner[data-dir="Y"],
.efb-b-flip-card:focus-within .efb-b-flip-card__inner[data-dir="Y"] { transform: rotateY(180deg); }
.efb-b-flip-card__inner[data-dir="X"]:is(.efb-b-flip-card:hover *, .efb-b-flip-card:focus-within *) { transform: rotateX(180deg); }
.efb-b-flip-card__front,
.efb-b-flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  gap: 0.75rem;
}
.efb-b-flip-card__back { transform: rotateY(180deg); }
.efb-b-flip-card__inner[data-dir="X"] .efb-b-flip-card__back { transform: rotateX(180deg); }
.efb-b-flip-card__icon { font-size: 2.5rem; line-height: 1; }
.efb-b-flip-card__front h3,
.efb-b-flip-card__back h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.efb-b-flip-card__front p { font-size: 0.9rem; opacity: 0.85; margin: 0; }
.efb-b-flip-card__back-text { font-size: 0.9rem; opacity: 0.9; margin: 0; line-height: 1.6; }

/* ── Gallery Grid ────────────────────────────────────────────────── */
.efb-b-gallery { padding: 4rem 0; }
.efb-b-gallery__grid { display: grid; }
.efb-b-gallery__item { margin: 0; overflow: hidden; border-radius: 8px; }
.efb-b-gallery__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.efb-b-gallery__item:hover .efb-b-gallery__img { transform: scale(1.05); }
.efb-b-gallery__item figcaption { font-size: 0.78rem; color: #6b7280; padding: 0.4rem 0.25rem; text-align: center; }

/* ── Testimonials ────────────────────────────────────────────────── */
.efb-b-testimonials { padding: 4rem 0; }
.efb-b-testi-grid {
  display: grid;
  grid-template-columns: repeat(var(--efb-cols, 3), 1fr);
  gap: 2rem;
}
.efb-b-testi-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 4px solid #C9973C;
}
.efb-b-testi-card__stars { color: #C9973C; font-size: 1rem; letter-spacing: 0.05em; }
.efb-b-testi-card__quote {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  font-style: italic;
  margin: 0;
  flex: 1;
}
.efb-b-testi-card__footer { display: flex; align-items: center; gap: 0.75rem; }
.efb-b-testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.efb-b-testi-card__name { display: block; font-weight: 700; color: #1B2A4A; font-size: 0.9rem; }
.efb-b-testi-card__role { font-size: 0.8rem; color: #9ca3af; }

/* ── Progress Bars ───────────────────────────────────────────────── */
.efb-b-progress-bars { padding: 4rem 0; }
.efb-b-progress-bar { margin-bottom: 1.5rem; }
.efb-b-progress-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.efb-b-progress-bar__label { font-weight: 600; color: #1B2A4A; font-size: 0.9rem; }
.efb-b-progress-bar__pct { font-size: 0.85rem; color: #6b7280; font-weight: 600; }
.efb-b-progress-bar__track {
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.efb-b-progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.efb-b-progress-bar__fill--stripe {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 0,
    rgba(255,255,255,0.15) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: efb-stripe 1s linear infinite;
}
@keyframes efb-stripe { to { background-position: 28px 0; } }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .efb-b-icon-boxes__grid,
  .efb-b-post-grid__grid,
  .efb-b-pricing__grid,
  .efb-b-flip-grid,
  .efb-b-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .efb-b-cols__grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .efb-b-icon-boxes__grid,
  .efb-b-post-grid__grid,
  .efb-b-pricing__grid,
  .efb-b-flip-grid,
  .efb-b-testi-grid,
  .efb-b-gallery__grid { grid-template-columns: 1fr !important; }
  .efb-b-plan--featured { transform: none; }
  .efb-b-countdown__num { font-size: 2rem; }
}
