/* --- Preloader Style --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}
.preloader-logo {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 3rem;
  letter-spacing: 15px;
  margin-bottom: 20px;
  animation: pulseLogo 2s infinite ease-in-out;
}
.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.bar-progress {
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width 0.5s ease;
}
.preloader-hidden {
  transform: translateY(-100%);
}
@keyframes pulseLogo {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 8%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(15px);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 5px;
  color: var(--primary);
  font-weight: 700;
}
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  margin-left: 30px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-button {
  background: var(--primary);
  color: white !important;
  padding: 12px 25px;
  border-radius: 50px;
  margin-left: 30px;
  font-size: 0.8rem;
  text-decoration: none;
}

/* --- Hero Section (FIXED BUTTON SPACING) --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1603006905003-be475563bc59?q=80&w=1600")
      center/cover;
  z-index: -1;
  transform: scale(1.1);
  transition: 5s ease-out;
}
.hero-container {
  text-align: center;
  color: white;
  padding: 0 10%;
  pointer-events: none;
}
.hero-container * {
  pointer-events: auto;
} /* Re-enable clicks inside */

.hero-tagline {
  display: block;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
} /* Space below text */
.hero-button-wrapper {
  margin-top: 20px;
}

.btn-explore {
  padding: 16px 45px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  display: inline-block;
}
.btn-explore:hover {
  background: white;
  color: var(--primary);
}

/* --- Product Grid & Cards (FIXED) --- */
.container {
  padding: 100px 8%;
}
.section-intro {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--primary);
}
.title-divider {
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin: 20px auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.product-card {
  background: var(--white);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.image-box {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.image-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 0.4s;
}
.product-card:hover .image-bg {
  transform: scale(1.1);
}
.product-card:hover .image-overlay {
  opacity: 1;
}
.card-content {
  padding: 25px;
  text-align: center;
}
.card-content h3 {
  font-family: var(--font-serif);
  margin-bottom: 10px;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-smooth);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Form --- */
.form-wrapper {
  background: var(--white);
  padding: 80px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.03);
  max-width: 900px;
  margin: auto;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.floating-group {
  position: relative;
  margin-bottom: 45px;
}
.floating-group input,
.floating-group textarea {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  outline: none;
  font-size: 1rem;
}
.floating-group label {
  position: absolute;
  left: 0;
  top: 15px;
  color: #999;
  pointer-events: none;
  transition: 0.3s;
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
  top: -25px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}
.btn-send {
  width: 100%;
  padding: 20px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* --- Carousel --- */
.testimonials {
  background: var(--primary);
  color: white;
  padding: 100px 8%;
  text-align: center;
}
.carousel-container {
  position: relative;
  height: 150px;
}
.slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: 1s ease;
}
.slide.active {
  opacity: 1;
  position: relative;
}
.quote {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
}

/* --- Status --- */
.status-msg {
  margin-top: 20px;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
}
.hidden {
  display: none;
}
.success {
  background: #e7f3ed;
  color: #2e7d32;
}
.error {
  background: #fdecea;
  color: #d32f2f;
}

