/* =========================================
   EcoViaX – Global layout & färger
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --green-dark: #2E6A31;
  --green-light: #6FBF5B;
  --green-light-hover: #5AA849;
  --text-main: #222222;
  --text-muted: #555555;
  --bg-soft: #f6fdf6;
  --border-soft: #e1f3e1;
}

/* Reset */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  color: var(--green-light-hover);
}

/* Rubriker */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: var(--green-dark);
}

.ecoviax-word {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
}

/* Wrapper */
.page-hero,
.info-section,
.contact-section,
.tracking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   FLOW ROW (NY, REN OCH RESPONSIV)
========================================= */


.flow-graphic {
    width: 100%;
    max-width: 100% !important;
    overflow-x: visible;
    padding: 0 20px;
    text-align: center;
}

.flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.flow-row::-webkit-scrollbar {
    display: none;
}

.flow-box {
    flex-shrink: 0;
    min-width: 200px;
    background: #f4faf6;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.flow-arrow {
    flex-shrink: 0;
    font-size: 36px;
    color: var(--green-dark);
    opacity: 0.8;
}



/* =========================================
   HERO
========================================= */

.hero {
  padding: 150px 20px 120px;
  text-align: center;
  background: #ffffff;
  animation: fadeIn 1.2s ease;
}

.hero-logo {
  width: 300px;
  margin: 0 auto 30px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.35rem;
  color: #444;
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

/* =========================================
   KNAPPAR
========================================= */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 34px;
  font-size: 1.05rem;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-light);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: var(--green-light-hover);
}

.btn-secondary {
  border: 2px solid var(--green-light);
  color: var(--green-light);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--green-light);
  color: #ffffff;
}

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

.link-underline {
  position: relative;
  color: var(--green-dark);
  text-decoration: none;
  padding-bottom: 4px;
  font-weight: 600;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: var(--green-dark);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.link-underline:hover::after { width: 100%; }

/* =========================================
   NAVIGATION
========================================= */

.navbar {
  width: 100%;
  background: #ffffff;
  padding: 18px 40px;
  display: flex;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo img {
  height: 46px;
  width: auto;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.menu li a {
  font-size: 16px;
  color: var(--green-dark);
  font-weight: 500;
}

.menu li a:hover {
  color: var(--green-light-hover);
}

.lang-switch a { font-weight: 600; }

#menu-toggle { display: none; }

.menu-icon { display: none; }

/* =========================================
   FOOTER
========================================= */

.footer {
  background-color: #ffffff;
  color: var(--green-dark);
  text-align: center;
  padding: 30px 20px;
  margin-top: 80px;
  font-size: 15px;
  letter-spacing: 0.4px;
  border-top: 1px solid #e6e6e6;
}

.footer p { margin: 0; }

/* =========================================
   CONTENT-SEKTIONER
========================================= */

.info-section {
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.info-section h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  transition: 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.info-box h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* Undersides hero */
.page-hero {
  text-align: center;
  margin: 80px auto 30px;
}

/* =========================================
   KONTAKT
========================================= */

.contact-section {
  max-width: 600px;
  margin: 40px auto 80px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  padding: 15px 30px;
}

.hp { display: none !important; }

/* =========================================
   TRACKING
========================================= */

.tracking-section {
  max-width: 600px;
  margin: 40px auto 80px;
  text-align: center;
}

.tracking-form input {
  width: 70%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.tracking-form button {
  margin-left: 10px;
  padding: 15px 24px;
}

/* =========================================
   RESPONSIVITET
========================================= */

@media (max-width: 992px) {
  .hero { padding: 120px 20px 80px; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.15rem; }
  .info-section { margin: 60px auto; }
}

@media (max-width: 768px) {

  .navbar { padding: 12px 16px; }

  .nav-container { position: relative; }

  .menu-icon {
    display: block;
    cursor: pointer;
    font-size: 26px;
    color: var(--green-dark);
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 16px 0;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  #menu-toggle:checked ~ .menu { display: flex; }

  .menu li a { font-size: 17px; padding: 4px 0; }

  .hero { padding: 110px 18px 60px; }

  .hero-logo { width: 220px; }

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

  .hero p { font-size: 1rem; max-width: 460px; }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .info-section { margin: 50px auto; padding: 0 16px; }

  .info-section h2 { font-size: 1.9rem; }

  .info-grid { grid-template-columns: 1fr; gap: 20px; }

  .info-box { padding: 20px; }

  .page-hero { margin: 70px auto 24px; padding: 0 16px; }

  .tracking-section {
    margin: 30px auto 60px;
    padding: 0 16px;
  }

  .tracking-form input {
    width: 100%;
    margin-bottom: 10px;
  }

  .tracking-form button {
    width: 100%;
    margin-left: 0;
  }

  .footer {
    margin-top: 60px;
    padding: 24px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.98rem; }
}

/* Margin fix */
main { margin-top: 70px; }

/* =========================================
   SCROLL REVEAL ANIMATION
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ICON STYLE
========================================= */

.info-icon {
  font-size: 42px;
  color: var(--green-dark);
  margin-bottom: 10px;
  opacity: 0.95;
}

/* =========================================
   INFOGRAPHIC / FLOW CHART
========================================= */

.flow-graphic {
  margin: 60px auto;
  max-width: 950px;
  text-align: center;
}

.flow-box {
  display: inline-block;
  background: #f4faf6;
  padding: 20px 25px;
  border-radius: 12px;
  margin: 10px;
  width: 200px;
  vertical-align: top;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.flow-arrow {
  font-size: 36px;
  color: var(--green-dark);
  margin: 0 10px;
}

/* =========================================
   TRACKING STATUS TIMELINE
========================================= */

.tracking-status {
  max-width: 600px;
  margin: 40px auto;
}

.status-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
}

.status-step:last-child { margin-bottom: 0; }

.status-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green-dark);
  background: #fff;
  flex-shrink: 0;
}

.status-line {
  position: absolute;
  left: 13px;
  top: 32px;
  width: 3px;
  height: calc(100% - 10px);
  background: var(--green-light);
  opacity: 0.3;
}

.status-content {
  margin-left: 16px;
}

.status-content h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.status-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
