/* 
 * Zenvatrixo - Nutrition för aktiva människor
 * styles.css
 */

/* ======== GRUNDLÄGGANDE STILAR ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #65C18C;
  --primary-dark: #4ba36f;
  --secondary: #FFD56B;
  --secondary-dark: #e6bb55;
  --dark: #333333;
  --light: #FFFFFF;
  --gray-light: #f5f5f5;
  --gray: #e0e0e0;
  --gray-dark: #9e9e9e;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--light);
}

section {
  padding: 80px 0;
}

/* ======== HEADER & NAVIGATION ======== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header-scrolled {
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 180px;
  height: auto;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 32px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px;
  transition: var(--transition);
}

/* ======== HERO SECTION ======== */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--light);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 70%;
}

/* ======== WHY IT MATTERS ======== */
.why-matters {
  background-color: var(--gray-light);
  position: relative;
  overflow: hidden;
}

.why-matters::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
}

.why-matters h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: rgba(101, 193, 140, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--primary);
}

.benefit-card h3 {
  margin-bottom: 10px;
  font-weight: 600;
}

/* ======== FÖRE TRÄNING ======== */
.before-training {
  background-color: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.training-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray);
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.timeline-table th, .timeline-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--gray);
}

.timeline-table th {
  font-weight: 600;
  background-color: rgba(101, 193, 140, 0.1);
}

.energy-graph {
  background-color: var(--gray-light);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
}

.energy-graph h3 {
  margin-bottom: 20px;
}

.graph-container {
  max-width: 600px;
  margin: 0 auto;
}

/* ======== EFTER TRÄNING ======== */
.after-training {
  background-color: #f8f9fa;
  position: relative;
}

.after-training::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: linear-gradient(45deg, var(--primary) 25%, transparent 25%), 
                    linear-gradient(-45deg, var(--primary) 25%, transparent 25%);
  background-size: 20px 20px;
  opacity: 0.1;
}

.recovery-formula {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.recovery-formula h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.formula-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.formula-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--border-radius);
  background-color: rgba(101, 193, 140, 0.1);
  flex: 1;
}

.plus-sign, .equals-sign {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.food-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.food-card:hover {
  transform: translateY(-5px);
}

.food-img {
  height: 200px;
  overflow: hidden;
}

.food-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.food-card:hover .food-img img {
  transform: scale(1.05);
}

.food-info {
  padding: 20px;
}

.food-info h3 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.food-emoji {
  margin-right: 10px;
  font-size: 1.5rem;
}

/* ======== PRODUKTER & PLANER ======== */
.products {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary);
}

.premium-plan::before {
  background-color: var(--secondary);
}

.plan-card:hover {
  transform: translateY(-10px);
}

.plan-name {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.premium-plan .plan-price {
  color: var(--secondary-dark);
}

.plan-features {
  margin-bottom: 30px;
  list-style: none;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
}

.plan-features li:last-child {
  border-bottom: none;
}

/* ======== EXPERT ADVICE ======== */
.experts {
  background-color: var(--light);
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.expert-card {
  position: relative;
}

.expert-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--primary);
}

.quote-mark {
  font-size: 5rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.expert-quote {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.expert-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.expert-title {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

/* ======== TESTIMONIALS ======== */
.testimonials {
  background-color: var(--gray-light);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  padding: 40px;
  background-color: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 0 20px;
  text-align: center;
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content::before, .testimonial-content::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background-color: var(--gray);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--primary);
}

/* ======== SUBSCRIPTION CTA ======== */
.subscription {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--light);
  text-align: center;
}

.subscription-content {
  max-width: 600px;
  margin: 0 auto;
}

.subscription h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.subscription p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.subscription-form {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.subscription-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.subscription-form button {
  padding: 12px 20px;
  background-color: var(--dark);
  color: var(--light);
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.subscription-form button:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

/* ======== CONTACT & MAP ======== */
.contact {
  background-color: var(--light);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.contact-form {
  padding: 40px;
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* ======== FOOTER ======== */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--gray);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ======== ANIMATIONS ======== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ======== POLICY PAGES ======== */
.policy-page {
  padding: 120px 0 60px;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--light);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.policy-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.policy-content p, .policy-content ul {
  margin-bottom: 20px;
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

/* ======== SUCCESS PAGE ======== */
.success-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--gray-light);
}

.success-content {
  max-width: 600px;
  padding: 60px;
  background-color: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background-color: rgba(101, 193, 140, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
}

/* ======== RESPONSIVE STYLES ======== */
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .contact-grid, .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
  }
  
  .burger {
    display: block;
    z-index: 1001;
  }
  
  .burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.active div:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .subscription-form {
    flex-direction: column;
  }
  
  .subscription-form input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }
  
  .subscription-form button {
    border-radius: var(--border-radius);
  }
}

@media (max-width: 576px) {
  .formula-graphic {
    flex-direction: column;
  }
  
  .plus-sign, .equals-sign {
    margin: 10px 0;
  }
  
  .training-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray);
  }
  
  .tab-btn:last-child {
    border-bottom: none;
  }
  
  .tab-btn::after {
    display: none;
  }
  
  .tab-btn.active {
    background-color: rgba(101, 193, 140, 0.1);
  }
}