/* ============================================================
   GLOBAL STYLES — Shared across ALL pages
   ============================================================ */

body {
  margin: 0;
  background: #3A3A3A;
  background-image: url('img/ssplogo25.png');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Inter', sans-serif;
  color: #1E1E1E;
}

/* HEADER */
.header {
  background: linear-gradient(90deg, #7A0E1A, #C21826);
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 10;
  overflow: visible;
}


.branding {
  flex-shrink: 0;
}

.logo-text {
  margin: 0;
  font-size: 1.6rem;
}

.tagline-header {
  font-size: 0.8rem;
  letter-spacing: 4px;
  opacity: 0.8;
}


/* NAVIGATION */
.nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  opacity: 0.7;
}

/* FOOTER */
.footer {
  background: #1E1E1E;
  color: #E5E5E5;
  text-align: center;
  padding: 20px;
}

.footer a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  opacity: 0.7;
	
}

/* CONTENT WRAPPER */
.content-wrapper {
  background: white;
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  min-height: 160px; 
  
}

.hero-subtitle {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  color: #FFFFFF;
}

/* ============================================================
   HOMEPAGE ONLY — Scoped to .home-page-wrapper
   ============================================================ */

.home-page-wrapper .hero {
  background: #1E1E1E;
  color: white;
  text-align: center;
  padding: 80px 20px 120px;
  background-image: url('img/ssplogo25.png');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.home-page-wrapper .hero-title {
  margin-top: 40px;
  font-size: 2.4rem;
}

.home-page-wrapper .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* HOMEPAGE LOGO ANIMATION */
.home-page-wrapper .logo-container {
  width: 260px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  animation: fadeInContainer 0.3s ease forwards;
  position: relative;
}

@keyframes fadeInContainer {
  to { opacity: 1; }
}

.home-page-wrapper #cube-outline path {
  stroke: #E5E5E5;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw 0.8s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.home-page-wrapper #film-strip {
  transform: translate(-20px, -20px);
  opacity: 0;
  animation: slideIn 0.4s ease forwards 0.8s;
}

@keyframes slideIn {
  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.home-page-wrapper .film-hole {
  opacity: 0;
  animation: fadeIn 0.2s ease forwards 1.0s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.home-page-wrapper #wave-path {
  stroke: #C21826;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation:
    drawWave 0.6s ease forwards 1.2s,
    wavePulse 1.6s ease-in-out infinite 2.2s;
}

@keyframes drawWave {
  to { stroke-dashoffset: 0; }
}

@keyframes wavePulse {
  0%, 100% { stroke-width: 3; stroke: #C21826; }
  50% { stroke-width: 4; stroke: #ff4d5a; }
}

.home-page-wrapper .logo-svg {
  animation: rotateCube 0.4s ease forwards 1.8s;
}

@keyframes rotateCube {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(20deg); }
}

.home-page-wrapper .wordmark {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #E5E5E5;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards 2.2s;
  position: relative;
  overflow: hidden;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page-wrapper .wordmark::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.2s ease forwards 3.0s;
}

@keyframes shimmer {
  0% { left: -120%; }
  100% { left: 150%; }
}

.home-page-wrapper .tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 6px;
  margin-top: 6px;
  color: #C21826;
  opacity: 0;
  animation:
    glowIn 0.4s ease forwards 2.8s,
    taglinePulse 2.4s ease-in-out infinite 3.4s;
}

@keyframes glowIn {
  0% { opacity: 0; text-shadow: none; }
  100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(194, 24, 38, 0.6);
  }
}

@keyframes taglinePulse {
  0%, 100% { text-shadow: 0 0 8px rgba(194, 24, 38, 0.6); }
  50% { text-shadow: 0 0 14px rgba(255, 60, 60, 0.9); }
}

.home-page-wrapper .logo-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(194, 24, 38, 0.35) 0%,
    rgba(194, 24, 38, 0.05) 60%,
    transparent 100%
  );
  filter: blur(20px);
  opacity: 0;
  animation: glowPulse 1.4s ease forwards 1.6s;
}

@keyframes glowPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* HOMEPAGE ONLY */
.home-page-wrapper .content-wrapper {
  margin: -40px auto 40px;
}

/* HOMEPAGE — Cinematic hover for service cards */
.home-page-wrapper .service-card {
  background: #FFFFFF;
  border-top: 4px solid #C21826;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: default; /* no links, so no pointer */
}

