/**
 * ============================================================================
 * SUMMIT RIDGE ADVISORY - RESPONSIVE & MOBILE STYLESHEET
 * Breakpoints: 1024px (Tablet/Small Laptop), 768px (Tablet/Mobile), 480px (Small Mobile)
 * ============================================================================
 */

/* Mobile Navigation Overlay */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(7, 15, 34, 0.7);
  backdrop-filter: blur(4px);
  z-index: 198;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-backdrop.is-active {
  display: block;
  opacity: 1;
}

/* ============================================================================
   RESPONSIVE BREAKPOINT: TABLET & SMALL LAPTOP (<= 1024px)
   ============================================================================ */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ============================================================================
   RESPONSIVE BREAKPOINT: TABLET PORTRAIT & MOBILE (<= 768px)
   ============================================================================ */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  /* Utility bar responsive adjustment */
  .top-bar-inner {
    height: auto;
    padding: 8px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .top-bar-left, .top-bar-right {
    gap: 16px;
    flex-wrap: wrap;
  }

  /* Mobile Header & Hamburger */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .header-cta-group .btn {
    display: none; /* Relocated to mobile drawer */
  }

  /* Slide-out Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 24px 32px 24px;
    box-shadow: -4px 0 24px rgba(7, 15, 34, 0.2);
    z-index: 199;
    gap: 0;
    transition: right var(--transition-slow);
    overflow-y: auto;
  }

  .nav-menu.is-open {
    right: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--slate-100);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.0625rem;
  }

  .mobile-drawer-cta {
    display: block !important;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--slate-200);
  }

  .mobile-drawer-cta .btn {
    width: 100%;
    text-align: center;
  }

  /* Close Button inside Drawer */
  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-300);
    background: var(--white);
    color: var(--navy-900);
    cursor: pointer;
  }

  .mobile-nav-close svg {
    width: 20px;
    height: 20px;
  }

  /* Hero Section */
  .hero-section {
    padding: 60px 0 50px 0;
  }

  .hero-title {
    font-size: 2.125rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Section Spacing */
  .about-section,
  .services-section,
  .why-us-section,
  .contact-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Why Choose Us Grid */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  /* Contact Form */
  .contact-form-card {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group.col-span-2 {
    grid-column: span 1;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-footer .btn {
    width: 100%;
  }

  .form-privacy-note {
    max-width: 100%;
    text-align: center;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ============================================================================
   RESPONSIVE BREAKPOINT: SMALL MOBILE (<= 480px)
   ============================================================================ */
@media screen and (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .brand-logo svg {
    height: 40px;
  }

  .about-pillars-card {
    padding: 28px 20px;
  }

  .contact-info-card {
    padding: 28px 20px;
  }
}

/* ============================================================================
   PRINT STYLES (For Corporate Handouts & PDF Export)
   ============================================================================ */
@media print {
  .top-bar,
  .mobile-nav-toggle,
  .mobile-nav-backdrop,
  .hero-actions,
  .contact-form-card,
  .skip-link {
    display: none !important;
  }

  .site-header {
    position: static;
    border-bottom: 2px solid #000;
  }

  .hero-section {
    background: #FFF !important;
    color: #000 !important;
    padding: 20px 0;
    border-bottom: 2px solid #000;
  }

  .hero-title, .hero-subtitle, .highlight-metric, .highlight-label {
    color: #000 !important;
  }

  .service-card, .why-card {
    page-break-inside: avoid;
    border: 1px solid #CCC !important;
    box-shadow: none !important;
  }
}
