/* ==========================================================================
   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: 9000;
  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;
  padding-top: 1.5rem;
}

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

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

/* Mobile Drawer Social Media Links Section - Left-aligned to prevent overlap with right floating widgets */
.mobile-drawer-social {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}

.mobile-social-heading {
  font-size: 0.725rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.mobile-social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
}

.mobile-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #2DD4BF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.mobile-social-icon:hover,
.mobile-social-icon:active {
  background: #0D9488;
  color: #FFFFFF;
  border-color: #0D9488;
  transform: translateY(-2px);
}

/* Mobile Drawer Sub-Menu Dropdown Accordion - Strict Mobile Resets */
.mobile-dropdown-item {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

button.mobile-dropdown-trigger,
.mobile-dropdown-trigger {
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.35rem 0 !important;
  margin: 0 !important;
  color: #FFFFFF !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-align: left !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

button.mobile-dropdown-trigger:hover,
button.mobile-dropdown-trigger:focus,
button.mobile-dropdown-trigger.active,
.mobile-dropdown-trigger:hover,
.mobile-dropdown-trigger:focus,
.mobile-dropdown-trigger.active {
  background: transparent !important;
  background-color: transparent !important;
  color: #2DD4BF !important;
  outline: none !important;
  box-shadow: none !important;
}

.mobile-dropdown-arrow {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  transition: transform 0.3s ease !important;
  color: #94A3B8 !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.mobile-dropdown-trigger.active .mobile-dropdown-arrow,
.mobile-dropdown-item.open .mobile-dropdown-arrow {
  transform: rotate(180deg) !important;
  color: #2DD4BF !important;
}

.mobile-submenu {
  display: none !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0.6rem !important;
  padding-left: 0.85rem !important;
  padding-top: 0.6rem !important;
  padding-bottom: 0.4rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.mobile-dropdown-item.open .mobile-submenu {
  display: flex !important;
}

.mobile-submenu-link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  color: #2DD4BF !important; /* Vibrant Teal / Green */
  font-size: 0.925rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 0.25rem 0 !important;
  text-decoration: none !important;
  gap: 0.45rem !important;
  white-space: normal !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
  transition: color 0.2s ease !important;
}

.mobile-submenu-link::before {
  content: "•" !important;
  color: #2DD4BF !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus,
.mobile-submenu-link.active {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.mobile-submenu-link.active::before {
  color: #FFFFFF !important;
}

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

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

a[href^="mailto:"]:not(.utility-link) {
  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: calc(72px + 34px);
  }

  .top-utility-bar {
    height: 34px;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
  }

  .top-utility-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    justify-content: center !important;
  }

  .top-utility-left {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  .top-utility-right {
    display: none !important;
  }

  .utility-link {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    gap: 0.25rem;
    letter-spacing: -0.01em;
  }

  .utility-link svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
  }

  .utility-social-label {
    display: none;
  }

  .utility-divider {
    margin: 0 0.15rem;
    opacity: 0.4;
  }

  .utility-social-links {
    gap: 0.25rem;
  }

  .utility-social-btn {
    width: 20px;
    height: 20px;
  }

  .utility-social-btn svg {
    width: 10px;
    height: 10px;
  }

  .whatsapp-widget {
    bottom: 5.25rem;
    right: 1rem;
  }

  .site-header {
    position: fixed !important;
    top: 34px !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: 100001 !important;
  }

  .modal-overlay {
    top: calc(72px + 34px);
    padding: 0.4rem;
  }

  #consultation-modal .modal-container {
    max-width: 96vw;
    max-height: 94vh;
    margin: auto;
  }

  #consultation-modal .modal-header {
    padding: 0.5rem 0.75rem;
  }

  #consultation-modal .modal-header h3 {
    font-size: 0.95rem;
  }

  #consultation-modal .modal-body {
    padding: 0.45rem 0.75rem;
  }

  .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;
  }

  /* Assessment Quiz Mobile Rules */
  .quiz-card {
    padding: 1.5rem 1.25rem !important;
  }

  .quiz-question-title {
    font-size: 1.15rem !important;
    margin-bottom: 1.25rem !important;
  }

  .quiz-option-btn {
    padding: 0.9rem 1rem !important;
  }

  .quiz-option-badge {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
  }

  .quiz-option-text {
    font-size: 0.885rem !important;
    margin: 0 0.75rem !important;
  }

  .quiz-option-icon {
    width: 26px !important;
    height: 26px !important;
  }
}

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