:root {
  --bg: #0f0f0f;
  --bg-soft: #181818;
  --card: #202020;
  --text: #f7f1e8;
  --muted: #b8ad9f;
  --gold: #c79b52;
  --gold-soft: #ead0a3;
  --white: #ffffff;
  --border: rgba(255, 255, 255, .10);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
.album-card:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
}

.logo span {
  color: var(--gold);
}

.menu {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.menu a:hover {
  color: var(--gold-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.btn-primary {
  background: var(--gold);
  color: #16110a;
  box-shadow: 0 10px 30px rgba(199, 155, 82, .22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gold-soft);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, .98) 0%, rgba(15, 15, 15, .84) 43%, rgba(15, 15, 15, .28) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  max-width: 720px;
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  max-width: 780px;
  margin-bottom: 22px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -62px;
  position: relative;
  z-index: 3;
}

.stat-card,
.album-card,
.service-card,
.testimonial,
.featured-copy {
  border: 1px solid var(--border);
}

.stat-card {
  background: rgba(32, 32, 32, .92);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 32px;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 96px 0;
}

#portfolio,
.featured,
#servicos,
#comentarios,
.cta {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 680px;
}

.section-head p {
  color: var(--muted);
  max-width: 430px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  color: #16110a;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

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

.album-card {
  position: relative;
  min-height: 440px;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.album-card[hidden] {
  display: none;
}

.album-card img {
  height: 100%;
  position: absolute;
  inset: 0;
  transition: transform .55s ease;
}

.album-card:hover img,
.album-card:focus-visible img {
  transform: scale(1.07);
}

.album-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .72) 75%, rgba(0, 0, 0, .92) 100%);
}

.album-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.tag {
  display: inline-flex;
  background: rgba(234, 208, 163, .15);
  color: var(--gold-soft);
  border: 1px solid rgba(234, 208, 163, .28);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.album-info h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.album-info p {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  margin-bottom: 18px;
}

.album-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 13px;
}

.featured {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}

.featured-photo {
  border-radius: 32px;
  overflow: hidden;
  min-height: 800px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.featured-photo img {
  height: 800px;
}

.featured-copy {
  padding: 42px;
  background: rgba(255, 255, 255, .035);
  border-radius: 32px;
}

.featured-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 20px;
}

.featured-copy p {
  color: var(--muted);
  margin-bottom: 20px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0;
}

.mini-gallery img {
  height: 148px;
  border-radius: 18px;
}

.services-grid,
.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.service-card,
.testimonial {
  background: var(--bg-soft);
  border-radius: 26px;
  padding: 28px;
}

.service-card span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(199, 155, 82, .15);
  color: var(--gold-soft);
  font-weight: 800;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.service-card p,
.testimonial span {
  color: var(--muted);
  font-size: 14px;
}

.testimonial p {
  color: var(--text);
  margin-bottom: 22px;
  font-size: 15px;
}

.testimonial strong {
  color: var(--gold-soft);
}

.testimonial span {
  display: block;
  margin-top: 4px;
}

.cta {
  padding: 90px 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .52)),
    url('https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1800&q=85') center/cover no-repeat;
}

.cta-box {
  max-width: 760px;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 62px);
  margin-bottom: 18px;
}

.cta p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
}

footer {
  padding: 42px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 14px;
  font-weight: 700;
}

.modal,
.photo-viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
}

.modal {
  z-index: 100;
  backdrop-filter: blur(10px);
}

.modal.active,
.photo-viewer.active {
  display: flex;
}

.modal-box {
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
  position: relative;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: rgba(20, 20, 20, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.modal-title h3 {
  font-size: 30px;
  margin-bottom: 4px;
}

.modal-title p,
.modal-description {
  color: var(--muted);
}

.modal-title p {
  font-size: 14px;
}

.modal-close,
.photo-viewer button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.modal-cover {
  height: 430px;
  position: relative;
  overflow: hidden;
  background: var(--card);
}

.modal-cover img {
  height: 100%;
}

.modal-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 20, 20, .88) 100%);
}

.modal-body {
  padding: 28px;
}

.modal-description {
  max-width: 820px;
  margin-bottom: 24px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.modal-gallery img {
  height: 260px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}

.modal-gallery img:hover {
  transform: scale(1.02);
  opacity: .88;
}

.photo-viewer {
  z-index: 120;
  background: rgba(0, 0, 0, .92);
}

.photo-viewer img {
  width: auto;
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.photo-viewer button {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  font-size: 26px;
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .stats,
  .album-grid,
  .services-grid,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-photo {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .featured-photo img {
    height: 100%;
  }
}

@media (max-width: 780px) {
  .modal {
    padding: 10px;
    align-items: end;
  }

  .modal-box {
    max-height: 94vh;
    border-radius: 26px 26px 0 0;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-cover {
    height: 300px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-gallery img {
    height: 330px;
  }
}

@media (max-width: 640px) {
  .nav {
    height: 68px;
  }

  .logo {
    font-size: 22px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding: 70px 0 110px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: -46px;
  }

  .stat-card {
    padding: 20px;
    border-radius: 20px;
  }

  .stat-card strong {
    font-size: 26px;
  }

  section {
    padding: 70px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

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

  .album-card {
    min-height: 430px;
  }

  .featured-copy {
    padding: 28px;
  }

  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .mini-gallery img {
    height: 210px;
  }

  .cta {
    padding: 72px 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
