/* ============================================
   AGROVISION - PAGE SECTION STYLES
   Demo, Gallery, Hardware, Features, Team, Pilot, Contact, Footer
   ============================================ */

/* ============================================
   DEMO SECTION
   ============================================ */
.demo-section {
  position: relative;
  overflow: hidden;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.demo-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.demo-video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 32px;
}

@media (min-width: 768px) {
  .demo-video {
    height: 600px;
  }
}


.demo-bg-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.05;
  pointer-events: none;
}

.demo-bg-icon .material-symbols-outlined {
  font-size: 400px;
}

.demo-video-container {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
}

.demo-poster {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}



.demo-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.demo-video-container:hover img {
  transform: scale(1.05);
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 27, 31, 0.15); /* Reduced opacity for better image visibility */
  transition: background-color 0.5s ease;
}

.demo-video-container:hover .demo-overlay {
  background-color: rgba(26, 27, 31, 0.05); /* Very light overlay on hover */
}

.demo-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-play-btn button {
  width: 4rem; /* Reduced from 6rem */
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .demo-play-btn button {
    width: 5rem; /* Reduced from 8rem */
    height: 5rem;
  }
}

.demo-play-btn button:hover {
  transform: scale(1.1);
}

.demo-play-btn .material-symbols-outlined {
  font-size: 32px; /* Reduced from 48px */
}

@media (min-width: 768px) {
  .demo-play-btn .material-symbols-outlined {
    font-size: 40px; /* Reduced from 64px */
  }
}

/* ============================================
   PRODUCT GALLERY SECTION (FIX: bigger cards + no cropping)
   ============================================ */
.gallery-section {
  overflow: hidden;
}

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
}

.gallery-card {
  flex: 0 0 auto;

  /* Bigger cards */
  width: min(680px, 85vw);
  height: min(600px, 70vh);

  border-radius: 32px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;

  /* optional: better look if image has margins */
  background: var(--surface-variant);
}

/* Image fully visible: NO cropping */
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ no cropping */
  background: transparent;
  transition: transform 0.35s ease;
}

/* If you still want a gentle hover zoom WITHOUT cropping */
.gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.gallery-card-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.gallery-card-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-placeholder {
  background-color: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1rem;
}

/* ============================================
   HARDWARE / BENTO GRID SECTION
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  auto-rows: 280px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.bento-card-large {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-card-large {
    grid-column: span 2;
  }
}

.bento-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
}

.bento-card:hover .bento-card-bg-img {
  opacity: 0.3;
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bento-icon-primary {
  background-color: rgba(0, 194, 110, 0.2);
  color: var(--primary);
}

.bento-icon-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-fixed);
}

.bento-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.bento-card-desc {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 28rem;
  position: relative;
  z-index: 1;
}

.bento-card-dark {
  background-color: #2A3F34;
  color: white;
}

.bento-card-dark .bento-card-desc {
  color: rgba(255, 255, 255, 0.8);
}

.bento-card-light {
  background-color: var(--surface-container-low);
}

/* ============================================
   FEATURES / STEPS SECTION
   ============================================ */
.steps-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    gap: 1rem;
  }
}

.steps-line {
  display: none;
}

@media (min-width: 768px) {
  .steps-line {
    display: block;
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: rgba(108, 123, 110, 0.3);
    z-index: -1;
  }
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-icon-default {
  background-color: var(--surface-container-low);
  color: var(--primary);
}

.step-icon-active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 109, 59, 0.2);
}

.step-icon .material-symbols-outlined {
  font-size: 32px;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-background);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.6;
}


/* ==================== FAQ SECTION ==================== */
#faq {
  background-color: var(--surface-container-low);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-background);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-variation-settings: 'FILL' 1, 'wght' 500;
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.75rem 1.75rem;
  color: var(--on-surface-variant);
  line-height: 1.75;
  font-size: 1rem;
}

/* CTA inside FAQ */
#faq .legal-cta {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-width: 700px;
  margin: 3rem auto 0;
  transition: transform 0.3s ease;
}

#faq .legal-cta:hover {
  transform: translateY(-4px);
}

#faq .legal-cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.75rem;
}

#faq .legal-cta p {
  color: #4b7c5f;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

#faq .legal-cta .btn-primary {
  background-color: #16a34a;
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

#faq .legal-cta .btn-primary:hover {
  background-color: #15803d;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
}
/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--surface-container-low);
  aspect-ratio: 3/4;
}

.team-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.7s ease;
}

.team-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.team-card:hover .team-card-info {
  transform: translateY(0);
}

.team-name {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary-fixed-dim);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.team-card:hover .team-social {
  opacity: 1;
}

.team-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.team-social a:hover {
  color: white;
}

.team-social .material-symbols-outlined {
  font-size: 20px;
}

/* ============================================
   PILOT PROGRAM SECTION
   ============================================ */
.pilot-section {
  background-color: var(--background);
}

.pilot-card {
  width: 100%;
  background-color: #e9f9f0;
  border-radius: 40px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pilot-card {
    padding: 3rem;
  }
}

.pilot-blur-1 {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(0, 194, 110, 0.1);
  border-radius: 50%;
  filter: blur(3rem);
}

.pilot-blur-2 {
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(0, 194, 110, 0.1);
  border-radius: 50%;
  filter: blur(3rem);
}

.pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 109, 59, 0.1);
  color: var(--primary);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.pilot-badge span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pilot-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--on-background);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
  .pilot-title {
    font-size: 3rem;
  }
}

.pilot-desc {
  font-size: 1rem;
  color: var(--secondary);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.pilot-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .pilot-benefits {
    flex-direction: row;
    gap: 2rem;
  }
}

.pilot-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.pilot-benefit .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
}

.pilot-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .pilot-buttons {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background-color: var(--surface-container-lowest);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--on-background);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-header p {
  font-size: 1.125rem;
  color: var(--secondary);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-primary {
  background-color: rgba(0, 194, 110, 0.2);
  color: var(--primary);
}

.contact-icon-whatsapp {
  background-color: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.contact-method h4 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--on-background);
  margin-bottom: 0.25rem;
}

.contact-method p {
  font-size: 1rem;
  color: var(--secondary);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--surface);
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid rgba(108, 123, 110, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer {
  background-color: var(--on-background);
  color: var(--background);
  padding: 4rem 0;
  border-top: 1px solid rgba(108, 123, 110, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2;
  }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand-logo img {
  height: 2rem;
  width: 2rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  color: rgba(250, 248, 254, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 24rem;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--background);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(250, 248, 254, 0.7);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-fixed);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 254, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  color: rgba(250, 248, 254, 0.5);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(250, 248, 254, 0.7);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-fixed);
}
