/* Ranczo Kozanów — main stylesheet */

:root {
  --cream: #f6ecd9;
  --cream-card: #fdf7e9;
  --cream-alt: #efe2c4;
  --ink: #3b2716;
  --brown-dark: #4a2f1a;
  --brown-mid: #6e4826;
  --brown-footer: #3b2716;
  --gold: #c9a468;
  --green: #6b8f3d;
  --green-dark: #4d6b2a;
  --green-darker: #5c7c33;
  --text-muted: #7a5a38;
  --text-muted-2: #8a6a45;
  --cream-text: #e9d6ae;
  --cream-text-2: #f0dfbe;
  --cream-text-3: #f4e6c6;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.5;
}

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

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

.h-font {
  font-family: 'Alfa Slab One', Georgia, serif;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'Alfa Slab One', Georgia, serif;
  color: var(--green);
  font-size: 14px;
  letter-spacing: 3px;
  display: inline-block;
}
.eyebrow.on-dark { color: #a8c473; }

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 34px);
  margin: 0;
  color: var(--brown-dark);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green);
  color: #f6f2e4;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brown-dark);
  box-shadow: 0 2px 10px rgba(59, 39, 22, 0.35);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 24px;
}
.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.nav-brand {
  font-family: 'Alfa Slab One', Georgia, serif;
  font-size: 19px;
  color: var(--cream-text-2);
  letter-spacing: 1px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  color: #e8d5ac;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.nav-call {
  margin-left: 12px;
  background: var(--green);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.nav-call:hover { background: var(--green-darker); }

@media (max-width: 760px) {
  .nav-brand { display: none; }
  .nav-inner { gap: 14px; padding: 10px 14px; }
  .nav-links { gap: 14px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-call { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 24px 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #5a3a20 0%, #6e4826 55%, #7d5530 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 65%;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #5a3a20 0%, #6e4826 55%, #7d5530 100%);
  opacity: 0.72;
  pointer-events: none;
}
.hero h1, .hero-tagline, .hero p.lede {
  text-shadow: 0 2px 4px rgba(15, 8, 3, 0.55), 0 6px 18px rgba(15, 8, 3, 0.5);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-logo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(30, 18, 8, 0.55), 0 0 0 6px rgba(201, 164, 104, 0.5);
}
.hero h1 {
  font-size: clamp(32px, 6vw, 44px);
  color: var(--cream-text-3);
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 3px 8px rgba(30, 18, 8, 0.4);
}
.hero-tagline {
  font-size: 17px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: -12px 0 0;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream-text);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(30, 18, 8, 0.35);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: #f6f2e4 !important;
}
.btn-primary:hover { background: var(--green-darker); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--cream-text-2) !important;
  border-color: var(--gold);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(201, 164, 104, 0.15); color: #fff !important; }

.hero-ig {
  font-size: 14px;
  color: var(--cream-text);
}
.hero-ig a { color: var(--cream-text-3); font-weight: 700; }
.hero-ig a:hover { color: #fff; }

/* ---------- O nas ---------- */
.onas {
  padding: 72px 24px 56px;
}
.onas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.onas-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.onas-text h2 { font-size: clamp(26px, 4vw, 34px); margin: 0; color: var(--brown-dark); }
.onas-text p { font-size: 17px; line-height: 1.7; margin: 0; text-wrap: pretty; }

.feature-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 220px;
}
.feature-icon {
  font-size: 26px;
  line-height: 1;
}
.feature-item strong {
  display: block;
  font-size: 15px;
  color: var(--brown-mid);
}
.feature-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.onas-photo {
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 10px 30px rgba(90, 58, 32, 0.25);
}
.onas-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

@media (max-width: 760px) {
  .onas-grid { grid-template-columns: 1fr; }
  .onas-photo { height: 280px; order: -1; }
}

/* ---------- Dojazd ---------- */
.dojazd {
  position: relative;
  padding: 64px 24px;
  overflow: hidden;
  isolation: isolate;
}
.dojazd-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/dojazd-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: -2;
}
.dojazd-bg::after { content: ''; }
.dojazd::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,22,11,0.88), rgba(74,47,26,0.92));
  z-index: -1;
}
.dojazd-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}
.dojazd-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dojazd-text h2 { font-size: clamp(26px, 4vw, 34px); margin: 0; color: var(--cream-text-3); }
.dojazd-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--cream-text);
  font-size: 16px;
  line-height: 1.6;
}
.dojazd-row {
  display: flex;
  gap: 12px;
}
.dojazd-row strong {
  color: var(--gold);
  min-width: 86px;
  flex-shrink: 0;
}
.dojazd-note {
  background: rgba(201, 164, 104, 0.12);
  border: 1px solid rgba(201, 164, 104, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--cream-text-2);
}
.dojazd-routecard {
  margin: 4px 0 0;
  width: 132px;
  background: #fff;
  padding: 6px 6px 9px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 8, 3, 0.4);
}
.dojazd-routecard img {
  border-radius: 4px;
  width: 100%;
  height: auto;
  display: block;
}
.lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(20, 12, 5, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-trigger:hover .zoom-hint,
.lightbox-trigger:focus-visible .zoom-hint {
  background: rgba(107, 143, 61, 0.92);
  transform: translateX(-50%) translateY(-2px);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 9, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

.dojazd-map {
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 12, 5, 0.5);
}
.dojazd-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 760px) {
  .dojazd-grid { grid-template-columns: 1fr; }
  .dojazd-map { height: 280px; }
}

/* ---------- Menu ---------- */
.menu-section { padding: 72px 24px 56px; }
.menu-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.menu-card {
  background: var(--cream-card);
  border: 1px solid #e3d2ac;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(90, 58, 32, 0.10);
}
.menu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.menu-card-body { padding: 20px 22px 24px; }
.menu-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--brown-mid);
}
.menu-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #5c4128; }

.menu-highlight {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.menu-highlight span {
  background: var(--cream-alt);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brown-mid);
}
.menu-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted-2);
  margin: 24px 0 0;
  font-style: italic;
}

@media (max-width: 640px) {
  .menu-cards { grid-template-columns: 1fr; }
}

/* ---------- Oferta ---------- */
.oferta { background: var(--cream-alt); padding: 64px 24px; }
.oferta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.oferta-card {
  background: var(--cream-card);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(90, 58, 32, 0.10);
}
.oferta-badge {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.oferta-card h3 { font-size: 19px; margin: 0 0 8px; color: var(--brown-dark); }
.oferta-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #5c4128; text-wrap: pretty; }

@media (max-width: 640px) {
  .oferta-grid { grid-template-columns: 1fr; }
}

/* ---------- Galeria ---------- */
.galeria { padding: 72px 24px 64px; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}
.gal-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(20,12,5,0.75), rgba(20,12,5,0));
}
.gal-span-2row { grid-row: span 2; }
.gal-span-2col { grid-column: span 2; }

@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gal-span-2col { grid-column: span 2; }
}
@media (max-width: 460px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-span-2row, .gal-span-2col { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-footer);
  color: #d8c294;
  padding: 48px 24px 28px;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.footer-logo { width: 60px; height: 60px; border-radius: 50%; opacity: 0.92; }
.footer-brand { font-size: 18px; color: var(--cream-text-2); }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 15px;
}
.footer-links a { color: #d8c294; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #9a805a; margin-top: 8px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 1px;
  background: var(--gold);
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: #fff !important;
}
.mobile-cta .call { background: var(--green); }
.mobile-cta .ig { background: var(--brown-dark); }

@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 52px; }
}
