/* ==================== BASE ==================== */

::selection {
  background-color: #8b3a3a;
  color: #fff;
}

/* ==================== LOGO ==================== */

.site-logo,
.site-logo-footer {
  object-fit: contain;
}

#navbar:not(.scrolled) .site-logo {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== NAVIGATION ==================== */

#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
  color: #44403c;
}

#navbar.scrolled .nav-link:hover {
  color: #8b3a3a;
}

#navbar.scrolled #lang-btn {
  color: #44403c;
}

#navbar.scrolled #lang-btn:hover {
  color: #1a1816;
}

#navbar.scrolled #menu-toggle {
  color: #44403c;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #8b3a3a;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #44403c;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: #8b3a3a;
}

/* Language switcher */
.lang-dropdown .lang-option {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #44403c;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown .lang-option:hover {
  background: #f5f4f2;
  color: #8b3a3a;
}

.lang-pill {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #e8e6e3;
  color: #78736c;
  transition: all 0.2s ease;
}

.lang-pill:hover,
.lang-pill.active-lang {
  background: #8b3a3a;
  border-color: #8b3a3a;
  color: #fff;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
  background: #8b3a3a;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(139, 58, 58, 0.25);
}

.btn-primary:hover {
  background: #6b2a2a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 58, 58, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled:hover {
  background: #8b3a3a;
  transform: none;
  box-shadow: none;
}

.form-input:disabled {
  background: #f5f4f2;
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b3a3a;
  background: transparent;
  border: 2px solid #8b3a3a;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #8b3a3a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b3a3a;
  background: #fff;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== SECTIONS ==================== */

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 7rem 0;
  }
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8b3a3a;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  color: #1a1816;
  line-height: 1.2;
}

/* ==================== HERO ==================== */

.hero-animate {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

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

.lang-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

/* ==================== PRODUCTS ==================== */

.product-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 22, 16, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card .product-body {
  padding: 1.25rem;
}

.product-card .product-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1816;
  margin-bottom: 0.375rem;
}

.product-card .product-desc {
  font-size: 0.8125rem;
  color: #78736c;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-card .product-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8b3a3a;
  transition: gap 0.3s ease;
}

.product-card:hover .product-inquiry {
  gap: 0.625rem;
}

/* ==================== FEATURES ==================== */

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(139, 58, 58, 0.3);
  color: #d4bfb0;
  margin-bottom: 1.25rem;
}

/* ==================== CONTACT ==================== */

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #f3ede8;
  color: #8b3a3a;
  flex-shrink: 0;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.quick-link:hover {
  transform: translateY(-1px);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 0.375rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #1a1816;
  background: #fff;
  border: 1.5px solid #e8e6e3;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #8b3a3a;
  box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.12);
}

.form-input::placeholder {
  color: #a8a49e;
}

.form-input.error {
  border-color: #dc2626;
}

/* ==================== FOOTER ==================== */

.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

/* ==================== SCROLL REVEAL ==================== */

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

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

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-animate {
    opacity: 1;
    animation: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8b3a3a;
  outline-offset: 2px;
}
