/* 
   KVASS BRANDING DESIGN SYSTEM
   Premium, Artisan, Natural feel.
*/
:root {
  /* Colors - Dark Theme (Soft, no pure black) */
  --clr-bg: #1C1C1E;
  /* Apple Dark Mode standard background */
  --clr-surface: #2C2C2E;
  /* Elevated surface color */
  --clr-text-main: #FDFBF7;
  /* Off-white text */
  --clr-text-light: #AFAAA3;
  /* Light gray text */
  --clr-accent: #C85A17;
  /* Burnt Orange / Kvass Amber */
  --clr-accent-hover: #E06B22;
  --clr-secondary: #556B2F;
  /* Olive Green */
  --clr-dark-bg: #151517;
  /* Slightly darker section contrast, but not #000 */
  --clr-border: #3A3A3C;
  /* Soft dark borders */

  /* Typography */
  --font-heading: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout & Spacing */
  --max-width: 1200px;
  --spacing-section: 6rem;
  --spacing-element: 2rem;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--clr-text-main);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  color: var(--clr-text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.highlight {
  color: var(--clr-accent);
  font-style: italic;
}

.subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--clr-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* UTILS */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.w-full {
  width: 100%;
}

.grids-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

section {
  padding: var(--spacing-section) 0;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--clr-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--clr-accent-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: white;
}

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

.btn-outline:hover {
  border-color: var(--clr-text-main);
}

.btn-text {
  font-weight: 600;
  color: var(--clr-accent);
  position: relative;
  padding: 1rem 0;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* NAVBAR REDESIGN */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  background: rgba(28, 28, 30, 0.7);
  /* Matching the new --clr-bg #1C1C1E */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(28, 28, 30, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 70px;
  /* Slightly refined size based on user feedback */
  transition: var(--transition);
  /* Le filtre blanc a été retiré pour que le logo s'affiche avec ses couleurs d'origine */
}

/* If the generated logo image already has white text or looks good as is, we might need to remove the filter later depending on the actual image */

.navbar.scrolled .logo-img {
  max-height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  /* Increased spacing for a cleaner look */
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-main);
  opacity: 0.7;
  position: relative;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
  color: var(--clr-surface);
  /* White on hover */
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--clr-text-main);
  transition: var(--transition);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  padding-top: 5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-slogan {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero-image-container {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.abstract-shape {
  position: absolute;
  width: 400px;
  height: 450px;
  background-color: #F0E8D9;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 15s ease-in-out infinite;
  z-index: -1;
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }

  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.hero-mockup {
  width: 300px;
  max-width: 100%;
  height: 500px;
  background: linear-gradient(145deg, rgba(44, 44, 46, 0.8), rgba(28, 28, 30, 0.4));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.bottle-silhouette {
  font-family: var(--font-heading);
  font-size: 15rem;
  color: rgba(200, 90, 23, 0.1);
}

/* ABOUT SECTION */
.about {
  background-color: var(--clr-surface);
}

.image-placeholder {
  width: 100%;
  height: 500px;
  background: var(--clr-bg);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--clr-border);
}

.placeholder-text {
  color: var(--clr-text-light);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  opacity: 0.5;
}

.features-list {
  list-style: none;
  margin-top: 2rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--clr-text-main);
}

.features-list li svg {
  color: var(--clr-secondary);
}

/* PRODUCT SHOWCASE */
.product-card {
  background: var(--clr-surface);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.product-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* PROJECT SECTION */
.dark-section {
  background-color: var(--clr-dark-bg);
  color: var(--clr-text-main);
}

.dark-section h2,
.dark-section h3 {
  color: var(--clr-text-main);
}

.dark-section p {
  color: var(--clr-text-light);
}

.stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sierre-img {
  background: #2a2a2a;
  border-color: #333;
}

/* CONTACT */
.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  text-align: left;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius-sm);
  background: var(--clr-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(200, 90, 23, 0.1);
}

/* FOOTER */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--clr-text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--clr-text-light);
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-bg);
  color: var(--clr-text-main);
}

.social-icons a:hover {
  background: var(--clr-accent);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--clr-border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
    gap: 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .abstract-shape {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {

  .grids-2,
  .grids-3 {
    grid-template-columns: 1fr;
  }

  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(44, 44, 46, 0.98);
    /* Matching --clr-surface #2C2C2E */
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 101;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ANIMATIONS (Triggered by JS) */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}