/* ============================================
   FLORA by Robert Salazar — Complete Stylesheet
   Header · Footer · Animations · Responsive
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --flora-black: #0a0a0a;
  --flora-dark: #111111;
  --flora-gold: #C6A75A;
  --flora-beige: #EDE8E1;
  --flora-white: #ffffff;
}

/* ============================================
   HEADER
   ============================================ */

.site-header,
header.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
  padding: 0 !important;
}

/* Scrolled state — added via JS */
.site-header.flora-scrolled {
  background: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(198, 167, 90, 0.2);
}

.site-header .header-widget-area,
.site-header .site-branding,
.elementor-location-header .elementor-section-wrap,
.site-header .site-navigation {
  display: none !important;
}

/* Flora custom nav */
#flora-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
}

#flora-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--flora-white);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: color 0.3s ease;
}

#flora-logo span {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  letter-spacing: 5px;
  color: var(--flora-gold);
  font-weight: 400;
  margin-top: 3px;
}

#flora-logo:hover { color: var(--flora-gold); }

#flora-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#flora-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

#flora-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--flora-gold);
  transition: width 0.3s ease;
}

#flora-menu a:hover {
  color: var(--flora-gold);
}

#flora-menu a:hover::after { width: 100%; }

#flora-cta-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--flora-white) !important;
  background: var(--flora-gold);
  border: 1px solid var(--flora-gold);
  padding: 12px 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#flora-cta-btn:hover {
  background: transparent;
  color: var(--flora-gold) !important;
}

#flora-cta-btn::after { display: none !important; }

/* Mobile hamburger */
#flora-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
}

#flora-hamburger span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--flora-white);
  transition: all 0.3s ease;
}

#flora-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#flora-hamburger.open span:nth-child(2) { opacity: 0; }
#flora-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu drawer */
#flora-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#flora-mobile-menu.open {
  display: flex;
  opacity: 1;
}

#flora-mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--flora-white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

#flora-mobile-menu a:hover { color: var(--flora-gold); }

#flora-mobile-menu .flora-mob-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  background: var(--flora-gold);
  color: var(--flora-white) !important;
  padding: 14px 40px;
  margin-top: 10px;
}

/* Push content below fixed header */
.elementor-location-header + * { padding-top: 0 !important; }

/* ============================================
   FOOTER
   ============================================ */

#flora-footer {
  background: var(--flora-black);
  border-top: 1px solid rgba(198,167,90,0.15);
  padding: 80px 60px 0;
  font-family: 'Montserrat', sans-serif;
}

.flora-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.flora-footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--flora-white);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.flora-footer-brand h3 span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  letter-spacing: 5px;
  color: var(--flora-gold);
  font-weight: 400;
  margin-bottom: 20px;
}

.flora-footer-brand p {
  font-size: 12px;
  color: rgba(237,232,225,0.5);
  line-height: 1.9;
  font-weight: 300;
  max-width: 280px;
  margin: 0 0 25px;
}

.flora-footer-social {
  display: flex;
  gap: 15px;
}

.flora-footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(198,167,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237,232,225,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.flora-footer-social a:hover {
  border-color: var(--flora-gold);
  color: var(--flora-gold);
  background: rgba(198,167,90,0.08);
}

.flora-footer-col h4 {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--flora-gold);
  margin: 0 0 25px;
  font-weight: 500;
}

