/* URI Powerlifting - Main CSS */
/* Spotify-inspired navigation with brand colors */

:root {
  color-scheme: dark;
  --bg: #000000;
  --text: #ffffff;
  --accent-dark: #002147;
  --accent: #75b2dd;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --hover-bg: rgba(117, 178, 221, 0.1);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

/*
 * Performance: Reserve space for dynamically loaded navbar and footer to prevent CLS.
 */
[data-include$="components/navbar.html"] {
  display: block;
  min-height: 80px;
}

[data-include$="components/footer.html"] {
  display: block;
  min-height: 220px;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background-color: #000b1a;
  scroll-padding-top: 96px;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #000b1a;
  background-image:
    radial-gradient(ellipse 100% 600px at 50% 0%, rgba(117, 178, 221, 0.16) 0%, transparent 70%),
    linear-gradient(180deg,
      #000000 0%,
      #080d17 12%,
      #0f1b30 35%,
      #002147 65%,
      #0c182c 88%,
      #000b1a 100%
    );
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

@layer base {
  a {
    color: inherit;
    text-decoration: none;
  }

  a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }

  button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Header / Navbar - Spotify style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Logo and brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(117, 178, 221, 0.3));
  border-radius: 50%; /* Ensuring logo-mark has a defined shape */
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

/* Desktop navigation */
.navbar-nav {
  display: none;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.45vw, 20px);
  list-style: none;
  margin: 0;
  padding: 10px clamp(12px, 1.6vw, 20px);
  background: linear-gradient(135deg, rgba(0, 48, 102, 0.92) 0%, rgba(0, 22, 50, 0.96) 100%);
  border: 1px solid rgba(117, 178, 221, 0.45);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.45), 0 0 12px rgba(117, 178, 221, 0.15);
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: clamp(0.84rem, 0.95vw, 0.95rem);
  color: var(--text);
  white-space: nowrap;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  opacity: 1;
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  opacity: 0.5;
  margin: 0 -4px;
}

/* Desktop auth actions and social icons */
.navbar-actions {
  display: none;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  opacity: 0.8;
}

.social-icon:hover,
.social-icon:focus-visible {
  opacity: 1;
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: color 0.2s ease;
}

.social-icon:hover svg,
.social-icon:focus-visible svg {
  color: var(--accent);
}


/* Mobile hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 13px 10px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  list-style: none;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link.active {
  background: var(--hover-bg);
  color: var(--accent);
}

.mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Mobile social icons */
.mobile-social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 12px;
  margin: 8px 0 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mobile-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-social-link:hover,
.mobile-social-link:focus-visible {
  background: var(--hover-bg);
  color: var(--accent);
}

.mobile-social-link svg {
  color: var(--text);
  transition: color 0.2s ease;
}

.mobile-social-link:hover svg,
.mobile-social-link:focus-visible svg {
  color: var(--accent);
}


/* Footer */
.site-footer {
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-content {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 0 16px 0;
}

.footer-section h4 {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 12px 0;
}

.footer-section p {
  color: var(--muted);
  margin: 0;
}

/* Footer contact and social */
.footer-contact {
  margin-bottom: 16px;
}

.email-link {
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  opacity: 0.8;
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  opacity: 1;
  background: var(--hover-bg);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text);
  transition: color 0.2s ease;
}

