@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 {
  --walnut-dark: #3B2A1E;
  --walnut: #5C4130;
  --oak: #8B6544;
  --honey: #C9974B;
  --honey-light: #E4B76B;
  --cream: #F6EFE3;
  --cream-dark: #EDE2CC;
  --sage: #7C8B6F;
  --sage-dark: #5F6E52;
  --rust: #A0522D;
  --text-dark: #2B1F17;
  --text-muted: #6B5D4F;
  --shadow-soft: 0 10px 30px rgba(59, 42, 30, 0.15);
  --shadow-deep: 0 20px 45px rgba(59, 42, 30, 0.25);
  --transition-base: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--cream-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--honey), var(--oak));
  border-radius: 10px;
  border: 2px solid var(--cream-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--walnut);
}

/* HEADER */
.site-header {
  background-color: var(--cream);
  border-bottom: 3px solid var(--honey);
  box-shadow: 0 4px 18px rgba(59, 42, 30, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition-base);
}

.site-header .logo-mark {
  filter: drop-shadow(0 2px 4px rgba(59,42,30,0.2));
}

.nav-link {
  position: relative;
  color: var(--walnut-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  transition: var(--transition-base);
}

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

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

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

.nav-link.active {
  color: var(--rust);
}

.mobile-menu-toggle {
  color: var(--walnut-dark);
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-menu {
  background-color: var(--cream);
  border-top: 2px solid var(--honey);
}

.mobile-menu a {
  color: var(--walnut-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.mobile-menu a:hover {
  background-color: var(--cream-dark);
  color: var(--rust);
}

/* HERO / TEXTURES */
.wood-texture-bg {
  background: linear-gradient(135deg, var(--walnut-dark) 0%, var(--walnut) 55%, var(--oak) 100%);
}

.grain-overlay {
  position: relative;
}
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--honey), var(--rust));
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
  background: linear-gradient(135deg, var(--honey-light), var(--rust));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  padding: 0.8rem 1.9rem;
  border: 2px solid var(--honey);
  border-radius: 4px;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--honey);
  color: var(--walnut-dark);
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--walnut-dark);
  font-weight: 700;
  padding: 0.8rem 1.9rem;
  border: 2px solid var(--walnut-dark);
  border-radius: 4px;
  transition: var(--transition-base);
  cursor: pointer;
}

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

/* CARDS */
.wood-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 6px 18px rgba(59, 42, 30, 0.08);
  transition: var(--transition-base);
  overflow: hidden;
}

.wood-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
  border-color: var(--honey);
}

.wood-card .card-tag {
  background: var(--sage);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
}

.material-swatch {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.3), 0 3px 8px rgba(0,0,0,0.15);
  border: 3px solid #fff;
  transition: var(--transition-base);
}

.material-swatch:hover {
  transform: scale(1.12) rotate(8deg);
}

/* ACCORDION */
.accordion-item {
  border-bottom: 1px solid var(--cream-dark);
}

.accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0.5rem;
  font-weight: 700;
  color: var(--walnut-dark);
  transition: var(--transition-base);
}

.accordion-header:hover {
  color: var(--rust);
}

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

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

.accordion-content {
  display: none;
  padding: 0 0.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FORMS */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background-color: #fff;
  border: 2px solid var(--cream-dark);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 4px rgba(201, 151, 75, 0.2);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: #A99A87;
}

.form-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--cream-dark);
  position: relative;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--sage), var(--honey), var(--rust));
  border-radius: 12px 12px 0 0;
}

/* NEWSLETTER / SPECIAL INPUTS */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-wrap input[type="checkbox"] {
  accent-color: var(--rust);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* GALLERY */
.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(59,42,30,0.2);
}

.gallery-frame img {
  transition: transform 0.5s ease;
}

.gallery-frame:hover img {
  transform: scale(1.08);
}

.gallery-frame .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,42,30,0.85), transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
}

.gallery-frame:hover .gallery-overlay {
  opacity: 1;
}

/* LOADING SPINNER */
.spinner {
  width: 44px;
  height: 44px;
  border: 5px solid var(--cream-dark);
  border-top-color: var(--honey);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* FADE / SLIDE ANIMATIONS */
.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* SECTION DIVIDER */
.section-divider {
  height: 3px;
  width: 90px;
  background: linear-gradient(90deg, var(--sage), var(--honey));
  border-radius: 3px;
}

/* TIMELINE (za O Nama) */
.timeline-line {
  position: relative;
  border-left: 3px solid var(--honey);
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--honey-light);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--walnut-dark);
  color: #F0E5D6;
  z-index: 1000;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  border-top: 3px solid var(--honey);
}

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

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

.cookie-banner a {
  color: var(--honey-light);
  text-decoration: underline;
}

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

.cookie-btn-accept {
  background: var(--honey);
  color: var(--walnut-dark);
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 4px;
  transition: var(--transition-base);
}

.cookie-btn-accept:hover {
  background: var(--honey-light);
  transform: translateY(-2px);
}

.cookie-btn-decline {
  background: transparent;
  color: #D8C9B6;
  border: 1px solid #6B5D4F;
  padding: 0.6rem 1.6rem;
  border-radius: 4px;
  transition: var(--transition-base);
}

.cookie-btn-decline:hover {
  border-color: var(--honey);
  color: #fff;
}

/* FOOTER */
.site-footer {
  background-color: var(--walnut-dark);
  color: #D8C9B6;
}

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

.site-footer a {
  color: #D8C9B6;
  transition: var(--transition-base);
}

.site-footer a:hover {
  color: var(--honey-light);
}

.site-footer .footer-divider {
  border-color: #5C4130;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: var(--transition-base);
}

.social-icon:hover {
  background: var(--honey);
  color: var(--walnut-dark);
  transform: translateY(-3px);
}

/* MISC */
.badge-quality {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124, 139, 111, 0.15);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}

.price-tag {
  color: var(--rust);
  font-weight: 800;
  font-size: 1.5rem;
}

hr.wood-hr {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--honey) 0 10px, transparent 10px 16px);
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 1.5rem;
  }
  .timeline-line {
    padding-left: 1.5rem;
  }
}