/* =====================================================
   FI INVEST - Glavni CSS
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: #1A1612;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* =====================================================
   NAVIGACIJA
   ===================================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 36px;
  border-bottom: 1px solid rgba(168,134,67,0.15);
  background: rgba(255,255,255,0.97);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 64px; width: auto; }
.nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; }
.nav-link { color: #4A4036; transition: color 0.2s; font-weight: 500; }
.nav-link:hover { color: #A88643; }
.nav-link.active { color: #A88643; }
.nav-cta {
  padding: 12px 24px;
  border: 1px solid #A88643;
  color: #A88643;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-cta:hover { background: #A88643; color: #FFFFFF; }
.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 28px; color: #A88643; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 90px 36px 70px;
  text-align: center;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(168,134,67,0.06), transparent 70%),
    #FFFFFF;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: #A88643;
  margin-bottom: 24px;
  font-weight: 500;
}
.h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.h1 em { color: #A88643; font-style: italic; font-weight: 600; }
.hero-sub {
  font-size: 17px;
  color: #4A4036;
  margin: 0 auto;
  line-height: 1.7;
  max-width: 580px;
  font-weight: 300;
}
.divider { width: 64px; height: 1.5px; background: #A88643; margin: 36px auto; }

/* =====================================================
   STATS
   ===================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 36px;
  background: rgba(168,134,67,0.25);
  border: 1px solid rgba(168,134,67,0.25);
}
.stat { background: #FFFFFF; padding: 26px 18px; text-align: center; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 500;
  color: #A88643;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  color: #4A4036;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* =====================================================
   SEKCIJE
   ===================================================== */
