:root {
  --color-primary: #6B8E23;
  --color-accent-1: #F4A460;
  --color-accent-2: #4682B4;
  --color-accent-3: #DDA0DD;
  --color-light: #f8f7f4;
  --color-dark: #2c2c2c;
  --color-white: #ffffff;
  --color-gray: #e0e0e0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  width: 40px;
  height: 40px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: var(--color-primary);
}

main {
  margin-top: 80px;
}

section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

/* Hero Section */
#hero {
  padding: 0;
  position: relative;
  height: 600px;
  background-image: url('../images/hero-nutrition.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(107, 142, 35, 0.5);
}

#hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
}

#hero h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.3rem;
  color: var(--color-white);
}

/* Razumevanje Section */
#razumevanje {
  background-color: var(--color-light);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.key-points {
  list-style: none;
  padding-left: 0;
}

.key-points li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
}

.key-points li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Makronutrijenti Section */
#nutrijenti {
  padding: 4rem 2rem;
}

.nutrijenti-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.nutrijenti-content img {
  order: 2;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nutrijenti-text {
  order: 1;
}

/* Grupe Namirnica Section */
#grupe {
  background-color: var(--color-light);
}

.namirnica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.namirnica-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.namirnica-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.namirnica-card-content {
  padding: 1.5rem;
}

.namirnica-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.namirnica-card p {
  font-size: 0.95rem;
  color: var(--color-dark);
}

/* Aspekti Section */
#aspekti {
  padding: 4rem 2rem;
}

.aspekti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.aspect-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.aspect-card:hover {
  transform: translateY(-8px);
}

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

.aspect-card-content {
  padding: 1.5rem;
  border-top: 3px solid var(--color-primary);
}

.aspect-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

/* Aktivan Zivot Section */
#aktivan_zivot {
  background-color: var(--color-light);
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.activity-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  order: 2;
}

.activity-text {
  order: 1;
}

/* Planiranje Section */
#planiranje {
  padding: 4rem 2rem;
}

.planning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.planning-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.planning-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mitovi Section */
#mitovi {
  background-color: var(--color-light);
}

.myths-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.myths-table thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.myths-table th,
.myths-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray);
}

.myths-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.myths-table tbody tr:hover {
  background-color: #f0f0f0;
}

.myths-table .myth {
  color: #c94c4c;
  font-weight: 600;
}

.myths-table .truth {
  color: var(--color-primary);
  font-weight: 600;
}

/* FAQ Section */
#faq {
  padding: 4rem 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray);
  padding-bottom: 1.5rem;
}

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

.faq-question {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  margin-top: 1rem;
  color: var(--color-dark);
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
}

/* CTA Soft Section */
#cta_soft {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%);
  color: var(--color-white);
  text-align: center;
}

#cta_soft h2 {
  color: var(--color-white);
}

#cta_soft p {
  color: var(--color-white);
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-accent-1);
  color: var(--color-white);
}

/* Kontakt Section */
#kontakt {
  background-color: var(--color-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item h4 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid var(--color-gray);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-disclaimer {
  font-size: 0.85rem;
  color: #666;
  padding: 0.8rem;
  background-color: #f9f9f9;
  border-left: 3px solid var(--color-primary);
  margin: 0.5rem 0;
  line-height: 1.6;
}

.form-button {
  padding: 0.8rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.form-button:hover {
  background-color: var(--color-accent-2);
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 2rem;
  border-top: 3px solid var(--color-primary);
}

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

.footer-section h4 {
  color: var(--color-accent-1);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: #999;
  margin-top: 1rem;
  line-height: 1.6;
}

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

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

.modal-content {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray);
  padding-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-dark);
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--color-primary);
}

.modal-body {
  color: var(--color-dark);
  line-height: 1.8;
}

.modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body ul,
.modal-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.cookie-accept {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cookie-accept:hover {
  background-color: #5a7a1d;
}

.cookie-reject {
  background-color: #666;
  color: var(--color-white);
}

.cookie-reject:hover {
  background-color: #555;
}

.cookie-learn {
  background-color: transparent;
  color: var(--color-accent-1);
  border: 1px solid var(--color-accent-1);
}

.cookie-learn:hover {
  background-color: var(--color-accent-1);
  color: var(--color-white);
}

/* Thank You Message */
.thank-you-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  text-align: center;
  max-width: 500px;
}

.thank-you-message.active {
  display: block;
}

.thank-you-message h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.thank-you-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2999;
}

.thank-you-overlay.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  main {
    margin-top: 70px;
  }

  section {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  #hero {
    height: 400px;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .content-grid,
  .nutrijenti-content,
  .activity-grid,
  .planning-grid {
    grid-template-columns: 1fr;
  }

  .nutrijenti-content img,
  .activity-grid img {
    order: 1;
  }

  .nutrijenti-text,
  .activity-text {
    order: 2;
  }

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

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }

  .myths-table th,
  .myths-table td {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .modal-content {
    width: 95%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar-nav {
    gap: 0.5rem;
  }

  .navbar-nav a {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  #hero {
    height: 300px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  .namirnica-grid,
  .aspekti-grid {
    grid-template-columns: 1fr;
  }

  .myths-table {
    font-size: 0.85rem;
  }

  .myths-table th,
  .myths-table td {
    padding: 0.6rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
