/* VitalniŽivot - Main Stylesheet */

:root {
  --primary-gold: #FAD02C;
  --accent-green: #2E5D34;
  --accent-terracotta: #E07A5F;
  --light-cream: #FFF8E8;
  --dark-text: #333333;
  --border-radius: 18px;
  --spacing-lg: 110px;
  --spacing-md: 55px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Karla', sans-serif;
  font-size: 17.2px;
  line-height: 1.78;
  color: var(--dark-text);
  background-color: #ffffff;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'Baloo', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-text);
}

h1 {
  font-size: 56px;
  margin-bottom: 20px;
}

h2 {
  font-size: 38px;
  margin-bottom: 30px;
}

h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--light-cream) 0%, rgba(255, 248, 232, 0.95) 100%);
  border-bottom: 1px solid rgba(250, 208, 44, 0.2);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, var(--light-cream) 0%, rgba(250, 208, 44, 0.1) 100%);
}

.navbar {
  padding: 15px 40px !important;
  max-width: 1340px;
  margin: 0 auto;
}

.navbar-brand {
  font-family: 'Fredoka', 'Baloo', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green) !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-gold) !important;
}

.navbar-nav .nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-gold) !important;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-cream) 100%);
  padding: var(--spacing-lg) 40px;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  background: rgba(255, 248, 232, 0.85);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--accent-green);
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  color: var(--dark-text);
  margin-bottom: 30px;
}

/* Sections */
section {
  padding: var(--spacing-lg) 40px;
  max-width: 1340px;
  margin: 0 auto;
}

section h2 {
  color: var(--accent-green);
  text-align: center;
  margin-bottom: 50px;
}

/* Content Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: #ffffff;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(46, 93, 52, 0.15);
}

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

.card-body {
  padding: 30px;
}

.card-title {
  color: var(--accent-green);
  font-size: 22px;
  margin-bottom: 15px;
}

.card-text {
  color: var(--dark-text);
  line-height: 1.78;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-terracotta) 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.3);
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.btn-primary:focus {
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(250, 208, 44, 0.5);
}

/* Text Styles */
.accent-text {
  color: var(--accent-terracotta);
  font-weight: 600;
}

.accent-green {
  color: var(--accent-green);
  font-weight: 600;
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: 50px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-layout img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

section img {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Accordion (FAQ) */
.accordion {
  border: 1px solid rgba(46, 93, 52, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(46, 93, 52, 0.15);
  transition: background 0.3s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  background: #ffffff;
  color: var(--dark-text);
  font-weight: 600;
  border: none;
  padding: 20px 25px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--light-cream);
  color: var(--accent-green);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(46, 93, 52, 0.25);
  border-color: var(--accent-green);
}

.accordion-body {
  padding: 25px;
  background: var(--light-cream);
  border: none;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
}

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

.form-control {
  border: 2px solid rgba(46, 93, 52, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: 'Nunito', 'Karla', sans-serif;
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.2rem rgba(250, 208, 44, 0.25);
}

.form-disclaimer {
  background: rgba(224, 122, 95, 0.1);
  border-left: 4px solid var(--accent-terracotta);
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark-text);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--dark-text) 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: var(--spacing-lg) 40px 40px;
  margin-top: var(--spacing-lg);
  border-top: 4px solid var(--primary-gold);
}

footer .container {
  max-width: 1340px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 10px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 14px;
}

.disclaimer-footer {
  background: rgba(224, 122, 95, 0.15);
  border-top: 2px solid var(--accent-terracotta);
  padding: 30px 40px;
  margin-top: 40px;
  text-align: center;
}

.disclaimer-footer p {
  color: var(--dark-text);
  font-weight: 500;
  margin: 0;
}

/* Modal/Pop-up Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
}

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

.modal-header {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-green) 100%);
  color: #ffffff;
  padding: 30px 25px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 30px 25px;
  line-height: 1.8;
}

.modal-body h3 {
  color: var(--accent-green);
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 22px;
}

.modal-body p {
  color: var(--dark-text);
  margin-bottom: 15px;
}

.modal-body ul {
  color: var(--dark-text);
  margin-left: 20px;
  margin-bottom: 15px;
  line-height: 1.8;
}

.modal-body li {
  margin-bottom: 10px;
}

.modal-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(46, 93, 52, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Cookie Banner */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-text);
  color: #ffffff;
  padding: 25px 40px;
  z-index: 1500;
  border-top: 4px solid var(--primary-gold);
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: slideUp 0.4s ease;
}

#cookieBanner.show {
  display: flex;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept {
  background: var(--primary-gold);
  color: #333;
}

.cookie-accept:hover {
  background: #f0c920;
}

.cookie-reject {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-learn {
  background: var(--accent-terracotta);
  color: #ffffff;
}

.cookie-learn:hover {
  background: #d96947;
}

/* Seasonal Table */
.seasonal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.seasonal-table th {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-gold) 100%);
  color: #ffffff;
  padding: 20px;
  text-align: left;
  font-weight: 700;
}

.seasonal-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(46, 93, 52, 0.1);
}

.seasonal-table tr:last-child td {
  border-bottom: none;
}

.seasonal-table tr:nth-child(even) {
  background: var(--light-cream);
}

.seasonal-table tr:hover {
  background: rgba(250, 208, 44, 0.15);
  transition: background 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 60px;
    --spacing-md: 30px;
  }

  section {
    padding: 60px 20px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .navbar {
    padding: 12px 20px !important;
  }

  .hero {
    padding: 60px 20px;
    margin-top: 70px;
    min-height: 500px;
  }

  .hero-overlay {
    padding: 40px 20px;
  }

  .navbar-nav .nav-link {
    margin: 0 8px;
    font-size: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  #cookieBanner {
    flex-direction: column;
    padding: 20px;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  section {
    padding: 40px 15px;
  }

  .hero {
    padding: 40px 15px;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .navbar-brand {
    font-size: 18px;
  }

  footer {
    padding: 40px 15px 20px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: rgba(51, 51, 51, 0.7);
}

.mb-4 {
  margin-bottom: 25px;
}

.mt-4 {
  margin-top: 25px;
}

.py-4 {
  padding: 25px 0;
}
