/* ══════════════════════════════════════
   AGEYE — Farming-as-a-Service Page
   ══════════════════════════════════════ */

/* ── IMAGE PLACEHOLDERS (dev only — remove when images are placed) ── */
[class*="-placeholder"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gray-100),
    var(--gray-100) 8px,
    var(--gray-50) 8px,
    var(--gray-50) 16px
  );
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  text-align: center;
  padding: 24px;
}

.placeholder-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  background: rgba(232,21,91,0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

.placeholder-desc {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.faas-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 140px 40px 80px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.faas-hero-content { position: relative; z-index: 2; }

.faas-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.faas-hero h1 em { font-style: normal; color: var(--pink); }

.faas-hero .hero-sub {
  font-size: 1.15rem;
  color: var(--gray-800);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

.faas-hero-note {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 32px;
  margin-top: -8px;
}

.faas-hero-media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faas-hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 380px;
}

.faas-hero-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════
   WHAT IT IS
   ═══════════════════════════════════ */
.faas-what {
  padding: 100px 40px;
}

.faas-what-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.faas-what-sub {
  font-size: 1.05rem;
  color: var(--gray-800);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

.faas-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.faas-what-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faas-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}

.faas-step:last-child { border-bottom: none; }

.faas-step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(232,21,91,0.06);
}

.faas-step-icon .p { font-size: 1rem; }

.faas-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.faas-step p {
  font-size: 0.88rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.faas-what-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faas-diagram-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 300px;
}

.faas-what-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── What It Is diagram ── */
.faas-diagram {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.faas-diagram-col { padding: 36px 28px; }

.faas-diagram-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

/* Left column — You Provide */
.faas-diagram-you {
  background: rgba(232,21,91,0.04);
  display: flex;
  flex-direction: column;
}

.faas-diagram-you h4 { color: var(--black); }

.faas-diagram-you-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  border: 2px dashed rgba(232,21,91,0.2);
  border-radius: 12px;
  padding: 32px 20px;
  background: rgba(232,21,91,0.06);
}

.faas-diagram-icon { flex-shrink: 0; }

.faas-diagram-you-body p {
  font-size: 0.88rem;
  color: var(--gray-800);
  line-height: 1.5;
  max-width: 180px;
}

/* Right column — AGEYE Handles */
.faas-diagram-ageye {
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
}

.faas-diagram-ageye h4 { color: white; }

.faas-diagram-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.faas-pill {
  display: block;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  padding: 10px 20px;
  background: rgba(232,21,91,0.55);
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.faas-diagram-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 24px;
  font-style: italic;
}

.faas-what-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(232,21,91,0.04);
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════
   SAME-DAY FRESHNESS
   ═══════════════════════════════════ */
.faas-fresh {
  padding: 100px 40px;
  background: var(--gray-50);
}

.faas-fresh-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.faas-fresh-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ── Timeline comparison ── */
.faas-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.faas-timeline-old h3,
.faas-timeline-new h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.faas-timeline-old h3 { color: var(--gray-400); }
.faas-timeline-new h3 { color: var(--pink); }

.timeline-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
}

.tl-node {
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.timeline-bar.old .tl-node {
  background: rgba(0,0,0,0.05);
  color: var(--gray-800);
}

.timeline-bar.new .tl-node {
  background: rgba(232,21,91,0.08);
  color: var(--pink);
}

.tl-node.accent {
  background: rgba(232,21,91,0.08);
  color: var(--pink);
}

.tl-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 12px;
}

.tl-line.accent { background: var(--pink); opacity: 0.3; }

.tl-duration {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 10px;
  font-weight: 500;
}

.tl-duration.accent { color: var(--pink); font-weight: 700; }

/* ── Benefits row ── */
.faas-fresh-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.faas-fresh-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 260px;
}

.faas-fresh-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.faas-benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.faas-benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}

.faas-benefit-list .p { font-size: 0.85rem; flex-shrink: 0; }

.faas-fresh-closing {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--pink);
}

/* ═══════════════════════════════════
   IDEAL LOCATIONS
   ═══════════════════════════════════ */
.faas-locations {
  padding: 100px 40px;
}

.faas-locations-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.faas-loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faas-loc-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border-top: 3px solid var(--pink);
  transition: var(--t);
  border: 1.5px solid transparent;
  border-top: 3px solid var(--pink);
}

.faas-loc-card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06), 0 0 20px rgba(232,21,91,0.08);
}

.faas-loc-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,21,91,0.05);
  border-radius: 12px;
  margin-bottom: 20px;
}

.faas-loc-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.faas-loc-card p {
  font-size: 0.88rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.faas-loc-qualifier {
  text-align: center;
  font-size: 0.92rem;
  color: var(--gray-400);
  margin-top: 40px;
  font-weight: 500;
}

/* ═══════════════════════════════════
   CROPS PRODUCED
   ═══════════════════════════════════ */
.faas-crops {
  padding: 100px 40px;
  background: var(--gray-50);
}

.faas-crops-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.faas-crops-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.faas-crop-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--t);
  border: 1px solid var(--gray-100);
}

.faas-crop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  border-color: rgba(232,21,91,0.15);
}

.faas-crop-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--gray-200);
}

.faas-crop-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.faas-crop-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 18px 6px;
}

