/* ==========================================================================
   PLUS ONE — COMUNICAÇÃO CRIATIVA
   Landing page única
   ========================================================================== */

:root {
  /* Cores oficiais */
  --salmon: #CF6A60;
  --salmon-dark: #A0524A;
  --salmon-light: #F2D8D5;
  --night: #222C33;
  --night-mid: #3A4A54;
  --gray-tone: #8A9BA5;
  --off-white: #F7F3F0;
  --white: #FFFFFF;

  --font-sans: 'Raleway', system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.5rem, 4vw, 2.5rem);
  --max-width: 1280px;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--night);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--salmon); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--off-white);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3rem 0 5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__top {
  position: absolute;
  top: 3rem;
  left: 0; right: 0;
  z-index: 3;
}

.hero__logo-img {
  width: 130px;
  height: auto;
  display: block;
}

.hero__logo-tagline {
  display: none; /* o novo logo já contém "comunicação criativa" embutido */
}

.hero__circle-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.hero__circle {
  width: clamp(420px, 60vw, 720px);
  height: clamp(420px, 60vw, 720px);
  transform-origin: center center;
  transition: transform 0.05s linear;
  will-change: transform;
}

.hero__title {
  position: relative;
  z-index: 2;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 14ch;
}

.hero__title strong { font-weight: 700; }
.hero__title .salmon { color: var(--salmon); }

@media (prefers-reduced-motion: reduce) {
  .hero__circle { transform: none !important; }
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  background: var(--off-white);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.manifesto::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--salmon);
  margin-bottom: 2.5rem;
}

.manifesto__text {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--night);
  max-width: 22ch;
}

.manifesto__text strong {
  color: var(--salmon);
  font-weight: 700;
}

/* ---------- GALERIA ---------- */
.gallery {
  background: var(--night);
  color: var(--off-white);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.gallery__title-block { flex: 1; min-width: 240px; }

.eyebrow {
  color: var(--salmon);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery__title,
.pillars__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.gallery__title strong,
.pillars__title strong { font-weight: 700; }

.filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter {
  padding: 0.5rem 0.95rem;
  border: 0.5px solid rgba(247, 243, 240, 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 240, 0.7);
  background: transparent;
  transition: all 0.2s;
}

.filter:hover {
  border-color: rgba(247, 243, 240, 0.6);
  color: var(--off-white);
}

.filter.is-active {
  background: var(--salmon);
  border-color: var(--salmon);
  color: var(--off-white);
}

/* ===== Galeria: faixas editoriais (default) ===== */
.strip {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.row {
  display: grid;
  gap: 0.85rem;
}

.row--full { grid-template-columns: 1fr; }
.row--full .case { aspect-ratio: 21 / 8; }

.row--2 { grid-template-columns: 1fr 1fr; }
.row--2 .case { aspect-ratio: 4 / 3; }

.row--3 { grid-template-columns: 1fr 1fr 1fr; }
.row--3 .case { aspect-ratio: 1; }

.row--big-small { grid-template-columns: 2fr 1fr; }
.row--big-small .case { aspect-ratio: 4 / 3; }
.row--big-small .case:last-child { aspect-ratio: 2 / 3; }

/* ===== Galeria: grid uniforme (filtrado) ===== */
.strip.is-filtered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.strip.is-filtered .row {
  display: contents;
}

.strip.is-filtered .case {
  aspect-ratio: 4 / 3 !important;
}

/* ===== Card do case ===== */
.case {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--night-mid);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out-expo);
  isolation: isolate;
}

.case:hover { transform: translateY(-6px); }

.case__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.case:hover .case__img { transform: scale(1.04); }

.case__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--off-white);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 3;
  text-transform: uppercase;
}

.case__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--off-white);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 3;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* gradiente embaixo do card pra legibilidade do label */
.case::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Ícone de play em cards de vídeo */
.case__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(247, 243, 240, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.4s var(--ease-out-expo);
}

.case:hover .case__play {
  transform: translate(-50%, -50%) scale(1.12);
}

.case__play::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--salmon);
  margin-left: 3px;
}

/* ---------- PILARES ---------- */
.pillars {
  background: var(--off-white);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.pillars__title {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  color: var(--night);
}

.pillar-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 0.5px solid rgba(34, 44, 51, 0.15);
  align-items: baseline;
}

.pillar-row:last-of-type {
  border-bottom: 0.5px solid rgba(34, 44, 51, 0.15);
}

.pillar-row__name {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--night);
}

.pillar-row__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--night-mid);
  font-weight: 300;
  max-width: 60ch;
}

@media (max-width: 700px) {
  .pillar-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- CONTATO ---------- */
.contact {
  background: var(--night);
  color: var(--off-white);
  padding: clamp(5rem, 10vw, 8rem) 0 4rem;
}

.contact__email {
  font-size: clamp(1.7rem, 5.5vw, 3.4rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.05;
  word-break: break-word;
}

.contact__email a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact__email a:hover { opacity: 0.85; }

.contact__email .salmon {
  color: var(--salmon);
  font-weight: 700;
}

.contact__divider {
  margin: 2.5rem 0 1rem;
  border: none;
  border-top: 0.5px solid rgba(247, 243, 240, 0.2);
}

.contact__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  opacity: 0.5;
  text-transform: uppercase;
}

/* ---------- WHATSAPP FAB ---------- */
.whats-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--salmon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(207, 106, 96, 0.4);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
  z-index: 100;
}

.whats-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(207, 106, 96, 0.55);
}

.whats-fab svg {
  width: 26px;
  height: 26px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 44, 51, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
  animation: lb-fade 0.3s ease;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__media-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: lb-zoom 0.4s var(--ease-out-expo);
}

@keyframes lb-zoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox__media {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  background: var(--night);
}

.lightbox__iframe {
  width: 80vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 4px;
  background: var(--night);
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 243, 240, 0.1);
  border: 0.5px solid rgba(247, 243, 240, 0.3);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out-expo);
  z-index: 10000;
}

.lightbox__close:hover {
  background: var(--salmon);
  border-color: var(--salmon);
  transform: rotate(90deg);
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }

body.lb-open { overflow: hidden; }

/* ---------- MOBILE ---------- */
@media (max-width: 720px) {
  .hero { min-height: 88vh; }
  .gallery__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .row--3 { grid-template-columns: 1fr 1fr; }
  .row--big-small { grid-template-columns: 1fr; }
  .row--big-small .case:last-child { aspect-ratio: 4 / 3; }
  .strip.is-filtered { grid-template-columns: 1fr 1fr; }
  .case__label { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .row--3 { grid-template-columns: 1fr; }
  .row--3 .case { aspect-ratio: 4 / 3; }
  .strip.is-filtered { grid-template-columns: 1fr; }
}

/* ---------- A11Y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--salmon);
  outline-offset: 3px;
}