.footer-social-icon:hover svg,
.footer-social-icon:focus-visible svg {
  color: var(--accent);
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Page content */
main {
  flex: 1;
  width: 100%;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

main .container {
  padding-left: 0;
  padding-right: 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: clamp(500px, calc(100svh - 144px), 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(45deg, #002147, #000000);
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  margin-bottom: 40px;
}


.hero__content {
  text-align: center;
  padding: 1rem 1.5rem;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero__logo-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.hero__logo-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(190px, 28vw, 240px);
  height: clamp(190px, 28vw, 240px);
  background: linear-gradient(-135deg, #002147, #000000);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: -1;
}

@media (max-width: 768px) {
  .hero__logo-container::before {
    width: clamp(175px, 48vw, 220px);
    height: clamp(175px, 48vw, 220px);
  }
}

.hero__logo {
  max-width: min(176px, 44vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin: 0.75rem 0 0.75rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

/* Glass gradient text effect for page headings */
.glass-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__cta-button {
  background: rgba(0, 33, 71, 0.72);
  border: 1.5px solid rgba(117, 178, 221, 0.55);
  color: #e2e8f0;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__cta-button:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero__cta-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__cta-button {
    animation: none;
  }
}

/* Hero Decorations */
.hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__dumbbell {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.3;
  animation: float-subtle 4s ease-in-out infinite;
}

.hero__dumbbell--1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.hero__dumbbell--2 {
  top: 70%;
  right: 15%;
  animation-delay: 1.5s;
  rotate: 45deg;
}

.hero__dumbbell--3 {
  top: 35%;
  right: 8%;
  animation-delay: 3s;
  rotate: -30deg;
}

.hero__dumbbell--4 {
  top: 80%;
  left: 5%;
  animation-delay: 0.5s;
  rotate: 60deg;
}

.hero__dumbbell--5 {
  top: 25%;
  left: 85%;
  animation-delay: 2s;
  rotate: -45deg;
}

.hero__dumbbell--6 {
  top: 55%;
  left: 3%;
  animation-delay: 4s;
  rotate: 90deg;
}

.hero__dumbbell--7 {
  top: 10%;
  right: 25%;
  animation-delay: 1s;
  rotate: 15deg;
}

.hero__dumbbell--8 {
  top: 85%;
  right: 40%;
  animation-delay: 2.5s;
  rotate: -60deg;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__dumbbell {
    animation: none;
  }
}

/* Team Photo Section */
.team-photo {
  max-width: 1200px;
  margin: 0 auto 48px auto;
  padding: 0 24px;
}

.team-photo__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}


.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #75b2dd 0%, #98c7e8 100%);
  color: #002147;
  border: 2px solid transparent;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(117, 178, 221, 0.3);
}

.hero-btn:hover,
.hero-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(117, 178, 221, 0.45);
}

.hero-btn--secondary {
  background: rgba(0, 33, 71, 0.85);
  color: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: none;
}

.hero-btn--secondary:hover,
.hero-btn--secondary:focus-visible {
  background: rgba(117, 178, 221, 0.16);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(117, 178, 221, 0.25);
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card h3 {
  color: var(--accent);
  margin: 0 0 12px 0;
}

.icon-accent {
  vertical-align: middle;
  margin-right: 8px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-input option {
  background-color: #0f172a;
  color: #ffffff;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(117, 178, 221, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #75b2dd 0%, #98c7e8 100%);
  color: #002147;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-button:hover,
.form-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(117, 178, 221, 0.3);
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Profile cards */
.leadership-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.leadership-grid > .profile-card {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 280px;
}

@media (max-width: 959px) {
  .leadership-grid > .profile-card {
    flex: 1 1 100%;
  }
}

.profile-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow:
    0 0 20px rgba(117, 178, 221, 0.4),
    0 0 40px rgba(117, 178, 221, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.profile-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px 0;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Desktop responsive */
@media (min-width: 960px) {
  .footer-content {
    grid-template-columns: 2fr 1fr;
  }

  .social-links {
    flex-direction: row;
    gap: 16px;
  }

  .footer-social-icons {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .navbar-nav,
  .navbar-actions {
    display: flex;
  }

  .hamburger-btn {
    display: none;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item--video::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(117, 178, 221, 0.8);
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 33, 71, 0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.gallery-item--video .gallery-item__overlay {
  align-items: flex-end;
  padding-bottom: 24px;
}

.gallery-item__overlay span {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 25px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Hire Us - Stepper, Category Lists & Disclaimer Accordion
   ========================================================================== */

.hire-cta-banner {
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.7) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(117, 178, 221, 0.35);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stepper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
  text-align: left;
}

.step-card {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(117, 178, 221, 0.35);
}

.step-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.step-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.hire-contact-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hire-contact-methods a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hire-contact-methods a:hover {
  color: var(--text);
}

.service-category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.service-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(117, 178, 221, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.service-category-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.45;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.service-note {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ==========================================================================
   Interactive Accordion (<details> / <summary>) for FAQs & Disclaimer
   ========================================================================== */

.faq-group {
  margin-bottom: 32px;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 1.25rem;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  user-select: none;
  transition: color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--accent);
}

.faq-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(117, 178, 221, 0.12);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: var(--bg);
}

.faq-content {
  padding: 0 22px 20px 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.faq-content p {
  margin: 0 0 10px 0;
  color: var(--muted);
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.disclaimer-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}

/* ==========================================================================
   Newsletter Subscribe & Committees
   ========================================================================== */

.newsletter-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(117, 178, 221, 0.15);
  color: var(--accent);
  border: 1px solid rgba(117, 178, 221, 0.35);
}

.newsletter-subscribe-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-embed {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0;
  padding: 20px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.donation-instructions {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 20px;
  background: rgba(117, 178, 221, 0.1);
  border: 1px solid rgba(117, 178, 221, 0.35);
  border-radius: 10px;
  color: var(--text);
}

.donation-instructions p {
  color: var(--text);
  font-size: 0.96rem;
}

.donation-instructions code {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 2px;
  border-radius: 6px;
  background: rgba(0, 33, 71, 0.8);
  border: 1px solid rgba(117, 178, 221, 0.45);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.committee-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 100%;
}

.committee-role-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(117, 178, 221, 0.12);
  border: 1px solid rgba(117, 178, 221, 0.3);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

@media (max-width: 959px) {
  .stepper-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) {
  .card:hover,
  .profile-card:hover,
  .disclaimer-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
  }

  .hire-cta-banner:hover {
    border-color: var(--accent);
  }

  .step-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }

  .faq-item:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
  }

  .gallery-item--video:hover::before {
    background-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
  }

  .gallery-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(117, 178, 221, 0.2);
    transform: translateY(-4px);
  }

  .gallery-item:hover img,
  .gallery-item:hover video {
    transform: scale(1.08);
  }

  .gallery-item:hover .gallery-item__overlay {
    opacity: 1;
  }

  .gallery-item:hover .gallery-item__overlay span {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  main {
    padding: 20px 16px;
  }

  .navbar-container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 16px;
    margin-bottom: 32px;
  }

  .team-photo {
    padding: 0;
    margin-bottom: 32px;
  }

  .card,
  .profile-card,
  .hire-cta-banner,
  .disclaimer-box {
    padding: 20px 16px;
  }

  .faq-summary {
    padding: 14px 16px;
    font-size: 0.98rem;
  }

  .faq-content {
    padding: 12px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}