/* Studio Taiane Martins — mobile first */
:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-soft: #141111;
  --rose: #b8907d;
  --rose-light: #e3bead;
  --cream: #f5ece8;
  --cream-deep: #ecdcd4;
  --ink: #111111;
  --text: #efe7e1;
  --muted: rgba(239, 231, 225, 0.66);
  --line: rgba(184, 144, 125, 0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Arial, sans-serif;
  --script: "Pinyon Script", cursive;
  --radius: 18px;
  --header-h: 68px;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul,
figure,
figcaption {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

section {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rose);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

/* Tipografia */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 14px;
  font-weight: 400;
}

.eyebrow-dark {
  color: var(--rose);
}

.script,
.script-inline {
  font-family: var(--script);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.section-sub {
  color: var(--muted);
  max-width: 34rem;
  margin-top: 12px;
}

/* Botões */
.btn {
  display: inline-block;
  background: var(--rose);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--rose);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--rose-light);
  transform: translateY(-2px);
}

.btn-small {
  padding: 11px 24px;
  font-size: 0.78rem;
}

.btn-ghost {
  background: transparent;
  color: var(--rose-light);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(184, 144, 125, 0.14);
  color: var(--rose-light);
}

.center {
  text-align: center;
  margin-top: 30px;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-text {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-light);
  line-height: 1.5;
}

.brand-text strong {
  display: block;
  font-weight: 500;
}

.nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn {
  display: none;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--rose-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #0B0B0B;
}

body.menu-open .nav {
  display: flex;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  gap: 4px;
  background: #0b0b0b;
  padding: 18px 20px 26px;
}

body.menu-open .nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(184, 144, 125, 0.14);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 44px) 0 64px;
  background:
    radial-gradient(60% 42% at 82% 18%, rgba(184, 144, 125, 0.16), transparent 70%),
    radial-gradient(50% 36% at 8% 82%, rgba(184, 144, 125, 0.1), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-title {
  font-size: clamp(3.2rem, 13vw, 5.4rem);
  font-weight: 300;
  margin-bottom: 6px;
}

.hero-title .script {
  display: block;
  color: var(--rose-light);
  font-size: 1.18em;
  line-height: 1;
  margin: -0.12em 0 0.06em 0.4em;
  transform: rotate(-3deg);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 30rem;
  margin: 14px 0 26px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-points li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-light);
}

.hero-points svg {
  width: 26px;
  height: 26px;
  color: var(--rose);
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.arch {
  position: relative;
  width: min(340px, 84vw);
}

.arch::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 26px 26px;
  pointer-events: none;
}

.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 20px 20px;
}

/* Sobre */
.about {
  padding: 72px 0;
  background: var(--bg-soft);
  border-top: 1px solid rgba(184, 144, 125, 0.16);
  border-bottom: 1px solid rgba(184, 144, 125, 0.16);
}

.about-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.about-photo img {
  width: min(360px, 86vw);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text h2 .script-inline {
  color: var(--rose-light);
  font-size: 1.25em;
}

.about-text > p {
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 32rem;
}

.about-list {
  margin: 20px 0 26px;
  display: grid;
  gap: 10px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--rose-light);
}

.about-list li::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rose);
  flex-shrink: 0;
}

/* Serviços — faixa clara */
.services {
  background: var(--cream);
  color: var(--ink);
  padding: 72px 0 80px;
}

.services h2 {
  color: var(--ink);
}

.services .section-sub {
  color: rgba(17, 17, 17, 0.66);
}

