/* ==========================================================================
   CREA CHILDREN'S ACADEMY - COMPREHENSIVE RESPONSIVE SYSTEM
   Screen Coverage: Mobile, Tablet, Small Desktop, Standard Desktop, 4K & TV
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LARGE DISPLAYS, ULTRA-WIDE & 4K TELEVISIONS (min-width: 1600px)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root {
    --container-max: 1440px;
  }

  .bvm-hero-section {
    padding: 3.5rem 0 4rem;
  }

  .bvm-hero-title {
    font-size: 2.65rem;
  }

  .bvm-section-title {
    font-size: 2rem;
  }

  .bvm-curriculum-card-img {
    height: 190px;
  }

  .bvm-campus-card-img {
    height: 230px;
  }
}

@media (min-width: 2200px) {
  :root {
    --container-max: 1680px;
  }

  html {
    font-size: 16px;
  }

  .bvm-hero-title {
    font-size: 3rem;
  }

  .bvm-section-title {
    font-size: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   2. SMALL DESKTOPS & LAPTOPS (1024px to 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .bvm-hero-title {
    font-size: 2.15rem;
  }

  .bvm-curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .bvm-achievers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bvm-toppers-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .bvm-stats-column-stack {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .bvm-footer-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
    gap: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   3. TABLETS (LANDSCAPE & PORTRAIT: 769px to 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .bvm-topbar {
    display: none;
  }

  .bvm-header-nav-flex {
    height: 68px;
    padding: 0 0.5rem;
  }

  .bvm-hanging-crest-box {
    padding: 0 !important;
    gap: 0.65rem;
    border-radius: 0 !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .bvm-crest-img {
    width: 40px;
    height: 40px;
  }

  .bvm-crest-main-title {
    font-size: 0.95rem;
  }

  .bvm-crest-sub-title {
    font-size: 0.58rem;
  }

  .bvm-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--bvm-radius-xs);
    background: var(--bvm-green-soft);
    color: var(--bvm-green-primary);
    border: none;
    cursor: pointer;
  }

  /* Slide-out Mobile/Tablet Drawer */
  .bvm-nav-menu-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bvm-green-deepest);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    overflow-y: auto;
  }

  .bvm-nav-menu-list.active {
    right: 0;
  }

  .bvm-nav-link-item {
    width: 100%;
    padding: 0.85rem 0.5rem;
    color: #e2e8f0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bvm-nav-link-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--bvm-gold-light);
  }

  .bvm-nav-link-item.active {
    color: var(--bvm-gold-primary);
    border-bottom: 1px solid var(--bvm-gold-primary);
  }

  .bvm-header-actions .btn {
    display: none;
  }

  /* Responsive Grids for Tablets */
  .bvm-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bvm-hero-visual-frame {
    order: -1;
    max-width: 540px;
    margin: 0 auto;
  }

  .bvm-about-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .bvm-principal-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .bvm-steam-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .bvm-philanthropy-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .bvm-campus-triad {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .bvm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .corp-tier-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 580px;
    margin: 2rem auto 0;
  }

  .corp-tier-desc {
    min-height: auto;
  }

  .corp-vision-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .corp-quad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .corp-faculty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE PHONES (STANDARD & PHABLETS: 481px to 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .bvm-header-nav-flex {
    height: 66px;
  }

  .bvm-crest-img {
    width: 36px;
    height: 36px;
  }

  .bvm-crest-main-title {
    font-size: 0.875rem;
  }

  .bvm-crest-sub-title {
    font-size: 0.55rem;
  }

  .bvm-hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .bvm-hero-subtitle {
    font-size: 0.925rem;
  }

  .bvm-hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .bvm-hero-cta-group .btn {
    width: 100%;
  }

  .bvm-toppers-cards-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bvm-achievers-board-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .bvm-stats-column-stack {
    flex-direction: column;
    gap: 0.75rem;
  }

  .bvm-curriculum-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bvm-campus-triad {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bvm-steam-media-duo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bvm-philanthropy-wrapper {
    padding: 2rem 1.5rem;
  }

  .bvm-impact-stats-row {
    flex-direction: column;
    gap: 1rem;
  }

  /* MOBILE REDESIGNED FOOTER - EXACT WEBSITE BRAND COLORS */
  .bvm-footer {
    padding-top: 2.25rem;
    padding-bottom: 0;
    background-color: var(--bvm-green-deepest);
  }

  .bvm-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1.15rem !important;
    padding-bottom: 1.5rem;
  }

  .bvm-footer-brand {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bvm-footer-school-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
  }

  .bvm-footer-desc {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    max-width: 320px;
    margin: 0.4rem auto 0.75rem !important;
  }

  .bvm-footer-pill-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
  }

  .bvm-footer-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 13px !important;
    background: var(--bvm-green-rich) !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 163, 67, 0.45) !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(4, 24, 13, 0.4) !important;
  }

  .bvm-footer-socials {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 0.25rem !important;
  }

  .bvm-social-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    text-decoration: none !important;
    transition: transform 0.2s, background 0.2s !important;
  }

  .bvm-social-btn:hover {
    background: var(--bvm-gold-primary) !important;
    color: #04180d !important;
    border-color: var(--bvm-gold-primary) !important;
    transform: translateY(-2px) !important;
  }

  .bvm-footer-col-links {
    grid-column: 1 / 2 !important;
    text-align: left !important;
  }

  .bvm-footer-col-contact {
    grid-column: 2 / 3 !important;
    text-align: left !important;
  }

  .bvm-footer-col-newsletter {
    grid-column: 1 / -1 !important;
    text-align: left !important;
    padding-top: 0.75rem;
  }

  .bvm-footer-col-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.85rem !important;
    position: relative !important;
    padding-bottom: 0.4rem !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
  }

  .bvm-footer-col-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 22px !important;
    height: 2.5px !important;
    background: var(--bvm-gold-primary) !important;
    border-radius: 2px !important;
  }

  .bvm-footer-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .bvm-footer-list li {
    margin: 0 !important;
  }

  .bvm-footer-list a {
    font-size: 12.5px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 0 !important;
    min-height: auto !important;
    border-bottom: none !important;
    transition: color 0.2s !important;
  }

  .bvm-footer-list a:hover {
    color: var(--bvm-gold-light) !important;
  }

  .bvm-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .bvm-footer-contact-item {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    gap: 7px !important;
    align-items: flex-start !important;
  }

  .bvm-footer-contact-item svg {
    color: var(--bvm-gold-primary) !important;
    width: 14px !important;
    height: 14px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
  }

  .bvm-footer-contact-item a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    word-break: break-word;
    transition: color 0.2s !important;
  }

  .bvm-footer-contact-item a:hover {
    color: var(--bvm-gold-primary) !important;
  }

  .bvm-footer-newsletter-text {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.5 !important;
  }

  .bvm-footer-newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
  }

  .bvm-footer-newsletter-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 6px !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 12.5px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
  }

  .bvm-footer-newsletter-input:focus {
    border-color: var(--bvm-gold-primary) !important;
    box-shadow: 0 0 0 2px rgba(212, 163, 67, 0.25) !important;
  }

  .bvm-footer-newsletter-btn {
    width: 100% !important;
    background: linear-gradient(135deg, var(--bvm-gold-primary) 0%, var(--bvm-gold-dark) 100%) !important;
    color: #04180d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
  }

  .bvm-footer-newsletter-btn:hover {
    background: linear-gradient(135deg, var(--bvm-gold-light) 0%, var(--bvm-gold-primary) 100%) !important;
  }

  .bvm-footer-bottom {
    padding: 1.25rem 1rem 3.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: center !important;
  }

  .bvm-footer-credits {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  .bvm-footer-credits a,
  .tech-credit-link {
    color: #fbbf24 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: inline !important;
  }

  .bvm-footer-credits a:hover,
  .tech-credit-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
  }

  .bvm-modal-card {
    padding: 1.5rem 1.25rem;
    max-width: 95vw;
  }

  .corp-form-card {
    padding: 1.5rem 1.25rem;
  }

  .corp-checklist-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .corp-bank-card {
    padding: 1.5rem 1.25rem;
  }

  .corp-bank-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0.65rem 0;
  }

  .corp-bank-val {
    text-align: left;
  }

  .corp-vision-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .corp-quad-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .corp-faculty-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .corp-faculty-grid .bvm-curriculum-card-img {
    height: 260px;
  }

  .corp-faculty-grid .bvm-curriculum-body {
    padding: 1.25rem 1.15rem;
  }

  .bvm-curriculum-card {
    padding: 1.5rem 1.25rem !important;
  }

  .bvm-stat-metric-pill {
    padding: 1.25rem 1.15rem !important;
  }

  .back-to-top {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    left: auto !important;
    width: 42px !important;
    height: 42px !important;
    background: var(--bvm-green-primary) !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 163, 67, 0.45) !important;
    box-shadow: 0 4px 14px rgba(4, 24, 13, 0.45) !important;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   5. COMPACT MOBILE SCREENS (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .bvm-header-nav-flex {
    height: 62px;
  }

  .bvm-crest-img {
    width: 32px;
    height: 32px;
  }

  .bvm-crest-main-title {
    font-size: 0.785rem;
    letter-spacing: -0.01em;
  }

  .bvm-crest-sub-title {
    font-size: 0.5rem;
  }

  .bvm-hero-section {
    padding: 2rem 0 2.5rem;
  }

  .bvm-hero-title {
    font-size: 1.65rem;
  }

  .bvm-hero-subtitle {
    font-size: 0.875rem;
  }

  .bvm-hero-main-img-box img {
    height: 260px;
  }

  .bvm-hero-floating-stat {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .bvm-section-header {
    margin-bottom: 1.25rem;
  }

  .bvm-section-title {
    font-size: 1.45rem;
  }

  .bvm-section-subtitle {
    font-size: 0.85rem;
  }

  .bvm-proud-moments-section,
  .bvm-about-section,
  .bvm-principal-section,
  .bvm-curriculum-section,
  .bvm-steam-section,
  .bvm-philanthropy-section {
    padding: 1.75rem 0;
  }

  .bvm-footer {
    padding-top: 2rem;
  }
}
