/* ============================================================
   PUBLIC SITE STYLES — RED & BLACK THEME
   Loaded AFTER Bootstrap 4 so these rules win the cascade.
   ============================================================ */

/* ---------- 1. COLOUR VARIABLES ---------- */
:root {
  --red:        #E10600;  /* primary — buttons, accents, highlights */
  --red-hover:  #B30500;
  --red-glow:   rgba(225, 6, 0, 0.35);
  --red-tint:   rgba(225, 6, 0, 0.12);

  --black:      #000000;
  --bg:         #0B0B0B;  /* page background */
  --bg-alt:     #121212;  /* alternating sections */
  --surface:    #181818;  /* cards */
  --border:     #2A2A2A;

  --text:       #F2F2F2;
  --muted:      #A3A3A3;

  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

/* ---------- 2. BASE ---------- */
html,
body {
  margin: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  padding-top: 76px; /* space for the fixed navbar */
}

h1, h2, h3, h4, h5, .display-4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

h1, h2, .display-4 {
  text-transform: uppercase;
}

a {
  color: var(--red);
}
a:hover {
  color: #ff3b30;
}

/* Bootstrap's grey is too dark on black */
.text-muted {
  color: var(--muted) !important;
}

.text-red {
  color: var(--red) !important;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #fff;
}
/* Short red bar under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.75rem auto 0;
  background-color: var(--red);
}
@media (min-width: 992px) {
  .section-title.text-lg-left::after {
    margin-left: 0;
  }
}

.eyebrow {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 3. BUTTONS ---------- */
.btn-brand-primary {
  background-color: var(--red);
  border: 2px solid var(--red);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-brand-primary:hover,
.btn-brand-primary:focus {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--red-glow);
}

.btn-brand-outline {
  background-color: transparent;
  border: 2px solid var(--red);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-brand-outline:hover,
.btn-brand-outline:focus {
  background-color: var(--red);
  color: #fff;
}

.btn-sm-nav {
  padding: 0.35rem 1.1rem;
}

/* ---------- 4. PLACEHOLDERS (images, logo, map) ---------- */
/* Every real image on the site is a placeholder box until the
   client supplies photos. Swap the box for an <img> later. */
.media-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025) 0 12px,
      transparent 12px 24px
    ),
    var(--surface);
  border: 2px dashed #3a3a3a;
  border-radius: 6px;
  min-height: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.media-placeholder i {
  color: var(--red);
}
.media-placeholder--short {
  min-height: 180px;
}

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px dashed var(--red);
  border-radius: 6px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo-placeholder--sm {
  width: 32px;
  height: 32px;
  font-size: 0.5rem;
}

.map-placeholder {
  height: 320px;
}

