/* ==========================================================================
   FPA Consulting Services - Clean Mobile Responsive Rules & Breakpoints
   ========================================================================== */

/* Prevent Horizontal Scroll Globally */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Mobile Drawer Component (Hidden offscreen by default, slides in on mobile toggle) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--navy-950);
  z-index: 10000;
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
  background: rgba(255, 255, 255, 0.25);
  color: var(--teal-400);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.mobile-drawer-link {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.25rem 0;
}

.mobile-drawer-link:hover {
  color: var(--teal-400);
}

/* Contact Page Desktop Grid Setup */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-form-wrapper {
  padding: 2.5rem;
}

a[href^="mailto:"] {
  word-break: break-word;
  overflow-wrap: anywhere;
}


/* ==========================================================================
   MEDIA QUERIES (ONLY ACTIVE ON SMALLER SCREENS - DESKTOP STAYS PURE & CLEAN)
   ========================================================================== */

/* Laptop & Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mega-menu {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .header-cta-quiz {
    font-size: 0.725rem;
    padding: 0.32rem 0.65rem;
  }

  .header-cta-consult {
    font-size: 0.725rem;
    padding: 0.32rem 0.75rem;
  }
}

/* Mobile & Tablet Breakpoint (max-width: 991px) */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-headline {
    font-size: 2rem;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    width: fit-content;
  }

  .hero-subtext {
    text-align: center;
  }

  .hero-ctas, .cta-group, .hero-ctas-center {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100% !important;
    max-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hero-highlights-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .grid-3-col, 
  .grid-2-col, 
  .process-grid, 
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .lead-magnet-card {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.5rem !important;
    gap: 1.75rem !important;
    text-align: center;
  }

  .lead-magnet-card h2 {
    font-size: 1.5rem !important;
    text-align: center;
  }

  .lead-magnet-card p {
    font-size: 0.925rem !important;
    text-align: center;
  }

  .checklist-features {
    align-items: flex-start !important;
    max-width: 400px;
    margin: 0 auto 1rem auto;
    text-align: left !important;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    z-index: 9999 !important;
  }

  .brand-logo img {
    height: 38px;
    max-width: 42vw;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .header-cta-quiz {
    font-size: 0.65rem;
    padding: 0.28rem 0.45rem;
  }

  .header-cta-consult {
    font-size: 0.65rem;
    padding: 0.28rem 0.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-form-wrapper {
    padding: 1.25rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Small Mobile Screens (max-width: 576px) */
@media (max-width: 576px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand-logo img {
    height: 44px;
    max-width: 75vw;
  }

  .hero-headline {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-subtext {
    font-size: 0.925rem;
    text-align: center;
  }
  
  .hero-visual-card {
    padding: 1rem;
  }

  .lead-magnet-card {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .lead-magnet-form-card {
    padding: 1.25rem 1rem !important;
  }

  .visual-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .metric-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .metric-tab {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.2rem;
    font-size: 0.725rem;
  }

  .problem-solution-grid,
  .services-grid, 
  .trust-grid,
  .grid-3-col,
  .grid-2-col,
  .process-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  /* Scheduler Modal Mobile Adaptation */
  .date-picker-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }

  .time-slot-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
  }

  .date-btn {
    padding: 0.4rem 0.25rem !important;
  }

  .date-btn div:first-child {
    font-size: 0.65rem !important;
  }

  .date-btn div:last-child {
    font-size: 0.875rem !important;
  }

  .time-slot {
    padding: 0.4rem 0.35rem !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 360px) {
  .header-cta-quiz {
    display: none;
  }
}
