/* ==========================================================================
   TBM Media — supplemental CSS (effects the block editor can't do natively)
   Edit colors via theme.json. Edit utility classes here.
   ========================================================================== */

:root {
  --tbm-pink: #ff2a7f;
  --tbm-orange: #ff8a3d;
  --tbm-bg: #0a0a0a;
  --tbm-text: #f7f3ee;
  --tbm-muted: #b8b2a9;
  --tbm-border: #2a2a2a;
  --tbm-grad: linear-gradient(90deg, #ff2a7f 0%, #ff8a3d 100%);
  --tbm-grad-diag: linear-gradient(135deg, #ff2a7f 0%, #ff8a3d 100%);
}

html { scroll-behavior: smooth; }
body { background: var(--tbm-bg); color: var(--tbm-text); -webkit-font-smoothing: antialiased; }

/* Force WordPress center-align class to always work */
.has-text-align-center { text-align: center !important; }

/* --------------------------------------------------------------------------
   Utility classes — apply via the block "Advanced → Additional CSS class"
   field. Keeps the design language consistent without hand-editing markup.
   -------------------------------------------------------------------------- */

/* Brush headline ("CREATING LEGACY.") with pink→orange gradient text */
.is-style-brush-gradient,
.tbm-brush {
  font-family: 'Permanent Marker', 'Bradley Hand', cursive !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  background: var(--tbm-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  line-height: 1 !important;
}

/* Standalone gradient text (no brush) */
.tbm-gradient-text {
  background: var(--tbm-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* Eyebrow label — small caps pink label above headings */
.tbm-eyebrow {
  color: var(--tbm-pink) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem !important;
  margin-bottom: 0.5rem !important;
}

/* Outline button (transparent w/ orange-pink border) — apply to button block */
.is-style-outline > .wp-block-button__link,
.tbm-btn-outline > .wp-block-button__link {
  background: transparent !important;
  color: var(--tbm-text) !important;
  border: 1.5px solid var(--tbm-orange) !important;
  border-radius: 2px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  padding: 0.95rem 1.75rem !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.is-style-outline > .wp-block-button__link:hover,
.tbm-btn-outline > .wp-block-button__link:hover {
  background: var(--tbm-pink) !important;
  border-color: var(--tbm-pink) !important;
  color: #fff !important;
}

/* Solid gradient button */
.tbm-btn-gradient > .wp-block-button__link {
  background: var(--tbm-grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem !important;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.tbm-btn-gradient > .wp-block-button__link:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Feature row icon styling */
.tbm-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.tbm-feature .tbm-feature__icon {
  color: var(--tbm-orange);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.tbm-feature h4,
.tbm-feature .wp-block-heading {
  margin: 0 0 0.25rem;
  color: var(--tbm-text);
}
.tbm-feature p { color: var(--tbm-muted); margin: 0; font-size: 0.95rem; }

/* Card with thin orange border (Special Offer) */
.tbm-card-bordered {
  border: 1px solid var(--tbm-orange);
  background: var(--tbm-bg);
  padding: 2.5rem 2rem;
}

/* Image overlay card (Dance Videography / Built for Dance Community) */
.tbm-image-card {
  position: relative;
  overflow: hidden;
}
.tbm-image-card .wp-block-cover__inner-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Section heading with underline accent */
.tbm-underline::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--tbm-grad);
  margin: 1rem auto 0;
}

/* Header polish */
.wp-block-template-part header,
header.wp-block-template-part {
  border-bottom: 1px solid var(--tbm-border);
}
.wp-block-navigation .wp-block-navigation-item__content {
  position: relative;
}
.wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after,
.wp-block-navigation .wp-block-navigation-item__content:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--tbm-grad);
}

/* Social icons in header — pink/orange tint */
.wp-block-social-links.is-style-logos-only .wp-social-link {
  color: var(--tbm-pink);
}
.wp-block-social-links.is-style-logos-only .wp-social-link:hover {
  color: var(--tbm-orange);
}

/* Footer */
footer.wp-block-template-part {
  border-top: 1px solid var(--tbm-border);
}

/* Generic spacing helpers */
.tbm-section { padding-block: clamp(3rem, 8vw, 6rem); }
.tbm-tight   { padding-block: clamp(1.5rem, 4vw, 3rem); }

/* ==========================================================================
   PRICING CARDS — Dance Class Packages page
   ========================================================================== */

.tbm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.tbm-pricing-card {
  background: #111;
  border: 1px solid var(--tbm-border);
  border-radius: 4px;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tbm-pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--tbm-orange);
}

/* DELUXE — most popular highlight */
.tbm-pricing-card--featured {
  border-color: var(--tbm-pink);
  background: #140a0e;
}
.tbm-pricing-card--featured:hover { border-color: var(--tbm-orange); }

.tbm-pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tbm-grad);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 4px 4px;
  white-space: nowrap;
}

.tbm-pricing-name {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--tbm-muted) !important;
  margin: 0 0 0.5rem !important;
}

.tbm-pricing-price {
  font-family: 'Oswald', sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 3.25rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin: 0 0 1.5rem !important;
  background: var(--tbm-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.tbm-pricing-features {
  list-style: none !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  flex: 1;
}
.tbm-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--tbm-border);
  font-size: 0.92rem;
  color: var(--tbm-text);
  line-height: 1.4;
}
.tbm-pricing-features li:last-child { border-bottom: none; }
.tbm-pricing-features li::before {
  content: '✓';
  color: var(--tbm-orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.tbm-pricing-divider {
  height: 1px;
  background: var(--tbm-border);
  margin: 1.5rem 0;
}

/* Recital highlight card (Full Production — best value) */
.tbm-card-highlight {
  border-color: var(--tbm-pink) !important;
  background: #140a0e !important;
}
.tbm-card-highlight:hover {
  border-color: var(--tbm-orange) !important;
}

/* Add-on cards */
.tbm-addon-card {
  background: #111;
  border: 1px solid var(--tbm-border);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tbm-addon-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.tbm-addon-price-main {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--tbm-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.tbm-addon-price-bundle {
  font-size: 0.85rem;
  color: var(--tbm-muted);
  border: 1px solid var(--tbm-border);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
}

/* ==========================================================================
   REELS PAGE — before/after video frame mockups
   ========================================================================== */

.tbm-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 640px) {
  .tbm-before-after { grid-template-columns: 1fr; }
  .tbm-pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .tbm-pricing-grid { grid-template-columns: 1fr; }
}

.tbm-frame-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
}
.tbm-frame-label--before { color: var(--tbm-muted); }
.tbm-frame-label--after  { color: var(--tbm-orange); }

/* Widescreen (16:9) frame — BEFORE */
.tbm-frame-wide {
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border: 2px solid var(--tbm-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.tbm-frame-wide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.015) 20px,
    rgba(255,255,255,0.015) 40px
  );
}

/* Vertical (9:16) phone frame — AFTER */
.tbm-frame-phone-wrap {
  display: flex;
  justify-content: center;
}
.tbm-frame-phone {
  aspect-ratio: 9 / 16;
  width: min(180px, 45%);
  background: #1a1a1a;
  border: 3px solid var(--tbm-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
.tbm-frame-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tbm-grad-diag);
  opacity: 0.07;
}
/* notch */
.tbm-frame-phone::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background: var(--tbm-border);
  border-radius: 3px;
}

.tbm-frame-icon {
  font-size: 2rem;
  opacity: 0.4;
}
.tbm-frame-text {
  font-size: 0.7rem;
  color: var(--tbm-muted);
  text-align: center;
  letter-spacing: 0.08em;
  padding: 0 1rem;
  line-height: 1.5;
}
.tbm-frame-arrow {
  font-size: 2.5rem;
  background: var(--tbm-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  text-align: center;
  line-height: 1;
}

.tbm-reels-steps {
  counter-reset: step;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tbm-reels-steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.tbm-reels-steps li::before {
  counter-increment: step;
  content: counter(step);
  background: var(--tbm-grad);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tbm-reels-steps li p { margin: 0; }
