/* ==========================================================================
   Rhythm & Grace Dance Studios - Custom Brand Stylesheet
   ========================================================================== */

/* 1. BRAND COLOR PALETTE & CASSIOPEIA OVERRIDES */
:root {
  /* Brand Colors from Logo */
  --rg-brand-blue: #00a4e4;      /* Vibrant logo cyan/cerulean */
  --rg-brand-dark: #111111;      /* Deep black for contrast */
  --rg-brand-muted: #6c757d;     /* Clean neutral gray */
  --rg-brand-bg-light: #f8f9fa;  /* Light background for cards */

  /* Override Cassiopeia Defaults */
  --cassiopeia-color-primary: var(--rg-brand-blue);
  --cassiopeia-color-link: var(--rg-brand-blue);
  --cassiopeia-color-hover: #0082b5;
}

/* 2. BOOTSTRAP UTILITY OVERRIDES */
/* Links & Primary Accent Text */
a, .text-primary {
  color: var(--rg-brand-blue) !important;
}

/* Primary Buttons */
.btn-primary {
  background-color: var(--rg-brand-blue) !important;
  border-color: var(--rg-brand-blue) !important;
  color: #ffffff !important;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: #0082b5 !important;
  border-color: #0082b5 !important;
}

/* Border & Background Overrides */
.border-primary {
  border-color: var(--rg-brand-blue) !important;
}

.bg-light {
  background-color: var(--rg-brand-bg-light) !important;
}

/* 3. CUSTOM COMPONENT STYLES */

/* Section Dividers */
hr {
  border-color: rgba(0, 164, 228, 0.15) !important;
  opacity: 1;
}

/* Left-Border Callout Blocks */
.philosophy-section .border-start,
.studio-callout {
  border-left-width: 4px !important;
  border-left-color: var(--rg-brand-blue) !important;
  background-color: var(--rg-brand-bg-light);
}

