:root{
/* colors */
--gray10: hsl(0, 0%, 10%);
--gray90: hsl(0 0% 90%);
--vihreä: #00965d;

/* landing page */
--ff: "Inter", sans-serif;
--h1: bold 4rem/1em var(--ff);
--h2: bold 3rem/1.2em var(--ff);
--h3: bold 2.25rem/1.2em var(--ff);
--h4: bold 1.5rem/1.6em var(--ff);
--big: 1.25rem/1.6em var(--ff);
--p: 1rem/1.6em var(--ff);
--small: .75rem/2em var(--ff);

/* UIs */
--h1ui: bold 3rem/1.2em var(--ff);
--h2ui: bold 2.25rem/1.2em var(--ff);
--h3ui: bold 1.5rem/1.2em var(--ff);
--h4ui: bold 1.12rem/1.6em var(--ff);
--bigui: 1rem/1.6em var(--ff);
--pui: .8rem/1.6em var(--ff);
--smallui: .75rem/1.8em var(--ff);
}


/* landing page */
h1{font: var(--h1);}
h2{font: var(--h2);}
h3{font: var(--h3);}
h4{font: var(--h4);}
.big{font: var(--big);}
p{font: var(--p);}
.small{font: var(--small);}


/* UIs */
.ui h1{font: var(--h1ui);}
.ui h2{font: var(--h2ui);}
.ui h3{font: var(--h3ui);}
.ui h4{font: var(--h4ui);}
.ui .big{font: var(--bigui);}
.ui p{font: var(--pui);}
.ui .small{font: var(--smallui);}
.ts{color: var(--gray70); }
h1,h2,h3,h4,.big,p,.small{margin: 0; margin-top: 2rem;}
.ui{margin-top: 4rem;}


* {
    margin: 0;
    padding: 0;
    font-family: var(--ff);
}
.hero {
  height: 50vh;
  background-image: url("kuvat/tässsä.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  font-family: var(--ff);
  display: flex;
  align-items: flex-start; /* ylhäältä */
}
.hero-content {
    display: flex;
    width: 100%;
    justify-content: center;
    align-self: center;
}
.nav-buttons {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  gap: 28px;
  z-index: 10;
}

.nav-buttons a {
  width: 111px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.nav-buttons a:hover {
  background-color: #007a4b;
}
.logo {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 380px;
  height: auto;
  z-index: 10;
}
.hamburger {
  display: none;
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 20;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Fullscreen mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu .close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-nav a {
  width: 100%;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .nav-buttons {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
.about {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    text-align: center;
    background-color: var(--gray90);
    height: 50vh;
}
.about h2 {
    color: var(--vihreä);
}
.about p {
    font: var(--big);
}
.kategoria-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 2.5rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #00965d;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn.active {
  background-color: #00794a;
}
.tuotteet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 8vw;
  justify-items: center;
  align-items: stretch;
}

.tuotekortti {
  width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tuotekortti img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

.tuotekuvaus {
  margin-top: 0.75rem;
}

.maku {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

.kortti-viiva {
  border: none;
  border-top: 1px solid #ccc;
  width: 60%;
  margin: 0.4rem auto;
}

.tyyppi {
  font: var(--bigui);
  margin: 0.25rem 0 2rem;
}
.tuotekortti * {
    max-width: 100%;
    box-sizing: border-box;
}

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  z-index: 999;
}

.modal-container {
  background: white;
  max-width: 1000px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.modal-header {
  background-color: #f5f5f5;
  padding: 1rem 2rem;
  font-weight: bold;
}

.modal-header .close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

.modal-image {
  flex: 1 1 300px;
}

.modal-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-info {
  flex: 1 1 300px;
}

.modal-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.modal-pricing .price-row {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  padding: 0.5rem 0;
}

.modal-pricing hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.5rem 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}