.home-page-wrapper .service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 24px rgba(194, 24, 38, 0.35);
  border-top-color: #C21826;
}

/* Light sweep effect */
.home-page-wrapper .service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.home-page-wrapper .service-card:hover::after {
  left: 140%;
}

.home-page-wrapper .service-card h3 {
  position: relative;
  display: inline-block;
}

.home-page-wrapper .service-card h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #C21826;
  transition: width 0.25s ease;
}

.home-page-wrapper .service-card:hover h3::after {
  width: 100%;
}


/* ============================================================
   INLINE LOGO — Shared by ALL non-home pages
   ============================================================ */

.page-with-inline-logo .inline-logo {
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-with-inline-logo .inline-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.page-with-inline-logo .floating-logo-svg path {
  stroke: #E5E5E5;
  stroke-width: 3;
  fill: none;
}

/* ============================================================
   SERVICES PAGE — Scoped to .services-page-wrapper
   ============================================================ */

.services-page {
  padding-top: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.services-page-wrapper .small-hero {
  padding: 40px 20px 20px;
}

/* Reveal animation 
.services-page-wrapper .service-card {
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}
*/
.services-page-wrapper .service-card.reveal {
  animation: fadeUpReveal 0.6s ease forwards;
}

@keyframes fadeUpReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-page-wrapper .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(194, 24, 38, 0.35);
  transition: 0.25s ease;
}

.services-page-wrapper .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: #C21826;
  animation: slideBar 0.6s ease forwards;
}

@keyframes slideBar {
  to { left: 0; }
}

.services-page-wrapper .service-card h3 {
  position: relative;
  display: inline-block;
}

.services-page-wrapper .service-card h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #C21826;
  transition: width 0.25s ease;
}

.services-page-wrapper .service-card:hover h3::after {
  width: 100%;
}

/* Parallax background */
.services-page-wrapper .parallax-bg {
  position: relative;
  background: linear-gradient(180deg, #1E1E1E, #3A3A3A);
  overflow: hidden;
}

.services-page-wrapper .parallax-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(194, 24, 38, 0.12),
    rgba(0, 0, 0, 0)
  );
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.05); }
}

.services-page-wrapper .parallax-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(194, 24, 38, 0.15),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* Light rays */
.services-page-wrapper .light-rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    rgba(194, 24, 38, 0.12),
    rgba(194, 24, 38, 0.02),
    rgba(194, 24, 38, 0.12)
  );
  filter: blur(60px);
  opacity: 0.35;
  animation: rotateRays 22s linear infinite;
  pointer-events: none;
}

@keyframes rotateRays {
  0% { transform: rotate(0deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1.1); }
}

/* Particle field */
.services-page-wrapper .particle-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
}

.services-page-wrapper .particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(194, 24, 38, 0.9),
    rgba(194, 24, 38, 0)
  );
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
  filter: blur(2px);
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

/* ============================================================
   CAUSES PAGE — Perfect clone of Services styling
   ============================================================ */

/* Wrapper spacing */
.causes-page-wrapper {
  padding-top: 20px;
}

/* Hero spacing */
.causes-page-wrapper .small-hero {
  padding: 40px 20px 20px;
}

/* Grid spacing */
.causes-page-wrapper .service-grid {
  margin-top: 20px;
}

/* Base card styling */
.causes-page-wrapper .service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #FFFFFF;
  border-top: 4px solid #C21826;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Reveal animation */
.causes-page-wrapper .service-card.reveal {
  animation: fadeUpReveal 0.6s ease forwards;
}

/* Hover effect */
.causes-page-wrapper .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(194, 24, 38, 0.35);
}

/* Top red bar animation */
.causes-page-wrapper .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: #C21826;
  animation: slideBar 0.6s ease forwards;
}

/* Title underline animation */
.causes-page-wrapper .service-card h3 {
  position: relative;
  display: inline-block;
}

.causes-page-wrapper .service-card h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #C21826;
  transition: width 0.25s ease;
}

.causes-page-wrapper .service-card:hover h3::after {
  width: 100%;
}

/* Link styling */
.causes-page-wrapper .service-card a {
  color: #7A0E1A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.causes-page-wrapper .service-card a:hover {
  color: #C21826;
}

/* Force visible link text inside Causes cards */
.causes-page-wrapper .service-card h3 a {
  color: #7A0E1A !important;
}

.causes-page-wrapper .service-card h3 a:hover {
  color: #C21826 !important;
}


