/* ===========================
   MAISINGERHOF — style.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400;500&display=swap');

:root {
  --zielony:     #3a5a2e;
  --zielony-jas: #5a8a4a;
  --kremowy:     #f7f3ec;
  --brazowy:     #8b6914;
  --ciemny:      #1e1e1e;
  --szary:       #6b6b6b;
  --biel:        #ffffff;
  --linia:       #ddd5c5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--kremowy);
  color: var(--ciemny);
  line-height: 1.7;
}

/* ===== TYPOGRAFIA ===== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--szary); }

a { text-decoration: none; color: inherit; }

/* ===== NAWIGACJA ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--biel);
  border-bottom: 1px solid var(--linia);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--zielony);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ciemny);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--zielony); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ciemny);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--zielony);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--biel);
  padding: 2rem;
}

.hero-content h1 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== SEKCJE ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brazowy);
  margin-bottom: 0.8rem;
}

.section h2 { margin-bottom: 1.2rem; color: var(--zielony); }
.section p  { max-width: 680px; }
.section-center p { margin: 0 auto; }

/* ===== KARTA PRODUKTU ===== */
.karty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.karta {
  background: var(--biel);
  border: 1px solid var(--linia);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.karta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.karta img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.karta-body { padding: 1.5rem; }
.karta-body h3 { color: var(--zielony); margin-bottom: 0.5rem; }
.karta-body p  { font-size: 0.92rem; }

/* ===== PRZYCISK ===== */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--zielony);
  color: var(--biel);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--zielony);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--zielony);
}

.btn-outline {
  background: transparent;
  color: var(--zielony);
}
.btn-outline:hover {
  background: var(--zielony);
  color: var(--biel);
}

/* ===== DIVIDER ===== */
.divider {
  width: 48px;
  height: 2px;
  background: var(--brazowy);
  margin: 1rem auto 2rem;
}
.divider-left { margin-left: 0; }

/* ===== PASEK ZIELONY ===== */
.band {
  background: var(--zielony);
  color: var(--biel);
  padding: 4rem 2rem;
  text-align: center;
}
.band h2 { color: var(--biel); margin-bottom: 0.8rem; }
.band p   { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.band .btn {
  background: var(--biel);
  color: var(--zielony);
  border-color: var(--biel);
  margin-top: 2rem;
}
.band .btn:hover { background: transparent; color: var(--biel); }

/* ===== OPINIA ===== */
.opinia {
  background: var(--biel);
  border-left: 3px solid var(--brazowy);
  padding: 2rem 2.5rem;
  margin: 3rem auto 0;
  max-width: 700px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ciemny);
}
.opinia cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--szary);
}

/* ===== GRID 2-kol ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.grid-2 img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.grid-2.odwrocony .grid-tekst { order: -1; }

/* ===== LISTA CECH ===== */
.cechy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.cecha {
  background: var(--kremowy);
  border: 1px solid var(--linia);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zielony);
}

/* ===== INSTRUKCJA (automat) ===== */
.kroki {
  counter-reset: krok;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.krok {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.krok-num {
  counter-increment: krok;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--zielony);
  color: var(--biel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}
.krok-num::before { content: counter(krok); }
.krok-tekst h3 { color: var(--zielony); margin-bottom: 0.25rem; }

/* ===== KONTAKT ===== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.kontakt-info p { margin-bottom: 0.4rem; color: var(--ciemny); }
.kontakt-info strong { color: var(--zielony); }

.godziny {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--biel);
  border: 1px solid var(--linia);
}
.godziny h3 { color: var(--zielony); margin-bottom: 1rem; }
.godziny-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--linia);
  color: var(--ciemny);
}
.godziny-row:last-child { border-bottom: none; }

/* ===== FORMULARZ ===== */
.formularz { display: flex; flex-direction: column; gap: 1rem; }
.formularz input,
.formularz textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--linia);
  background: var(--biel);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ciemny);
  outline: none;
  transition: border-color 0.2s;
}
.formularz input:focus,
.formularz textarea:focus { border-color: var(--zielony); }
.formularz textarea { height: 140px; resize: vertical; }

/* ===== STOPKA ===== */
footer {
  background: var(--ciemny);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
footer h4 {
  font-family: 'Playfair Display', serif;
  color: var(--biel);
  margin-bottom: 1rem;
  font-size: 1rem;
}
footer p, footer a { font-size: 0.88rem; line-height: 1.9; color: rgba(255,255,255,0.65); }
footer a:hover { color: var(--biel); }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--biel); color: var(--biel); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===== PAGE HERO (podstrony) ===== */
.page-hero {
  background: var(--zielony);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: var(--biel);
}
.page-hero h1 {
  color: var(--biel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--biel);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--linia);
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2 img { height: 260px; }
  .grid-2.odwrocony .grid-tekst { order: 0; }

  .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }

  .section { padding: 3rem 1.2rem; }
}
