/* =========================================
   Szary Domek — Darłowo
   Klimat: rustykalny, w stylu Młyna Tomaryny
   Czcionki: Amatic SC (nagłówki) + Open Sans 500 (body) + Dosis (akcenty)
   Kolory: #BC8E52 (beż), #355E00 (zieleń)
   ========================================= */

:root {
  --c-accent: #BC8E52;
  --c-accent-dark: #8c6837;
  --c-green: #355E00;
  --c-green-dark: #233f00;
  --c-text: #2a2a2a;
  --c-text-soft: #555;
  --c-bg: #ffffff;
  --c-bg-soft: #faf7f2;
  --c-border: #e6dfd2;
  --max-w: 1200px;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #666;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }

/* ===== TYPOGRAFIA ===== */
h1, h2, h3, .h-hand {
  font-family: 'Amatic SC', 'Brush Script MT', cursive;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(48px, 9vw, 110px); }
h2 { font-size: clamp(40px, 6vw, 78px); }
h3 { font-size: clamp(32px, 4vw, 54px); }
.subh { font-family: 'Dosis', sans-serif; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; color: var(--c-accent); margin-bottom: 12px; }
.lead { font-size: 18px; line-height: 1.8; color: var(--c-text-soft); }
p { margin-bottom: 1em; }
p + p { margin-top: 0.4em; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-soft { background: var(--c-bg-soft); }
.text-center { text-align: center; }

/* ===== NAVBAR ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.nav-logo img {
  width: 96px; height: 96px;
  object-fit: contain;
  transition: transform .3s;
}
.nav-logo:hover img { transform: scale(1.04); }
.nav-logo strong {
  font-family: 'Amatic SC', cursive;
  font-size: 52px;
  font-weight: 700;
  color: var(--c-green);
  line-height: 1;
  letter-spacing: 0.02em;
}
.nav-menu { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-menu a {
  font-family: 'Amatic SC', cursive;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text);
  position: relative;
  padding: 6px 0;
  line-height: 1;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--c-accent); }
.nav-menu a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--c-accent);
}
.nav-cta {
  font-family: 'Amatic SC', cursive;
  letter-spacing: 0.04em;
  background: var(--c-accent);
  color: #fff !important;
  padding: 10px 26px;
  border-radius: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.nav-cta:hover { background: var(--c-green); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 28px; }

/* ===== HERO SLIDESHOW (Ken Burns + crossfade) ===== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: heroCycle 56s infinite;
  background-size: cover;
  background-position: center;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }
.hero-slide:nth-child(5) { animation-delay: 28s; }
.hero-slide:nth-child(6) { animation-delay: 35s; }
.hero-slide:nth-child(7) { animation-delay: 42s; }
.hero-slide:nth-child(8) { animation-delay: 49s; }
@keyframes heroCycle {
  0% { opacity: 0; transform: scale(1.04); }
  4% { opacity: 1; }
  12% { opacity: 1; }
  16% { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.10); }
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.55) 100%);
}
.hero-inner {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 0 24px; color: #fff;
}
.hero-inner .subh { color: #f4ddc1; letter-spacing: 0.4em; }
.hero-inner h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero-inner .lead { color: #f5ece0; font-size: 19px; margin-top: 14px; max-width: 720px; }
.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: 'Dosis', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px; font-weight: 600;
  padding: 16px 32px;
  border: 2px solid var(--c-accent);
  background: var(--c-accent);
  color: #fff;
  cursor: pointer; transition: all .25s;
  display: inline-block;
}
.btn:hover { background: transparent; color: #fff !important; border-color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--c-green) !important; border-color: #fff; }
.btn-green { background: var(--c-green); border-color: var(--c-green); }
.btn-green:hover { background: transparent; color: var(--c-green) !important; border-color: var(--c-green); }

/* ===== KARTY (oferta, usługi) ===== */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 50px;
}
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 0;
  text-align: left;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(53,94,0,0.12); }
.card-img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.card-body { padding: 28px 28px 32px; }
.card h3 { margin-bottom: 10px; font-size: clamp(28px, 3vw, 42px); }

/* ===== OPINIA / CYTAT ===== */
.quote {
  text-align: center;
  font-family: 'Amatic SC', cursive;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-green);
  max-width: 900px; margin: 0 auto;
  padding: 60px 0;
}
.quote::before { content: '„'; font-size: 1.2em; color: var(--c-accent); }
.quote::after { content: '"'; font-size: 1.2em; color: var(--c-accent); }
.quote-author {
  display: block; margin-top: 22px;
  font-family: 'Dosis', sans-serif;
  font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-accent);
}

/* ===== GALERIA ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.gallery-grid a {
  display: block; aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-preview {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 40px;
}
.gallery-preview a { display: block; aspect-ratio: 1/1; overflow: hidden; }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-preview a:hover img { transform: scale(1.08); }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
}
.lb.show { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: #fff;
  cursor: pointer; font-size: 36px; padding: 16px;
  font-family: 'Dosis', sans-serif; font-weight: 200;
}
.lb-close { top: 10px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== TWO-COL ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split p { font-size: 17px; }

/* ===== KONTAKT / WHATSAPP ===== */
.contact-box {
  background: var(--c-bg-soft);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--c-border);
}
.contact-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}
.contact-item {
  background: #fff; border: 1px solid var(--c-border);
  padding: 28px 32px; min-width: 240px;
}
.contact-item .ico { font-size: 32px; margin-bottom: 10px; }
.contact-item strong { font-family: 'Amatic SC', cursive; font-size: 26px; color: var(--c-green); display: block; margin-bottom: 4px; }
.contact-item a { color: var(--c-text); font-weight: 500; }
.btn-whatsapp { background: #25D366; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ea957; border-color: #1ea957; color: #fff !important; }

.map-wrap { margin-top: 40px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(0.15); }

.gsv-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--c-border);
  box-shadow: 0 30px 80px rgba(53,94,0,0.10);
  overflow: hidden;
}
.gsv-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .gsv-wrap { aspect-ratio: 4/3; }
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a; color: #ccc;
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: 'Amatic SC', cursive; font-size: 32px; color: var(--c-accent); margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #aaa; font-family: 'Dosis', sans-serif; font-size: 14px; letter-spacing: 0.1em; }
.footer a:hover { color: var(--c-accent); }
.footer-bottom {
  margin-top: 50px; padding-top: 24px;
  border-top: 1px solid #333;
  text-align: center; font-size: 13px; color: #777;
  font-family: 'Dosis', sans-serif; letter-spacing: 0.15em;
}

/* ===== UTILITIES ===== */
.divider {
  width: 60px; height: 3px; background: var(--c-accent);
  margin: 18px auto 24px;
}
.section-title { text-align: center; margin-bottom: 30px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 24px; gap: 18px; border-bottom: 1px solid var(--c-border); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}
