:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --bg-card: #ffffff;
  --charcoal: #141414;
  --text: #141414;
  --text-gray: #5a5a5a;
  --accent: #c9a46a;
  --accent-dark: #a8824d;
  --border: rgba(20, 20, 20, 0.08);
  --header-bg: rgba(247, 245, 240, 0.9);
  --section-padding: clamp(40px, 5vw, 64px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111;
  --bg-card: #1a1a1a;
  --text: #e8e4de;
  --text-gray: #9a9590;
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(17, 17, 17, 0.92);
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1400px, 90vw);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .container {
    width: 88vw; /* Respiro ainda maior no mobile */
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 0px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--text-gray);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hamburger */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 25;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--bg);
}

[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #1c1208;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(128, 128, 128, 0.06);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Hero */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Removido override para manter consistencia com o restante do site */

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

.hero-copy h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 16px 0 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-copy h1 strong {
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 32rem;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin: 0 0 4px;
}

[data-theme="dark"] .eyebrow {
  color: var(--accent);
}

.cta-group {
  display: flex;
  gap: 14px;
  margin: 32px 0 0;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-photo {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  width: 100%;
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo img,
.hero-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 40%);
}

.hero-video-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-video-badge:hover {
  background: rgba(0, 0, 0, 0.8);
}

.play-icon {
  font-size: 0.7rem;
}

/* Sections */

.section {
  padding: var(--section-padding) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Filters */

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

.filter {
  border: 1px solid var(--border);
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.filter.is-active {
  background: var(--charcoal);
  color: #f7f5f0;
  border-color: var(--charcoal);
}

[data-theme="dark"] .filter.is-active {
  background: var(--accent);
  color: #1c1208;
  border-color: var(--accent);
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-open {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}

.project-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 16px;
}

.project-meta {
  padding: 16px 18px 20px;
}

.project-meta h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
}

.project-meta p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.82rem;
}

.photo {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--photo, linear-gradient(130deg, #1a1a1a, #3b3b3b 55%, #c9a46a));
}

.photo img,
.photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 50%);
}

/* Shimmer loading animation */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  pointer-events: none;
}

/* Palettes */

