:root {
  --bg: #f4efe7;
  --paper: #fbf8f2;
  --ink: #181614;
  --muted: #72685e;
  --line: #ded3c4;
  --terracotta: #9c563c;
  --gold: #c4963e;
  --green: #24433b;
  --shadow: 0 24px 70px rgba(40, 28, 18, 0.16);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(244, 239, 231, 0.84);
  border-bottom: 1px solid rgba(222, 211, 196, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  line-height: 0.9;
}

.brand span {
  font-family: var(--display);
  font-size: 30px;
  font-style: italic;
}

.brand small,
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a,
.scroll-cue,
.text-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 118px clamp(20px, 7vw, 90px) 72px;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.82), rgba(18, 16, 14, 0.3) 54%, rgba(18, 16, 14, 0.1)),
    linear-gradient(0deg, rgba(18, 16, 14, 0.45), transparent 42%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: #fffaf2;
}

.hero h1,
.section-heading h2,
.intro h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.86;
}

.hero-content p:last-of-type {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.button-primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fffaf2;
}

.button-ghost {
  color: #fffaf2;
}

.scroll-cue {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 30px;
  color: rgba(255, 250, 242, 0.72);
  writing-mode: vertical-rl;
}

.band,
.gallery-section,
.process-section {
  padding: clamp(76px, 10vw, 140px) clamp(20px, 5vw, 64px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: end;
  max-width: 1280px;
  margin: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--terracotta);
}

.intro h2,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
}

.intro-text,
.about-copy p,
.contact-copy p,
.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 32px;
}

.filter-bar button {
  padding: 0 0 9px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 700 12px var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-bar button.active {
  border-color: var(--terracotta);
  color: var(--ink);
}

/* ============================================ */
/* LAYOUT BASE DA GALERIA - GRID PADRÃO        */
/* ============================================ */
[data-gallery] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* ============================================ */
/* LAYOUT PARA DESTAQUES - HORIZONTAL SCROLL   */
/* ============================================ */
[data-gallery].gallery-featured {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  gap: 1.5rem !important;
  padding: 1rem 0.5rem 2rem 0.5rem !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  grid-template-columns: none !important;
}

/* Estilização da scrollbar */
[data-gallery].gallery-featured::-webkit-scrollbar {
  height: 8px;
}

[data-gallery].gallery-featured::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 10px;
}

[data-gallery].gallery-featured::-webkit-scrollbar-thumb {
  background: var(--terracotta);
  border-radius: 10px;
}

