/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Custom Properties ─── */
:root {
  --terra-500: #D45520;
  --terra-600: #B33D14;
  --sand-200: #FAEED1;
  --sand-300: #F5DCAA;
  --cream: #FDF6EC;
  --bark: #3D1E0E;
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.4s; }

/* ─── Tags / Badges ─── */
.tag-terra {
  display: inline-block;
  background: #F9DCC8;
  color: #8F2F11;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: 100px;
}
.tag-white {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Inputs ─── */
.input-field {
  font-family: 'Space Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #3D1E0E;
  background: #FDF8EB;
  border: 2px solid #F5DCAA;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.input-field:focus {
  border-color: #D45520;
  box-shadow: 0 0 0 3px rgba(212, 85, 32, 0.15);
}
.input-field::placeholder { color: #A36828; opacity: 0.5; }

/* ─── Product Cards ─── */
.card-product {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(61, 30, 14, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.card-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212, 85, 32, 0.15);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-product:hover .product-img-wrap img {
  transform: scale(1.07);
}
.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #D45520;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 100px;
}
.product-tag--sand {
  background: #E4A84D;
  color: #5E3B1D;
}
.product-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ─── Geometric shapes ─── */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.geo-circle--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,85,32,0.08) 0%, transparent 70%);
  top: -100px; right: -150px;
}
.geo-circle--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(228,168,77,0.12) 0%, transparent 70%);
  bottom: 10%; left: -80px;
}
.geo-rect {
  position: absolute;
  width: 180px; height: 180px;
  background: rgba(212,85,32,0.05);
  border-radius: 2rem;
  rotate: 25deg;
  top: 15%; right: 5%;
  pointer-events: none;
}
.geo-triangle {
  position: absolute;
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(228,168,77,0.08);
  bottom: 15%; right: 12%;
  pointer-events: none;
  rotate: -15deg;
}
.geo-dots {
  position: absolute;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(212,85,32,0.15) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  bottom: 20%; left: 8%;
  pointer-events: none;
}
.geo-circle--about-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.geo-circle--about-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(245,220,170,0.1) 0%, transparent 70%);
  bottom: -50px; right: 5%;
}
.geo-circle--contact-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212,85,32,0.06) 0%, transparent 70%);
  top: -80px; right: -80px;
}
.geo-dots--contact {
  position: absolute;
  width: 100px; height: 100px;
  background-image: radial-gradient(circle, rgba(228,168,77,0.2) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  bottom: 15%; right: 10%;
  pointer-events: none;
}
.geo-circle--cta-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  bottom: -80px; left: -60px;
}
.geo-circle--cta-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,220,170,0.08) 0%, transparent 70%);
  top: -40px; right: 10%;
}

/* ─── Hero collage ─── */
.hero-collage {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}
.collage-img {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(61,30,14,0.2);
}
.collage-img--1 {
  width: 320px;
  margin-left: auto;
}
.collage-img--1 img { width: 100%; height: 100%; object-fit: cover; }
.collage-img--2 {
  position: absolute;
  width: 220px;
  bottom: -30px;
  left: -20px;
  border: 5px solid #FDF6EC;
  z-index: 2;
}
.collage-img--2 img { width: 100%; height: 100%; object-fit: cover; }
.collage-img--3 {
  position: absolute;
  width: 180px;
  top: 40px;
  right: -30px;
  border: 5px solid #FDF6EC;
  z-index: 2;
  opacity: 0.9;
}
.collage-img--3 img { width: 100%; height: 100%; object-fit: cover; }
.collage-badge {
  position: absolute;
  bottom: 60px;
  right: -10px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 40px rgba(61,30,14,0.15);
  z-index: 3;
  text-align: center;
}

/* ─── About floating card ─── */
.about-img-stack {
  position: relative;
}
.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 40px rgba(61,30,14,0.15);
  z-index: 2;
}

/* ─── Marquee ─── */
.marquee-track {
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-block;
  padding: 0 1rem;
}

/* ─── Scroll to top ─── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #D45520;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212,85,32,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  z-index: 40;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover { background: #B33D14; }

/* ─── Mobile menu ─── */
.mobile-link { transition: opacity 0.2s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-collage { margin: 0 auto; margin-top: 2rem; }
  .collage-img--1 { width: 260px; }
  .collage-img--2 { width: 160px; left: -10px; bottom: -20px; }
  .collage-img--3 { width: 130px; right: -15px; top: 20px; }
  .collage-badge { right: 0; bottom: 40px; }
  .about-floating-card { right: 10px; bottom: -10px; }
}

@media (max-width: 640px) {
  .geo-circle--1 { width: 300px; height: 300px; }
  .geo-circle--2 { width: 200px; height: 200px; }
  .geo-rect { width: 100px; height: 100px; }
  .geo-triangle { border-left-width: 50px; border-right-width: 50px; border-bottom-width: 90px; }
}
