@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;700;800&display=swap');

:root {
  --primary: #000613;
  --primary-container: #001F3F;
  --on-primary: #ffffff;
  
  --surface: #f9f9f9;
  --surface-low: #f3f3f3;
  --surface-lowest: #ffffff;
  --on-surface: #1a1c1c;
  --on-surface-variant: #43474e;
  
  --tertiary: #B39359; /* Muted Gold / Accent */
  --on-tertiary: #1a1a1a;
  
  --outline: #74777f;
  --outline-variant: rgba(116, 119, 127, 0.15); /* Ghost border */
  
  --shadow-ambient: 0px 20px 40px rgba(0, 31, 63, 0.06);
  --shadow-hover: 0px 30px 60px rgba(0, 31, 63, 0.12);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

/* Navbar (Glassmorphism) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(249, 249, 249, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 4rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 31, 63, 0.05);
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary-container);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--tertiary);
}

.btn-primary {
  display: inline-block;
  background: var(--primary-container);
  color: var(--on-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: #002d5c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient);
}

.btn-accent {
  background: var(--tertiary);
  color: var(--on-tertiary);
}

.btn-accent:hover {
  background: #cba86b;
  box-shadow: 0px 10px 20px rgba(179, 147, 89, 0.2);
}

/* Hero Section */
.hero {
  padding: 12rem 4rem 8rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at right, rgba(0,31,63,0.03) 0%, rgba(249,249,249,0) 50%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  padding-right: 2rem;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--primary);
}

.hero-text {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 1s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Stats/Trust Bar */
.trust-bar {
  background-color: var(--primary-container);
  padding: 4rem 0;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

.trust-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-around;
  /* Soft white text */
  color: rgba(255,255,255,0.9);
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--on-primary);
  margin-bottom: 0.5rem;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tertiary);
}

/* Products Section */
.products {
  padding: 8rem 4rem;
  background-color: var(--surface-low);
}

.section-header {
  max-width: 1400px;
  margin: 0 auto 4rem auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  padding-bottom: 2rem; /* space for scrollbar */
  scroll-snap-type: x mandatory;
  /* Hide scrollbar for cleaner look if preferred, but standard is fine */
  scrollbar-width: thin;
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}
.carousel-container::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}

.product-card {
  flex: 0 0 calc(33.333% - 1.666rem); /* Show ~3 items on desktop */
  min-width: 320px;
  scroll-snap-align: start;
  background: var(--surface-lowest);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid var(--outline-variant);
}

.product-card:hover {
  background: var(--surface);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
  height: 250px;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 2rem;
}

.product-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--surface-low);
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Form Section */
.sourcing-form-section {
  padding: 8rem 4rem;
  background: var(--surface-lowest);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  padding: 4rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-ambient);
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.form-group {
  position: relative;
}

/* Minimalist Tray Form Style per instruction */
.form-control {
  width: 100%;
  padding: 1rem 0 0.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--on-surface);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--outline-variant);
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-bottom-color: var(--primary-container);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 1rem;
  color: var(--on-surface-variant);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--tertiary);
}

/* Language Flags */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-flag {
  background: none;
  border: 1px solid transparent;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-flag:hover {
  transform: scale(1.1);
  background: rgba(0, 31, 63, 0.05);
}

.lang-flag.active {
  background: rgba(0, 31, 63, 0.1);
  border-color: var(--primary-container);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    padding-right: 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar, .hero, .products, .sourcing-form-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .trust-container {
    flex-direction: column;
    gap: 3rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 2rem;
  }
}
