/* ================================
   NSK Santaka - Stilių sistema
   ================================ */

/* ---------- CSS Kintamieji ---------- */
:root {
  /* Pagrindinės spalvos (iš logo) */
  --color-primary: #2d8c4e;
  /* Žalia */
  --color-secondary: #f5d42a;
  /* Geltona */
  --color-accent: #dc4532;
  /* Raudona */

  /* Neutralios spalvos */
  --color-bg: #fafafa;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Šešėliai */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Šriftai */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', var(--font-main);

  /* Dydžiai */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Perėjimai */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Dark tema */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
  }
}

/* ---------- Baziniai stiliai ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Tipografija ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ---------- Header / Navigacija ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-primary);
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Responsive navigacija */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-alt);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--color-border);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--color-primary);
    color: white;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Hero sekcija ---------- */
.hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e5631 100%);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container {
  position: relative;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
  background: white;
  border-radius: 50%;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--color-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Kortelės ---------- */
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--color-text-muted);
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  margin-bottom: 0.5rem;
}

.card-badge.upcoming {
  background: var(--color-secondary);
  color: var(--color-text);
}

.card-badge.past {
  background: var(--color-text-muted);
}

/* ---------- Grid sistema ---------- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ---------- Galerija ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: white;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  z-index: 1;
}

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

.collage-container {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  z-index: 1;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.category-card:hover .collage-img {
  opacity: 0.8;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

/* Ensure text is above image */
.card-content {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Adjust text color for better readability on images */
.category-card .card-content {
  color: white !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: var(--radius-sm);
  z-index: 2001;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 768px) {
  .lightbox-nav {
    padding: 0.5rem;
    font-size: 1.5rem;
  }
}

/* ---------- Kalendorius / Tvarkaraštis ---------- */
.schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  transition: all var(--transition-fast);
}

.schedule-item:hover {
  box-shadow: var(--shadow-md);
}

.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  text-align: center;
}

.schedule-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.schedule-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.schedule-content {
  flex: 1;
}

.schedule-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.schedule-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Savaitės tvarkaraštis */
.week-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.week-day {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.week-day-header {
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  text-align: center;
}

.week-day-content {
  padding: 1rem;
}

.week-training {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.week-training:last-child {
  margin-bottom: 0;
}

.week-training-time {
  font-weight: 600;
  color: var(--color-primary);
}

.week-training-name {
  margin-top: 0.25rem;
}

/* ---------- Parama ---------- */
.support-box {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.support-box h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.support-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
}

.info-box {
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin: 1rem 0;
}

.info-box dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.info-box dd {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-box dd:last-child {
  margin-bottom: 0;
}

/* ---------- Vizija / Misija ---------- */
.vision-card {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.vision-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ---------- Kelias (1-2-3 žingsniai) ---------- */
.path-card {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  padding-top: 3rem;
}

.path-step {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* ---------- Statistika ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Poveikio kortelės (Parama) ---------- */
.impact-card {
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.impact-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.impact-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* ---------- Biudžeto pasiskirstymas ---------- */
.budget-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.budget-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.budget-track {
  height: 10px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ---------- Citata ---------- */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ---------- Pagalbinės klasės ---------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.ms-3 {
  margin-left: 1rem;
}

/* ---------- Animacijos ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Staggered animation */
.stagger>* {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.stagger>*:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger>*:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger>*:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger>*:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger>*:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger>*:nth-child(6) {
  animation-delay: 0.6s;
}

/* Loading Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  animation: spin 2s linear infinite;
}