/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --green-dark: #2D5A3D;
  --green-medium: #3A7D53;
  --green-light: #4A9D68;
  --green-pale: #E8F5E9;
  --green-mint: #F0F9F1;
  --white: #FFFFFF;
  --off-white: #FAFCFA;
  --cream: #F5F7F2;
  --text-dark: #1A2E1F;
  --text-medium: #4A5D4F;
  --text-light: #7A8D7F;
  --shadow-soft: 0 4px 20px rgba(45, 90, 61, 0.08);
  --shadow-medium: 0 8px 32px rgba(45, 90, 61, 0.12);
  --shadow-hover: 0 12px 40px rgba(45, 90, 61, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 90, 61, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 48px;
  box-shadow: var(--shadow-soft);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-pale);
  transition: var(--transition);
}

.navbar-logo:hover img {
  transform: scale(1.05);
  border-color: var(--green-medium);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
}

.navbar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 1px;
}

.navbar-brand-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-medium);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--green-dark);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--green-mint) 50%, var(--green-pale) 100%);
  padding-top: 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatShape 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--green-medium);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--green-light);
  bottom: -50px;
  left: -80px;
  animation-delay: 2s;
}

.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--green-dark);
  top: 40%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

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

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-medium);
  margin-bottom: 28px;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(45, 90, 61, 0.15); }
  50% { box-shadow: 0 0 40px rgba(45, 90, 61, 0.25); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-medium), var(--green-light));
  margin: 0 auto 28px;
  border-radius: 3px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.3);
}

.hero-cta:hover {
  background: var(--green-medium);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.35);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
}

.scroll-indicator div {
  width: 24px;
  height: 38px;
  border: 2px solid var(--green-medium);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator div::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--green-medium);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.section-badge::before {
  content: '🌿';
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CATALOG SECTION ===== */
.catalog-section {
  padding: 100px 48px 120px;
  background: var(--off-white);
  position: relative;
}

.catalog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-pale), transparent);
}

/* ===== PLANT CARDS GRID ===== */
.plants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

/* ===== PLANT CARD ===== */
.plant-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: row;
}

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

.plant-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Card geometric layout with image */
.card-visual {
  position: relative;
  width: 360px;
  min-height: 400px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-visual-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.card-visual-bg .block {
  transition: var(--transition);
}

.card-visual-bg .block-green {
  background: var(--green-dark);
}

.card-visual-bg .block-white {
  background: var(--white);
}

.card-visual-bg .block-light {
  background: var(--green-pale);
}

.card-visual-bg .block-medium {
  background: var(--green-medium);
}

.card-image-wrapper {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.card-image {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.plant-card:hover .card-image {
  transform: scale(1.03);
}

.card-tag {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-dark);
}

/* Card info */
.card-info {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green-medium);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.card-scientific {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.card-description {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* Care icons */
.card-care {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--green-pale);
}

.care-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.care-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green-medium);
}

/* ===== POT SELECTOR ===== */
.card-pots {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--green-pale);
}

.card-pots-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.pot-options {
  display: flex;
  gap: 10px;
}

.pot-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--green-pale);
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}

.pot-thumb:hover {
  border-color: var(--green-medium);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.15);
}

/* ===== POT POPUP ===== */
.pot-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pot-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pot-popup-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  transform: scale(0.7) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
}

.pot-popup-overlay.active .pot-popup-content {
  transform: scale(1) translateY(0);
}

.pot-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.pot-popup-close:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.pot-popup-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.pot-popup-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 48px 32px;
  text-align: center;
}

.footer-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-divider {
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 20px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== ANIMATIONS ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .plants-grid {
    max-width: 900px;
  }
  
  .card-visual {
    width: 360px;
    min-height: 380px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 24px;
  }
  
  .navbar-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
  }
  
  .catalog-section {
    padding: 60px 20px 80px;
  }
  
  .plant-card,
  .plant-card:nth-child(even) {
    flex-direction: column;
  }
  
  .card-visual {
    width: 100%;
    min-height: 360px;
    height: 360px;
  }
  
  .footer {
    padding: 40px 24px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .card-visual {
    height: 280px;
    min-height: 280px;
  }
  
  .card-info {
    padding: 24px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
