/* ============================================
   HOME — seções exclusivas da página inicial
   Requer base.css
   ============================================ */

/* ── HERO ── */
/* ── MEDIA BANNER (vídeo do criatório em loop) ── */
.media-banner {
  aspect-ratio: 1920 / 824;
  width: 100%;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
  display: block;
}
.media-banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-banner-icon { font-size: 2.4rem; opacity: 0.35; }
.media-banner-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink-3); }
.media-banner-hint { font-size: 0.75rem; color: var(--ink-3); opacity: 0.7; letter-spacing: 0.03em; }

#hero {
  position: relative;
  padding: 140px 5% 120px;
  background:
    linear-gradient(160deg, rgba(19,33,26,0.88) 0%, rgba(31,61,46,0.82) 55%, rgba(63,107,118,0.75) 130%),
    var(--bg-hero-image, linear-gradient(135deg, #1f3d2e, #3f6b76));
  background-size: cover;
  background-position: center;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-tag {
  display: inline-block; background: rgba(250,247,240,0.12); border: 1px solid rgba(250,247,240,0.25); color: var(--gold-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.45rem 1.1rem; border-radius: 999px; margin-bottom: 1.8rem;
}
#hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.08; color: var(--bg); margin-bottom: 1.2rem; letter-spacing: -0.02em; }
#hero h1 em { font-style: normal; color: var(--gold-light); }
#hero .hero-sub { font-size: 1.02rem; color: rgba(250,247,240,0.85); font-weight: 400; line-height: 1.75; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
#hero .btn-ghost { border-color: rgba(250,247,240,0.4); color: var(--bg); }
#hero .btn-ghost:hover { border-color: var(--bg); color: var(--bg); }

/* ── STATS ── */
.stats-line { height: 3px; background: var(--accent); width: 100%; }

.stats-bar { background: var(--accent); padding: 44px 5%; display: flex; justify-content: center; gap: 0; }
.stat { flex: 1; max-width: 180px; text-align: center; padding: 0 2rem; border-right: 1px solid rgba(255,255,255,0.15); }
.stat:last-child { border-right: none; }
.stat-val { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--gold-light); display: block; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.72rem; font-weight: 600; color: rgba(250,247,240,0.75); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── SOBRE ── */
#sobre { background: var(--bg); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.sobre-text p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 1rem; font-weight: 400; }
.sobre-text p strong { color: var(--ink); font-weight: 700; }
.sobre-quote { border-left: 3px solid var(--gold); padding: 1rem 1.4rem; margin: 1.8rem 0; background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.sobre-quote p { font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0 0 0.4rem !important; line-height: 1.5; }
.sobre-quote cite { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-2); align-items: start; }
.tl-row:first-child { border-top: 1px solid var(--rule-2); }
.tl-year { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1rem; color: var(--gold-dark); padding-top: 2px; }
.tl-title { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.tl-desc { font-size: 0.8rem; color: var(--ink-3); line-height: 1.6; }

/* ── VARIEDADES (grid da home) ── */
#variedades { background: var(--bg-soft); }
.var-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.var-card { background: var(--bg); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: block; transition: transform 0.25s, box-shadow 0.25s; }
.var-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(31,61,46,0.14); }
.var-photo { height: 160px; background: var(--bg-soft); border-bottom: 1px solid var(--rule-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.var-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.var-photo-icon { font-size: 2rem; opacity: 0.25; }
.var-photo-hint { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); opacity: 0.7; }

/* Sem corte: card cresce conforme a proporção real da foto */
.var-photo.no-crop { height: auto; background: none; }
.var-photo.no-crop img { position: static; width: 100%; height: auto; object-fit: unset; display: block; }
.var-strip { display: none; }
.s-black   { background: #2A2520; }
.s-azul    { background: #7BB3C0; }
.s-lavanda { background: #C0A8D8; }
.s-buff    { background: #D4AA70; }
.s-prata   { background: #B8C0C8; }
.s-vm      { background: #B06030; }
.s-branca  { background: #D8D0C0; }
.s-trigo   { background: #CCB860; }
.s-splash  { background: linear-gradient(90deg,#98B0C0,#D8E4EA,#98B0C0); }
.s-azultrigo { background: linear-gradient(90deg,#8FAEC0,#CCB860); }
.s-ermine  { background: #E8E4D8; }
.var-body { padding: 16px 18px; }
.var-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }
.var-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ── PROJETOS ── */
#projetos { background: var(--bg); }
.projetos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.projeto-card { border: 1px solid var(--rule); border-radius: 18px; display: block; transition: border-color 0.25s, transform 0.25s, box-shadow .25s; position: relative; overflow: hidden; }
.projeto-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,61,46,0.12); }
.projeto-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold); opacity: 0; transition: opacity 0.25s; z-index: 3; }
.projeto-card:hover::before { opacity: 1; }
.projeto-body { padding: 30px 26px; }
.projeto-photo { height: 160px; background: var(--bg-soft); border-bottom: 1px solid var(--rule-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.projeto-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projeto-photo-icon { font-size: 2rem; opacity: 0.25; }
.projeto-photo-hint { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); opacity: 0.7; }
.projeto-icon { font-size: 1.7rem; margin-bottom: 1rem; display: block; }
.projeto-nome { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.5rem; display: block; }
.projeto-desc { font-size: 0.82rem; color: var(--ink-3); line-height: 1.65; }
.projeto-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 1rem; font-size: 0.75rem; font-weight: 700; color: var(--gold-dark); }

/* ── ARTIGOS (grid da home) ── */
#artigos { background: var(--bg-soft); }
.artigos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.artigo-card { background: var(--bg); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: block; transition: transform .25s, box-shadow .25s; }
.artigo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,61,46,0.12); }
.artigo-thumb { height: 140px; background: var(--bg-soft); border-bottom: 1px solid var(--rule-2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.artigo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artigo-thumb-icon { font-size: 1.6rem; opacity: 0.2; }
.artigo-body { padding: 22px 24px; }
.artigo-cat { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dark); display: block; margin-bottom: 10px; }
.artigo-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.artigo-desc { font-size: 0.82rem; color: var(--ink-3); line-height: 1.65; }

/* ── COLABORADORES (grid da home) ── */
#colaboradores { background: var(--bg); }
.colab-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.colab-card { background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 18px; padding: 30px 20px; flex: 1; min-width: 150px; text-align: center; display: block; transition: transform .25s, box-shadow .25s; }
.colab-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,61,46,0.12); }
.colab-init { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, var(--gold), var(--eggblue)); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; overflow: hidden; }
.colab-init img { width: 100%; height: 100%; object-fit: cover; }
.colab-init:not(:has(img)) { background: none; width: 0; height: 0; margin: 0; }
.colab-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.87rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }
.colab-role { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ── CONTATO ── */
#contato { background: var(--accent); padding: 76px 5%; text-align: center; }
#contato .section-wrap { max-width: 600px; }
#contato h2 { color: #fff; margin-bottom: 0.8rem; }
#contato p { color: rgba(250,247,240,0.75); font-weight: 400; font-size: 1rem; margin-bottom: 2.5rem; }
.contato-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cbtn { display: inline-flex; align-items: center; gap: 8px; padding: 0.9rem 1.9rem; border-radius: 999px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; font-weight: 700; transition: transform 0.2s, opacity 0.2s; }
.cbtn:hover { transform: translateY(-2px); opacity: 0.92; }
.cbtn-wa { background: #25D366; color: #fff; }
.cbtn-ig { background: var(--gold); color: var(--ink); }
.cbtn-yt { background: #FF0000; color: #fff; }
.cbtn-form { border: 1.5px solid rgba(250,247,240,0.4); color: #fff; }

/* ── TABLET ── */
@media (max-width: 1080px) and (min-width: 861px) {
  .artigos-grid { grid-template-columns: repeat(2, 1fr); }
  .var-grid { grid-template-columns: repeat(2, 1fr); }
  .projetos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (≤860px) ── */
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; padding: 44px 5% 48px; }
  .hero-photos { display: none; }
  .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
  .var-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .projetos-grid { grid-template-columns: 1fr; }
  .artigos-grid { grid-template-columns: 1fr; gap: 12px; }
  .stats-bar { flex-wrap: wrap; gap: 1rem; padding: 28px 5%; justify-content: space-around; }
  .stat { border-right: none; min-width: 130px; max-width: none; flex: 0 0 45%; padding: 0 0.5rem; }
  .stat-val { font-size: 1.7rem; }
  .stat-label { font-size: 0.62rem; letter-spacing: 0.05em; line-height: 1.3; }
  #contato { padding: 48px 5%; }
  .contato-btns { flex-direction: column; align-items: center; }
  .cbtn { width: 100%; max-width: 320px; justify-content: center; }
  .colab-grid { gap: 8px; }
  .colab-card { min-width: 110px; padding: 18px 10px; }
  .colab-name { font-size: 0.8rem; }
  .colab-role { font-size: 0.6rem; }
  .artigo-title { font-size: 0.93rem; }
  .var-name { font-size: 0.88rem; }
  .var-sub { font-size: 0.62rem; }
}

/* ── TABLET PORTRAIT (601–860px): 2 colunas para projetos e artigos ── */
@media (max-width: 860px) and (min-width: 601px) {
  .projetos-grid { grid-template-columns: repeat(2, 1fr); }
  .artigos-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── FONE PEQUENO (≤480px) ── */
@media (max-width: 480px) {
  .var-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .projetos-grid { grid-template-columns: 1fr; }
  .artigos-grid  { grid-template-columns: 1fr; gap: 10px; }
  #hero { padding: 36px 5% 40px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; text-align: center; }
  .stat { flex: 0 0 44%; }
  .colab-card { min-width: 100px; padding: 14px 8px; }
  .media-banner { min-height: 180px; }
}
