/* =====================================================
SAN JUAN DELA CRUZ PARISH SAVINGS & CREDIT COOPERATIVE
MODERN, ADVANCED, MOBILE-FIRST, CDA-READY UI
===================================================== */

/* ================= VARIABLES ================= */
:root {
    --navy: #0b1f3a;
    --navy-light: #123a6f;
    --accent: #1e88e5;
    --white: #ffffff;
    --gray: #f5f7fb;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --shadow: rgba(0,0,0,0.12);
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background: var(--gray);
    color: var(--text-dark);
    line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  flex-wrap: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  margin: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo span {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

.nav-links a:hover {
  opacity: 0.8;
}



/* ================================
   Shining / Sparkle Logo Effect
================================ */
.navbar .logo-img {
  height: 40px;
  width: auto;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Moving shine overlay */
.navbar .logo-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%; /* start off-screen */
  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%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shine 2s infinite;
}

/* Quick sparkle flash */
.navbar .logo-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  pointer-events: none;
  animation: sparkle 4s infinite;
}

/* Keyframes for shine movement */
@keyframes shine {
  0% { left: -75%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Keyframes for sparkle flash */
@keyframes sparkle {
  0%, 70%, 100% { opacity: 0; }
  75%, 80% { opacity: 1; } /* short flash */
}

/* ================= NAV LINKS ================= */
.navbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px;
}

.navbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar nav a:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* ================= BUTTONS ================= */
.btn {
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.btn-primary { background: #1e88e5; color: #fff; }
.btn-success { background: #28a745; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-info { background: #17a2b8; color: #fff; }

.btn:hover { transform: scale(1.05); opacity: 0.9; }

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 2px;
}

/* ================= RESPONSIVE NAV ================= */
@media(max-width: 768px){
  .hamburger { display: flex; }
  .navbar nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    border-radius: 10px;
    padding: 10px 0;
  }
  .navbar nav a {
    padding: 10px 20px;
  }
}


/* ================= HERO SLIDES ================= */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 90%;
  padding: 20px 15px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  background: rgba(0,0,0,0.35);
  animation: fadeIn 1s ease forwards;
}

.slide-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: slideUp 1s ease forwards;
}

.slide-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  animation: slideUp 1.2s ease forwards;
}

.slide-buttons a {
  margin: 5px;
  display: inline-block;
}

/* ================= SLIDE ARROWS ================= */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  user-select: none;
  transition: 0.3s ease;
}

.slide-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.left-arrow {
  left: 15px;
}

.right-arrow {
  right: 15px;
}

/* Navigation Dots */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.dot {
  height: 12px;
  width: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){
  .navbar nav { display: none; flex-direction: column; width: 100%; }
  .hamburger { display: flex; }
  .hero-slideshow { height: 60vh; }
  .slide-content h1 { font-size: 1.6rem; }
  .slide-content p { font-size: 0.95rem; }

  .slide-arrow {
    font-size: 24px;
    padding: 8px 12px;
  }
}

@media(max-width:480px){
  .hero-slideshow { height: 50vh; }
  .slide-content h1 { font-size: 1.4rem; }
  .slide-content p { font-size: 0.85rem; }
  .slide-buttons a { font-size: 0.8rem; padding: 6px 12px; }
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(180deg, var(--navy), #08162b);
    color: #e5e7eb;
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}

footer h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
}

footer h4::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: var(--accent);
    margin-top: 6px;
    border-radius: 2px;
}

footer p, footer ul li {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.7;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
}

footer iframe {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    border: none;
    filter: grayscale(0.9) contrast(1.1);
}

footer .copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media(max-width:1024px) {
    .hero-slideshow { height: 70vh; }
    .slide h1 { font-size: 2rem; }
    .slide p { font-size: 1rem; }
}

@media(max-width:768px){
    .navbar { flex-direction: column; align-items: flex-start; padding: 10px 15px; }
    .navbar nav { width: 100%; margin-top: 10px; justify-content: flex-start; }
    .hero-slideshow { height: 60vh; }
    .slide h1 { font-size: 1.6rem; }
    .slide p { font-size: 0.95rem; }
    .slide-buttons a { font-size: 0.85rem; padding: 8px 15px; }
    footer { padding: 40px 15px 20px; }
}

@media(max-width:480px){
    .hero-slideshow { height: 50vh; }
    .slide h1 { font-size: 1.4rem; }
    .slide p { font-size: 0.85rem; }
    .slide-buttons a { font-size: 0.8rem; padding: 6px 12px; }
    .footer-grid { gap: 15px; }
}

/* ================================
   Welcome Popup (Modern Toast)
================================ */
.welcome-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    z-index: 9999;

    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;

    animation: welcomeIn 0.8s ease forwards;
}

.welcome-icon {
    font-size: 32px;
    line-height: 1;
}

.welcome-content h4 {
    margin: 0 0 6px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #1e88e5;
}

.welcome-content p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.welcome-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    transition: color 0.25s ease;
}

.welcome-close:hover {
    color: #1e88e5;
}

/* Animations */
@keyframes welcomeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@keyframes welcomeOut {
    to {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .welcome-popup {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: unset;
    }
}

