:root {
  --cream: #f5f3ee;
  --sage: #a3b18a;
  --sand: #d6ccc2;
  --amber: #d98e04;
  --coffee: #6f4e37;
  --ink: #1e1e1e;
  --off: #eae7e0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: transparent;
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--coffee);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--amber);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}





@keyframes pulse-ring {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.8;
  }
}

#hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 6s ease-in-out infinite;
}

#hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0.5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 6s ease-in-out infinite reverse;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: fade-up 1s ease both;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  z-index: 1;
  animation: fade-up 1s ease 0.15s both;
}

.hero-title em {
  font-style: italic;
  color: var(--coffee);
}

.hero-sub {
  margin-top: 2rem;
  max-width: 380px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--coffee);
  position: relative;
  z-index: 1;
  animation: fade-up 1s ease 0.3s both;
}

.hero-cta {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  animation: fade-up 1s ease 0.45s both;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.btn:hover {
  background: var(--coffee);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

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

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

/* ─── SECTION BASE ─── */
section {
  padding: 7rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--coffee);
}

/* ─── O NAMA ─── */
#o-nama {
  background: var(--off);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: #4a4035;
  margin-bottom: 1.2rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.value-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--sage);
  transition: border-color 0.25s;
}

.value-item:hover {
  border-color: var(--amber);
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.value-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.value-item p {
  font-size: 0.85rem;
  color: var(--coffee);
  line-height: 1.6;
  margin: 0;
}

/* ─── MODELI ─── */
#modeli {
  background: var(--cream);
}

.models-intro {
  max-width: 520px;
  margin-bottom: 4rem;
}

.models-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--coffee);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.model-card {
  background: var(--off);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(111, 78, 55, 0.12);
}

.model-card.selected {
  outline: 2px solid var(--amber);
}

.model-img {
  aspect-ratio: 4/5;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.model-img svg {
  width: 80%;
  height: auto;
}

.model-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--sage);
  color: white;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

.model-info {
  padding: 1.4rem 1.5rem 1.8rem;
}

.model-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.model-info p {
  font-size: 0.8rem;
  color: var(--coffee);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.model-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--amber);
  font-weight: 600;
}

.model-select-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--coffee);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.model-select-btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.model-card.selected .model-select-btn {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

/* ─── FORMA ─── */
#porudzbina {
  background: var(--off);
}

.order-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.order-aside h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.order-aside p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--coffee);
  margin-bottom: 1rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--coffee);
  margin-top: 0.5rem;
}

.contact-line span {
  color: var(--sage);
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coffee);
}

input,
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--coffee);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f4e37' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-opt {
  padding: 0.5rem 1rem;
  border: 1px solid var(--sand);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: var(--cream);
  color: var(--coffee);
  transition: all 0.2s;
  user-select: none;
}

.size-opt:hover {
  border-color: var(--coffee);
  color: var(--ink);
}

.size-opt.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.btn-submit {
  padding: 1rem 2.5rem;
  background: var(--coffee);
  color: var(--cream);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.success-msg {
  display: none;
  padding: 1.2rem 1.5rem;
  background: #edf2e8;
  border-left: 3px solid var(--sage);
  color: #3a5230;
  font-size: 0.88rem;
  line-height: 1.6;
}

.success-msg.visible {
  display: block;
}

/* ─── VALIDATION ERRORS ─── */
.field-error {
  border-color: #c0392b !important;
}

.error-msg {
  display: block;
  font-size: 0.72rem;
  color: #c0392b;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: var(--sand);
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}

footer .foot-logo {
  margin-bottom: 1.5rem;
}

.foot-logo-img {
  height: 210px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: invert(1) brightness(0.9);
  opacity: 0.85;
}

footer p {
  font-size: 0.8rem;
  color: var(--sand);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

footer .foot-copy {
  margin-top: 2rem;
  font-size: 0.72rem;
  color: #5a5045;
  letter-spacing: 0.12em;
}

/* ─── HAMBURGER (desktop hidden) ─── */
.hamburger {
  display: none;
}

.mobile-menu {
  display: none;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .about-grid,
  .order-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 600px) {

  /* ─── NAV MOBILE ─── */
  nav {
    padding: 1rem 1.2rem;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo-img {
    height: 52px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
  }

  .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);
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.1em;
  }

  .mobile-menu a:hover {
    color: var(--coffee);
  }

  /* ─── HERO MOBILE ─── */
  #hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .hero-sub {
    font-size: 0.82rem;
    max-width: 280px;
  }

  /* ─── SECTIONS MOBILE ─── */
  section {
    padding: 4rem 1.2rem;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 1.5rem;
  }

  .about-text p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .value-item {
    padding: 1rem;
    gap: 1rem;
  }

  .value-item p {
    font-size: 0.8rem;
  }

  /* ─── MODELI MOBILE ─── */
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .models-intro p {
    font-size: 0.85rem;
  }

  .model-info h3 {
    font-size: 1.1rem;
  }

  .model-info p {
    font-size: 0.75rem;
  }

  /* ─── FORMA MOBILE ─── */
  .form-row {
    grid-template-columns: 1fr;
  }

  .order-aside h3 {
    font-size: 1.4rem;
  }

  .order-aside p {
    font-size: 0.82rem;
  }

  input, select, textarea {
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
  }

  label {
    font-size: 0.68rem;
  }

  .btn-submit {
    width: 100%;
    padding: 0.9rem;
  }

  /* ─── FOOTER MOBILE ─── */
  footer {
    padding: 2.5rem 1.2rem 2rem;
  }

  .foot-logo-img {
    height: 150px;
  }

  .foot-brand {
    font-size: 1.1rem;
  }

  footer p {
    font-size: 0.75rem;
  }
}

/* ─── HAMBURGER (hidden on desktop) ─── */
/* ─── LOGO ─── */
.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.75;
}

/* ─── SLIKE PROIZVODA ─── */
.model-img {
  aspect-ratio: 4/5;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.model-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
  transition: transform 0.4s ease;
}

.model-card:hover .model-img img {
  transform: scale(1.04);
}


/* ─── FOOTER BRAND ─── */
.foot-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 0.6rem;
  opacity: 0.85;
}