.palette-amber {
  --photo: linear-gradient(120deg, #201a15, #a47e4b 45%, #f2e5cf),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35), transparent 45%);
}

.palette-soft {
  --photo: linear-gradient(120deg, #2b2620, #c9a46a 40%, #f5f0e6);
}

.palette-graphite {
  --photo: linear-gradient(130deg, #0f0f0f, #2f2f2f 55%, #d2c4ad);
}

.palette-olive {
  --photo: linear-gradient(120deg, #1f1c17, #6c6a45 55%, #f1eadb);
}

.palette-slate {
  --photo: linear-gradient(130deg, #1a1a1a, #4a4a4a 50%, #c8b9a0);
}

.palette-night {
  --photo: linear-gradient(120deg, #0b0b0c, #2b2a2d 50%, #c9a46a);
}

/* Info cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
}

.info-card p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.92rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.step span {
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .step span {
  color: var(--accent);
}

.step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}

.step p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.92rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Texto ganha um pouco mais de espaco horizontal */
  gap: 80px;
  align-items: center;
}

.about-photo {
  order: 2;
}

.about-text {
  order: 1;
}

.about-photo .portrait {
  border-radius: 20px;
  background: var(--photo, linear-gradient(130deg, #1a1a1a, #3b3b3b 55%, #c9a46a));
  overflow: hidden;
  position: relative;
  width: 85%;
  max-height: 530px;
  display: block;
  margin-left: auto;
}

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo .portrait {
    width: 100%;
    margin-left: 0;
  }
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Recorta elegantemente sem distorcer */
}

.about-message {  
  display: flex;
  flex-direction: column;
  gap: 0rem; /* Respiro entre as frases agora que o line-height eh 1 */
}

.about-message p {
  line-height: 1.2; /* Um micro-ajuste para nao "colar" as letras */
  font-size: 1.15rem;
}

.about-text h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 8px 0 16px;
}

.about-text p {  
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 30px auto 0;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-open {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.project-meta {
  padding: 16px;
}

.project-meta h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}


.about-note {
  font-weight: 500;
  color: var(--text);
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

[data-theme="dark"] .about-note {
  color: var(--accent);
}

/* Testimonials */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonials-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 350px;
  flex: 0 0 350px;
  scroll-snap-align: start;
  padding: 40px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-card {
    min-width: 280px;
    flex: 0 0 280px;
  }
}

.carousel-wrapper {
  position: relative;
  /* Removemos o width: 100% para que a classe .container controle o tamanho e centralizacao */
  padding: 0; 
  margin: 0 auto;
}





.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0; /* Coloca os botoes exatamente nas extremidades do container */
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0; /* Invisivel por padrao */
}

[data-theme="dark"] .carousel-btn {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: scale(1.1);
}

/* No desktop, os botoes ficam ligeiramente fora do conteudo para nao atrapalhar a visualizacao */
@media (min-width: 1024px) {
  .carousel-btn.prev { transform: translateX(-30px); }
  .carousel-btn.next { transform: translateX(30px); }
  
  .carousel-wrapper:hover .carousel-btn.prev { transform: translateX(-40px) scale(1.1); }
  .carousel-wrapper:hover .carousel-btn.next { transform: translateX(40px) scale(1.1); }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    /* No mobile o container ja resolve o padding lateral */
    padding: 0;
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
    opacity: 1; /* Sempre visivel no mobile para facilitar a navegacao */
    background: rgba(255, 255, 255, 0.5); /* Mais opaco para leitura sobre as fotos */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  [data-theme="dark"] .carousel-btn {
    background: rgba(0, 0, 0, 0.7);
  }

  .carousel-btn.prev { transform: translateX(5px); }
  .carousel-btn.next { transform: translateX(-5px); }
}






.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

[data-theme="dark"] .avatar {
  background: var(--accent);
  color: #1c1208;
}

.testimonial-header strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-header span {
  font-size: 0.78rem;
  color: var(--text-gray);
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
}

/* Instagram */

.instagram-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  max-width: 100%;
  padding-bottom: 20px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.instagram-grid::-webkit-scrollbar {
  display: none;
}

.instagram-item {
  min-width: 280px;
  flex: 0 0 calc(25% - 12px); /* 4 por linha no desktop, mas permite scroll se container for menor */
  scroll-snap-align: start;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--photo, linear-gradient(130deg, #1a1a1a, #3b3b3b 55%, #c9a46a));
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
  .instagram-item {
    flex: 0 0 40%; /* 2.5 fotos visiveis no tablet */
  }
}

@media (max-width: 640px) {
  .instagram-item {
    flex: 0 0 70%; /* 1.5 fotos visiveis no mobile */
  }
}


.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-item:hover {
  transform: scale(1.03) translateY(-5px);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 8px 0 12px;
}

.contact-info p {
  color: var(--text-gray);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.contact-info .address {
  margin-top: 12px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.contact-info .address p {
  margin: 0;
}

.contact-form form {
  display: grid;
  gap: 16px;
  background: var(--bg-card);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-gray);
  font-weight: 400;
}

input,
select {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  font: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--text);
}

/* Footer */

.site-footer {
  padding: 40px 0 60px;
  border: none;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.85rem;
}

.footer-grid p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--text-gray);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 15;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.scroll-top[hidden] {
  display: flex !important;
  pointer-events: none;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* Theme toggle */

.theme-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 15;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(15, 15, 15, 0.5);
  padding: 24px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.modal-content {
  background: transparent;
  width: min(1000px, 95vw);
  box-shadow: none;
  position: relative;
  padding: 0;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.modal-body {
  display: block;
  text-align: center;
}

.modal-gallery {
  display: grid;
  gap: 12px;
}

.modal-gallery .photo {
  aspect-ratio: auto;
  max-height: 90vh;
  background: transparent;
}

.modal-gallery img {
  object-fit: contain;
  border-radius: 4px;
}

.modal-text {
  display: none; /* Lightbox limpo: sem titulo */
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  padding: 5px 12px;
  background: rgba(128, 128, 128, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-gray);
}

/* Animations */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

/* Responsive */

@media (max-width: 980px) {
  .nav {
    justify-content: center; /* Centraliza o conteudo do nav (logo) */
  }

  .logo {
    font-size: 1.1rem;
    margin: 0 auto; /* Reforca a centralizacao */
    text-align: center;
  }

  .hamburger {
    display: none !important; /* Remove o menu hamburguer */
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 22;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .modal-body {
    grid-template-columns: 1fr;
  }


  .hero-photo {
    aspect-ratio: 16 / 10;
    max-height: 400px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Instagram grid scroll handled in base styles */

  .modal-content {
    background: transparent;
    padding: 0;
    max-width: 100vw;
    box-shadow: none;
  }

  .modal-body {
    background: transparent;
    padding: 0;
  }

  .modal-text {
    display: none;
  }

  .modal-gallery .photo {
    aspect-ratio: auto;
    max-height: 90vh;
    background: transparent;
  }

  .modal-gallery img {
    object-fit: contain;
    border-radius: 8px;
  }
}


@media (max-width: 640px) {
  .hero {
    padding-top: 30px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    scrollbar-width: none;
  }
  
  .projects-grid::-webkit-scrollbar {
    display: none;
  }
  
  .project-card {
    min-width: 80vw;
    flex: 0 0 80vw;
    scroll-snap-align: center;
  }

  .testimonials-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 20px;
    scrollbar-width: none;
  }

  .testimonials-carousel::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    min-width: 80vw;
    flex: 0 0 80vw;
    scroll-snap-align: center;
    padding: 30px;
  }

  .carousel-nav {
    display: flex;
    margin-top: 10px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    padding: 24px;
  }

  .contact-grid {
    gap: 32px;
  }

  .contact-form form {
    padding: 24px;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }

  .btn,
  .project-card,
  .instagram-item {
    transition: none;
  }

  .shimmer::before {
    animation: none;
  }
}

/* Modal Navigation */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  transition: all 0.3s ease;
}

.modal-nav.prev { left: -80px; }
.modal-nav.next { right: -80px; }

@media (max-width: 1200px) {
  .modal-nav.prev { left: 10px; }
  .modal-nav.next { right: 10px; }
}

.modal-nav:hover {
  background: white;
  color: black;
}
