/* ════════════════════════════════════════════════════════════
   MALAMA PRODUÇÕES — Apresentação Institucional
   Direção: Cinematic Warm · Rio + Lençóis Maranhenses
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── Deep (dark sections) — warm teal-charcoal, not pure black ── */
  --deep:    #0C1E1D;
  --deep2:   #102826;
  --deep3:   #16332F;
  --ink:     #081413;

  /* ── Light (sand) ── */
  --sand:    #F4ECE0;
  --sand2:   #EBDFCD;
  --cream:   #FBF6EE;
  --white:   #FFFFFF;

  /* ── Brand accents ── */
  --teal:    #0B6E6E;
  --teal-lt: #1FB6A6;
  --turq:    #34C4B2;
  --sun:     #E8A24C;
  --sun-deep:#D27D33;
  --coral:   #E2683F;

  /* ── Warm neutrals ── */
  --w100: #F2EDE4;
  --w200: #D9CFBF;
  --w300: #B3A795;
  --w400: #8C8273;
  --w500: #6B6256;
  --w600: #4C463D;
  --w700: #332E28;

  /* ── Type ── */
  --display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:   'Playfair Display', Georgia, serif;

  /* ── Motion ── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.7s;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* film grain / atmosphere overlay on dark sections */
.grain::after {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── REVEAL ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.08s; } .rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; } .rd4 { transition-delay: 0.32s; }

/* shared atoms */
.eyebrow {
  font-family: var(--body);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--sun);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--sun); opacity: 0.6; }
.eyebrow.center::after { content: ''; width: 30px; height: 1px; background: var(--sun); opacity: 0.6; }

.display {
  font-family: var(--display); font-weight: 700;
  line-height: 0.94; letter-spacing: -0.01em;
}

/* ─── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 52px;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(12,30,29,0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 52px;
}
.nav-logo img { height: 30px; opacity: 0.95; transition: opacity 0.2s, transform 0.3s; }
.nav-logo:hover img { opacity: 1; transform: scale(1.04); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--w200); text-decoration: none;
  transition: color 0.2s; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--sun); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--deep);
  background: var(--sun); padding: 11px 22px; border-radius: 100px;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--white); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 101;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100svh; min-height: 640px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../assets/img/hero.jpg') center 42%/cover no-repeat;
  transform: scale(1.08); transition: transform 10s var(--ease);
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,30,29,0.45) 0%, rgba(12,30,29,0) 26%, rgba(12,30,29,0) 52%, rgba(12,30,29,0.94) 100%),
    radial-gradient(120% 80% at 50% 8%, rgba(232,162,76,0.22) 0%, rgba(232,162,76,0) 55%);
}
.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.hero-logo { height: 92px; margin-bottom: 26px; filter: drop-shadow(0 4px 40px rgba(0,0,0,0.45)); }
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: rgba(255,255,255,0.82); letter-spacing: 0.02em; margin-bottom: 14px;
}
.hero-place {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--sun); margin-bottom: 52px;
}
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.hero-scroll span { font-size: 0.52rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--w300); }
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--sun), transparent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.35;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(.65)} }

/* ─── SECTION SCAFFOLD ────────────────────────────────────── */
.section { position: relative; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 52px; width: 100%; }
.pad { padding: clamp(80px, 11vw, 150px) 0; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.sec-head p { max-width: 330px; font-size: 0.86rem; line-height: 1.8; text-align: right; }

/* ─── SOBRE ───────────────────────────────────────────────── */
#sobre { background: var(--deep); overflow: hidden; }
.sobre-bg { position: absolute; inset: 0; z-index: 0; background: url('../assets/img/sobre.jpg') right center/cover no-repeat; }
.sobre-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--deep) 38%, rgba(12,30,29,0.55) 70%, rgba(12,30,29,0.2) 100%);
}
.sobre-grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center;
}
.sobre-title { font-size: clamp(3rem, 7vw, 6.4rem); margin: 20px 0 32px; }
.sobre-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sun); }
.sobre-body { font-size: 0.98rem; color: var(--w200); line-height: 1.92; margin-bottom: 28px; }
.sobre-body strong { color: var(--white); font-weight: 600; }
.sobre-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  color: var(--white); line-height: 1.5; border-left: 2px solid var(--sun); padding-left: 24px;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; }
.stat { background: rgba(255,255,255,0.035); padding: 38px 30px; backdrop-filter: blur(2px); }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.6rem); color: var(--sun); line-height: 1; margin-bottom: 8px; }
.stat .l { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w300); }

/* ─── SERVIÇOS ────────────────────────────────────────────── */
#servicos { background: var(--sand); color: var(--deep); }
#servicos .eyebrow { color: var(--sun-deep); } #servicos .eyebrow::before { background: var(--sun-deep); }
.sec-head.dark h2 { color: var(--deep); }
.sec-head.dark p { color: var(--w500); }
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.serv {
  position: relative; background: var(--cream); border: 1px solid var(--sand2);
  border-radius: 16px; padding: 38px 32px 34px; display: flex; flex-direction: column; gap: 14px;
  overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s;
}
.serv::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--teal-lt), var(--sun)); transition: width 0.5s var(--ease); }
.serv:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(12,30,29,0.35); background: var(--white); }
.serv:hover::before { width: 100%; }
.serv .num { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--teal); letter-spacing: 0.1em; }
.serv h3 { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.05; color: var(--deep); }
.serv p { font-size: 0.82rem; color: var(--w500); line-height: 1.72; }
.serv .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; background: var(--sand); color: var(--w500); }

