/*
Theme Name: Melilote Theme
Theme URI: https://www.melilote.com
Author: MELILOTE
Description: Premium scientific skincare theme with Gucci-style logo animation
Version: 1.0
License: Private
Text Domain: melilote
*/

/* =====================================================
   MELILOTE - Complete Rewrite
   ===================================================== */

:root {
  --color-primary: #2D6A4F;
  --color-secondary: #8B8B8B;
  --color-light-gray: #A5A5A5;
  --color-warm-white: #FAFAF8;
  --color-charcoal: #2D2D2D;
  --color-black: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--color-charcoal);
  background: var(--color-warm-white);
  overflow-x: hidden;
}

/* ----- NAVBAR ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  padding-left: 200px;  /* Space for logo */
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-logo {
  opacity: 0;
  pointer-events: none;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar.solid .navbar-menu a {
  color: var(--color-charcoal);
}

.navbar-menu a:hover {
  color: var(--color-primary);
}

/* ----- HERO SECTION ----- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.05s linear;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Premium gradient overlay - darker in center where logo appears */
  background:
    /* Radial: dark center for logo readability */
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.25) 50%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    /* Linear: top-to-bottom for depth */
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.15) 30%,
      rgba(0, 0, 0, 0.1) 60%,
      rgba(0, 0, 0, 0.4) 100%
    );
  z-index: 2;
}

/* ----- HERO LOGO (the big animated one) ----- */
.hero-logo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.hero-logo-container img {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 70vw;
  height: auto;
  /* Enhanced shadow for better contrast against any background */
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25))
    drop-shadow(0 8px 40px rgba(0, 0, 0, 0.2));
  z-index: 1001;
  /* Smooth transition for triggered animation */
  transition:
    top 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.6s ease-out;
}

/* Logo in navbar state - triggered by scroll */
.hero-logo-container img.in-navbar {
  top: 35px;
  left: 115px;
  width: 150px;
  max-width: 150px;
  filter: none;
}

/* ----- HERO CONTENT ----- */
.hero-content {
  position: absolute;
  bottom: 120px;
  left: 0;
  width: 100%;
  z-index: 50;
  text-align: center;
  color: white;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 15px 40px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid white;
  transition: all 0.3s ease;
}

.btn-primary {
  background: white;
  color: var(--color-charcoal);
}

.btn-primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-charcoal);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 50;
  animation: pulse 2s infinite;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: white;
  margin: 15px auto 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ----- SECTIONS ----- */
.section {
  padding: 120px 8%;
}

.section-dark {
  background: var(--color-black);
  color: white;
}

.section-light {
  background: var(--color-warm-white);
}

/* Brand Essence */
.brand-essence {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.brand-essence h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.brand-essence h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-essence p {
  font-size: 16px;
  color: var(--color-light-gray);
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.2s;
}

.brand-essence p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content h3 {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 25px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.about-content blockquote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--color-primary);
  border-left: 2px solid var(--color-primary);
  padding-left: 25px;
  margin: 30px 0;
}

/* Science Grid */
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.science-card {
  text-align: center;
  padding: 50px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.science-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.science-card h4 {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.science-card p {
  font-size: 14px;
  color: var(--color-light-gray);
  line-height: 1.8;
}

/* Values */
.values-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 60px;
}

.value-item {
  text-align: center;
}

.value-item h4 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: var(--color-secondary);
}

/* Coming Soon */
.coming-soon {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.coming-soon h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 15px;
}

.coming-soon p {
  color: var(--color-secondary);
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.newsletter-form input {
  padding: 15px 20px;
  font-size: 14px;
  border: 1px solid var(--color-light-gray);
  background: transparent;
  color: white;
  min-width: 280px;
}

.newsletter-form input::placeholder {
  color: var(--color-light-gray);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-form button {
  padding: 15px 30px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #245a42;
}

/* Footer */
.footer {
  background: var(--color-black);
  color: white;
  padding: 60px 8% 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 45px;
  margin-bottom: 15px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--color-light-gray);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h5 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-light-gray);
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 25px auto 0;
  font-size: 12px;
  color: var(--color-light-gray);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--color-light-gray);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .science-grid {
    grid-template-columns: 1fr;
  }
  .values-container {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  .hero-logo-container img {
    max-width: 300px;
  }
  .hero-content {
    bottom: 100px;
  }
  .hero-tagline {
    font-size: 14px;
    letter-spacing: 4px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-form input {
    min-width: 100%;
    max-width: 300px;
  }
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}
