/* === Merged Site Styles === */

/* CSS Custom Properties (merged) */
:root {
  --color-brand: #002856;
  --color-accent: #b68400;
  --color-bg: #f5f5f5;
  --color-text: #333;
  --color-surface: #fff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 1px 8px rgba(0,0,0,.08);
  --radius-sm: 6px;
  --radius-md: 8px;
  --accent: #4f8cff;
  --link-color: #fff;
  --link-hover-thickness: 3px;
  --nav-text-dark: #111;
  --overlay: rgba(0, 0, 0, 0.6);
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: clamp(15px, 1.5vw, 18px);
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  background: #ffffff;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.site-header {
  background: var(--color-brand);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

/* Home page specific header styles */
.home-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
  position: relative;
  width: 100%;
  height: 300px; /* Fixed height instead of percentage padding */
  margin: 1rem 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: #000; /* Changed from blue to black */
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed to contain to prevent squishing */
  opacity: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Changed to a light black overlay */
}

.site-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  position: relative;
  z-index: 2;
}

.site-header h1 {
  margin: 1rem 0 2rem;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

.site-header nav {
  margin: 1rem auto 0;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 100;
}
.site-header img {
  margin: 0 auto;
  display: block;
  height: 100px;
  width: auto;
}
.site-header h1 {
  margin: 0.5rem 0;
  font-size: 2rem;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 101;
}
.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.nav-link:hover,
.nav-link:focus {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.nav-link.active {
  background: var(--color-accent);
}

/* Sub-Navigation Bar Styles */
.sub-nav {
  background: rgba(0, 40, 86, 0.1);
  border-bottom: 1px solid rgba(0, 40, 86, 0.2);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.sub-nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-nav-label {
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.9rem;
}

.sub-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--color-brand);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.sub-nav-link:hover {
  background: #f8f9fa;
  border-color: var(--color-accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sub-nav-link.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: auto;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.4);
  list-style: none;
  margin: 0;
}

/* Create invisible bridge to prevent hover gaps */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-brand) !important;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-weight: 500;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: rgba(0, 40, 86, 0.1);
  text-decoration: none;
}

.dropdown-menu li:first-child a {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-menu li:last-child a {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Push main content down on home page for dropdown space */
.home-header + main.main--wide {
  margin-top: 3rem;
}

/* Card styles */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
  border-color: var(--color-brand);
}

/* Schedule Page Styles */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.schedule-option {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.schedule-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

.schedule-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.calendar-option .schedule-icon {
  color: #4285f4;
}

.events-option .schedule-icon {
  color: #34a853;
}

.schedule-option h3 {
  color: var(--color-brand);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.schedule-option p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.schedule-features {
  margin: 1.5rem 0;
  text-align: left;
}

.schedule-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-features li {
  padding: 0.5rem 0;
  color: #555;
  position: relative;
  padding-left: 1.5rem;
}

.schedule-features li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.btn-calendar {
  background: #4285f4;
  color: white;
}

.btn-calendar:hover {
  background: #3367d6;
  transform: translateY(-1px);
}

.btn-events {
  background: #34a853;
  color: white;
}

.btn-events:hover {
  background: #2d7d32;
  transform: translateY(-1px);
}

.schedule-info {
  margin-top: 3rem;
}

.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-brand);
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.quick-link:hover {
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.quick-icon {
  font-size: 1.2rem;
}

.schedule-help {
  text-align: center;
  margin-top: 2rem;
  background: #f8f9fa;
  border-left: 4px solid var(--color-accent);
}

/* Schedule Dropdown Styles */
.schedule-dropdown {
  margin: 1.5rem 0;
  text-align: center;
}

.schedule-dropdown label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-brand);
}

.schedule-dropdown select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.schedule-dropdown select:hover {
  border-color: var(--color-accent);
}

.schedule-dropdown select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(0, 40, 86, 0.1);
}