/* ---------- 5. NAVBAR ---------- */
.site-navbar {
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom: 2px solid var(--red);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.navbar-scrolled {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.site-navbar .nav-link {
  color: #ddd !important;
  font-weight: 500;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--red) !important;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.brand-text-accent {
  color: var(--red);
}

@media (max-width: 991.98px) {
  .navbar-brand {
    max-width: calc(100% - 58px);
    min-width: 0;
  }
  .navbar-collapse {
    flex-basis: 100%;
  }
}
@media (max-width: 576px) {
  .brand-text {
    font-size: 1rem;
  }
  .navbar-brand {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- 6. HERO ---------- */
/* No photo yet: black base, red glow, faint stripes. When the client
   supplies a photo, set --hero-image on .hero-section, e.g.
   style="--hero-image: url('images/hero.jpg')". */
.hero-section {
  --hero-image: none;
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(80vh, 760px);
  margin-top: -76px;
  padding-top: 76px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 40%, rgba(225, 6, 0, 0.35), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 22px),
    var(--hero-image) center / cover no-repeat,
    var(--black);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-heading-accent {
  color: var(--red);
}
.hero-cta-group .btn {
  min-width: 160px;
}

/* Small tag telling the client where their photo goes */
.hero-image-tag {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  padding: 0.4rem 0.8rem;
  border: 1px dashed #555;
  border-radius: 4px;
  color: #888;
  font-size: 0.75rem;
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 72vh;
  }
  .hero-section::before {
    background: rgba(0, 0, 0, 0.75);
  }
}

/* ---------- 7. PAGE BANNER (secondary pages) ---------- */
.page-banner {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(225, 6, 0, 0.35), transparent 60%),
    var(--black);
  border-bottom: 1px solid var(--border);
  margin-top: -76px;
  padding-top: calc(76px + 3rem) !important;
}

/* ---------- 8. PRICING CARDS ---------- */
.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 100%;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: #444;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}
.pricing-card h4 {
  text-transform: uppercase;
}
.pricing-card .price {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}
.pricing-card .price-currency {
  font-size: 1rem;
  color: var(--muted);
  vertical-align: super;
  margin-right: 0.15rem;
}
.pricing-card .fa-check {
  color: var(--red);
}
.pricing-card .feature-off {
  color: #666 !important;
}

.pricing-card--highlight {
  border: 2px solid var(--red);
  transform: scale(1.05);
  box-shadow: 0 0 0 1px var(--red), 0 10px 40px var(--red-glow);
  position: relative;
  z-index: 2;
}
.pricing-card--highlight:hover {
  transform: scale(1.05) translateY(-6px);
  border-color: var(--red);
}
.pricing-card--highlight .price {
  color: var(--red);
}
@media (max-width: 767.98px) {
  .pricing-card--highlight,
  .pricing-card--highlight:hover {
    transform: none;
  }
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--red);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Monthly / annual switch */
.pricing-toggle-label {
  font-weight: 600;
  color: #777;
  transition: color 0.2s ease;
}
.pricing-toggle-label.is-active {
  color: #fff;
}
.save-badge {
  background-color: var(--red);
  color: #fff;
  font-size: 0.7rem;
  vertical-align: middle;
}
.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.pricing-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.pricing-toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: #333;
  border-radius: 26px;
  transition: background-color 0.2s ease;
}
.pricing-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.pricing-toggle input:checked + .pricing-toggle-slider {
  background-color: var(--red);
}
.pricing-toggle input:checked + .pricing-toggle-slider::before {
  transform: translateX(24px);
}
.pricing-toggle input:focus-visible + .pricing-toggle-slider {
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* ---------- 9. GENERIC CARDS (why-us, classes, values, facilities) ---------- */
.info-box,
.class-card,
.value-card,
.facility-card,
.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 100%;
}

.info-box {
  padding: 2.5rem;
  border-left: 4px solid var(--red);
}

.class-card,
.step-card {
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.class-card {
  border-top: 4px solid var(--red);
}
.class-card:hover,
.facility-card:hover {
  transform: translateY(-6px);
  border-color: #444;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}
.class-card h5,
.facility-card h5 {
  color: #fff;
  font-weight: 700;
}

.value-card {
  padding: 2rem 1.5rem;
}
.value-card i,
.step-card i {
  color: var(--red);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background-color: var(--red-tint);
  border: 2px solid var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.facility-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.facility-card .media-placeholder {
  border-radius: 0;
  border-width: 0 0 2px 0;
}
.facility-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.check-list li i {
  color: var(--red);
}

/* ---------- 10. STATS ---------- */
.stats-section {
  background-color: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-counter {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

/* ---------- 11. CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(135deg, #8a0400 0%, var(--red) 50%, #8a0400 100%);
}
.cta-strip .btn-light {
  color: var(--black);
  font-weight: 700;
}
.cta-strip .btn-outline-light {
  font-weight: 600;
}

/* ---------- 12. CONTACT ---------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
}
.contact-info-item i {
  color: var(--red);
  font-size: 1.25rem;
  width: 32px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Dark form fields */
.form-control {
  background-color: var(--surface);
  border: 1px solid #333;
  color: var(--text);
}
.form-control:focus {
  background-color: var(--surface);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 0 0.2rem var(--red-glow);
}
.form-control::placeholder {
  color: #666;
}
select.form-control option {
  background-color: var(--surface);
}

/* ---------- 13. SCROLL REVEAL ---------- */
/* Uses `translate` (not `transform`) so it never fights the cards'
   own hover lift / "Most Popular" scale. */
.reveal-on-scroll {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.5s ease, translate 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  translate: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-on-scroll {
    transition: none;
    opacity: 1;
    translate: none;
  }
}

/* ---------- 14. FLOATING BUTTONS (WhatsApp + back to top) ---------- */
.whatsapp-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366; /* WhatsApp's own green so people recognise it */
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 1031;
  transition: transform 0.2s ease;
}
.whatsapp-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

.back-to-top-btn {
  position: fixed;
  right: calc(1.5rem + 6px);
  bottom: calc(1.5rem + 68px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--red);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  z-index: 1030;
}
.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background-color: var(--red-hover);
}

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background-color: var(--black);
  border-top: 2px solid var(--red);
  color: #bbb;
}
.site-footer a {
  color: #bbb;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--red);
}
.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #444;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.site-footer .social-links a:hover {
  background-color: var(--red);
  border-color: var(--red);
  color: #fff;
}
.footer-divider {
  border-color: #222;
}