/* Outcome & Feature Cards */
.outcomes-section .card,
.card-outcome {
  border: none;
  background-color: var(--rg-brand-bg-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outcomes-section .card:hover,
.card-outcome:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
/* Custom Hero Section Styling for Advanced Mastery */
.advanced-hero {
  min-height: 380px;
  background-color: var(--rg-brand-dark);
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 1;
}

.max-w-75 {
  max-width: 75%;
}

@media (max-width: 768px) {
  .max-w-75 {
    max-width: 100%;
  }
}
/* ==========================================================================
   ADVANCED PAGE HERO SECTION STYLES
   ========================================================================== */

/* Hero Container */
.advanced-hero {
  position: relative !important;
  min-height: 420px !important;
  background-color: var(--rg-brand-dark, #111111) !important;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Background Image & Gradient Layer */
.hero-bg-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: 1 !important;
}

/* Foreground Text Layer */
.hero-content {
  position: relative !important;
  z-index: 2 !important;
}

.max-w-75 {
  max-width: 75% !important;
}

@media (max-width: 768px) {
  .max-w-75 {
    max-width: 100% !important;
  }
  .advanced-hero {
    min-height: 320px !important;
  }
}
/* ==========================================================================
   4. CASSIOPEIA HEADER: BANNER BACKGROUND & CLEAN LAYOUT
   ========================================================================== */

/* Full-Width Header Background Banner */
header.header.container-header {
  /* Overlay a 60% white tint to soften the gray vector graphic */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.60)), 
    url('/images/banners/rg-banner.png') !important;
  
  /* Locks the banner height and repeats seamlessly on ultra-wide screens */
  background-size: auto 110px !important; /* Adjust 110px up/down to scale banner height */
  background-position: center center !important;
  background-repeat: repeat-x !important;
  background-color: #ffffff !important;
  
  /* Layout setup */
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  grid-template-columns: none !important;
  
  /* Full-width outer background, centered content max-width */
  width: 100% !important;
  max-width: 1320px !important; /* Restores the constrained content box */
  margin: 0 auto !important;
  padding: 0.75rem 1.5rem !important;
  box-sizing: border-box !important;
}

/* Reset direct child grid area rules */
header.container-header > .grid-child {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* Logo (Enlarged) */
.container-header .brand-logo img {
  max-height: 100px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
}

/* Tagline Script Styling */
.container-header .site-description {
  color: #475569 !important;
  font-family: "Brush Script MT", "Dancing Script", "Caveat", cursive !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
  letter-spacing: 0.3px !important;
}

/* Top-Level Navigation Links */
.container-header .metismenu a,
.container-header .metismenu-item a,
.container-header .mod-menu a,
.container-header .nav-link {
  color: #111111 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 0.85rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

/* Hover State */
.container-header .metismenu a:hover,
.container-header .metismenu-item a:hover,
.container-header .mod-menu a:hover,
.container-header .nav-link:hover {
  color: var(--rg-brand-blue) !important;
}

/* Active Menu Item Highlight */
.container-header .metismenu .active > a,
.container-header .metismenu-item.active > a,
.container-header .mod-menu .active > a {
  color: var(--rg-brand-blue) !important;
  border-bottom: 2px solid var(--rg-brand-blue) !important;
  padding-bottom: 4px !important;
}

/* Dropdown Menu Overrides */
.container-header .dropdown-menu,
.container-header .metismenu ul {
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.container-header .dropdown-menu a,
.container-header .metismenu ul a {
  color: #111111 !important;
}

.container-header .dropdown-menu a:hover,
.container-header .metismenu ul a:hover {
  color: var(--rg-brand-blue) !important;
  background-color: #f8f9fa !important;
}
/* ==========================================================================
   5. HOVER DROPDOWN MENU FIX (DESKTOP HOVER + MOBILE HAMBURGER SAFE)
   ========================================================================= */

/* Desktop Only: Enable hover dropdowns and hide redundant sub-menu togglers */
@media (min-width: 992px) {
  .container-header .metismenu-item:hover > ul,
  .container-header .metismenu-item:hover > .mm-collapse,
  .container-header .dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    min-width: 10rem !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
  }

  /* Hide sub-item dropdown arrow togglers on desktop only */
  .container-header .metismenu .mm-toggler {
    display: none !important;
  }
}

/* Ensure the Main Mobile Hamburger Button Stays Visible on Small Screens */
.navbar-toggler,
.container-header .navbar-toggler {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8f9fa !important;
  padding: 0.5rem 0.75rem !important;
}

/* Sub-menu styling (Dark readable text on clean white card) */
.container-header .metismenu ul a,
.container-header .dropdown-menu a {
  color: #111111 !important;
  padding: 0.5rem 1.25rem !important;
  display: block !important;
  white-space: nowrap !important;
}

/* Sub-menu item hover state */
.container-header .metismenu ul a:hover,
.container-header .dropdown-menu a:hover {
  color: var(--rg-brand-blue) !important;
  background-color: #f8f9fa !important;
}

/* ==========================================================================
   MOBILE DROPDOWN TAP FIX (OVERLAY TOGGLER & EXPANDED STYLES)
   ========================================================================= */
@media (max-width: 991px) {
  /* Position parent menu items relatively so button overlays it */
  .container-header .metismenu-item.parent {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Stretch the MetisMenu toggler over the entire link row so tapping anywhere triggers it */
  .container-header .metismenu-item.parent > .mm-toggler {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2.5rem !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    opacity: 0 !important;
    cursor: pointer !important;
  }

  /* Ensure sub-list takes full width when expanded */
  .container-header .metismenu ul.mm-collapse {
    width: 100% !important;
    background-color: #f8f9fa !important;
    padding-left: 1rem !important;
    border-left: 3px solid var(--rg-brand-blue) !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .container-header .metismenu ul.mm-collapse a {
    font-size: 0.9rem !important;
    padding: 0.45rem 0.75rem !important;
    color: #333333 !important;
  }
}
/* ==========================================================================
   6. THREE-COLUMN OFFER CATEGORY BLOCK
   ========================================================================== */

/* Grid container for 3-up desktop layout */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Base Offer Card */
.offer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.offer-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: var(--rg-brand-blue);
}

/* Category Badges */
.offer-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.offer-badge.accent {
  color: var(--rg-brand-blue);
}

/* Card Titles & Descriptions */
.offer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.75rem;
}

.offer-description {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Optional Highlight for Primary Offer */
.offer-card.featured {
  border: 2px solid var(--rg-brand-blue);
  background-color: #fafcfe;
}