/* Reset and base styles */
:root {
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);   /* 8px -> 12px */
  --space-s:  clamp(1rem, 2vw, 1.5rem);     /* 16px -> 24px */
  --space-m:  clamp(1.5rem, 3vw, 2.5rem);   /* 24px -> 40px */
  --space-l:  clamp(2.5rem, 5vw, 4rem);     /* 40px -> 64px */
  --space-xl: clamp(4rem, 8vw, 6rem);      /* 64px -> 96px */
}

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

body {
  font-family: "CameraPlaineModerne LL", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  font-weight: 300;
  overflow-x: hidden;
}

/* Fixed nav styles with glassmorphism */
#tilda-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #fff;
  box-shadow: none;
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
  z-index: 10000;
}

#tilda-nav.glass {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nav content flex container */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-s);
  color: #050517;
  font-weight: 300;
  box-sizing: border-box;
  gap: var(--space-s);
  min-width: 0;
}

/* Nav sections */
.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.nav-left {
  flex: 1;
  justify-content: flex-start;
}

.nav-center {
  flex: 0 0 auto;
  justify-content: center;
}

.nav-right {
  flex: 1;
  justify-content: flex-end;
}

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

.logo-image {
  height: 40px;
  width: auto;
}

/* Navigation links */
.nav-left a,
.nav-right a {
  position: relative;
  color: #050517;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-left a::after,
.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #050517;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
  width: 100%;
}

/* Button styles */
.nav-right .NavButton {
  height: 36px;
  max-height: 40px;
  padding: 0 clamp(1rem, 2vw, 1.25rem);
  box-sizing: border-box;
  font-size: clamp(0.8125rem, 1.2vw, 0.875rem);
  line-height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  max-width: 280px;
  background-color: #050517;
  color: #fdfffc !important; 
  border: 1px solid #050517;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  pointer-events: auto;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.NavButton::after {
  display: none !important;
}

.nav-right .NavButton:hover {
  background-color: rgba(253, 255, 252, 0.1);
  color: #050517 !important;
  border-color: #050517;
}

/* Cart icon */
.cart-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cart-icon:hover {
  opacity: 0.7;
}

/* Mobile hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: #050517;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: var(--space-s);
  flex-direction: column;
  gap: var(--space-s);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #050517;
  text-decoration: none;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(5, 5, 23, 0.1);
  letter-spacing: -0.01em;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* HERO SECTION STYLES - UPDATED FOR TILDA */
.hero-section {
  /* This forces the section to be exactly the size of the screen */
  width: 100vw; /* 100% of viewport width */
  height: 100vh; /* 100% of viewport height */
  
  /* The following lines position it correctly at the top-left */
  position: relative; 
  top: 0;
  left: 0;
  
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  height: 100%;
  padding: 70px var(--space-s) var(--space-s) var(--space-s);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is key: it ensures the image covers the area without distortion */
  object-position: center;
  animation: heroImageFade 1.2s ease-out;
}

.hero-title {
  position: absolute;
  bottom: var(--space-s);
  left: var(--space-s);
  font-size: clamp(32px, 10vw, 75px);
  font-weight: 100;
  color: #fff;
  z-index: 2; /* Ensure title is on top of the image */
}

/* Animations */
@keyframes heroImageFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* CONTENT SECTION STYLES - UPDATED FOR TILDA */
.content-section {
  padding: var(--space-xl) var(--space-s);
  text-align: center;
  position: relative; /* This is important for stacking */
  z-index: 2; /* Ensures it appears on top of the hero section when scrolling */
  background-color: #fdfffc; /* Give it a solid background to hide the hero content behind it */
}

.content-title {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: var(--space-m);
}

.content-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto var(--space-s) auto;
}

/* Footer Section */
.footer-section {
  padding: var(--space-l) var(--space-s) var(--space-m) var(--space-s);
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  font-weight: 300;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-l);
}
.footer-links-columns {
  display: flex;
  gap: var(--space-l);
  flex: 1 1 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-column {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  gap: 3px;
}
.footer-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.footer-link {
  color: #050517;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 3px;
  transition: color 0.25s;
}
.footer-link:hover {
  color: #6c757d;
}
.footer-promo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-m);
  padding-top: var(--space-m);
  border-top: 1px solid #e9ecef;
  margin-top: var(--space-l);
}
.footer-baseline {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1 1 auto;
}
.footer-newsletter-btn {
  background-color: #050517;
  color: #fdfffc !important;
  border: 1px solid #050517;
  border-radius: 6px;
  padding: 10px 26px;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  height: 40px;
  max-width: 280px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-newsletter-btn:hover {
  background: rgba(253, 255, 252, 0.1);
  color: #050517 !important;
  border-color: #050517;
}
.footer-copyright {
  font-size: 14px;
  color: #6c757d;
  text-align: center;
  padding-top: var(--space-m);
  margin-top: var(--space-m);
}

/* Responsive breakpoints */

/* 960px and below - Mobile layout */
@media (max-width: 960px) {
  .nav-left,
  .nav-right > a:nth-child(1),
  .nav-right > a:nth-child(2),
  .nav-right .NavButton {
    display: none;
  }

  .nav-center {
    flex: 1;
    justify-content: flex-start;
  }

  .nav-right {
    justify-content: flex-end;
    gap: var(--space-s);
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .content-section {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
  }
}

/* 320px - 480px */
@media (min-width: 320px) and (max-width: 479px) {
  #tilda-nav {
    height: 60px;
  }

  .nav-content {
    height: 60px;
  }
}

/* Very small devices - below 320px */
@media (max-width: 319px) {
  #tilda-nav {
    height: 50px;
  }

  .nav-content {
    height: 50px;
  }
}
