@font-face {
    font-family: 'PT Sans';
    src: url('PT-Sans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('PT-Sans-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('PT-Sans-Regular-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* GLOBAL CSS */

:root {
  color-scheme: light dark;
  scroll-behavior: smooth;
  background-color: #FFFFFF;
  color: #222222;
  /* Colors */
  --bg-color: #FFFFFF;
  --brand-blue-50: #eff6ff;
  --brand-blue-100: #dbeafe;
  --brand-blue-400: #60a5fa;
  --brand-blue-500: #3b82f6;
  --brand-blue-600: #2563eb;
  --brand-blue-700: #1d4ed8;
  --brand-blue-900: #1e3a8a;
  --brand-purple: #601cff;
  --brand-purple-light: rgba(139, 92, 246, 0.2);
  --brand-green: #10b981;
  --brand-green-light: rgba(16, 185, 129, 0.2);
  --brand-green-dark: rgb(0, 82, 54);
            
  --dark-text: #222222;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: rgba(59, 130, 246, 0.5);
  --transition-curve: cubic-bezier(0.34, 1.56, 0.64, 1);
            
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
  --glow-white: 0 0 30px rgba(255, 255, 255, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

[data-scheme='dark'] body {
	background-color: var(--white);
	color: var(--dark-text);
}

html, body {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html {
    background-color: var(--white);
    color: var(--dark-text);
  }
    
  body {
    background-color: var(--white);
    color: var(--dark-text);
  }
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: 0;
}

body {
  font-family: "PT Sans", "Arial", sans-serif;
  font-size: 1.1rem;
  font-weight: normal;
  line-height: 1.5;
  word-spacing: 3px;
  color: var(--dark-text);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.main-wrapper {
  display: block;
  max-width: 1920px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* FIX: Adding a firm horizontal boundary at the main wrapper level */
header, main, footer {
  position: relative;
  width: 100%;
  overflow-x: clip;
}

header {
  margin-top: 3rem;
  margin-bottom: 5rem;
}

a { 
  text-decoration: none; 
  color: inherit;
  font-weight: bold; 
}

a:hover {
  color: var(--brand-blue-600);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

h1, h2 {
  letter-spacing: -1px;
}

p {
  text-align: justify;
  text-align-last: auto;
}

section {
  padding: 4rem 0;
  margin-bottom: 5rem;
  /* FIX: Anchor blobs so they don't position relative to the entire page */
  position: relative;
}

section h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

section .h2p {
  margin: 1rem auto;
  color: var(--dark-text);
  font-size: 1.125rem;
}

/* Heading with Gradient for all sections */
.heading-gradient {
  background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue-600) 50%, var(--brand-blue-400) 100%);
  background-clip: text;
  color: transparent;
}

abbr {
  text-decoration: 2px underline dotted;
  cursor: help;
  text-underline-offset: 4px;
}

address {
  font-style: normal;
  font-size: 1.1rem;
}

mark {
  background-color: var(--brand-blue-50);
  color: var(--dark-text);
  font-weight: bold;
  border-radius: 0.5rem;
  outline: 1px solid var(--brand-blue-100);
  padding: 0.25rem 0.75rem;
}

hr {
  margin: 0.5rem auto 1rem auto;
  background-color: var(--gray-200);
  width: 50%;
  height: 1px;
  text-align: center;
  border: 0;
  outline: 0;
}


@media (max-width: 860px) {
  hr {
    display: none;
  }
}

p {
  margin: 0 auto 1rem auto;
}

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

.container {
  position: relative;
  max-width: 1480px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

@media (min-width: 360px) {
  .container {
    max-width: 350px;
  }
}

@media (min-width: 399px) {
  .container {
    max-width: 380px;
  }
}

@media (min-width: 432px) {
  .container {
    max-width: 400px;
  }
}

@media (min-width: 500px) {
  .container {
    max-width: 470px;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 800px) {
  .container {
    max-width: 780px;
  }
}

@media (min-width: 860px) {
  .container {
    max-width: 840px;
  }
}

@media (min-width: 915px) {
  .container {
    max-width: 880px;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 930px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1140px) {
  .container {
    max-width: 1100px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1180px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
  }
}

@media (min-width: 1540px) {
  .container {
    max-width: 1480px;
  }
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-filter {
  filter: drop-shadow(5px 5px 5px var(--shadow-hover))
}

.welcome {
  position: relative;
  max-width: 1480px;
  color: var(--dark-text);
  background-image: linear-gradient(to bottom, #e6f6ff, #FFFFFF, #FFFFFF, #FFFFFF);
  background-size: cover, cover;
  background-repeat: no-repeat;
  background-position: top, center;
  background-blend-mode:normal;
  padding: 2rem;
  margin: 0 auto 7rem auto;
  border-radius: 2rem;
  border: 2px solid rgb(187, 229, 255);
  overflow: clip;
}

.welcome-img-right {
  float: right;
  margin-left: 2rem;
}

.welcome-img-left {
  float: left;
  margin-right: 2rem;
}

@media (max-width: 499px) {
  .welcome-img-left {
  float: none;
  display: flex;
  margin: 0 auto 2rem auto;
  }
}

@media (max-width: 576px) {
  .welcome {
      background-image: linear-gradient(to bottom, #e6f6ff, #FFFFFF, #FFFFFF, #FFFFFF);
      background-size: contain, cover;
      background-position: center, center;
  }

  .welcome-img-right {
    display: none;
  }
}

.welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-image: linear-gradient(to right, var(--brand-blue-400), var(--brand-purple), var(--brand-green));
}

@media (min-width: 916px) {
  .welcome {
    margin-top: 5rem;
  }
}

.welcome > ul, .welcome > ol {
    margin-top: 1rem;
    margin-left: 2rem;
    margin-right: 1rem;
    margin-bottom: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .welcome > ul, .welcome > ol {
    margin-left: 22.5rem;
    text-align: left;
    }
}

.responsive-video {
    max-width: 100%; /* Ensures it never gets wider than the container */
    width: 100%;
    height: auto;    /* Maintains aspect ratio */
    display: block;  /* Removes space below the video */
}

.wavy {
  position: absolute;
  top: 30%;
  left: -2%;
  max-width: 1920px;
  width: 100%;  
  height: 190px;
  z-index: 0;
}

.wavy-about {
  position: absolute;
  top: 10%;
  left: -2%;
  max-width: 1920px;
  width: 100%;  
  height: 190px;
  z-index: 0;
}

@media (max-width: 768px) {
  .wavy, .wavy-about {
    display: none;
  }
}

.max-width {
  display: flex;
  justify-content: center;
  max-width: 1480px;
  height: auto;
  margin: 4rem auto 0 auto;
}

.img-margin {
  margin-top: 0;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px){
  .max-767 {
    display:none;
  }
}

/* GLOBAL CSS */


/* --- Navigation Menu --- */

#site-header {
  position: -webkit-sticky; /* FIX: Added for iOS Safari support */
  position: sticky;
  top: 0;
  z-index: 9999; /* Highest z-index to lock sticky effect above everything */
  max-width: 1480px;
  width: 100%;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  
  /* FIX: Explicitly forcing visible on both axes so sticky doesn't fail if treated as clipped by mobile engines */
  overflow: visible !important; 
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* FIX: Move the glassmorphism to a pseudo-element. 
   Applying backdrop-filter directly to a sticky element with a fixed child 
   causes mobile browsers to bug out and vanish the element on scroll. */
#site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  max-width: 1480px;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: all 0.4s ease;
  z-index: -1;
  pointer-events: none;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

#site-header.scrolled::before {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(96, 165, 250, 0.25);
}

.container-nav {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}


@media (min-width: 500px) and (max-width: 575px) {
  .container-nav {
    margin-bottom: 3rem;
  }
}

@media (min-width: 576px) {
  .container-nav {
    margin-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .container-nav {
    margin-bottom: 3rem;
  }
}

.logo-link {
  display: inline-flex;
  z-index: 10001; /* Stays persistently above mobile menu */
}

.logo-link img {
  width: 222px;
  height: 75px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--dark-text);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--brand-blue-600);
}

/* Desktop Hover Gliding Arrow */
.nav-indicator {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue-600);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.nav-indicator::before {
  content: '';
  position: absolute;
  top: -6px; /* Position directly on top of the dynamic 2px indicator line */
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--brand-blue-600);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001; /* Elevates above mobile menu overlay */
  padding: 0.5rem;
}

.hamburger .bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-text);
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

/* Responsive Design (up to 915px) */
@media (max-width: 915px) {
  .hamburger {
    display: block;
  }

  /* Transform Hamburger into sleek Cross */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* FIX: Added modern dynamic viewport unit so URL bars don't cut it off */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start; /* Stack links closer to the top vertically */
    align-items: center;
    padding-top: 20vh; /* Premium spacing from the top limit of the screen */
    transform: translateX(100%); /* Start hidden natively off-screen to the right */
    transition: transform 0.4s ease-in-out;
    z-index: 10000;
  }

  .nav-menu.active {
    transform: translateX(0); /* Slides perfectly in */
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .nav-links a {
    font-size: 2rem;
  }

  /* Shut off gliding arrow capability specifically on mobile interface */
  .nav-indicator {
    display: none !important;
  }
}

/* --- Navigation Menu --- */


/* --- Accessibility --- */

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .skip-link {
            position: absolute;
            top: -9999px;
            left: 0;
            z-index: 9999;
            padding: 0.75rem 1.25rem;
            background: #005fcc;
            color: #fff;
            font-weight: bold;
            text-decoration: none;
            border-radius: 0 0 4px 0;
        }
        .skip-link:focus {
            top: 0;
        }

        :focus-visible {
            outline: 3px solid #005fcc;
            outline-offset: 3px;
        }

/* --- Accessibility --- */
  
/* Emergency Section */

.emergency {
  position: relative;
  padding: 5rem 1.5rem;
  background-image: url('../images/backgrounds/emergency-contact-bg.webp'),
                    linear-gradient(to bottom right, var(--brand-blue-900), var(--brand-blue-700));
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  background-blend-mode: color-dodge;
  color: var(--white);
  text-align: center;
  border-radius: 3rem;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  .emergency {
    background-size: cover;
  }
}

.emergency-content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
}

.emergency-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
}

.emergency h2 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { 
  .emergency h2 { 
    font-size: 3rem; 
  } 
}

.emergency p {
  color: var(--brand-blue-100);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.btn-emergency {
  background: var(--white);
  color: var(--brand-blue-900);
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% {
  transform: scale(1);
  }
  50% {
  transform: scale(1.075);
  }
}

.btn-emergency:hover {
  background: var(--gray-50);
  box-shadow: var(--glow-white);
  transform: scale(1.1);
}

/* Emergency Section */

/* Footer */

footer {
  background-image: url('../images/backgrounds/footer-polka-dots.webp'),
                    linear-gradient(to bottom, var(--brand-blue-100), var(--white), var(--white), var(--white), var(--white), var(--white));
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode:soft-light;
  border-top: 5px solid var(--brand-blue-400);
  padding: 4rem 0 2rem 0;
  box-shadow: 0 -20px 30px rgba(96, 165, 250, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { 
    grid-template-columns: repeat(4, 1fr); 
  }
}

.footer-brand p {
  color: var(--dark-text);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-links h4 {
  font-weight: bold;
  color: var(--brand-blue-700);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a, .footer-links li {
  color: var(--dark-text);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover { 
  color: var(--brand-blue-600); 
}
        
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--dark-text);
  font-size: 0.875rem;
  margin-bottom: 0;
  margin-top: 0;
}

.social-links { 
  display: flex; 
  gap: 1rem; 
}

.social-links a { 
  color: var(--dark-text); 
  transition: color 0.3s; 
}

.social-links a:hover { 
  color: var(--brand-blue-600); 
}

/* --- Animations & Blobs --- */

@keyframes blob-float {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(30px);
  opacity: 0.75;
  animation: blob-float 5s infinite alternate ease-in-out;
  z-index: 0;
  pointer-events: none;
}

/* --- Animations & Blobs --- */


/* --- Scroll Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s var(--transition-curve);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for staggered animations */
  .delay-100 { transition-delay: 0.1s; }
  .delay-200 { transition-delay: 0.2s; }
  .delay-300 { transition-delay: 0.3s; }
  .delay-400 { transition-delay: 0.4s; }
  .delay-500 { transition-delay: 0.5s; }
  .delay-600 { transition-delay: 0.6s; }
  .delay-700 { transition-delay: 0.7s; }