/* Parallax background */
.causes-page-wrapper .parallax-bg {
  position: relative;
  background: linear-gradient(180deg, #1E1E1E, #3A3A3A);
  overflow: hidden;
}

.causes-page-wrapper .parallax-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(194, 24, 38, 0.12),
    rgba(0, 0, 0, 0)
  );
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: 0.4;
  
}

/* Parallax layer */
.causes-page-wrapper .parallax-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(194, 24, 38, 0.15),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* Light rays */
.causes-page-wrapper .light-rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    rgba(194, 24, 38, 0.12),
    rgba(194, 24, 38, 0.02),
    rgba(194, 24, 38, 0.12)
  );
  filter: blur(60px);
  opacity: 0.35;
  animation: rotateRays 22s linear infinite;
  pointer-events: none;
  
}

/* Particle field */
.causes-page-wrapper .particle-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
}

.causes-page-wrapper .parallax-bg .particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Particle styling */
.causes-page-wrapper .particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(194, 24, 38, 0.9),
    rgba(194, 24, 38, 0)
  );
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
  filter: blur(2px);
}


/* ============================================================
   UNIVERSAL SUB-PAGE TEMPLATE
   Matches Services/Causes cinematic styling
   ============================================================ */

/* Wrapper spacing */
.sub-page-wrapper {
  padding-top: 20px;
}

/* Hero spacing */
.sub-page-wrapper .small-hero {
  padding: 40px 20px 20px;
}

/* Grid spacing */
.sub-page-wrapper .service-grid {
  margin-top: 20px;
}

/* Base card styling */
.sub-page-wrapper .service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #FFFFFF;
  border-top: 4px solid #C21826;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Reveal animation */
.sub-page-wrapper .service-card.reveal {
  animation: fadeUpReveal 0.6s ease forwards;
}

/* Hover effect */
.sub-page-wrapper .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(194, 24, 38, 0.35);
}

/* Top red bar animation */
.sub-page-wrapper .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: #C21826;
  animation: slideBar 0.6s ease forwards;
}

/* Title underline animation */
.sub-page-wrapper .service-card h3 {
  position: relative;
  display: inline-block;
}

.sub-page-wrapper .service-card h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #C21826;
  transition: width 0.25s ease;
}

.sub-page-wrapper .service-card:hover h3::after {
  width: 100%;
}

/* Link styling */
.sub-page-wrapper .service-card a {
  color: #7A0E1A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sub-page-wrapper .service-card a:hover {
  color: #C21826;
}

/* Parallax background */
.sub-page-wrapper .parallax-bg {
  position: relative;
  background: linear-gradient(180deg, #1E1E1E, #3A3A3A);
  overflow: hidden;
}

.sub-page-wrapper .parallax-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(194, 24, 38, 0.12),
    rgba(0, 0, 0, 0)
  );
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: 0.4;
}

/* Parallax layer */
.sub-page-wrapper .parallax-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(194, 24, 38, 0.15),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.parallax-bg,
.parallax-layer,
.light-rays,
.particle-field {
    z-index: 0;
}

/* Light rays */
.sub-page-wrapper .light-rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    rgba(194, 24, 38, 0.12),
    rgba(194, 24, 38, 0.02),
    rgba(194, 24, 38, 0.12)
  );
  filter: blur(60px);
  opacity: 0.35;
  animation: rotateRays 22s linear infinite;
  pointer-events: none;
}

/* Particle field */
.sub-page-wrapper .particle-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
}

.sub-page-wrapper .parallax-bg .particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Particle styling */
.sub-page-wrapper .particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(194, 24, 38, 0.9),
    rgba(194, 24, 38, 0)
  );
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
  filter: blur(2px);
}

.footer-links {
  text-align: center;
  margin: 20px 0 10px;
}

.footer-links a {
  color: #ccc;               /* matches your existing muted text tone */
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.9rem;         /* slightly smaller than main nav */
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  color: #fff;               /* brightens on hover like your nav links */
  opacity: 0.85;
}


/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.modal-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Modal Text */
.modal-content h2,
.modal-content h4,
.modal-content p {
  color: #ffffff;
}


/*
#ssp-header-include {
  position: relative;
  z-index: 2000;
}


 Fix header being covered by parallax layers 
#ssp-header-include,
.header {
  position: relative;
  z-index: 2000;
}

/* Ensure content sits above parallax but below header 
.content-wrapper {
  position: relative;
  z-index: 10;
}*/

