/* ==========================================================================
   Global Layout Styles - Tailwind Compatible
   ========================================================================== */

/* Reset and global layout */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Gotham SSm A', 'Gotham SSm B', Gotham, Montserrat, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Site wrapper for proper layout */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

/* Header fixes */
.site-header {
  z-index: 50;
}

/* Navigation improvements */
.main-navigation a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #001e52;
}

/* Mobile navigation */
.mobile-navigation {
  display: none;
}

.mobile-menu-open .mobile-navigation {
  display: block !important;
}

/* Button base styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #ffd438;
  color: #001e52;
  border-color: #ffd438;
}

.btn-primary:hover {
  background: transparent;
  color: #ffd438;
}

.btn-outline-white {
  color: white;
  border-color: white;
  background: transparent;
}

.btn-outline-white:hover {
  background: white;
  color: #001e52;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Container max-width */
.container {
  max-width: 1200px;
}

/* Custom text colors */
.text-accent {
  color: #ffd438;
}

.text-primary {
  color: #001e52;
}

.text-secondary {
  color: #80c0be;
}

/* Footer spacing */
.site-footer {
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header .container {
    padding: 0 1rem;
  }

  .text-5xl {
    font-size: 2.5rem;
  }

  .md\:text-6xl {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   Page Content Typography (page.php / Methodology)
   ========================================================================== */

.pps-page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pps-page-content h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(148, 163, 184);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.pps-page-content p {
  margin-bottom: 1rem;
}

.pps-page-content strong {
  color: #fff;
  font-weight: 600;
}

.pps-page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.pps-page-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.pps-page-content li {
  margin-bottom: 0.5rem;
}

.pps-page-content a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  width: 100%;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.pps-page-content a:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #ffd438;
}

.pps-page-content p a,
.pps-page-content li a {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: #70c8ff;
  font-weight: inherit;
  font-size: inherit;
  width: auto;
  margin-bottom: 0;
}

.pps-page-content p a:hover,
.pps-page-content li a:hover {
  color: #4aaee8;
  background: none;
  border: none;
  text-decoration: underline;
}

.pps-page-content blockquote {
  border-left: 3px solid #70c8ff;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-style: italic;
}

/* ==========================================================================
   Rich text / WYSIWYG content spacing
   Apply .pps-rich-text to any wrapper around wp_kses_post / ACF WYSIWYG output
   ========================================================================== */
.pps-rich-text p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.pps-rich-text p:last-child {
  margin-bottom: 0;
}

.pps-rich-text ul,
.pps-rich-text ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.pps-rich-text li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

/* ==========================================================================
   Loading Overlay (triggered via data-loading on any form)
   ========================================================================== */
#pps-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

#pps-loading-overlay.is-active {
  display: flex;
}

#pps-loading-overlay svg {
  animation: pps-spin 0.8s linear infinite;
}

#pps-loading-label {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@keyframes pps-spin {
  to { transform: rotate(360deg); }
}

/* Page navigation: hidden on mobile, shown on md+ */
#page-navigation {
  display: none;
}

@media (min-width: 768px) {
  #page-navigation {
    display: block;
  }
}

/* Homepage hero: reduce gap between title and intro text on mobile */
@media (max-width: 767px) {
  .hero-section .bg-gradient-to-b {
    padding-top: 0.5rem;
  }
}

/* Prevent fixed-width iframes/embeds from causing horizontal scroll */
iframe,
embed,
object,
video {
  max-width: 100%;
}
