/* ======================
   RESET + BASE
====================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background-color: #f6f3ee;
  color: #111;
  overflow-x: hidden;
}

/* ======================
   HOME — TRAVA SCROLL
====================== */

body.home {
  overflow: hidden;
}

/* ======================
   HERO
====================== */

.hero {
  width: 100vw;
  height: 100vh;
  background-image: url("../images/concept/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ======================
   HEADER / HOME HEADER
====================== */

.home-header {
  position: absolute;
  inset: 0;
  padding: 48px 72px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 20;
}

/* Nome */
.home-logo {
  font-size: 32px;
  letter-spacing: 0.22em;
  color: white;
  text-decoration: none;
}

/* Menu principal */
.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #111;
  text-decoration: none;
  position: relative;
}

/* underline clean */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* ======================
   SUBMENU
====================== */

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;

  background: #111;
  padding: 28px 32px;
  min-width: 240px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

/* underline branco */
.submenu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.submenu a:hover::after {
  transform: scaleX(1);
}

/* ======================
   GALERIA HORIZONTAL
====================== */

.horizontal-gallery {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  gap: 120px;
  width: max-content;
  transition: transform 0.9s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.slide {
  width: 45vw;
  height: 70vh;
  position: relative;
  flex: 0 0 auto;
  background-color: #f6f3ee;
}

/* Imagem */
.media {
  position: absolute;
  inset: 0;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* overlay leve */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* botão expandir */
.expand-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide:hover .expand-btn {
  opacity: 1;
}

/* ======================
   SETAS
====================== */

.gallery-controls {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  z-index: 90;
}

.gallery-controls button {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  background: rgba(0,0,0,0.85);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-controls button:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* ======================
   FOCUS VIEW
====================== */

.focus-view {
  position: fixed;
  inset: 0;
  background: #f6f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.focus-view.active {
  opacity: 1;
  pointer-events: auto;
}

.focus-view img {
  max-width: 88vw;
  max-height: 88vh;
}

.focus-close {
  position: fixed;
  top: 32px;
  right: 48px;
  background: black;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
}


/* ======================
   HOME — TEXTO BRANCO
====================== */

body.home .home-logo {
  color: #fff;
}

body.home .main-nav a {
  color: #fff;
}

body.home .main-nav a::after {
  background: #fff;
}

/* ======================
   FORA DA HOME — LOGO PRETO
====================== */

body:not(.home) .home-logo {
  color: #111;
}

