/* ==========================================================================
   Viverda - design system (based on indoorvertical.farm / Elementor kit)
   ========================================================================== */

:root {
  --primary: #0A100B;
  --secondary: #111111;
  --text: #5A5A5A;
  --accent: #113D13;
  --lime: #B6F87A;
  --purple-light: #C599FF;
  --blue-light: #71DAFF;
  --teal: #397B74;
  --purple: #7A2BF7;
  --blue-purple: #583FFF;
  --white: #FFFFFF;
  --light-bg: #583FFF14;
  --shadow: 0px 0px 10px 3px rgba(177, 166, 166, 0.18);
  --radius: 7px;
  --radius-lg: 20px;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: 0.2px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--primary);
  line-height: 1.2em;
  margin: 0 0 0.6em;
}
h1 { font-size: 4.375rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 3.125rem; font-weight: 600; }
h4 { font-size: 1.375rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.938rem;
  font-weight: 400;
  background-color: var(--accent);
  color: var(--lime);
  border: 0;
  border-radius: var(--radius);
  padding: 18px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.btn:hover { background-color: var(--primary); color: var(--lime); }

.btn-purple {
  background-color: var(--purple);
  color: #FFFFFF;
}
.btn-purple:hover { background-color: var(--accent); color: #FFFFFF; }

.btn .arrow {
  display: inline-flex;
  order: 2;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  position: relative;
}
.brand { flex: 0 0 auto; padding-right: 20px; }
.brand img { max-height: 58px; width: auto; }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav ul li { margin: 0; }
.main-nav ul a {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  padding: 25px 16px;
}
.main-nav ul a:hover,
.main-nav ul a.active { color: var(--accent); }

.header-cta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.header-cta .btn {
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid var(--purple);
  color: var(--purple);
}
.header-cta .btn:hover { background: var(--purple); color: #FFFFFF; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--accent);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--primary);
  color: #FFFFFF;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  min-height: 520px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 130px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(270deg, rgba(10, 16, 11, 0) 0%, rgba(10, 16, 11, 0.9) 100%);
}
.motion-left   { animation: hero-pan-left  30s linear infinite; }
.motion-right  { animation: hero-pan-right 30s linear infinite; }
.motion-up     { animation: hero-pan-up    30s linear infinite; }
.motion-down   { animation: hero-pan-down  30s linear infinite; }
@keyframes hero-pan-left  { from { transform: translateX(0); }   to { transform: translateX(-10%); } }
@keyframes hero-pan-right { from { transform: translateX(0); }   to { transform: translateX(10%); } }
@keyframes hero-pan-up    { from { transform: translateY(0); }   to { transform: translateY(-10%); } }
@keyframes hero-pan-down  { from { transform: translateY(0); }   to { transform: translateY(10%); } }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 16, 11, 0.35);
  color: #FFFFFF;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-arrow:hover { background: var(--purple); border-color: var(--purple); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { background: var(--lime); }
.hero-inner { max-width: 60%; }
.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #FFFFFF;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 55px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2em;
  color: #FFFFFF;
  margin: 0 0 18px;
}
.hero p { color: #FFFFFF; font-size: 1rem; max-width: 620px; }
.hero .btn { margin-top: 12px; }

/* Section shell ---------------------------------------------------------- */
.section { padding: 100px 0; }
.section-title {
  font-size: 3.125rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}
.section-sub { max-width: 640px; }

.radial-bg {
  background-color: transparent;
  background-image: radial-gradient(at bottom left, var(--purple-light) 0%, #FFFFFF 39%);
}

.light-bg { background-color: var(--light-bg); }

/* Two column split ------------------------------------------------------- */
.split {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.split > * { flex: 1; }
.rounded-img {
  border-radius: 30px;
  width: 100%;
}

.featured-split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 40px;
  align-items: flex-start;
}
.featured-split .cards { margin-top: 0; }

/* Service / feature cards ------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.card {
  border-radius: var(--radius-lg);
  padding: 30px 30px 15px;
  color: #000000;
}
.card h4 { color: #000000; margin-top: 4px; }
.card p { color: #000000; }
.card .num { font-size: 1.375rem; font-weight: 600; }
.card-lime   { background-color: var(--lime); }
.card-purple { background-color: var(--purple-light); }
.card-blue   { background-color: var(--blue-light); }

/* Advantage image boxes --------------------------------------------------- */
.advantage {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 30px 0;
}
.advantage .img {
  width: 35%;
  flex: 0 0 35%;
}
.advantage h4 { margin: 4px 0 10px; }
.advantage p { margin: 0; }

/* Products grid ------------------------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(10, 16, 11, 0.18);
}
.product-card .thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--lime), var(--blue-light));
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
}
.product-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h4 { margin-bottom: 8px; }
.product-card .desc { flex: 1; font-size: 0.95rem; }
.product-card .price { margin-top: 14px; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.product-card .price small { font-weight: 400; color: var(--text); }

/* Gallery slider ------------------------------------------------------------ */
.gallery-slider { position: relative; }
.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip img {
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: calc(25% - 10px);
  min-width: 260px;
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* CTA band ------------------------------------------------------------------ */
.cta-band {
  position: relative;
  padding: 110px 0;
  background-image: url('../images/technology.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFFFFF;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h3 { color: #FFFFFF; text-transform: uppercase; margin-bottom: 16px; }
.cta-band p { color: #FFFFFF; max-width: 720px; margin: 0 auto 24px; }

/* Contact page --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info li {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.contact-info li strong { color: var(--primary); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; color: var(--text); }
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #CCCCCC;
  border-radius: 0;
  padding: 15px 30px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 140px; }

/* Footer --------------------------------------------------------------------- */
.site-footer { margin-top: 0; }
.footer-main {
  background-color: var(--lime);
  border-radius: 30px 30px 0 0;
  padding: 100px 0;
  color: #000000;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: 40px;
}
.footer-main h4 { color: #000000; }
.footer-main a { color: #000000; }
.footer-main a:hover { color: var(--accent); }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main ul li { padding: 5px 0; }
.footer-main .brand-img { max-width: 220px; margin-bottom: 16px; }
.social-links { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--lime);
  border-radius: 15px;
  font-size: 0.95rem;
}
.social-links a:hover { background: var(--blue-purple); color: #FFFFFF; }

.footer-bottom {
  background-color: var(--accent);
  padding: 20px 0;
  color: #FFFFFF;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

/* Filter bar ----------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.filter-bar a {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.9rem;
}
.filter-bar a:hover,
.filter-bar a.active { background: var(--accent); border-color: var(--accent); color: var(--lime); }

/* Flash messages -------------------------------------------------------------- */
.flash {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}
.flash-success { background: var(--lime); color: #0A100B; }
.flash-error { background: #fde8e8; color: #b91c1c; }

/* WhatsApp floating button ---------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: #25D366;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.5);
  line-height: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.wa-float svg { display: block; height: 40px; width: 40px; }
.wa-float:hover { background-color: #1EBE5D; transform: scale(1.05); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .section { padding: 60px 20px; }
  .section-title { font-size: 2.4rem; }
  .hero-inner { max-width: 80%; }
  .split { flex-direction: column; gap: 30px; }
  .featured-split { grid-template-columns: 1fr; gap: 30px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 767px) {
  .site-header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .brand { padding-right: 0; }
  .brand img { max-height: 44px; }
  .nav-toggle { display: block; }
  .main-nav {
    flex-basis: 100%;
    display: none;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 0; }
  .header-cta { position: static; transform: none; padding: 16px 0 6px; }
  .header-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    background: var(--purple);
    border: 0;
    color: #FFFFFF;
  }
  .header-cta .btn:hover { background: var(--accent); color: #FFFFFF; }
  .hero-slide { padding: 80px 20px; }
  .hero-slides { min-height: 420px; }
  .hero h1 { font-size: 25px; }
  .hero-label { font-size: 11px; letter-spacing: 2px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .section-title { font-size: 31px; }
  .cards { grid-template-columns: 1fr; }
  .advantage { flex-direction: column; }
  .advantage .img { width: 100%; flex: none; }
  .products-grid { grid-template-columns: 1fr; }
  .gallery-strip img { width: calc(50% - 10px); min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-main { padding: 60px 20px; }
}
