/* MetabolicGuideGR - Main Stylesheet */

:root {
  --color-primary: #5E8F6D;
  --color-white: #FFFFFF;
  --color-light-bg: #F8FAF7;
  --color-gray-light: #E8EBE8;
  --color-gray-medium: #B8BFB8;
  --color-gray-dark: #6B7370;
  --color-text: #2C3E36;
  --color-border: #D4DACC;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 1rem 0;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-top: 0;
  color: var(--color-primary);
}

h2 {
  font-size: 2.25rem;
  line-height: 1.3;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Main Content */
main {
  margin-top: 80px;
  min-height: 100vh;
}

.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-light {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-bg) 100%);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  margin-top: -80px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-metabolism.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.hero-content {
  max-width: 800px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.two-col img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(94, 143, 109, 0.1);
  transition: transform 0.3s ease;
}

.two-col img:hover {
  transform: translateY(-2px);
}

.two-col.reverse {
  grid-template-columns: 1fr 1fr;
}

.two-col.reverse img {
  order: 2;
}

.two-col.reverse .content {
  order: 1;
}

/* Content */
.content {
  padding: 1.5rem 0;
}

.content ul, .content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Cards & FAQ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--color-light-bg);
  padding: 2rem;
  border-radius: 2px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(94, 143, 109, 0.15);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.faq {
  margin: 2rem 0;
  border-top: 1px solid var(--color-border);
}

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

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

.faq-question:hover {
  color: var(--color-text);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-light);
  color: var(--color-gray-dark);
  line-height: 1.8;
}

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

/* Disclaimer */
.disclaimer {
  background: linear-gradient(135deg, var(--color-light-bg) 0%, rgba(94, 143, 109, 0.05) 100%);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 2px;
  font-size: 0.95rem;
  color: var(--color-gray-dark);
}

.disclaimer-title {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: var(--color-text);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--color-light-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-gray-light);
  text-decoration: none;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(94, 143, 109, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

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

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

.footer-section h3 {
  color: var(--color-white);
  margin-top: 0;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--color-gray-light);
  transition: color 0.3s ease;
}

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

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

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

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

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

.cookie-text {
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--color-primary);
}

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

.cookie-banner button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

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

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

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

.cookie-reject:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

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

  .nav-links {
    gap: 1.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo img {
    height: 32px;
    width: 32px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .two-col.reverse {
    grid-template-columns: 1fr;
  }

  .two-col.reverse img {
    order: 1;
  }

  .two-col.reverse .content {
    order: 2;
  }

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

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

  .cookie-actions {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1;
  }
}

@media (max-width: 576px) {
  main {
    margin-top: 70px;
  }

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

  .section {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    height: 70vh;
  }

  .hero-content {
    padding: 1.5rem;
  }

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

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