.flora-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flora-footer-col ul li a {
  font-size: 12px;
  color: rgba(237,232,225,0.5);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.flora-footer-col ul li a:hover { color: var(--flora-gold); }

.flora-footer-contact p {
  font-size: 12px;
  color: rgba(237,232,225,0.5);
  line-height: 1.8;
  font-weight: 300;
  margin: 0 0 8px;
}

.flora-footer-contact a {
  color: rgba(237,232,225,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.flora-footer-contact a:hover { color: var(--flora-gold); }

.flora-footer-bottom {
  border-top: 1px solid rgba(198,167,90,0.1);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flora-footer-bottom p {
  font-size: 10px;
  color: rgba(237,232,225,0.3);
  letter-spacing: 1px;
  margin: 0;
}

.flora-footer-bottom a {
  color: rgba(198,167,90,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.flora-footer-bottom a:hover { color: var(--flora-gold); }

/* Hide default WP copyright if exists */
.site-footer .copyright,
.elementor-location-footer { display: none !important; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.flora-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.flora-fade-up.flora-visible { opacity: 1; transform: translateY(0); }

.flora-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.flora-fade-left.flora-visible { opacity: 1; transform: translateX(0); }

.flora-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.flora-fade-right.flora-visible { opacity: 1; transform: translateX(0); }

.flora-scale-in {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.flora-scale-in.flora-visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.flora-delay-1 { transition-delay: 0.1s; }
.flora-delay-2 { transition-delay: 0.2s; }
.flora-delay-3 { transition-delay: 0.3s; }
.flora-delay-4 { transition-delay: 0.4s; }
.flora-delay-5 { transition-delay: 0.5s; }

/* Section-level animation targets */
.elementor-section { overflow: hidden; }

/* Hero section */
.elementor-element[data-id="sec1hero"] .elementor-widget-heading,
.elementor-element[data-id="sec1hero"] .elementor-widget-text-editor,
.elementor-element[data-id="sec1hero"] .elementor-widget-button {
  opacity: 0;
  transform: translateY(30px);
  animation: floraHeroIn 0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

.elementor-element[data-id="sec1hero"] .elementor-widget-heading { animation-delay: 0.3s; }
.elementor-element[data-id="sec1hero"] .elementor-widget-text-editor { animation-delay: 0.5s; }
.elementor-element[data-id="sec1hero"] .elementor-widget-button { animation-delay: 0.7s; }

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

/* Gold line reveal */
.elementor-widget-divider .elementor-divider {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.flora-visible .elementor-widget-divider .elementor-divider,
.elementor-widget-divider.flora-visible .elementor-divider {
  transform: scaleX(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  #flora-nav { padding: 0 40px; }
  #flora-menu { gap: 28px; }
  
  .flora-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .elementor-element[data-id="sec1hero"] .elementor-widget-heading .elementor-heading-title {
    font-size: 64px !important;
  }
  
  .flora-footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  #flora-nav { padding: 0 24px; height: 68px; }
  #flora-menu, #flora-cta-btn { display: none !important; }
  #flora-hamburger { display: flex !important; }

  /* Elementor sections full width */
  .elementor-section.elementor-section-boxed > .elementor-container { max-width: 100% !important; }
  .elementor-column { width: 100% !important; }
  .elementor-row { flex-direction: column !important; }

  /* Hero */
  .elementor-element[data-id="col1hero"],
  .elementor-element[data-id="col2hero"] {
    width: 100% !important;
  }
  .elementor-element[data-id="sec1hero"] {
    height: auto !important;
    min-height: 100vh;
  }
  .elementor-element[data-id="col1hero"] > .elementor-element-populated {
    padding: 100px 28px 60px !important;
  }
  .elementor-element[data-id="col2hero"] {
    min-height: 50vw !important;
  }
  .elementor-element[data-id="hero_title"] .elementor-heading-title {
    font-size: 52px !important;
    line-height: 1.1 !important;
  }

  /* About */
  .elementor-element[data-id="sec2about"] {
    height: auto !important;
  }
  .elementor-element[data-id="col1about"],
  .elementor-element[data-id="col2about"] { width: 100% !important; }
  .elementor-element[data-id="col1about"] { min-height: 55vw; }
  .elementor-element[data-id="col2about"] > .elementor-element-populated {
    padding: 50px 28px !important;
  }
  .elementor-element[data-id="about_title"] .elementor-heading-title {
    font-size: 36px !important;
  }

  /* Services */
  .elementor-element[data-id="sec3services"],
  .elementor-element[data-id="sec3cards"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .elementor-element[data-id="col_svc1"],
  .elementor-element[data-id="col_svc2"],
  .elementor-element[data-id="col_svc3"] { width: 100% !important; margin-bottom: 20px; }
  .elementor-element[data-id="services_title"] .elementor-heading-title {
    font-size: 42px !important;
  }

  /* Process */
  .elementor-element[data-id="sec4proceso"],
  .elementor-element[data-id="sec4steps"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .elementor-element[data-id="col_step1"],
  .elementor-element[data-id="col_step2"],
  .elementor-element[data-id="col_step3"],
  .elementor-element[data-id="col_step4"] { width: 100% !important; margin-bottom: 16px; }
  .elementor-element[data-id="proceso_title"] .elementor-heading-title {
    font-size: 42px !important;
  }

  /* Quote */
  .elementor-element[data-id="sec5quote"] {
    padding: 70px 28px !important;
  }
  .elementor-element[data-id="quote_text"] .elementor-heading-title {
    font-size: 24px !important;
  }

  /* CTA */
  .elementor-element[data-id="sec6cta"] {
    padding: 80px 28px !important;
  }
  .elementor-element[data-id="cta_title"] .elementor-heading-title {
    font-size: 42px !important;
  }

  /* Footer */
  #flora-footer { padding: 60px 24px 0; }
  .flora-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .flora-footer-brand p { max-width: 100%; }
  .flora-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Clients section */
  .flora-counter-strip { gap: 40px; }
  .flora-counter-num { font-size: 48px !important; }
  .flora-clients-title { font-size: 36px !important; }
}

@media (max-width: 480px) {
  .elementor-element[data-id="hero_title"] .elementor-heading-title {
    font-size: 40px !important;
  }
  #flora-nav { padding: 0 20px; }
}
