/* ===== Reset & perus ===== */
:root {
  --header-height: 110px;
  --brown-dark: #4a3a2a;
  --brown-mid: #6b5643;
  --brown-light: #8d7b68;
  --cream-bg: #f9f6f2;
  --card-bg: #ffffff;
  --text-dark: #2b2118;
  --nav-pill-bg: rgba(255, 255, 255, 0.96);
  --nav-text: #111;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== Header ===== */
.new-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: linear-gradient(90deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  color: #fff;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-wrap {
  text-align: center;
  flex: 1 1 100%;
}

.brand {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  letter-spacing: 1.6px;
  color: #fffaf5;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tag {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  color: rgba(255, 250, 240, 0.9);
}

/* ===== Navigaatio ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 10px;
}

.main-nav {
  flex: 1 1 100%;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--nav-pill-bg);
  color: var(--nav-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s;
}

.main-nav a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  color: #000;
}

.main-nav a.cta {
  border: 2px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #ffffff, #f5f0ea);
  color: #3c2d1f;
  font-weight: 700;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f9f6f2 0%, #f3ede8 100%);
}

.hero-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--brown-dark);
}

.hero-text p {
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

/* ===== Company section ===== */
.company-section {
  padding: 3rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.company-section h2 {
  text-align: center;
  color: var(--brown-dark);
  font-family: "Playfair Display", serif;
  margin-bottom: 1.5rem;
}

.company-story p {
  margin-bottom: 1rem;
}

.company-story .quote {
  font-style: italic;
  color: var(--brown-mid);
  text-align: center;
  margin-top: 1.5rem;
}

/* ===== Säilötemaut ===== */
.flavor-wrapper {
  background: #faf8f6;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
}

.flavor-wrapper h2 {
  color: var(--brown-dark);
  margin-bottom: 1rem;
}

.flavor-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.flavor-box {
  background: var(--card-bg);
  border: 2px solid #e5ddd3;
  border-radius: 14px;
  padding: 1.2rem;
  max-width: 280px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flavor-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.pdf-link-wrapper {
  margin-top: 1.5rem;
}

.pdf-link {
  color: var(--brown-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--brown-light);
}

.pdf-link:hover {
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}

/* ===== Some section ===== */
.some-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f3ede8;
}

.some-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.some-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5ddd3;
  color: var(--brown-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.some-button img {
  width: 20px;
  height: 20px;
}

.some-button:hover {
  background: #ece5dd;
  transform: translateY(-2px);
}

/* ===== Galleria ===== */
/* ===== Galleria (uusi) ===== */
.gallery-section {
  padding: 4rem 1rem;
  background: #f5f2ef; /* neutraali lämmin tausta */
  text-align: center;
}

.gallery-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #4a3a2a;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Kuvien ruudukko */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* Lightbox (säilyy ennallaan) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  animation: fade-in 0.3s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* Kevyt fade-in animaatio */
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Partners ===== */
.partners-modern {
  padding: 3rem 1.5rem;
  background: #faf8f6;
  text-align: center;
}

.partners-modern h2 {
  text-align: center;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Partner Cards ===== */
.partner-card {
  background: #faf9f7;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

.partner-card img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.4s ease;
}

.partner-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: #3b2c1f;
  margin-bottom: 0.5rem;
}

.partner-card p {
  color: #6a5c4f;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Hover-efekti ===== */
.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  background: #fff;
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.partner-card:hover h3 {
  color: #2b1f15;
  transition: color 0.3s ease;
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--cream-bg);
}

.contact-info a {
  color: var(--brown-mid);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  color: var(--brown-dark);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--brown-dark);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #e8dccf;
}

/* ===== Responsiivisuus ===== */
@media (max-width: 880px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 14px;
  }

  .header-inner {
    padding: 1rem;
  }

  .brand {
    font-size: 2rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.6rem;
    padding: 12px 6px 18px;
  }

  .main-nav a {
    width: calc(100% - 24px);
    margin: 0 auto;
    text-align: center;
  }

  body {
    padding-top: calc(var(--header-height) + 20px);
  }
}

/* ===== Kahviteemainen hero-banneri (animoitu) ===== */
.coffee-hero {
  position: relative;
  width: 100%;
  height: 75vh;
  background: url('p15.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  animation: zoom-bg 18s ease-in-out infinite alternate;
}


.coffee-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.65)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.coffee-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tekstialue */
.coffee-content {
  position: relative;
  text-align: center;
  padding: 3rem 5rem;
  color: #fff;               /* VALKOINEN TEKSTI */
  z-index: 1;
}

/* Sumuinen halo taakse */
.coffee-content::before {
  content: "";
  position: absolute;
  inset: -40px;              /* levittyy tekstin ympärille */
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Hover tuo esiin halon */
.coffee-content:hover::before {
  opacity: 1;
}

/* Fonttikoot (halutessasi säädä) */
.coffee-content h2 {
  font-size: 3.5rem;
  letter-spacing: 3px;
}

.coffee-content p {
  font-size: 1.8rem;
  margin-top: 0.5rem;
}


/* ===== Animaatiot ===== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoom-bg {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.fade-in {
  animation: fade-in 2.2s ease forwards;
}

@media (max-width: 700px) {
  .coffee-hero { height: 55vh; }
  .coffee-content h2 { font-size: 2rem; }
  .coffee-content p { font-size: 1rem; }
}

.coffee-hero {
  transition: transform 3s ease;
}

.coffee-hero:hover {
  transform: scale(1.03);
}

.coffee-hero:hover .coffee-overlay {
  background: rgba(30, 22, 15, 0.55);
  transition: background 0.8s ease;
}

.coffee-hero:hover .coffee-content h2,
.coffee-hero:hover .coffee-content p {
  color: #fffefc;
  transform: translateY(-4px);
  transition: transform 0.4s ease, color 0.4s ease;
}

.brand {
  position: relative;
  overflow: hidden;
}

.brand::before {
   content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
}

.brand:hover::before {
  animation: shine 1.2s ease;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.flavor-image {
  position: relative;
}

.flavor-image img {
  width: 340px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.flavor-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.logo-container {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.25);   /* tummahko normaalisti */
  border-radius: 50%;
  padding: 14px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: 
    background 0.3s ease,
    box-shadow 0.3s ease;
    cursor: pointer;
  text-decoration: none
}

/* Logo */
.logo-container img {
  height: 70px;
  width: auto;
  display: block;
}

/* HOVER: vaalea tausta + ympärystö */
.logo-container:hover {
  background: rgba(255, 255, 255, 0.9); /* vaalentuu */
  box-shadow: 
    0 0 0 6px rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(0,0,0,0.25);
}

html {
  scroll-behavior: smooth;
}





