@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("./assets/fonts/tex-gyre-adventor-700.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5efc3;
  --espresso: #2b1f17;
  --olive: #5b6449;
  --sage: #8a9178;
  --off-white: #fbf8f2;
  --heading: "TeX Gyre Adventor", "Century Gothic", "Avant Garde", sans-serif;
  --body: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 6vw, 6.5rem);
  --shadow: 0 1.2rem 2.2rem rgb(43 31 23 / 18%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--espresso);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  font-family: var(--body);
  line-height: 1.6;
}

#app,
main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  color: var(--off-white);
  background: var(--espresso);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
.wordmark {
  font-family: var(--heading);
  font-weight: 700;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5rem;
  padding: 0.7rem var(--gutter);
  color: var(--espresso);
  background-color: var(--paper);
  transition: color 180ms ease, background-color 180ms ease;
}

.site-header[data-theme="dark"] {
  color: var(--off-white);
  background-color: var(--espresso);
}

.site-header[data-theme="light"] {
  color: var(--espresso);
  background-color: var(--paper);
}

#sobre,
#servicos,
#galeria,
#contato {
  scroll-margin-top: 5rem;
}

.wordmark {
  width: max-content;
  text-decoration: none;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  letter-spacing: -0.04em;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.desktop-nav a,
.site-footer nav a {
  text-decoration: none;
}

.desktop-nav a {
  padding-block: 0.35rem;
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.header-cta,
.contact-cta {
  border: 1px solid currentColor;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
}

.header-cta {
  justify-self: end;
  padding: 0.65rem 1rem;
  color: var(--off-white);
  background: var(--olive);
  border-color: var(--olive);
}

.menu-button,
.mobile-nav,
.mobile-budget-bar {
  display: none;
}

.mobile-budget-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  color: var(--off-white);
  font: 600 0.9rem/1 var(--body);
  background: var(--olive);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.mobile-budget-cta svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) 1.18fr;
  min-height: 100dvh;
  padding: clamp(7rem, 12dvh, 10rem) var(--gutter) 8rem;
}

.hero-copy {
  position: relative;
  z-index: 5;
  align-self: center;
}