/* ─── PORTFOLIO (masonry) ─────────────────────────────────── */
#portfolio { background: var(--deep2); }
.masonry { columns: 4; column-gap: 12px; }
.m-item { break-inside: avoid; margin-bottom: 12px; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.m-item img { width: 100%; transition: transform 0.6s var(--ease), filter 0.4s; }
.m-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8,20,19,0.5)); opacity: 0; transition: opacity 0.3s; }
.m-item:hover img { transform: scale(1.05); }
.m-item:hover::after { opacity: 1; }

/* ─── CASES / GRANDES PRODUÇÕES ───────────────────────────── */
#producoes { background: var(--deep); }
.case-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.case { position: relative; border-radius: 14px; overflow: hidden; min-height: 260px; grid-column: span 2; }
.case.wide { grid-column: span 4; }
.case.tall { grid-row: span 2; min-height: 536px; }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.5s; filter: brightness(0.82) saturate(1.05); }
.case:hover img { transform: scale(1.06); filter: brightness(0.6); }
.case-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,19,0.92) 0%, rgba(8,20,19,0.1) 55%, transparent 100%); }
.case-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 28px; }
.case-cat { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.case-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.04; color: var(--white); }

/* ─── DESTINOS (Rio → Lençóis) ────────────────────────────── */
#destinos { background: var(--ink); overflow: hidden; }
.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dest-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.dest-card:hover img { transform: scale(1.05); }
.dest-card .cap { position: relative; z-index: 2; padding: 40px; }
.dest-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,20,19,0.9), rgba(8,20,19,0.05) 60%); }
.dest-card .cap h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 10px; }
.dest-card .cap p { font-size: 0.85rem; color: var(--w200); max-width: 360px; line-height: 1.7; }
.dest-tag { display: inline-block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--turq); margin-bottom: 14px; }
.dest-jeep { position: absolute; top: 24px; right: 24px; z-index: 3; width: 92px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.15); }

/* ─── MISSÃO ──────────────────────────────────────────────── */
#missao { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.missao-bg { position: absolute; inset: 0; z-index: 0; background: url('../assets/img/missao.jpg') center/cover no-repeat; transform: scale(1.05); }
.missao-overlay { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(12,30,29,0.5) 20%, rgba(8,20,19,0.92) 100%); }
.missao-c { position: relative; z-index: 3; max-width: 920px; padding: 80px 32px; }
.missao-q { font-size: clamp(2rem, 5vw, 4.4rem); margin: 30px 0 28px; }
.missao-q em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sun); }
.missao-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ─── CONTATO ─────────────────────────────────────────────── */
#contato { background: var(--deep); text-align: center; }
.contato-c { display: flex; flex-direction: column; align-items: center; }
.contato-sym { height: 62px; margin-bottom: 36px; opacity: 0.9; filter: drop-shadow(0 0 50px rgba(232,162,76,0.25)); }
.contato-title { font-size: clamp(3rem, 9vw, 7.5rem); margin: 22px 0 22px; }
.contato-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sun); }
.contato-sub { font-size: 0.95rem; color: var(--w200); line-height: 1.75; max-width: 500px; margin: 0 auto 44px; }
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 17px 36px;
  border-radius: 100px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-pri { background: var(--sun); color: var(--deep); }
.btn-pri:hover { background: var(--white); transform: translateY(-2px); }
.btn-pri svg { width: 18px; height: 18px; fill: currentColor; }
.btn-out { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.28); }
.btn-out:hover { border-color: var(--sun); color: var(--sun); }
.contato-info { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; color: var(--w400); font-size: 0.74rem; }
.contato-info a { color: var(--w200); text-decoration: none; transition: color 0.2s; }
.contato-info a:hover { color: var(--sun); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--w600); }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.05); padding: 28px 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
footer img { height: 16px; opacity: 0.4; }
footer .fi { font-size: 0.64rem; color: var(--w500); letter-spacing: 0.04em; }

/* ─── LIGHTBOX ────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(8,20,19,0.95); backdrop-filter: blur(10px); }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lb-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: var(--w300); font-size: 1.6rem; cursor: pointer; transition: color 0.2s; }
.lb-close:hover { color: var(--white); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: var(--white); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lb-nav:hover { background: var(--sun); color: var(--deep); border-color: var(--sun); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav, nav.scrolled { padding: 16px 28px; }
  .wrap { padding: 0 28px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec-head p { text-align: left; max-width: 100%; }
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-shade { background: linear-gradient(180deg, rgba(12,30,29,0.92), rgba(12,30,29,0.75)); }
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 3; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case, .case.wide { grid-column: span 1; }
  .case.tall { grid-row: span 1; min-height: 280px; }
  .dest-grid { grid-template-columns: 1fr; }
  footer { padding: 24px 28px; }
}
@media (max-width: 768px) {
  nav, nav.scrolled { padding: 14px 20px; }
  .wrap { padding: 0 20px; }
  .nav-links {
    position: fixed; inset: 0; height: 100svh; z-index: 99;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: rgba(8,20,19,0.97); backdrop-filter: blur(20px);
    transform: translateY(-100%); transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; padding: 14px 0; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-logo { height: 62px; }
  .serv-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 8px; }
  .m-item { margin-bottom: 8px; }
  .case-grid { grid-template-columns: 1fr; }
  .dest-jeep { width: 70px; }
  .contato-info { flex-direction: column; gap: 12px; }
  .dot { display: none; }
  footer { flex-direction: column; text-align: center; gap: 12px; padding: 22px 20px; }
  .lightbox { padding: 16px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 420px) {
  .sobre-title, .contato-title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ─── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: scale(1); }
}
