@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css');

:root {
  --clay-primary: #C0562D;
  --clay-primary-dark: #9A4423;
  --clay-primary-light: #E07A4E;
  --navy-deep: #1B2A41;
  --navy-mid: #2C4160;
  --gold-accent: #D4A24C;
  --gold-light: #E8C989;
  --cream-bg: #FAF6F0;
  --cream-card: #FFFCF7;
  --stone-gray: #8A8378;
  --text-dark: #24201B;
  --text-muted: #5C564C;
  --border-soft: #E5DCCB;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream-bg);
  color: var(--text-dark);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--cream-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--clay-primary);
  border-radius: 10px;
  border: 2px solid var(--cream-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clay-primary-dark);
}

/* ===== Header ===== */
.site-header {
  background-color: var(--cream-card);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 18px rgba(27, 42, 65, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(27, 42, 65, 0.12);
}

.nav-link {
  position: relative;
  color: var(--navy-deep);
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold-accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--clay-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--clay-primary-dark);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  background-color: var(--cream-card);
  border-top: 1px solid var(--border-soft);
}

.mobile-menu-toggle {
  color: var(--navy-deep);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-menu-toggle:active {
  transform: scale(0.9);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--clay-primary), var(--clay-primary-dark));
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(192, 86, 45, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(192, 86, 45, 0.45);
  background: linear-gradient(135deg, var(--clay-primary-light), var(--clay-primary));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
  padding: 0.75rem 1.9rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--navy-deep);
  color: #ffffff;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold-accent);
  color: var(--navy-deep);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(212, 162, 76, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--gold-light);
}

/* ===== Cards ===== */
.property-card {
  background: var(--cream-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(27, 42, 65, 0.15);
}

.property-card .price-tag {
  background: var(--navy-deep);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
}

.info-card {
  background: var(--cream-card);
  border-left: 4px solid var(--gold-accent);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(27, 42, 65, 0.06);
  transition: box-shadow 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 10px 24px rgba(27, 42, 65, 0.12);
}

/* ===== Forms ===== */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--cream-card);
  border: 1.5px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clay-primary);
  box-shadow: 0 0 0 3px rgba(192, 86, 45, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--stone-gray);
}

label.form-label {
  color: var(--navy-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.form-wrapper {
  background: var(--cream-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(27, 42, 65, 0.08);
  position: relative;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--clay-primary), var(--gold-accent));
  border-radius: 12px 12px 0 0;
}

/* ===== Accordion ===== */
.accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--cream-card);
}

.accordion-header {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--navy-deep);
  transition: background 0.25s ease;
}

.accordion-header:hover {
  background: rgba(212, 162, 76, 0.08);
}

.accordion-header .accordion-icon {
  transition: transform 0.3s ease;
  color: var(--clay-primary);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-deep);
  color: #EDE6D8;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  z-index: 1100;
}

.cookie-banner h3 {
  color: #ffffff;
}

.cookie-banner p {
  color: #C9CDD6;
}

.cookie-banner a {
  color: #E8C989;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #ffffff;
}

.cookie-btn-accept {
  background: var(--gold-accent);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.cookie-btn-accept:hover {
  background: var(--gold-light);
}

.cookie-btn-decline {
  background: transparent;
  color: #EDE6D8;
  border: 1.5px solid #5C6B82;
  padding: 0.55rem 1.5rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.cookie-btn-decline:hover {
  border-color: #EDE6D8;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Hero / Section Styles ===== */
.hero-overlay {
  background: linear-gradient(120deg, rgba(27, 42, 65, 0.88), rgba(192, 86, 45, 0.65));
}

.section-divider {
  height: 4px;
  width: 70px;
  background: linear-gradient(90deg, var(--clay-primary), var(--gold-accent));
  border-radius: 2px;
}

.badge-featured {
  background: var(--gold-accent);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

/* ===== Testimonials / Recenzije ===== */
.review-card {
  background: var(--cream-card);
  border-radius: 10px;
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
  position: relative;
}

.review-card .stars {
  color: var(--gold-accent);
}

.review-card::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--border-soft);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--border-soft);
  border-top-color: var(--clay-primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Fade / Animation Utilities ===== */
.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

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

.animate-float {
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #C9CDD6;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  color: #C9CDD6;
  transition: color 0.2s ease;
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-icon:hover {
  background: var(--clay-primary);
  transform: translateY(-3px);
}

/* ===== Utility Overrides ===== */
.text-clay {
  color: var(--clay-primary);
}

.text-navy {
  color: var(--navy-deep);
}

.text-gold {
  color: var(--gold-accent);
}

.bg-cream {
  background-color: var(--cream-bg);
}

.bg-navy {
  background-color: var(--navy-deep);
}

.border-soft {
  border-color: var(--border-soft);
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 1.25rem;
  }
  .cookie-banner {
    padding: 1rem;
  }
}