.faas-crop-card p {
  font-size: 0.82rem;
  color: var(--gray-800);
  line-height: 1.55;
  padding: 0 18px 18px;
}

.faas-crops-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-top: 36px;
  font-weight: 500;
}

/* ═══════════════════════════════════
   HOW IT WORKS — Steps
   ═══════════════════════════════════ */
.faas-how {
  padding: 100px 40px;
}

.faas-how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.faas-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.faas-step-card {
  flex: 1;
  max-width: 220px;
  text-align: center;
}

.faas-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.faas-step-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  min-height: 140px;
}

.faas-step-illus {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
}

.faas-step-illus svg {
  width: 100%;
  height: 100%;
}

.faas-step-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.faas-step-card p {
  font-size: 0.82rem;
  color: var(--gray-800);
  line-height: 1.55;
}

.faas-step-connector {
  display: flex;
  align-items: center;
  padding-top: 48px;
  flex-shrink: 0;
}

.faas-how-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 700px;
  margin: 56px auto 0;
  background: rgba(232,21,91,0.04);
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-800);
}

/* ═══════════════════════════════════
   FAQ
   ═══════════════════════════════════ */
.faas-faq {
  padding: 100px 40px;
  background: var(--gray-50);
}

.faas-faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faas-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faas-faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faas-faq-item summary {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

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

.faas-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--pink);
  transition: transform 0.3s ease;
}

.faas-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faas-faq-item summary:hover {
  color: var(--pink);
}

.faas-faq-item p {
  font-size: 0.92rem;
  color: var(--gray-800);
  line-height: 1.7;
  padding: 0 0 22px;
  max-width: 700px;
}

/* ═══════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════ */
.faas-cta {
  padding: 120px 40px;
  background: linear-gradient(135deg, var(--green) 0%, #0d2818 50%, #1a1a2e 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faas-cta .float-p {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.08;
  animation: plusBreath 6s ease-in-out infinite;
}

.faas-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.faas-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.faas-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.faas-cta .btn {
  margin: 0 auto;
}

/* ═══════════════════════════════════
   RESPONSIVE — Tablet & Mobile
   ═══════════════════════════════════ */
@media (max-width: 900px) {
  .faas-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 120px 20px 60px;
    gap: 40px;
  }
  .faas-hero h1 { font-size: clamp(2.1rem, 5vw, 2.6rem); }
  .faas-hero .hero-sub { font-size: 1rem; }
  .faas-hero .hero-ctas { flex-direction: column; gap: 12px; }
  .faas-hero .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .faas-hero-img-placeholder { min-height: 240px; }

  .faas-what { padding: 70px 20px; }
  .faas-what-grid { grid-template-columns: 1fr; gap: 40px; }
  .faas-diagram { grid-template-columns: 1fr; }
  .faas-diagram-col { padding: 28px 20px; }

  .faas-fresh { padding: 70px 20px; overflow: hidden; }
  .faas-timeline { grid-template-columns: 1fr; gap: 32px; }
  .faas-fresh-benefits { grid-template-columns: 1fr; }
  .faas-fresh-img-placeholder { min-height: 200px; }

  /* Timeline bar — allow nodes to shrink and wrap on mobile */
  .timeline-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tl-node {
    flex-shrink: 1;
    white-space: normal;
    text-align: center;
    font-size: 0.65rem;
    padding: 6px 10px;
  }
  .tl-line {
    min-width: 6px;
    flex: 0 1 16px;
  }

  .faas-locations { padding: 70px 20px; }
  .faas-loc-grid { grid-template-columns: 1fr; }

  .faas-crops { padding: 70px 20px; }
  .faas-crops-grid { grid-template-columns: 1fr 1fr; }

  .faas-how { padding: 70px 20px; }
  .faas-steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .faas-step-card { max-width: 100%; }
  .faas-step-connector { padding-top: 0; transform: rotate(90deg); }

  .faas-faq { padding: 70px 20px; }

  .faas-cta { padding: 80px 20px; }
  .faas-cta .float-p { display: none; }
}

@media (max-width: 480px) {
  .faas-hero h1 { font-size: 2rem; }
  .faas-crops-grid { grid-template-columns: 1fr; }
  .faas-faq-item summary { font-size: 0.95rem; }
}


/* ═══════════════════════════════════
   CONSULTATION MODAL
   ═══════════════════════════════════ */
.faas-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.faas-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.faas-modal {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 560px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.faas-modal-overlay.open .faas-modal {
  transform: translateY(0) scale(1);
}

.faas-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.faas-modal-close:hover {
  color: var(--black);
}

.faas-modal h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.faas-modal > p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 28px;
}

.faas-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faas-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faas-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faas-form-field label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
  letter-spacing: 0.02em;
}

.faas-form-field input,
.faas-form-field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.faas-form-field input::placeholder,
.faas-form-field textarea::placeholder {
  color: var(--gray-400);
}

.faas-form-field input:focus,
.faas-form-field textarea:focus {
  border-color: var(--pink);
  background: white;
}

.faas-form-submit {
  align-self: flex-end;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .faas-modal { padding: 36px 24px; }
  .faas-form-row { grid-template-columns: 1fr; }
  .faas-form-submit { width: 100%; text-align: center; justify-content: center; }
}
