/* 
* Tavronelia Shop - Detox utan fanatism
* Huvudstilmall
*/

/* Grundläggande nollställning */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typografi */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Cabin:wght@400;500;600&display=swap');

:root {
  /* Färger */
  --green-main: #A3C293;
  --green-light: #EAF4EA;
  --text-dark: #545E56;
  --white-warm: #FFF9F0;
  --accent: #8FC0A9;
  --shadow: rgba(0, 0, 0, 0.05);
  --overlay: rgba(84, 94, 86, 0.7);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--green-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(143, 192, 169, 0.2);
}

.btn:hover {
  background-color: #7ba892;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(143, 192, 169, 0.3);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: white;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style-type: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
  top: 9px;
}

.hamburger span:nth-child(4) {
  top: 18px;
}

.hamburger.open span:nth-child(1) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.hamburger.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
  top: 9px;
  width: 0%;
  left: 50%;
}

/* Hero-sektion */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 100px;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-animation {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: url('images/bg.jpg');
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(10px); }
  100% { transform: translateY(-50%) translateX(0); }
}

/* Fördelar-sektion */
.benefits {
  background: linear-gradient(135deg, var(--green-light), #d7e9d7);
  border-radius: 0 0 100px 0;
  overflow: hidden;
}

.benefits h2 {
  text-align: center;
  margin-bottom: 60px;
}

.benefits h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.benefit-card {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.benefit-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Hur fungerar det? */
.how-it-works {
  background-color: var(--white-warm);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/how.jpg');
  background-size: cover;
  opacity: 0.05;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 4px;
  background: var(--green-main);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 30%;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(143, 192, 169, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Produkter */
.products {
  background-color: white;
  position: relative;
}

.products h2 {
  text-align: center;
  margin-bottom: 20px;
}

.products h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.product-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  margin: 0 5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
  width: 80%;
}

.filter-btn.active {
  color: var(--accent);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: 20px;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: rgba(84, 94, 86, 0.8);
}

.product-card .btn {
  width: 100%;
  padding: 10px;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: var(--overlay);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Recensioner */
.reviews {
  background-color: var(--green-light);
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/rew.jpg');
  background-size: cover;
  opacity: 0.2;
}

.reviews h2 {
  text-align: center;
  margin-bottom: 60px;
}

.reviews h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.reviews-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.review {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  margin: 20px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.review.visible {
  opacity: 1;
  transform: translateX(0);
}

.review-quote {
  font-size: 1.6rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  line-height: 1.4;
  margin-bottom: 30px;
  position: relative;
  padding-left: 30px;
}

.review-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
}

.review-author {
  display: flex;
  align-items: center;
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.review-meta h4 {
  margin-bottom: 5px;
}

.review-location {
  font-size: 0.9rem;
  color: rgba(84, 94, 86, 0.7);
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--green-main);
  margin: 0 5px;
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  opacity: 1;
}

/* Prenumeration */
.subscription {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/subs.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 100px 0;
}

.subscription h2 {
  margin-bottom: 20px;
}

.subscription h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.subscription p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.subscription-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
}

.subscription-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--green-light);
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.subscription-input:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
  text-align: left;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
}

/* Om oss */
.about {
  background-color: white;
  position: relative;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
}

.about h2 {
  margin-bottom: 30px;
}

.about-text {
  margin-bottom: 30px;
}

/* Kontakt */
.contact {
  background-color: var(--green-light);
  position: relative;
}

.contact h2 {
  text-align: center;
  margin-bottom: 50px;
}

.contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--green-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.input-field {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-item {
  margin-bottom: 30px;
}

.info-item h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.info-item h3 i {
  margin-right: 10px;
  color: var(--accent);
}

.info-item p {
  margin-bottom: 10px;
}

.map {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.payment-methods {
  display: flex;
  margin-top: 20px;
}

.payment-icon {
  height: 30px;
  margin-right: 15px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.payment-icon:hover {
  opacity: 1;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 35px;
  margin-bottom: 20px;
}

.footer-about p {
  opacity: 0.8;
  max-width: 400px;
}

.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-menu {
  list-style-type: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-menu a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s ease;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text {
  flex: 1;
  padding-right: 30px;
}

.cookie-text h3 {
  margin-bottom: 10px;
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(143, 192, 169, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--text-dark);
}

/* Responsive styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-animation {
    width: 300px;
    height: 300px;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image, .about-content {
    flex: none;
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-menu li {
    margin: 20px 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hero-animation {
    display: none;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .steps::before {
    left: 50%;
    top: 50px;
    bottom: 50px;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
  }
  
  .step {
    width: 100%;
    margin-bottom: 50px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .benefit-card {
    padding: 20px;
  }
  
  .review {
    padding: 30px 20px;
  }
  
  .review-quote {
    font-size: 1.3rem;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}