/* =============================================
   GM Fruits — stylesheet v2 (mobile-first)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #0E3824;
  --green-mid:   #4CAF29;
  --gold:        #FCC63E;
  --orange:      #FF8A00;
  --red:         #E63946;
  --dark:        #14140f;
  --dark-2:      #1d1f19;
  --grey-soft:   #F6F5F1;
  --grey-mid:    #e6e4dc;
  --text:        #181a16;
  --text-muted:  #6b7268;
  --white:       #ffffff;

  --grad-brand: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  --grad-warm:  linear-gradient(135deg, var(--gold), var(--orange));

  --font: 'Poppins', sans-serif;

  --sp-xs: .5rem;  --sp-sm: 1rem;  --sp-md: 1.5rem;
  --sp-lg: 2.5rem; --sp-xl: 4rem;  --sp-2xl: 6rem;

  --r-sm: 10px; --r-md: 18px; --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,.14);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.22);
  --ease: .3s cubic-bezier(.4,0,.2,1);
  --max-w: 1280px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--max-w), 100% - 2.5rem); margin-inline: auto; }
.section   { padding-block: var(--sp-2xl); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tag--green { color: var(--green-mid); }
.tag--light { color: var(--gold); }

.heading {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.12;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}
.heading--light { color: var(--white); }
.sub { color: var(--text-muted); margin-top: .9rem; font-size: 1.02rem; max-width: 56ch; }
.sub--light { color: rgba(255,255,255,.72); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--solid  { background: var(--grad-warm); color: var(--green-dark); box-shadow: var(--shadow-sm); }
.btn--solid:hover { box-shadow: var(--shadow-md); }
.btn--ghost  { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark   { border-color: var(--green-dark); color: var(--green-dark); }
.btn--dark:hover { background: var(--green-dark); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  background: rgba(14,56,36,.92);
  backdrop-filter: blur(10px);
  padding-block: .8rem;
  box-shadow: var(--shadow-md);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); }
.header__logo-bg {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: .4rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.header__logo-img { height: 38px; width: auto; }

.nav__list { display: flex; gap: var(--sp-lg); }
.nav__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-bottom: .3rem;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer;
}
.hamburger span { width: 100%; height: 2px; background: var(--white); transition: var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (split) ---------- */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.hero__panel {
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 8rem 4vw 4rem;
  position: relative;
  overflow: hidden;
}
.hero__panel::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,41,.35), transparent 70%);
  top: -120px; left: -160px;
}
.hero__content { position: relative; z-index: 1; max-width: 540px; }
.hero__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.08;
  margin-bottom: var(--sp-md);
}
.hero__title span { color: var(--gold); }
.hero__lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  margin-bottom: var(--sp-lg);
  max-width: 46ch;
}
.hero__actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,56,36,.35), transparent 30%);
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--grad-warm);
  color: var(--green-dark);
  overflow: hidden;
  white-space: nowrap;
  padding-block: .9rem;
}
.ticker__track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 28s linear infinite;
}
.ticker__item {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.ticker__item::after { content: '✦'; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.sobre { background: var(--white); }
.sobre__top { max-width: 760px; margin-bottom: var(--sp-xl); }
.sobre__quote {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--green-dark);
  margin-block: var(--sp-md);
}
.sobre__quote em { font-style: normal; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }


.stats-row { display: flex; flex-wrap: wrap; gap: var(--sp-xl); border-top: 1px solid var(--grey-mid); padding-top: var(--sp-lg); }
.stat-inline__value {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-dark);
  line-height: 1;
}
.stat-inline__value span { color: var(--orange); }
.stat-inline__label { font-size: .82rem; color: var(--text-muted); margin-top: .35rem; }

/* ---------- Produtos (bento) ---------- */
.produtos { background: var(--dark); color: var(--white); }
.produtos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}
.pcard {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--dark-2);
}
.pcard:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.pcard img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s var(--ease); }
.pcard:hover img { transform: scale(1.08); }
.pcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 55%);
  display: flex; align-items: flex-end;
  padding: var(--sp-sm);
}
.pcard__overlay h3 { font-size: .95rem; font-weight: 700; }
.pcard:nth-child(1) .pcard__overlay h3 { font-size: 1.3rem; }

/* ---------- Qualidade ---------- */
.qualidade { background: var(--grey-soft); }
.qualidade__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); margin-top: var(--sp-xl); }
.qspot {
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  color: var(--white);
}
.qspot--a { background: var(--grad-brand); }
.qspot--b { background: linear-gradient(135deg, var(--orange), var(--red)); }
.qspot__icon { margin-bottom: var(--sp-md); }
.qspot h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .6rem; }
.qspot p { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ---------- Contacto ---------- */
.contacto { background: var(--white); }
.contacto__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: var(--sp-xl);
}
.contacto__info {
  background: var(--green-dark);
  color: var(--white);
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item__icon { flex-shrink: 0; margin-top: .1rem; }
.info-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.info-item p  { font-size: .87rem; color: rgba(255,255,255,.75); line-height: 1.6; }
.info-item a  { color: var(--gold); font-weight: 600; }
.contacto__map iframe { width: 100%; height: 100%; min-height: 380px; display: block; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.55); }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
  padding-block: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo-bg {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: .4rem .9rem;
  border-radius: 999px;
}
.footer__logo-img { height: 38px; }
.footer__nav { display: flex; gap: var(--sp-lg); flex-wrap: wrap; }
.footer__nav a { font-size: .88rem; }
.footer__nav a:hover { color: var(--gold); }
.footer__bottom { padding-block: var(--sp-md); font-size: .78rem; text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px;
  background: var(--grad-warm);
  color: var(--green-dark);
  border: none; border-radius: 50%;
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { height: 50vh; }
  .hero__panel { padding: 9rem 6vw 3.5rem; order: -1; }
  .produtos__grid { grid-template-columns: repeat(2, 1fr); }
  .pcard:nth-child(1) { grid-column: span 2; }
  .contacto__card { grid-template-columns: 1fr; }
  .contacto__map iframe { min-height: 280px; }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--green-dark); padding: 6rem var(--sp-lg) var(--sp-lg); transform: translateX(100%); transition: transform var(--ease); }
  .nav.mobile-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: var(--sp-md); }
  .hamburger { display: flex; }

  .stats-row { gap: var(--sp-lg); }
  .qualidade__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero__panel { padding: 8rem 6vw 3rem; }
  .produtos__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .pcard:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
