/* ═══════════════════════════════════════════
   SAGOVI KARLOVAC – Zajednički CSS
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
  --cream:        #f5f2ee;
  --cream-dark:   #ede9e3;
  --dark:         #1a1a1a;
  --mid:          #555;
  --light:        #888;
  --border:       #ddd;
  --accent:       #8b6f47;
  --accent-dark:  #6b5030;
  --red:          #c0392b;
  --white:        #fff;
  --section-pad:  72px 0;
  --radius:       8px;
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
}

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

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

/* ── Typography ── */
.display {
  font-family: 'Playfair Display', serif;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark  { background: var(--dark); color: var(--white); }

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin-bottom: 32px;
}

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

.section-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
  color: var(--mid);
  font-size: 15.5px;
}

/* ── NAV ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  flex-shrink: 0;
  margin-right: 16px;
}

.navbar-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.navbar-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.navbar-logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--light);
  letter-spacing: 0.05em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.navbar-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  padding: 7px 13px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.navbar-nav a:hover {
  background: var(--cream);
}

.navbar-nav a.active {
  background: var(--cream);
  border-bottom-color: var(--dark);
  font-weight: 600;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: #1a1210;
}

.hero--tall    { height: 460px; }
.hero--medium  { height: 320px; }
.hero--short   { height: 240px; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2a2018;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.hero-content p {
  font-size: clamp(14px, 2vw, 18px);
  max-width: 680px;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  line-height: 1.65;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

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

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

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

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

.btn-lg { padding: 13px 32px; font-size: 15px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--cream-dark);
}

.card-body {
  padding: 18px 22px 22px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14.5px;
  color: var(--mid);
  margin-bottom: 16px;
}

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-center { align-items: center; }

/* ── FEATURE ROW ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-row--reverse .feature-text { order: 2; }
.feature-row--reverse .feature-img  { order: 1; }

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-img img,
.feature-img .img-block {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.feature-text h2 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 18px; }
.feature-text p  { color: var(--mid); font-size: 15px; margin-bottom: 14px; }
.feature-text ul {
  list-style: none;
  margin-bottom: 24px;
}
.feature-text ul li {
  padding: 7px 0 7px 22px;
  font-size: 15px;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.feature-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── IMG BLOCK ── */
.img-block {
  background: linear-gradient(135deg, #d4c5b0 0%, #8b7355 60%, #5c4830 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px;
  color: var(--light);
  padding: 14px 0 0;
  display: flex;
  gap: 6px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span::before { content: '/'; margin-right: 6px; }

/* ── DIVIDER ── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── MAP PLACEHOLDER ── */
.map-block {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  background: #e8e4de;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 18px 0 24px;
}

.map-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 39px, #d0cac4 39px, #d0cac4 40px),
    repeating-linear-gradient(0deg,  transparent, transparent 39px, #d0cac4 39px, #d0cac4 40px);
  opacity: 0.5;
}

.map-pin {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
}

/* ── KONTAKT INFO TABLE ── */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 6px 0; font-size: 14.5px; color: var(--mid); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--dark); }

/* ── CONTACT LINK ── */
.contact-link { color: var(--accent); text-decoration: underline; }

/* ── BADGE / TAG ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-accent { background: var(--cream-dark); color: var(--accent-dark); }
.tag-dark   { background: var(--dark); color: var(--white); }

/* ── PRICE TABLE ── */
/* ── PRICE TABLE ── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 18px;
}

.price-table .col-service {
  width: 68%;
}

.price-table .col-price {
  width: 32%;
}

.price-table th {
  background: var(--dark);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  padding-top: 20px;
  padding-bottom: 20px;
}

.price-table th:first-child {
  text-align: left;
  padding-left: 36px;
  padding-right: 18px;
}

.price-table th:last-child {
  text-align: right;
  padding-right: 36px;
  padding-left: 18px;
}

.price-table td {
  font-size: 19px;
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
  padding-top: 18px;
  padding-bottom: 18px;
}

.price-table td:first-child {
  text-align: left;
  padding-left: 36px;
  padding-right: 18px;
  color: var(--mid);
}

.price-table td:last-child {
  text-align: right;
  padding-right: 36px;
  padding-left: 18px;
  font-weight: 700;
  color: var(--dark);
}

.price-table tr:hover td {
  background: var(--cream);
}

.price-note {
  max-width: 100%;
  padding-left: 36px;
  padding-right: 36px;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: var(--mid);
  margin-top: 14px;
}
/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .navbar-logo-icon { background: var(--red); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 240px; }

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.17s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-col p { font-size: 14px; line-height: 1.75; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--white); }

/* ── GALERIJA ── */
.carpet-group {
  margin-top: 56px;
}

.carpet-group:first-of-type {
  margin-top: 36px;
}

.carpet-group-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  text-align: center;
  color: #5d5d5d;
  margin-bottom: 34px;
}

.carpet-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.carpet-item {
  position: relative;
  overflow: hidden;
  background: #f1ede8;
  border: 1px solid #d9d3cc;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
}

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

.carpet-item:hover img {
  transform: scale(1.06);
}

.carpet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.02) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px 10px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.carpet-item:hover .carpet-overlay {
  opacity: 1;
}

.carpet-overlay span {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  touch-action: pan-y;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -42px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.lightbox-counter {
  position: absolute;
  top: -38px;
  left: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 4;
}

.lightbox-close:hover {
  transform: scale(1.05);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: #222;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  z-index: 4;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow-left {
  left: -72px;
}

.lightbox-arrow-right {
  right: -72px;
}

body.lightbox-open {
  overflow: hidden;
}

/* ── UTIL ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-mid { color: var(--mid); }
.text-accent { color: var(--accent); }
.fw-600 { font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .carpet-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .lightbox-arrow-left {
    left: 10px;
  }

  .lightbox-arrow-right {
    right: 10px;
  }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-text { order: 1; }
  .feature-row--reverse .feature-img  { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .carpet-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .carpet-group-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .carpet-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0.02) 100%);
  }

  .carpet-overlay span {
    font-size: 12px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
  }

  .lightbox-content img {
    max-width: 100%;
    max-height: 76vh;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    position: fixed;
  }

  .lightbox-counter {
    top: 10px;
    left: 12px;
    font-size: 13px;
    position: fixed;
    z-index: 5;
  }

  .lightbox-caption {
    bottom: 10px;
    left: 12px;
    right: 12px;
    font-size: 15px;
    background: rgba(0,0,0,0.38);
    padding: 10px 12px;
    border-radius: 10px;
    position: fixed;
  }

  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 26px;
    background: rgba(255,255,255,0.92);
  }

  .lightbox-arrow-left {
    left: 8px;
  }

  .lightbox-arrow-right {
    right: 8px;
  }
}

@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 199;
  }

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

  .navbar-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    background: none;
    border: none;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.25s;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 1025px) {
  .hamburger { display: none; }
}