/* Button styles */
.btn {
  display: inline-block; 
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: var(--color-brand);
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.btn:hover, 
.btn:focus {
  background: #003d80;
  text-decoration: none;
}

.btn:active {
  background: #002347;
}

/* Utility link styles */
a:not(.nav-link):not(.btn) {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-skip-ink: auto;
  padding: 0.2em 0; /* Larger touch target */
}

a:not(.nav-link):not(.btn):focus-visible,
a:not(.nav-link):not(.btn):hover {
  text-decoration-thickness: var(--link-hover-thickness);
}

/* Layout */
.main--wide {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0 auto;
  padding: 0 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: transparent;
}
/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer styles */
footer {
  text-align: center;
  background: var(--color-brand);
  color: white;
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid #ddd;
}

/* Responsive styles */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
    min-height: 60vh;
  }

  .site-logo {
    height: 80px;
    margin-bottom: 0.5rem;
  }

  .site-header h1 {
    font-size: 1.75rem;
    margin: 0.5rem 0 1rem;
  }

  /* Mobile header adjustments */

  .main--wide {
    margin-top: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem auto;
    width: 100%;
    max-width: 280px;
    padding: 0 1rem;
  }

  /* Mobile dropdown adjustments */
  .dropdown-menu {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    margin-left: -15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: calc(100% + 15px);
  }

  .dropdown:hover .dropdown-menu {
    transform: none;
  }

  .dropdown-toggle {
    justify-content: space-between;
  }

  .nav-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
  }

  .main--wide {
    margin: 1rem auto;
  }

  .card {
    padding: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  img, video {
    margin: 1rem auto;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .nav-link:active {
    background: rgba(255,255,255,0.2);
  }
  
  /* iOS Safari specific fixes */
  .dropdown-toggle {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Mobile dropdown styles */
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    visibility: hidden;
  }

  .dropdown-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.75rem 1rem;
    display: block;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    -webkit-tap-highlight-color: rgba(0, 40, 86, 0.1);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:active {
    background: rgba(0, 40, 86, 0.08);
    color: var(--color-brand);
  }
  
  .dropdown.active .dropdown-menu {
    opacity: 1;
    max-height: 200px;
    visibility: visible;
  }
  
  /* Disable hover effects on mobile to prevent conflicts */
  @media (max-width: 768px) {
    .dropdown:hover .dropdown-menu {
      opacity: 0;
      visibility: hidden;
      max-height: 0;
    }
  }
}

/* Mobile-specific dropdown styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    font-weight: 600;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .dropdown-toggle:focus,
  .dropdown-toggle:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    transform: scale(1.02);
  }

  .dropdown-toggle::after {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* OPTION 1: Always show dropdowns on mobile */
  .mobile-show-all .dropdown-menu {
    opacity: 1;
    max-height: none;
    overflow: visible;
    visibility: visible;
    margin-bottom: 1rem;
  }

  .mobile-show-all .dropdown-toggle::after {
    display: none; /* Hide arrows when always showing */
  }

  /* OPTION 2: Enhanced clickable dropdowns (default) */
  .dropdown.active .dropdown-menu {
    opacity: 1;
    max-height: 200px;
    visibility: visible;
  }
  
  .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  /* Disable hover effects on mobile to prevent conflicts */
  .dropdown:hover .dropdown-menu {
    opacity: 0;
    max-height: 0;
    visibility: hidden;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-brand: #001f42;
    --color-accent: #8c6500;
  }
}
@supports (padding: max(0px)) {
  .site-header,
  footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}
/* Calendar-specific styles */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 20px auto;
}

.day {
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  min-height: 100px;
  transition: background-color 0.2s;
}

.day:hover {
  background: #f8f8f8;
}

.day-header {
  font-weight: bold;
  background: #002856;
  color: #fff;
  padding: 10px;
  text-align: center;
  border: none;
}

.nav-btn {
  background: #002856;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 4px;
}

.nav-btn:hover {
  background: #001c3d;
}

#calendar-title {
  text-align: center;
  color: #002856;
  margin: 1em 0;
  font-size: 1.5rem;
  font-weight: bold;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-date {
  font-weight: bold;
  color: #002856;
  margin-bottom: 15px;
}

.modal-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #eee;
}

.modal-btn--primary {
  background: #002856;
  color: white;
}