.cards {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.card {
  background: #fffdfb;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 18px 40px -22px rgba(17, 17, 17, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -22px rgba(17, 17, 17, 0.42);
}

.card-photo {
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-photo img {
  transform: scale(1.04);
}

.card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.45rem;
  color: var(--ink);
}

.card-body p {
  color: rgba(17, 17, 17, 0.68);
  font-size: 0.98rem;
  flex: 1;
}

.card-body .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* Trabalhos */
.work {
  padding: 72px 0 80px;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 26px 0 24px;
  flex-wrap: wrap;
}

.filter {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.filter:hover {
  border-color: var(--rose);
}

.filter.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--ink);
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.g-item {
  position: relative;
  padding: 0;
  border: 1px solid rgba(184, 144, 125, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.g-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.g-item:hover img {
  transform: scale(1.05);
}

.g-item.hidden {
  display: none;
}

.g-feature {
  grid-column: 1 / -1;
}

.g-feature img {
  aspect-ratio: 1 / 1;
  object-position: center 30%;
}

.g-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(6px);
  color: var(--rose-light);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* Chamada final */
.cta {
  padding: 84px 0;
  text-align: center;
  background:
    radial-gradient(56% 60% at 50% 108%, rgba(184, 144, 125, 0.2), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid rgba(184, 144, 125, 0.16);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-inner .eyebrow {
  margin-bottom: 12px;
}

.cta-inner p:not(.eyebrow) {
  color: var(--muted);
  max-width: 30rem;
  margin: 14px 0 28px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.insta-link svg {
  width: 20px;
  height: 20px;
}

.insta-link:hover {
  color: #fff;
}

/* Rodapé */
.footer {
  border-top: 1px solid rgba(184, 144, 125, 0.16);
  padding: 48px 0 40px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-city {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-light);
}

.footer-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--rose-light);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-credit a {
  font-size: 0.78rem;
  color: rgba(239, 231, 225, 0.42);
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--rose-light);
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e3bead;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  z-index: 90;
  transition: transform 0.25s ease;
}

.wa-float:hover {
  background: #b8907d;
  transform: scale(1.08);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
}

.lightbox-box {
  position: relative;
  max-width: min(920px, 100%);
  width: 100%;
}

.lightbox-box img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}

.lightbox-box figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 1.4em;
}

.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.8);
  color: var(--rose-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lb-close {
  top: -52px;
  right: 0;
}

.lb-prev,
.lb-next {
  top: 42%;
}

.lb-prev {
  left: -6px;
}

.lb-next {
  right: -6px;
}

/* Animação de entrada */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Celular: hero compacto com foto no topo + filtros em uma linha */
@media (max-width: 767px) {
  /* Hero mobile: foto em tela cheia que se funde no fundo preto */
  .hero {
    position: relative;
    padding: 0 0 44px;
    overflow: hidden;
    background: var(--bg);
  }

  .hero-grid {
    gap: 0;
  }

  .hero-photo {
    order: -1;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(11, 11, 11, 0.7) 0%,
      rgba(11, 11, 11, 0) 20%,
      rgba(11, 11, 11, 0) 42%,
      rgba(11, 11, 11, 0.88) 78%,
      #0b0b0b 100%);
    pointer-events: none;
  }

  .arch {
    width: 100%;
  }

  .arch::before {
    display: none;
  }

  .arch img {
    width: 100%;
    height: min(66svh, 560px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 60% 30%;
    border-radius: 0;
  }

  .hero-text {
    position: relative;
    z-index: 2;
    margin-top: -132px;
  }

  .hero .eyebrow {
    display: none;
  }

  .hero-title {
    font-size: 2.75rem;
    line-height: 1.02;
  }

  .hero-title .script {
    margin: 0.02em 0 0.04em 0;
    font-size: 1.3em;
  }

  .hero-sub {
    font-size: 0.98rem;
    margin: 14px 0 22px;
  }

  .hero .btn {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* WhatsApp flutuante some enquanto o botão do hero está na tela */
  .wa-float {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  body.hero-visible .wa-float {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  .filters {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .filter {
    padding: 10px 16px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

/* Tablet */
@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    gap: 14px;
  }

  .g-feature img {
    object-position: center 25%;
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .cta-buttons {
    flex-direction: row;
    gap: 28px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --header-h: 76px;
  }

  .header-actions .btn {
    display: inline-block;
  }

  .menu-btn {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
  }

  .nav a:hover {
    color: var(--rose-light);
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .nav a:hover::after {
    transform: scaleX(1);
  }

  .hero {
    padding: calc(var(--header-h) + 60px) 0 90px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
  }

  .hero-title {
    font-size: clamp(4rem, 6.5vw, 6.2rem);
  }

  .arch {
    width: min(420px, 100%);
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-photo img {
    aspect-ratio: 4 / 4.8;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    grid-auto-flow: dense;
  }

  .g-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .g-feature img {
    aspect-ratio: auto;
    height: 100%;
    object-position: center 25%;
  }

  .g-tall {
    grid-row: span 2;
  }

  .g-tall img {
    aspect-ratio: auto;
    height: 100%;
    object-position: center 35%;
  }

  .g-wide {
    grid-column: span 2;
  }

  .g-wide img {
    aspect-ratio: auto;
    height: 100%;
  }

  .gallery.is-filtered .g-item {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery.is-filtered .g-item img {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .about {
    padding: 100px 0;
  }

  .services,
  .work {
    padding: 100px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .card-photo img,
  .g-item img,
  .wa-float,
  .filter,
  .nav a::after,
  .menu-btn span {
    transition: none;
  }
}
