/* Modern styling for Common Ground Project - Content and Footer Focus */

/* Solid brand navbar, fixed at top. The legacy hero images carry their own
   "Common Ground" octopus watermark, so a transparent navbar over the hero
   ends up illegible — keep it solid and let the slider speak for itself. */
.v5-splash-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--primary-color, #0F2E4F) !important;
  background-image: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Hide the slide-specific captions: the embedded watermark in the source
   images already carries the project branding, and a second overlay just
   competes with it. Re-enable later once watermark-free images are
   available if we want per-slide titles. */
.hero-caption { display: none; }

/* Pin hero to full viewport regardless of slick mode. */
.intro-section {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 0;
}
.intro-section .home-slider,
.intro-section .home-slider .slick-list,
.intro-section .home-slider .slick-track,
.intro-section .home-slide {
  height: 100vh !important;
  margin: 0 !important;
}
.intro-section .home-slide img {
  height: 100vh !important;
  width: 100% !important;
  object-fit: cover;
}

/* Down-arrow: arches default hides .down-button; restore on hero. */
.intro-section .down-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}
.intro-section .down-button:hover { color: #fff; }
@media (max-width: 768px) {
  .intro-section .down-button { display: none !important; }
}

/* Hero slide caption (per-slide title + subtitle). */
.home-slide { position: relative; }
.hero-caption {
  position: absolute;
  left: 8%;
  bottom: 22%;
  max-width: 60%;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin: 0 0 0.4em 0;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
  max-width: 36em;
}
@media (max-width: 768px) {
  .hero-caption {
    left: 5%;
    right: 5%;
    bottom: 18%;
    max-width: none;
  }
}

/* Visible focus rings for keyboard users on landing interactive elements. */
.v5-splash-navbar a:focus-visible,
.app-footer-links a:focus-visible,
.down-button:focus-visible,
.slick-prev:focus-visible,
.slick-next:focus-visible,
.slick-dots button:focus-visible {
  outline: 3px solid var(--secondary-color, #13ce67);
  outline-offset: 2px;
}

/* Base styling */
:root {
  --primary-color: #0F2E4F;
  --secondary-color: #13ce67;
  --accent-color: #CAFF00;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #ffffff;
  --bg-dark: #041B33;
  --bg-gray: #f5f7fa;
  --transition: all 0.3s ease;
}

html, body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Hero section improvements */
.intro-section {
  position: relative;
}

.fullscreenbanner img {
  object-fit: cover;
  width: 100%;
}

.image-gradient {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.down-button {
  background: rgba(19, 206, 103, 0.7);
  border: none;
  width: 60px;
  height: 60px;
  transition: var(--transition);
}

.down-button:hover {
  background: rgba(19, 206, 103, 1);
  transform: translateY(-5px);
}

/* Content blocks */
.app-info-block {
  padding: 80px 5%;
}

.app-info-block:nth-child(even) {
  background-color: var(--bg-gray);
}

.app-info-block-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.app-info-block-header {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 30px;
}

.app-info-block-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Sub content blocks */
.sub-block-container {
  background: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin: 15px 0;
  height: 100%;
  transition: var(--transition);
}

.sub-block-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sub-block-image {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.sub-block-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* Splash image improvements */
.splash-img img {
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

/* Footer modernization */
.footer-links {
  background: var(--primary-color);
  padding: 60px 5%;
}

.app-footer-heading {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 25px;
  position: relative;
}

.app-footer-heading:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.organization-address {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.copyright-container {
  background: var(--bg-dark);
  padding: 25px 5%;
}

.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.link-spacing {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 25px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.link-spacing:hover, 
.app-footer-arches-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.app-footer-arches-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

/* Vertical navigation */
.vertical-nav-container {
  background: rgba(4, 27, 51, 0.8);
  border-radius: 20px;
  padding: 10px 5px;
}

.vertical-nav-list-link {
  height: 12px;
  width: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  transition: var(--transition);
}

.vertical-nav-list-link.is-selected,
.vertical-nav-list-link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.vertical-nav-list-ref {
  background: var(--bg-dark);
  color: var(--text-light) !important;
  padding: 5px 10px !important;
  border-radius: 4px;
}

/* Accessibility improvements */
.image-attribution {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 400;
  border-radius: 4px;
}

:focus {
  outline: 3px solid var(--secondary-color);
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: white;
  padding: 8px 15px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .app-info-block {
    padding: 60px 20px;
  }
  
  .app-footer-content-container {
    flex-direction: column;
  }
  
  .app-footer-branding, 
  .app-footer-info {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .app-info-block-title {
    font-size: 1.8rem;
  }
  
  .app-info-sub-block {
    margin-top: 30px;
  }
  
  .sub-block-container {
    margin-bottom: 30px;
  }
  
  .footer-links [class*="col-"] {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .app-info-block-title {
    font-size: 1.5rem;
  }
  
  .app-footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .app-footer-arches-link {
    margin-top: 15px;
    text-align: left;
  }
}