.modal-event-list {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.modal-event-list div {
  padding: 8px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-event-list button {
  background: none;
  border: none;
  color: #002856;
  cursor: pointer;
}
/* Focus ring for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
/* Responsive */
@media (max-width: 640px) {
  .main--wide {
    margin: 1rem;
  }
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .nav-link {
    display: block;
    text-align: center;
  }
}
/* Form styles */
label {
  font-weight: 600;
  color: var(--color-brand);
}
input, textarea {
  width: 100%;
  padding: 0.75em;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-family: inherit;
  box-sizing: border-box;
}
button[type="submit"] {
  background: var(--color-brand);
  color: #fff;
  border: none;
  padding: 0.75em 2em;
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button[type="submit"]:hover {
  background: #001c3d;
}

/* QR Code styles */
.qr-code-link {
  display: block;
  margin: 1rem auto;
  max-width: 250px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-code {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qr-code-link:hover .qr-code {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.qr-code-link:active .qr-code {
  transform: scale(0.98);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .qr-code-link:hover .qr-code,
  .qr-code-link:active .qr-code {
    transform: none;
  }
}

/* Mobile responsiveness for schedule page */
@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .schedule-option {
    padding: 1.5rem;
  }
  
  .schedule-icon {
    font-size: 3rem;
  }
  
  .quick-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  .quick-link {
    justify-content: center;
  }
}

/* New Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
  color: white;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  /* Mobile video optimizations */
  -webkit-playsinline: true;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* Mobile video improvements */
@media (max-width: 768px) {
  .hero-video {
    height: 250px;
    /* Force hardware acceleration on mobile */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Video fallback styling */
  .hero-video:not([autoplay]) {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-video img {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
  }
}

/* Quote Section */
.quote-section {
  background: linear-gradient(135deg, var(--color-brand) 0%, #1a4f7a 100%);
  color: white;
  padding: 4rem 2rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
  pointer-events: none;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.8;
  margin: 0 0 1.5rem 0;
  position: relative;
  font-weight: 300;
}

.quote-text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  left: -2rem;
  top: -1rem;
  color: var(--color-accent);
  opacity: 0.8;
  font-family: Georgia, serif;
}

.quote-text::after {
  content: '"';
  font-size: 4rem;
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  color: var(--color-accent);
  opacity: 0.8;
  font-family: Georgia, serif;
}

.quote-author {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-style: normal;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.welcome-section {
  margin-bottom: 3rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--color-brand);
  color: white;
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  opacity: 0.8;
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h2 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .welcome-actions {
    justify-content: center;
  }

  /* Quote section mobile styles */
  .quote-section {
    padding: 2.5rem 1rem;
    margin: 2rem 0;
  }
  
  .quote-text {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 0 1rem;
  }
  
  .quote-text::before,
  .quote-text::after {
    font-size: 3rem;
  }
  
  .quote-text::before {
    left: -1rem;
    top: -0.5rem;
  }
  
  .quote-text::after {
    right: -1rem;
    bottom: -1.5rem;
  }
  
  .quote-author {
    font-size: 0.9rem;
  }

  /* Enhanced mobile optimizations */
  .info-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 1rem;
  }

  .card {
    margin: 0;
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .card ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
  }

  .card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }

  /* Button optimizations for mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 44px; /* iOS touch target minimum */
    border-radius: 8px;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }

  /* Main content spacing */
  .main--wide {
    padding: 1rem;
    margin: 0 auto;
  }

  /* Footer mobile optimization */
  .site-footer {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .footer-bottom {
    padding-top: 1rem;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-text h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .quote-section {
    padding: 2rem 1rem;
    margin: 1.5rem 0;
  }

  .quote-text {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  .info-cards {
    margin: 1.5rem 0.5rem;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .site-header {
    padding: 0.5rem 1rem;
  }

  .site-header h1 {
    font-size: 1.2rem;
  }

  .site-logo {
    width: 35px;
    height: 35px;
  }

  /* Improve touch targets for navigation */
  .nav-link {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .dropdown-menu {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    background: transparent;
    transition: background-color 0.2s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  }

  .dropdown-menu a:hover {
    background: rgba(0, 40, 86, 0.1);
    color: var(--color-brand);
  }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 1.5rem 1rem;
  }

  .quote-section {
    padding: 2rem 1rem;
  }

  .hero-video {
    height: 250px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
