/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #eaf6f6;
  color: #333;
  font-size: 1rem;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wave-bg {
  background: url('../images/bluebg.png') no-repeat center top;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  transition: height 0.3s ease-out;
  transform-origin: top;
}

/* Scroll Header */
.scroll-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
  background: transparent;
  z-index: 20;
  transition: background 0.3s ease-out;
}

/* Navbar wordmark — keep compact; was 300px and dominated the bar */
.scroll-header .logo.logo-nav {
  height: auto;
  max-height: 48px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.scroll-header .logo.logo-nav img {
  height: 40px;
  width: auto;
  max-width: min(140px, 28vw);
  object-fit: contain;
  display: block;
  z-index: 2;
}

@media (min-width: 640px) {
  .scroll-header .logo.logo-nav img {
    height: 44px;
    max-width: 160px;
  }
}

/* Logo Animation */
.logo-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: min(88vw, 480px);
  height: auto;
  max-height: min(38vh, 320px);
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .logo-centered {
    max-width: min(72vw, 560px);
    max-height: min(42vh, 380px);
  }
}

.logo-nav.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.logo-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation */
nav {
  padding-top: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

nav a {
  margin-left: 0;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.4s ease-in-out;
  display: inline-block;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

nav a:hover {
  color: transparent;
  background-image: url('../images/summertextbg.JPG');
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: cover;
  background-position: center;
}

nav a:hover::before {
  opacity: 1;
}

/* Hero Content */
.hero-content {
  z-index: 5;
  text-align: center;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin: 1rem 0;
}

.cta {
  margin-top: 2rem;
  background: #ff5722;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
}

/* Products Section */
.products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background: #fff;
  z-index: 4;
}

.product {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  z-index: 5;
}

.product img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1rem;
}

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

.product p {
  color: #777;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #fcd34d;
  color: #444;
  font-weight: 600;
}