[data-gallery].gallery-featured::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* ============================================ */
/* CARDS PADRÃO (Tamanho normal)               */
/* ============================================ */
.art-card {
  display: inline-block;
  width: 100%;
  margin: 0;
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid rgba(222, 211, 196, 0.75);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.art-card img {
  aspect-ratio: var(--ratio, 4 / 5);
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.art-card:hover img {
  transform: scale(1.045);
}

/* ============================================ */
/* CARDS DE DESTAQUE (Menores)                 */
/* ============================================ */
.art-card-featured {
  flex: 0 0 auto !important;
  width: 200px !important;
  scroll-snap-align: start !important;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.art-card-featured img {
  aspect-ratio: 3 / 4 !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.art-card-featured:hover img {
  transform: scale(1.045);
}

.art-card-featured .art-info {
  padding: 0.65rem !important;
}

.art-card-featured h3 {
  font-size: 0.85rem !important;
  margin-bottom: 0.25rem !important;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-card-featured p {
  font-size: 0.6rem !important;
  margin: 0 !important;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================ */
/* INFO DOS CARDS (estilo base)                */
/* ============================================ */
.art-info {
  padding: 18px;
}

.art-info h3,
.process-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
}

.art-info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
  padding: 4rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: center;
  max-width: 1280px;
  margin: auto;
  padding: clamp(76px, 10vw, 150px) clamp(20px, 5vw, 64px);
}

.about-image img {
  min-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-copy p {
  margin-top: 22px;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--terracotta);
}

.process-section {
  background: #ede4d7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.process-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: var(--ink);
}

.process-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.process-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
}

.process-card div {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fffaf2;
}

.process-card p {
  max-width: 440px;
  color: rgba(255, 250, 242, 0.72);
}

.quote {
  max-width: 860px;
  margin: 72px 0 0;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 54px);
  font-style: italic;
  line-height: 1.12;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.85fr);
  gap: clamp(34px, 8vw, 100px);
  padding: clamp(76px, 10vw, 140px) clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: auto;
}

.contact-copy p {
  margin-top: 22px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border 0.25s ease, transform 0.25s ease;
}

.contact-list a:hover {
  border-color: rgba(156, 86, 60, 0.55);
  transform: translateY(-2px);
}

.contact-list span {
  font-weight: 700;
}

.contact-list small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  width: min(1080px, 100%);
  max-height: 90svh;
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-image {
  display: grid;
  place-items: center;
  background: #111;
}

.modal-image img {
  max-height: 90svh;
  object-fit: contain;
}

.modal-copy {
  padding: clamp(28px, 4vw, 48px);
}

.modal-copy h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 54px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.modal-copy dl {
  margin: 0 0 26px;
}

.modal-copy dl div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.modal-copy dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-copy dd {
  margin: 0;
}

.modal-copy p:last-of-type {
  color: var(--muted);
  line-height: 1.8;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================ */
/* ANIMAÇÃO PARA CARDS DE DESTAQUE             */
/* ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.art-card-featured {
  animation: fadeInUp 0.5s ease backwards;
}

.art-card-featured:nth-child(1) { animation-delay: 0.05s; }
.art-card-featured:nth-child(2) { animation-delay: 0.1s; }
.art-card-featured:nth-child(3) { animation-delay: 0.15s; }
.art-card-featured:nth-child(4) { animation-delay: 0.2s; }
.art-card-featured:nth-child(5) { animation-delay: 0.25s; }
.art-card-featured:nth-child(6) { animation-delay: 0.3s; }

/* ============================================ */
/* RESPONSIVIDADE                               */
/* ============================================ */
@media (max-width: 820px) {
  .site-header {
    height: 68px;
  }

  .nav-toggle {
    display: grid;
    gap: 7px;
    width: 42px;
    padding: 10px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span {
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 24px;
    background: rgba(244, 239, 231, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: 92svh;
    padding: 110px 20px 58px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 82px);
  }

  .intro,
  .about-section,
  .contact-section,
  .process-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .about-image img,
  .process-card {
    min-height: 380px;
  }

  .modal {
    padding: 0;
    align-items: stretch;
  }

  .modal-panel {
    max-height: 100svh;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  /* Ajuste para cards de destaque em tablet */
  .art-card-featured {
    width: 180px !important;
  }
  
  .art-card-featured h3 {
    font-size: 0.75rem !important;
  }
  
  .art-card-featured p {
    font-size: 0.55rem !important;
  }
  
  .art-card-featured .art-info {
    padding: 0.5rem !important;
  }
}

@media (max-width: 640px) {
  /* Ajuste para cards de destaque em mobile */
  .art-card-featured {
    width: 160px !important;
  }
  
  .art-card-featured h3 {
    font-size: 0.7rem !important;
  }
  
  .art-card-featured p {
    font-size: 0.5rem !important;
  }
  
  [data-gallery].gallery-featured {
    gap: 1rem !important;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding: 0 16px;
  }

  .contact-list a,
  .modal-copy dl div {
    grid-template-columns: 1fr;
  }

  .contact-list a {
    flex-direction: column;
  }

  /* Ajuste para cards de destaque em mobile pequeno */
  .art-card-featured {
    width: 140px !important;
  }
  
  .art-card-featured h3 {
    font-size: 0.65rem !important;
  }
  
  .art-card-featured p {
    font-size: 0.45rem !important;
  }
  
  .art-card-featured .art-info {
    padding: 0.4rem !important;
  }
}