/* ============================================================
   glowna.css – Strona główna RESTO Paleto Bay
   ============================================================
   1.  Zmienne & reset
   2.  Typografia & elementy bazowe
   3.  Nawigacja
   4.  Hero
   5.  Sekcje – wspólne
   6.  Menu restauracji (zakładki + pozycje)
   7.  Kontakt & Numery
   8.  Album zdjęć & lightbox
   9.  Footer
   10. Animacje & reveal
   11. Responsywność
   ============================================================ */


/* ────────────────────────────────────────────
   1. ZMIENNE & RESET
──────────────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --black2:      #141414;
  --black3:      #1e1e1e;
  --white:       #ffffff;
  --off-white:   #f4f4f2;
  --gray-light:  #e8e8e8;
  --gray-mid:    #aaaaaa;
  --gray-dark:   #555555;
  --border:      #e0e0e0;
  --border-dark: #2a2a2a;
  --transition:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:      12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }


/* ────────────────────────────────────────────
   2. TYPOGRAFIA & ELEMENTY BAZOWE
──────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-dark);
  margin-bottom: 12px;
}

.eyebrow-light { color: rgba(255,255,255,0.45); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
}

.section-title.light { color: var(--white); }

.section-desc {
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.7;
  max-width: 480px;
}

.section-desc.light { color: rgba(255,255,255,0.55); }

.section-header {
  margin-bottom: 52px;
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-ghost-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background: var(--black2);
  transform: translateY(-1px);
}


/* ────────────────────────────────────────────
   3. NAWIGACJA
──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity var(--transition);
}

/* w hero (ciemne tło) logo jest widoczne, po scrollu się adaptuje */
.nav-logo-text { display: flex; flex-direction: column; }

.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.1;
  transition: color var(--transition);
}

.nav-logo-place {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.nav.scrolled .nav-logo-name  { color: var(--black); }
.nav.scrolled .nav-logo-place { color: var(--gray-mid); }

/* linki */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

.nav.scrolled .nav-links a        { color: var(--gray-dark); }
.nav.scrolled .nav-links a:hover  { color: var(--black); }

/* CTA kariera */
.nav-link-cta {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  padding: 7px 16px !important;
  border-radius: 50px !important;
  color: var(--white) !important;
  font-size: 13px !important;
  transition: all var(--transition) !important;
}

.nav-link-cta:hover {
  background: rgba(255,255,255,0.2) !important;
}

.nav.scrolled .nav-link-cta {
  background: var(--black) !important;
  border-color: var(--black) !important;
  color: var(--white) !important;
}

/* panel link */
.nav-link-panel {
  font-size: 12px !important;
  color: rgba(255,255,255,0.4) !important;
}

.nav.scrolled .nav-link-panel { color: var(--gray-mid) !important; }

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--transition);
}

.nav.scrolled .nav-hamburger span { background: var(--black); }

/* mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 48px 20px;
  gap: 4px;
}

.nav-mobile a {
  font-size: 15px;
  color: var(--black);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }


/* ────────────────────────────────────────────
   4. HERO
──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

/* tło – można podmienić .hero-media na img/video */
.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, #1a1a1a 0%, var(--black) 70%);
}

/* tekstura ziarna */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.2) 60%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  animation: heroReveal 1s ease both 0.2s;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; font-weight: 400; }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  color: rgba(255,255,255,0.55);
  margin-bottom: 44px;
  max-width: 420px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ────────────────────────────────────────────
   5. SEKCJE – WSPÓLNE
──────────────────────────────────────────── */
.section { padding: 100px 0; }

.menu-section    { background: var(--off-white); }
.contact-section { background: var(--black); }
.album-section   { background: var(--white); }


/* ────────────────────────────────────────────
   6. MENU RESTAURACJI
──────────────────────────────────────────── */

/* zakładki */
.menu-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.tab {
  background: none;
  border: none;
  padding: 12px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

.tab:hover { color: var(--black); }

.tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* grid pozycji */
.menu-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.menu-grid.active { display: grid; }

/* pojedyncza pozycja */
.menu-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.menu-item:nth-child(odd)  { padding-right: 40px; }
.menu-item:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--border); }

.menu-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.menu-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.menu-item-dots {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--gray-mid) 0px,
    var(--gray-mid) 2px,
    transparent 2px,
    transparent 6px
  );
  margin: 0 4px;
  margin-bottom: 3px;
}

.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.55;
}


/* ────────────────────────────────────────────
   7. KONTAKT & NUMERY
──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* karty kontaktowe */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: background var(--transition), border-color var(--transition);
}

.contact-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.contact-card-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.contact-card-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.contact-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-card-number {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: block;
}

.contact-card-number:hover { color: var(--white); }

/* prawa kolumna */
.contact-right {
  padding-top: 52px;
}

.info-block {
  margin-bottom: 36px;
}

.info-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}

.hours-list { display: flex; flex-direction: column; gap: 8px; }

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hours-row.highlight { color: rgba(255,255,255,0.85); font-weight: 500; }

.address-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.info-email {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-email:hover { color: var(--white); }

/* baner rekrutacja */
.recruitment-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.recruitment-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.rec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-dark);
  display: block;
  margin-bottom: 4px;
}

.rec-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.rec-icon { font-size: 26px; }


/* ────────────────────────────────────────────
   8. ALBUM ZDJĘĆ & LIGHTBOX
──────────────────────────────────────────── */

/* siatka zdjęć */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3px;
  min-height: 200px;
  padding: 0 3px;
}

/* placeholder gdy brak zdjęć */
.album-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--gray-mid);
  font-size: 14px;
  margin: 0 45px;
}

.ph-icon { font-size: 40px; opacity: 0.4; }

/* kafelek zdjęcia */
.album-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-light);
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-tile:hover img { transform: scale(1.04); }

.album-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-tile:hover .album-tile-overlay { background: rgba(0,0,0,0.2); }

.tile-zoom {
  font-size: 22px;
  opacity: 0;
  transform: scale(0.7);
  transition: all var(--transition);
}

.album-tile:hover .tile-zoom {
  opacity: 1;
  transform: scale(1);
}

/* podpis zdjęcia (przy hover) */
.tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
  transition: opacity var(--transition);
}

.album-tile:hover .tile-caption { opacity: 1; }

/* ─ LIGHTBOX ─ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  animation: lbFade 0.25s ease;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}

.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,0.18); }

.lb-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}


/* ────────────────────────────────────────────
   9. FOOTER
──────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 44px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.75;
}

.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-logo-place {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}


/* ────────────────────────────────────────────
   10. ANIMACJE & REVEAL
──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

@keyframes lbFade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}


/* ────────────────────────────────────────────
   11. RESPONSYWNOŚĆ
──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .menu-grid      { grid-template-columns: 1fr; }
  .menu-item:nth-child(even) { padding-left: 0; border-left: none; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .section-inner { padding: 0 24px; }
  .nav-inner     { padding: 0 24px; }
  .hero-content  { padding: 0 24px; }
  .contact-cards { grid-template-columns: 1fr; }
  .album-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { padding: 0 24px; flex-direction: column; text-align: center; }
  .footer-nav    { justify-content: center; }
}

@media (max-width: 480px) {
  .album-grid { grid-template-columns: 1fr; }
  .album-placeholder { margin: 0; }
  .hero-cta   { flex-direction: column; }
}
