/* ========================================
   Krčma Zlatna Kapljica - Styles
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-gold: #c8952e;
  --color-gold-light: #e0b860;
  --color-gold-dark: #a07520;
  --color-brown: #3e2a14;
  --color-brown-light: #5c3d1e;
  --color-cream: #faf6ef;
  --color-cream-dark: #f0e8d8;
  --color-text: #2c2015;
  --color-text-light: #6b5b4a;
  --color-white: #ffffff;
  --color-red: #b03030;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(62, 42, 20, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold-light) !important;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-menu a {
  color: var(--color-cream);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 32px;
}

.lang-switch-mobile {
  display: none;
}

.lang-switch a {
  color: rgba(250, 246, 239, 0.5);
  transition: color var(--transition);
}

.lang-switch a:hover {
  color: var(--color-gold-light);
}

.lang-active {
  color: var(--color-gold-light);
}

.lang-sep {
  color: rgba(250, 246, 239, 0.3);
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/hero.webp') center center / cover no-repeat;
  background-color: var(--color-brown);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 32, 21, 0.7) 0%,
    rgba(44, 32, 21, 0.5) 50%,
    rgba(44, 32, 21, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-cream);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-cream-dark);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}

.btn-outline:hover {
  background: var(--color-cream);
  color: var(--color-brown);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-cream-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-brown);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-brown);
}

.feature-icon {
  font-size: 1.4rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Image Placeholder --- */
.image-placeholder {
  background: linear-gradient(135deg, var(--color-brown-light), var(--color-brown));
  color: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* --- Menu --- */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.menu-tab {
  padding: 10px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-gold);
  background: transparent;
  color: var(--color-brown);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-tab:hover {
  background: rgba(200, 149, 46, 0.1);
}

.menu-tab.active {
  background: var(--color-gold);
  color: var(--color-white);
}

.menu-tab-content {
  display: none;
}

.menu-tab-content.active {
  display: block;
}

.menu-categories {
  columns: 2;
  column-gap: 40px;
  margin-bottom: 40px;
}

.menu-category {
  break-inside: avoid;
  margin-bottom: 32px;
}

.menu-category h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-brown);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gold);
  margin-bottom: 16px;
}

.menu-item {
  margin-bottom: 12px;
}

.menu-item-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.menu-item-name {
  font-weight: 600;
}

.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-text-light);
  min-width: 20px;
  margin-bottom: 4px;
}

.menu-item-price {
  font-weight: 600;
  color: var(--color-gold-dark);
  white-space: nowrap;
}

.menu-item-original {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 1px;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 2px;
}

.menu-download {
  text-align: center;
  margin-top: 32px;
}

.menu-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 20px;
  font-style: italic;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Reviews --- */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  padding: 0;
}

.reviews-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviews-score-big {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-brown);
  line-height: 1;
}

.reviews-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-stars {
  display: flex;
  gap: 1px;
}

.reviews-stars .star {
  font-size: 1.2rem;
  color: #ddd;
}

.reviews-stars .star.filled {
  color: #fbbc05;
}

.reviews-stars .star.half {
  background: linear-gradient(90deg, #fbbc05 70%, #ddd 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reviews-count {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.reviews-divider {
  width: 1px;
  height: 36px;
  background: rgba(62, 42, 20, 0.15);
  flex-shrink: 0;
}

.reviews-source {
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-icon {
  flex-shrink: 0;
}

.reviews-source-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.reviews-btn {
  white-space: nowrap;
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 100px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-author {
  font-weight: 600;
  color: var(--color-brown);
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.review-stars-sm {
  color: #fbbc05;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.reviews-cta {
  text-align: center;
}

.reviews-cta a {
  font-weight: 600;
  font-size: 1rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-card {
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-brown);
  margin-bottom: 16px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-cream-dark);
  transition: background var(--transition);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table tr.today {
  background: var(--color-cream);
  font-weight: 600;
}

.hours-table td {
  padding: 8px 4px;
}

.hours-table td:last-child {
  text-align: right;
}

.hours-table .closed {
  color: var(--color-red);
  font-weight: 600;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 14px;
  line-height: 1.6;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}

.contact-map iframe {
  display: block;
  height: 100%;
  min-height: 450px;
}

/* --- Footer --- */
.footer {
  background: var(--color-brown);
  color: var(--color-cream-dark);
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 4px;
  color: rgba(250, 246, 239, 0.6);
}

.footer-social a {
  color: var(--color-cream-dark);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(250, 246, 239, 0.5);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-categories {
    columns: 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-image {
    order: -1;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .lang-switch {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(62, 42, 20, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav-menu.open {
    max-height: 400px;
    padding: 16px 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 1.05rem;
  }

  li.lang-switch-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    border-top: 1px solid rgba(250, 246, 239, 0.1);
    margin-top: 4px;
  }

  li.lang-switch-mobile a {
    color: rgba(250, 246, 239, 0.5);
    padding: 0;
    display: inline;
  }

  li.lang-switch-mobile a:hover {
    color: var(--color-gold-light);
  }

  li.lang-switch-mobile a::after {
    display: none;
  }

  li.lang-switch-mobile .lang-active {
    color: var(--color-gold-light);
  }

  li.lang-switch-mobile .lang-sep {
    color: rgba(250, 246, 239, 0.3);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 60px 0;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reviews-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .reviews-divider {
    display: none;
  }

  .menu-item-header {
    flex-wrap: wrap;
  }

  .menu-item-dots {
    display: none;
  }

  .menu-item-price {
    margin-left: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .contact-card {
    padding: 20px;
  }
}

/* --- Cookie Consent Banner --- */
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 420px;
  background: rgba(62, 42, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-cream);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: cookieSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cookie-banner-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.cookie-banner-content {
  margin-bottom: 20px;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(250, 246, 239, 0.8);
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: var(--color-gold);
  color: var(--color-white);
}

.cookie-btn-accept:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 149, 46, 0.4);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-cream);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Map consent placeholder */
.contact-map {
  position: relative;
}

.map-consent-placeholder {
  position: absolute;
  inset: 0;
  background: var(--color-cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.map-consent-placeholder:hover {
  background: var(--color-cream);
}

.map-consent-placeholder p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
  max-width: 360px;
}

.map-consent-placeholder .cookie-btn {
  pointer-events: auto;
  flex: none;
  border-radius: 12px;
}

.map-consent-placeholder.hidden {
  display: none;
}

/* Cookie settings link in footer */
.cookie-settings-link {
  color: var(--color-text-light);
  font-size: 0.8rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  text-decoration: underline;
  padding: 0;
  margin-top: 4px;
}

.cookie-settings-link:hover {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 22px;
    border-radius: 16px;
  }

  .cookie-banner-buttons {
    flex-direction: column;
  }
}


#recenzije a {
  display: none !important;
}

#recenzije .lfCQiA {
  display: none !important;
}