.hero h1 {
  max-width: 8.3ch;
  margin-bottom: 2rem;
  font-size: clamp(4.5rem, 7.4vw, 8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.editorial-stroke {
  display: block;
  width: 8rem;
  height: 0.3rem;
  background: var(--olive);
  transform: rotate(-2deg);
}

.hero-photos {
  position: relative;
  min-height: 42rem;
}

.print {
  margin: 0;
  padding: clamp(0.65rem, 1vw, 1rem) clamp(0.65rem, 1vw, 1rem) clamp(2.4rem, 4vw, 4.5rem);
  background: var(--off-white);
  box-shadow: var(--shadow);
}

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

.hero-print {
  position: absolute;
}

.hero-print-1 {
  top: 0;
  left: 16%;
  z-index: 1;
  width: min(58%, 30rem);
  height: 34rem;
  transform: rotate(5deg);
}

.hero-print-2 {
  right: -2%;
  bottom: 4%;
  z-index: 3;
  width: min(50%, 26rem);
  height: 29rem;
  transform: rotate(6deg);
}

.hero-print-3 {
  bottom: 0;
  left: 2%;
  z-index: 2;
  width: min(48%, 25rem);
  height: 24rem;
  transform: rotate(-7deg);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(4rem, 8vw, 8rem);
  align-items: center;
  padding: 8rem var(--gutter) 10rem;
}

.about-print {
  height: min(37rem, 55vw);
  transform: rotate(-2deg);
}

.about-copy {
  max-width: 34rem;
}

.about h2,
.services h2,
.gallery h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-lead {
  margin-top: 2rem;
  color: var(--olive);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
}

.about-copy > p:last-child {
  max-width: 40ch;
  margin-top: 2.5rem;
}

.services {
  color: var(--off-white);
  background: var(--espresso);
}

.section-shell {
  padding: 6rem var(--gutter) 7rem;
}

.services .editorial-stroke {
  background: var(--sage);
}

.service-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.service-group {
  margin-top: 2.75rem;
}

.service-group > h3 {
  margin: 0;
  color: var(--sage);
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  letter-spacing: -0.025em;
}

.service-group-sites {
  margin-top: 4.5rem;
}

.service-item {
  border-bottom: 1px solid rgb(251 248 242 / 40%);
}

.service-disclosure summary::-webkit-details-marker {
  display: none;
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 10rem max-content 2.5rem;
  gap: 0.8rem;
  align-items: center;
  min-height: 10.5rem;
  list-style: none;
  cursor: pointer;
}

.service-number {
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
}

.service-title {
  position: relative;
  z-index: 3;
  max-width: none;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1.7rem, 2.35vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.service-chevron {
  position: relative;
  z-index: 4;
  width: 2rem;
  align-self: center;
  justify-self: start;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.service-disclosure[open] .service-chevron {
  transform: rotate(180deg);
}

.service-disclosure[open] .service-print {
  opacity: 0;
}

.service-print {
  position: absolute;
  right: 3%;
  z-index: 2;
  width: 15rem;
  height: 11rem;
  padding: 0.55rem 0.55rem 1.8rem;
  opacity: 0.96;
  transform: rotate(4deg);
  transition: opacity 180ms ease, transform 180ms ease, width 220ms ease, height 220ms ease;
  pointer-events: none;
}

.service-item:nth-child(2) .service-print,
.service-item:nth-child(4) .service-print {
  right: 10%;
  transform: rotate(-5deg);
}

.service-row:hover .service-print,
.service-row:focus-within .service-print {
  opacity: 1;
  transform: rotate(3deg) translateY(-0.25rem);
}

.service-item:nth-child(2) .service-row:hover .service-print,
.service-item:nth-child(4) .service-row:hover .service-print {
  transform: rotate(-5deg) translateY(0);
}

.service-disclosure[open] .service-row .service-print {
  opacity: 0;
  transform: translateX(2rem) scale(0.85);
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 24vw, 21rem);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  padding: 0 1rem 4rem 11rem;
}

.service-panel-copy {
  min-width: 0;
}

.service-panel-print {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  padding: 0.6rem 0.6rem 2rem;
  transform: rotate(2deg);
  transform-origin: top left;
  animation: service-image-arrive 320ms ease-out both;
}

@keyframes service-image-arrive {
  from {
    opacity: 0;
    transform: translate(-3rem, -2rem) rotate(-3deg) scale(0.78);
  }

  to {
    opacity: 1;
    transform: translate(0) rotate(2deg) scale(1);
  }
}

.service-intro {
  max-width: 62ch;
  margin-bottom: 2.5rem;
  color: var(--sage);
  font-size: 1.05rem;
}

.package-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-item {
  display: grid;
  grid-template-columns: minmax(10rem, 0.65fr) minmax(12rem, 1fr) auto;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgb(251 248 242 / 24%);
}

.package-item h5,
.package-item p {
  margin: 0;
}

.package-item h5 {
  font-family: var(--heading);
  font-size: 1.25rem;
}

.standalone-price {
  margin: 0;
  color: var(--sage);
  font-weight: 600;
}

.package-item p {
  color: rgb(251 248 242 / 78%);
  line-height: 1.55;
}

.package-price {
  color: var(--sage) !important;
  font-weight: 600;
  white-space: nowrap;
}

.gallery {
  min-height: 58rem;
  padding: 7rem var(--gutter) 8rem;
}

#galeria {
  scroll-margin-top: 0;
}

.gallery-heading {
  display: flex;
  justify-content: flex-start;
  gap: 0.3rem;
  align-items: baseline;
}

.gallery-heading h2 {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  margin-bottom: 0;
  line-height: 0.98;
  white-space: nowrap;
}

.gallery-heading .ellipsis-dot-1 { color: var(--espresso); }
.gallery-heading .ellipsis-dot-2 { color: color-mix(in srgb, var(--espresso), var(--olive)); }
.gallery-heading .ellipsis-dot-3 { color: var(--olive); }

.gallery-heading .ellipsis-dot {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  margin-left: 0.035em;
  vertical-align: baseline;
  transform: none;
  background: currentColor;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -9999px;
}

.gallery-heading p {
  margin: 0;
  color: var(--olive);
  font-weight: 500;
  line-height: 1;
}

.gallery-carousel {
  position: relative;
  margin: 1rem calc(var(--gutter) * -1) 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-carousel.is-dragging {
  cursor: grabbing;
}

.gallery-track,
.gallery-group {
  display: flex;
  width: max-content;
}

.gallery-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.gallery-group {
  align-items: center;
  height: 38rem;
  padding: 2rem 1.5rem 5rem;
}

.gallery-print {
  position: relative;
  flex: 0 0 auto;
  width: clamp(13rem, 18vw, 19rem);
  height: clamp(16rem, 24vw, 24rem);
  margin-left: -2.6rem;
  padding-bottom: clamp(2.2rem, 3vw, 3.6rem);
}

.gallery-print img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.gallery-print:first-child { margin-left: 0; }
.gallery-print:nth-child(4n + 1) { z-index: 1; transform: translateY(1.8rem) rotate(-6deg); }
.gallery-print:nth-child(4n + 2) { z-index: 2; width: clamp(16rem, 22vw, 23rem); transform: translateY(-1.2rem) rotate(3deg); }
.gallery-print:nth-child(4n + 3) { z-index: 3; transform: translateY(2.8rem) rotate(-2deg); }
.gallery-print:nth-child(4n) { z-index: 2; width: clamp(15rem, 21vw, 22rem); transform: translateY(-0.5rem) rotate(5deg); }

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.gallery-control {
  display: grid;
  width: 3.1rem;
  height: 2.6rem;
  padding: 0;
  place-items: center;
  color: var(--olive);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.gallery-control:hover {
  color: var(--espresso);
  background: transparent;
}

.gallery-control svg {
  width: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-previous:hover svg {
  transform: translateX(-0.2rem);
}

.gallery-next:hover svg {
  transform: translateX(0.2rem);
}

.gallery-control svg {
  transition: transform 160ms ease;
}

.gallery-slider {
  width: clamp(8rem, 18vw, 15rem);
  height: 2.6rem;
  margin: 0 0.35rem;
  accent-color: var(--olive);
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.gallery-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: rgb(91 100 73 / 45%);
}

.gallery-slider::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  margin-top: -0.45rem;
  appearance: none;
  background: var(--olive);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--olive);
}

.gallery-slider::-moz-range-track {
  height: 2px;
  background: rgb(91 100 73 / 45%);
}

.gallery-slider::-moz-range-thumb {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--olive);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.gallery-control .play-icon {
  display: none;
}

.gallery-toggle:not(.is-playing) .pause-icon {
  display: none;
}

.gallery-toggle:not(.is-playing) .play-icon {
  display: block;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: 7rem var(--gutter) 6rem;
  color: var(--off-white);
  background: var(--espresso);
}

.contact-label {
  margin-bottom: 1rem;
  color: var(--sage);
}

.contact h2 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.contact-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 2rem;
  color: var(--sage);
  background: transparent;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
}

.contact-cta svg {
  width: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem var(--gutter) 3rem;
  color: var(--off-white);
  background: var(--espresso);
  border-top: 1px solid rgb(138 145 120 / 70%);
}

.budget-dialog {
  width: min(50rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  color: var(--espresso);
  background: var(--paper);
  border: 0;
  box-shadow: 0 2rem 5rem rgb(43 31 23 / 35%);
}

.budget-dialog::backdrop {
  background: rgb(43 31 23 / 72%);
}

.budget-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.budget-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.budget-heading p {
  margin-bottom: 0.35rem;
  color: var(--olive);
  font-size: 0.85rem;
}

.budget-heading h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dialog-close {
  align-self: flex-start;
  padding: 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-field small {
  color: var(--olive);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sage);
  border-radius: 0;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  padding: 0;
  border: 0;
}

.service-options legend {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.service-options label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
}

.service-options input {
  margin-top: 0.2rem;
  accent-color: var(--olive);
}

.services-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #8a2f22;
  font-size: 0.82rem;
}

.budget-submit {
  justify-self: start;
  padding: 0.85rem 1.25rem;
  color: var(--off-white);
  background: var(--olive);
  border: 1px solid var(--olive);
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 621px) and (max-height: 760px) {
  .budget-form {
    gap: 0.75rem;
    padding: 1.35rem 2rem;
  }

  .budget-heading h2 {
    font-size: 2.35rem;
  }

  .service-options {
    gap: 0.3rem 1rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    padding-block: 0.45rem;
  }

  .budget-submit {
    padding-block: 0.65rem;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #sobre,
  #servicos,
  #galeria,
  #contato {
    scroll-margin-top: 4.5rem;
  }

  .site-header {
    min-height: 4.5rem;
    padding-block: 0.55rem;
  }

  .wordmark {
    font-size: 1.45rem;
  }

  .desktop-nav a,
  .header-cta {
    font-size: 0.84rem;
  }

  .header-cta {
    padding: 0.65rem 1rem;
  }

  .hero {
    min-height: 100dvh;
    padding-top: 5.25rem;
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(3.4rem, 5.2vw, 4.8rem);
  }

  .editorial-stroke {
    width: 6rem;
    height: 0.22rem;
  }

  .hero-photos {
    min-height: 27rem;
  }

  .hero-print-1 {
    left: 18%;
    width: min(52%, 24rem);
    height: 22rem;
  }

  .hero-print-2 {
    width: min(45%, 21rem);
    height: 19rem;
  }

  .hero-print-3 {
    width: min(42%, 20rem);
    height: 17rem;
  }

  .about {
    min-height: 100dvh;
    gap: 4rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .about-print {
    height: min(27rem, 62dvh);
  }

  .about h2,
  .services h2,
  .gallery h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
  }

  .section-lead {
    margin-top: 1.25rem;
    font-size: 1.15rem;
  }

  .about-copy > p:last-child {
    margin-top: 1.5rem;
    font-size: 0.92rem;
  }

  .section-shell {
    min-height: 100dvh;
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }

  .service-list {
    margin-top: 1.25rem;
  }

  .service-row {
    grid-template-columns: 6rem max-content 1.75rem;
    min-height: 5.8rem;
  }

  .service-number {
    font-size: 2.8rem;
  }

  .service-title {
    font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  }

  .service-chevron {
    width: 1.4rem;
  }

  .service-print {
    width: 9.5rem;
    height: 7rem;
    padding: 0.4rem 0.4rem 1.2rem;
  }

  .service-panel {
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 1.5rem;
    padding: 0 0 2.25rem 7rem;
  }

  .service-intro {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .package-item {
    gap: 1.25rem;
    padding: 0.75rem 0;
  }

  .package-item h5 {
    font-size: 1.05rem;
  }

  .service-disclosure[open] .service-print {
    width: 13rem;
    height: 9.5rem;
  }

  .package-item p {
    font-size: 0.86rem;
  }

  .gallery {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4.5rem;
    padding-bottom: 1rem;
  }

  .gallery-carousel {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .gallery-group {
    height: 25rem;
    padding-top: 1rem;
    padding-bottom: 4.5rem;
  }

  .gallery-print {
    width: clamp(10rem, 15vw, 15rem);
    height: clamp(12rem, 19vw, 19rem);
    padding-bottom: 2rem;
  }

  .gallery-print-2,
  .gallery-print-4,
  .gallery-print-5,
  .gallery-print-6 {
    width: clamp(12rem, 19vw, 19rem);
  }

  .contact {
    min-height: calc(100dvh - 5rem);
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact h2 {
    font-size: clamp(3rem, 5vw, 4.7rem);
  }

  .contact-cta {
    padding: 1.1rem 1.5rem;
  }

  .site-footer {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }
}

@media (max-width: 900px) {
  #sobre,
  #servicos,
  #galeria,
  #contato {
    scroll-margin-top: 5rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 5rem;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 0.3rem;
    width: 3rem;
    height: 3rem;
    place-content: center;
    color: var(--espresso);
    background: transparent;
    border: 0;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 1.8rem;
    height: 2px;
    background: currentColor;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    display: grid;
    padding: 1rem;
    color: var(--off-white);
    background: var(--espresso);
    box-shadow: var(--shadow);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgb(251 248 242 / 20%);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 15vw, 6rem);
  }

  .hero-photos {
    min-height: 38rem;
    margin-top: -2rem;
  }

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

  .about-print {
    height: 70vw;
  }

  .about-copy {
    max-width: 38rem;
  }

  .gallery {
    min-height: auto;
  }

  .gallery-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: auto;
  }

  .gallery-print {
    position: static;
    width: auto;
    height: 48vw;
  }

  .gallery-print:nth-child(odd) { transform: rotate(-2deg); }
  .gallery-print:nth-child(even) { transform: rotate(2deg); }

  .gallery-group {
    height: 30rem;
  }

  .gallery-print {
    position: relative;
    width: 13rem;
    height: 17rem;
    margin-left: -2rem;
  }

  .gallery-print:nth-child(4n + 1) { transform: translateY(1.2rem) rotate(-5deg); }
  .gallery-print:nth-child(4n + 2) { width: 16rem; transform: translateY(-0.8rem) rotate(3deg); }
  .gallery-print:nth-child(4n + 3) { transform: translateY(1.8rem) rotate(-2deg); }
  .gallery-print:nth-child(4n) { width: 15rem; transform: translateY(-0.3rem) rotate(4deg); }
}

@media (max-width: 620px) {
  :root {
    --gutter: 1.35rem;
  }

  body {
    font-size: 0.94rem;
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom));
  }

  .mobile-budget-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 19;
    display: block;
    padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom));
    background: rgb(245 239 195 / 96%);
    border-top: 1px solid rgb(43 31 23 / 16%);
    box-shadow: 0 -0.5rem 1.5rem rgb(43 31 23 / 10%);
    backdrop-filter: blur(0.45rem);
    -webkit-backdrop-filter: blur(0.45rem);
  }

  .mobile-budget-cta:focus-visible {
    outline: 2px solid var(--espresso);
    outline-offset: 2px;
  }

  .hero,
  .about,
  .services,
  .gallery,
  .contact,
  .site-footer {
    width: 100dvw;
    max-width: 100%;
  }

  .site-header {
    min-height: 5rem;
    padding-block: 1rem;
  }

  #sobre,
  #servicos,
  #galeria,
  #contato {
    scroll-margin-top: 5rem;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    position: relative;
    z-index: 5;
    max-width: 7ch;
    margin-bottom: 0;
    font-size: clamp(3.25rem, 14vw, 4.6rem);
    line-height: 0.92;
  }

  .hero .editorial-stroke {
    display: none;
  }

  .hero-photos {
    min-height: 28rem;
    margin-top: -3rem;
  }

  .hero-print-1 {
    top: 0;
    right: -10%;
    left: auto;
    width: 65%;
    height: 19rem;
  }

  .hero-print-2 {
    right: -3%;
    bottom: 0;
    width: 61%;
    height: 18rem;
  }

  .hero-print-3 {
    display: none;
  }

  .about {
    padding: 4rem var(--gutter) 4.5rem;
    color: var(--off-white);
    background: var(--espresso);
  }

  .about-print {
    order: 2;
    height: 66vw;
    margin-top: 0.5rem;
  }

  .about .editorial-stroke {
    background: var(--sage);
  }

  .about h2,
  .services h2,
  .gallery h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .about-copy > p:last-child {
    display: none;
  }

  .section-lead {
    margin-bottom: 0;
    color: var(--sage);
  }

  .services {
    color: var(--espresso);
    background: var(--paper);
  }

  .section-shell {
    padding: 4rem var(--gutter) 4.5rem;
  }

  .service-row {
    grid-template-columns: 3.8rem max-content 1.5rem;
    gap: 0.55rem;
    min-height: 6rem;
  }

  .service-item {
    border-color: rgb(91 100 73 / 55%);
  }

  .service-number {
    font-size: 2.4rem;
  }

  .service-title {
    font-size: clamp(1rem, 4.3vw, 1.2rem);
    white-space: nowrap;
  }

  .service-chevron {
    width: 1.4rem;
    stroke: var(--olive);
  }

  .service-print {
    display: none;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 0 2.5rem 3.8rem;
  }

  .service-panel-print {
    height: 13rem;
  }

  .service-intro {
    margin-bottom: 1.5rem;
    color: var(--olive);
    font-size: 0.95rem;
  }

  .package-item {
    display: block;
    padding: 1.2rem 0;
    border-color: rgb(91 100 73 / 40%);
  }

  .package-item h5 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
  }

  .package-item p {
    color: var(--espresso);
    font-size: 0.9rem;
  }

  .package-price {
    margin-top: 0.65rem !important;
    color: var(--olive) !important;
    font-family: var(--heading);
    font-size: 1rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .package-price::after,
  .standalone-price::after {
    display: block;
    width: 2.5rem;
    height: 2px;
    margin-top: 0.3rem;
    background: var(--sage);
    content: "";
  }

  .standalone-price {
    color: var(--olive);
    font-family: var(--heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .gallery {
    padding: 4rem 0 4.5rem;
    color: var(--off-white);
    background: var(--espresso);
  }

  .gallery-heading {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding-inline: var(--gutter);
  }

  .gallery-heading h2 {
    font-size: clamp(2rem, 9.6vw, 2.8rem);
  }

  .gallery-heading p {
    color: var(--sage);
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .gallery-heading h2 span {
    color: var(--sage);
  }

  .gallery-heading .ellipsis-dot-1 { color: var(--off-white); }
  .gallery-heading .ellipsis-dot-2 { color: color-mix(in srgb, var(--off-white), var(--sage)); }
  .gallery-heading .ellipsis-dot-3 { color: var(--sage); }

  .gallery-control,
  .gallery-control:hover,
  .gallery-control:active {
    color: var(--sage);
  }

  .gallery-previous:hover svg,
  .gallery-next:hover svg,
  .gallery-previous:active svg,
  .gallery-next:active svg {
    transform: none;
  }

  .gallery-photos {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    overflow: hidden;
  }

  .gallery-print {
    flex: 0 0 50%;
    height: 14rem;
    padding: 0;
    box-shadow: none;
    transform: none !important;
  }

  .gallery-print:nth-child(n + 5) {
    display: block;
  }

  .gallery-carousel {
    margin: 1.5rem 0 0;
  }

  .gallery-group {
    height: 20rem;
    padding: 1rem 0.75rem 4rem;
  }

  .gallery-print {
    position: relative;
    flex: 0 0 auto;
    width: 9.25rem;
    height: 13rem;
    margin-left: -1.5rem;
    padding: 0.45rem 0.45rem 1.5rem;
    box-shadow: var(--shadow);
  }

  .gallery-print:nth-child(4n + 1) { transform: translateY(1rem) rotate(-5deg) !important; }
  .gallery-print:nth-child(4n + 2) { width: 11rem; transform: translateY(-0.5rem) rotate(3deg) !important; }
  .gallery-print:nth-child(4n + 3) { transform: translateY(1.4rem) rotate(-2deg) !important; }
  .gallery-print:nth-child(4n) { width: 10.25rem; transform: translateY(0) rotate(4deg) !important; }

  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem var(--gutter) 4.5rem;
    border-top: 1px solid rgb(138 145 120 / 40%);
  }

  .contact h2 {
    font-size: clamp(3.15rem, 14.5vw, 4.6rem);
  }

  .site-footer {
    align-items: flex-start;
    padding-block: 1.5rem 2.5rem;
  }

  .site-footer nav {
    display: none;
  }

  .budget-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .budget-form {
    gap: 1rem;
    padding: 1.25rem;
  }

  .budget-heading h2 {
    font-size: 2rem;
  }

  .service-options,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .service-row {
    grid-template-columns: 3.4rem minmax(0, 1fr) 1.25rem;
  }

  .service-title {
    white-space: normal;
  }

  .service-panel {
    padding-left: 3.4rem;
  }
}

#galeria {
  scroll-margin-top: 0;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .service-panel-print {
    animation: none;
  }
}