.section { padding: 80px 36px; }
.section-light { background: #FAF8F3; }
.section-dark { background: #1A1612; color: #FFFFFF; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #A88643;
  margin-bottom: 14px;
  font-weight: 500;
  text-align: center;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
}
.prose {
  font-size: 17px;
  color: #4A4036;
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-weight: 300;
}

/* =====================================================
   KARUSEL
   ===================================================== */
.carousel-section { padding: 0; margin: 60px 0 0; background: #FAF8F3; position: relative; }
.carousel-header { text-align: center; padding: 70px 36px 30px; }
.carousel { position: relative; overflow: hidden; height: 600px; background: #1A1612; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}
.slide-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 540px;
  color: #FFFFFF;
  z-index: 2;
}
.slide-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: #D4AB5F;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.slide-brand {
  font-size: 13px;
  color: #D4AB5F;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.slide-desc { font-size: 17px; color: rgba(255,255,255,0.92); line-height: 1.75; font-weight: 300; }
.carousel-controls {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 5;
}
.cdot {
  width: 42px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}
.cdot.active { background: #D4AB5F; }
.counter {
  position: absolute;
  bottom: 32px;
  right: 36px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #D4AB5F;
  z-index: 5;
}
.c-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  color: #FFFFFF;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
}
.c-arrow:hover { background: #D4AB5F; border-color: #D4AB5F; }
.c-arrow.prev { left: 24px; }
.c-arrow.next { right: 24px; }

/* =====================================================
   STANOVI
   ===================================================== */
.apt-section { padding: 80px 36px; background: #FFFFFF; }
.bld-tabs { display: flex; gap: 14px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.bld-btn {
  padding: 12px 24px;
  font-size: 12px;
  border: 1px solid rgba(168,134,67,0.35);
  background: transparent;
  color: #4A4036;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
}
.bld-btn.active { background: #A88643; color: #FFFFFF; border-color: #A88643; }

.tabs { display: flex; justify-content: center; margin-bottom: 30px; }
.tab {
  padding: 14px 28px;
  font-size: 12px;
  color: #4A4036;
  border: none;
  background: transparent;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.tab.active { color: #A88643; border-bottom-color: #A88643; }

.plan { padding: 36px; background: #FAF8F3; border: 1px solid rgba(168,134,67,0.15); }
.legend {
  display: flex;
  gap: 36px;
  margin-top: 24px;
  font-size: 12px;
  color: #4A4036;
  flex-wrap: wrap;
  justify-content: center;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
}
.leg-item { display: flex; align-items: center; gap: 10px; }
.leg-dot { width: 12px; height: 12px; border-radius: 2px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; justify-content: center; }
.filters select {
  padding: 12px 16px;
  font-size: 13px;
  border: 1px solid rgba(168,134,67,0.3);
  background: #FFFFFF;
  color: #1A1612;
  font-family: 'Outfit', sans-serif;
}

.list-head, .list-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 1fr 1fr 130px;
  gap: 12px;
  align-items: center;
  padding: 14px 6px;
}
.list-head {
  font-size: 11px;
  color: #A88643;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(168,134,67,0.3);
  font-weight: 600;
}
.list-row {
  border-bottom: 1px solid rgba(168,134,67,0.12);
  cursor: pointer;
  transition: background 0.2s;
  padding: 18px 6px;
}
.list-row:hover { background: rgba(168,134,67,0.05); }
.list-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #A88643;
  font-weight: 600;
}
.list-cell { font-size: 14px; color: #4A4036; }
.status-pill {
  font-size: 10px;
  padding: 7px 14px;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1.5px solid;
}
.st-av { color: #2D7A0F; border-color: #2D7A0F; background: rgba(45,122,15,0.06); }
.st-rs { color: #C45A00; border-color: #C45A00; background: rgba(196,90,0,0.06); }
.st-sd { color: #424242; border-color: #424242; background: rgba(66,66,66,0.06); }

.apt-shape { cursor: pointer; transition: opacity 0.2s; }
.apt-shape:hover { opacity: 0.7; }
.apt-label { font-size: 9px; pointer-events: none; font-weight: 600; }
.floor-label { fill: #A88643; font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 600; }

/* =====================================================
   CTA & FOOTER
   ===================================================== */
.cta {
  padding: 80px 36px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF, rgba(168,134,67,0.05));
  border-top: 1px solid rgba(168,134,67,0.2);
}
.cta-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  color: #1A1612;
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.cta-sub { font-size: 16px; color: #4A4036; margin-bottom: 28px; font-weight: 300; }
.cta-btn {
  padding: 16px 40px;
  background: #A88643;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}
.cta-btn:hover { background: #8C6E36; }

.footer {
  padding: 48px 36px;
  text-align: center;
  border-top: 1px solid rgba(168,134,67,0.2);
  font-size: 13px;
  color: #4A4036;
  letter-spacing: 0.8px;
  line-height: 1.9;
  background: #FAF8F3;
}
.footer a { color: #A88643; }
.footer-logo { height: 80px; margin-bottom: 18px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto 36px;
  text-align: left;
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #1A1612;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(168,134,67,0.2); font-size: 12px; color: #6B5D44; }

/* =====================================================
   MODAL
   ===================================================== */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-bg.open { display: flex; }
.modal {
  background: #FFFFFF;
  border: 1px solid #A88643;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-img {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: #FAF8F3;
}
.modal-body { padding: 36px; }
.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #A88643;
  margin-bottom: 6px;
  font-weight: 500;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border: 1px solid rgba(168,134,67,0.3);
  margin-bottom: 24px;
}
.modal-cell { padding: 16px 12px; border-right: 1px solid rgba(168,134,67,0.3); }
.modal-cell:last-child { border-right: none; }
.mc-lbl { font-size: 10px; color: #A88643; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 500; }
.mc-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: #1A1612;
  margin-top: 4px;
  font-weight: 500;
}
.rooms-list { margin-bottom: 24px; }
.rooms-title {
  font-size: 11px;
  color: #A88643;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.room-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(168,134,67,0.15);
  color: #4A4036;
}
.room-row span:last-child {
  color: #A88643;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
}
.room-row.total {
  border-top: 2px solid #A88643;
  border-bottom: none;
  padding-top: 16px;
  margin-top: 6px;
}
.room-row.total span:first-child { font-weight: 600; color: #1A1612; }
.room-row.total span:last-child { font-size: 22px; }
.modal-cta {
  width: 100%;
  padding: 16px;
  background: #A88643;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 14px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.95);
  border: none;
  color: #1A1612;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* =====================================================
   KONTAKT FORMA
   ===================================================== */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 36px;
  background: #FAF8F3;
  border: 1px solid rgba(168,134,67,0.2);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #A88643;
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid rgba(168,134,67,0.3);
  background: #FFFFFF;
  color: #1A1612;
  font-family: 'Outfit', sans-serif;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #A88643;
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #4A4036;
}
.checkbox-group input { width: 18px; height: 18px; margin-top: 2px; }
.success-msg {
  padding: 18px;
  background: rgba(45,122,15,0.1);
  border: 1px solid #2D7A0F;
  color: #2D7A0F;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}
.error-msg {
  padding: 18px;
  background: rgba(196,90,0,0.1);
  border: 1px solid #C45A00;
  color: #C45A00;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(168,134,67,0.15);
  }
  .h1 { font-size: 38px; }
  .section-title { font-size: 30px; }
  .slide-title { font-size: 30px; }
  .slide-content { left: 6%; right: 6%; max-width: none; }
  .carousel { height: 480px; }
  .c-arrow { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .modal-grid { grid-template-columns: 1fr 1fr; }
  .modal-cell:nth-child(2) { border-right: none; }
  .modal-cell:nth-child(1), .modal-cell:nth-child(2) { border-bottom: 1px solid rgba(168,134,67,0.3); }
  .list-head, .list-row { grid-template-columns: 70px 1fr 60px; }
  .list-head > div:nth-child(2),
  .list-head > div:nth-child(4),
  .list-head > div:nth-child(5),
  .list-row > div:nth-child(2),
  .list-row > div:nth-child(4),
  .list-row > div:nth-child(5) { display: none; }
}

@media (max-width: 480px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 50px 20px 40px; }
  .h1 { font-size: 30px; }
  .section { padding: 50px 20px; }
  .section-title { font-size: 26px; }
  .stats { margin: 0 20px; }
  .modal-body { padding: 24px; }
  .modal-title { font-size: 26px; }
}
