:root {
  --orange: #ff7623;
  --orange-dark: #a53a06;
  --dark: #202223;
  --paper: #f5f2ed;
  --muted: #6a655f;
  --border: #ded9d1;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--dark);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.accent {
  color: var(--orange);
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

/* CABEÇALHO */

.header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.navigation {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav > a {
  font-size: 13px;
  text-decoration: none;
}

nav > a:not(.button) {
  transition: color 200ms ease;
}

nav > a:not(.button):hover {
  color: var(--orange-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 4px;
  padding: 16px 23px;
  background: var(--orange);
  color: #25170d;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 250ms ease,
    transform 350ms var(--ease);
}

.button:hover {
  background: #ff8d48;
}

.button:active {
  transform: scale(.97);
}

.button:disabled {
  opacity: .65;
  cursor: wait;
}

.button-small,
.button.small {
  padding: 12px 17px;
  font-size: 12px;
}

.button-full,
.full {
  width: 100%;
}

/* BANNER */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #171a18;
  color: #fff;
  padding: 76px 0 24px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  animation: hero-photo-enter 1800ms var(--ease) both;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(13, 17, 15, .88),
    rgba(13, 17, 15, .65) 55%,
    rgba(13, 17, 15, .50)
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 70px;
}

.hero-eyebrow {
  color: #ffb281;
  animation: content-enter 900ms var(--ease) 150ms both;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 5.5vw, 82px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -2.5px;
  margin: 25px 0;
}

.headline-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

.headline-line > span {
  display: block;
  animation: headline-enter 1300ms var(--ease) both;
}

.headline-line:nth-child(1) > span {
  animation-delay: 200ms;
}

.headline-line:nth-child(2) > span {
  animation-delay: 380ms;
}

.headline-line:nth-child(3) > span {
  animation-delay: 560ms;
}

.hero-description {
  max-width: 390px;
  color: #e2ddd5;
  font-size: 17px;
  animation: content-enter 1100ms var(--ease) 650ms both;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 45px;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #ffffff65;
  padding: 10px 0;
  margin-top: 12px;
  animation: content-enter 1100ms var(--ease) 780ms both;
}

.hero-link span {
  color: var(--orange);
  font-size: 22px;
  transition: transform 250ms ease;
}

.hero-link:hover span {
  transform: translate(3px, -3px);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
  font-size: 11px;
  color: #ddd6ce;
  animation: content-enter 1100ms var(--ease) 900ms both;
}

.hero-details span::before {
  content: "✓";
  color: var(--orange);
  margin-right: 7px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 20px;
  border-top: 1px solid #ffffff30;
  color: #d8d3cd;
  font-size: 10px;
  letter-spacing: 1.5px;
  animation: content-enter 1000ms var(--ease) 1000ms both;
}

.hero-bottom a {
  text-decoration: none;
  letter-spacing: .3px;
}

/* FORMULÁRIO */

.quote-card {
  position: relative;
  background: #fff;
  color: var(--dark);
  padding: 32px;
  border-radius: 7px;
  box-shadow: 0 20px 80px #0003;
  animation: form-enter 1400ms var(--ease) 450ms both;
}

.quote-card .eyebrow {
  color: var(--orange-dark);
  margin-bottom: 8px;
}

.quote-card h2 {
  font: 36px/1.1 Georgia, serif;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.form-description {
  color: var(--muted);
  font-size: 13px;
}

label,
legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 13px 0 6px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #faf9f7;
  color: var(--dark);
  font-size: 13px;
}

input:not([type="checkbox"]):focus,
textarea:focus {
  border-color: var(--orange);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
  margin: 12px 0 0;
}

legend {
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chips span {
  display: block;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 400;
  transition:
    background 200ms ease,
    border-color 200ms ease;
}

.chips input:checked + span {
  background: #fff0e6;
  border-color: var(--orange);
  color: #873204;
}

.chips input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.consent input {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--orange-dark);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback {
  margin: 12px 0 0;
  font-size: 13px;
}

.feedback:empty {
  display: none;
}

.error {
  color: #b42318;
}

.success {
  color: #176b40;
}

/* DIFERENCIAIS */

.benefits {
  padding: 30px 0;
  background: var(--dark);
  color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.benefits article {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.number {
  font: 26px/1.3 Georgia, serif;
  color: var(--orange);
}

.benefits h2 {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 500;
}

.benefits p {
  margin: 0;
  color: #bdbab5;
  font-size: 12px;
}

/* PORTFÓLIO */

.section {
  padding: 100px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.section-heading .eyebrow {
  color: var(--orange-dark);
}

.section-title {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin: 20px 0 0;
}

.title-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.title-mask > span {
  display: block;
}

.section-description {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project {
  display: block;
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #d9d2c7;
  color: #fff;
  text-decoration: none;
}

.project-wide {
  grid-column: span 2;
}

.project > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1500ms var(--ease);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 45%,
    rgba(0, 0, 0, .7)
  );
  pointer-events: none;
}

.project-info {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 23px;
}

.project-info small {
  font-size: 8px;
  letter-spacing: 1.6px;
}

.project-info h3 {
  margin: 6px 28px 0 0;
  font: 29px/1.15 Georgia, serif;
}

.project-info > span {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 27px;
  transition: transform 300ms ease;
}

/* FRASE EM DESTAQUE */

.statement {
  padding: 90px 0;
  background: #e9e3da;
}

.statement .eyebrow {
  color: var(--orange-dark);
}

.statement-title {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 35px;
}

.statement-title .accent {
  color: var(--orange-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 45px;
  border-bottom: 1px solid #a69a8c;
  padding-bottom: 9px;
  text-decoration: none;
  font-size: 14px;
}

.text-link span {
  color: var(--orange-dark);
  font-size: 22px;
}

/* PROCESSO */

.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 55px;
}

.steps article {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.step-number {
  font-size: 46px;
  line-height: 1;
  font-weight: 300;
  color: var(--orange-dark);
}

.steps h3 {
  font-size: 16px;
  margin: 25px 0 12px;
}

.steps p {
  color: var(--muted);
  font-size: 13px;
}

/* CONTATO E RODAPÉ */

.contact-section {
  padding: 85px 0;
  background: var(--dark);
  color: white;
}

.contact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-section .eyebrow {
  color: #ffb281;
}

.contact-section .section-title {
  font-size: clamp(38px, 4.5vw, 58px);
  margin-bottom: 25px;
}

.contact-section p:last-child {
  color: #c9c3bb;
  font-size: 13px;
}

.privacy {
  padding-block: 35px;
}

.privacy h2 {
  font-size: 14px;
  margin-bottom: 8px;
}

.privacy p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 25px 0 85px;
  font-size: 11px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

.footer p {
  margin: 0;
}

.whatsapp {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  padding: 13px 22px;
  border-radius: 40px;
  background: #167840;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px #0003;
  transition: transform 250ms ease;
}

.whatsapp:hover {
  transform: translateY(-3px);
}

/* ABERTURA ANIMADA: FUNCIONA SEM JAVASCRIPT */

@keyframes hero-photo-enter {
  from {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.12);
  }

  to {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes headline-enter {
  from {
    transform: translateY(115%) rotate(3deg);
  }

  to {
    transform: translateY(0) rotate(0);
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes form-enter {
  from {
    opacity: 0;
    transform: translateY(55px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMAÇÕES NA ROLAGEM */

.js-motion .scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 1000ms var(--ease),
    transform 1200ms var(--ease);
}

.js-motion .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Títulos revelados de baixo para cima */
.js-motion .title-reveal {
  opacity: 1;
  transform: none;
}

.js-motion .title-reveal .title-mask > span {
  transform: translateY(115%) rotate(2deg);
  transition: transform 1300ms var(--ease);
}

.js-motion .title-reveal.is-visible .title-mask > span {
  transform: translateY(0) rotate(0);
}

.js-motion .title-reveal .title-mask:nth-child(2) > span {
  transition-delay: 140ms;
}

/* Imagens reveladas lateralmente */
.js-motion .photo-reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1400ms cubic-bezier(.76, 0, .24, 1);
}

.js-motion .photo-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

.js-motion .photo-reveal > img {
  transform: scale(1.14);
}

.js-motion .photo-reveal.is-visible > img {
  transform: scale(1);
}

/* Entrada em sequência */
.js-motion .gallery > :nth-child(3n + 2) {
  transition-delay: 120ms;
}

.js-motion .gallery > :nth-child(3n + 3) {
  transition-delay: 240ms;
}

.js-motion .steps > :nth-child(2),
.js-motion .benefits-grid > :nth-child(2) {
  transition-delay: 100ms;
}

.js-motion .steps > :nth-child(3),
.js-motion .benefits-grid > :nth-child(3) {
  transition-delay: 200ms;
}

.js-motion .steps > :nth-child(4) {
  transition-delay: 300ms;
}

@media (hover: hover) and (pointer: fine) {
  .project:hover > img,
  .js-motion .photo-reveal.is-visible:hover > img {
    transform: scale(1.055);
  }

  .project:hover .project-info > span {
    transform: translate(3px, -3px);
  }

  .button:hover {
    transform: translateY(-2px);
  }
}

/* PAINEL ADMINISTRATIVO EXISTENTE */

.admin-main {
  padding-block: 45px;
}

.login-card {
  max-width: 420px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.login-card button {
  margin-top: 20px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

.admin-toolbar h1 {
  margin: 0 auto 0 0;
  font: 36px Georgia, serif;
}

.admin-toolbar select {
  width: auto;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: #eeeae3;
  font-size: 12px;
}

td p {
  margin: 0 0 5px;
}

td .details {
  max-width: 250px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}

td a {
  color: #176b40;
}

td select {
  min-width: 155px;
}

[hidden] {
  display: none !important;
}

/* TABLET */

@media (max-width: 950px) {
  .hero-grid {
    gap: 35px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .quote-card {
    padding: 25px;
  }

  nav > a:not(.button) {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-wide {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    align-items: flex-start;
  }
}

/* CELULAR */

@media (max-width: 650px) {
  .container {
    width: calc(100% - 32px);
  }

  .navigation {
    min-height: 76px;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
    gap: 8px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .button-small,
  .button.small {
    font-size: 10px;
    padding: 10px 11px;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(50px, 13vw, 72px);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 15px;
    max-width: 320px;
  }

  .hero-details {
    margin-top: 25px;
    gap: 12px;
    font-size: 10px;
  }

  .hero-bottom {
    margin-top: 30px;
    font-size: 8px;
  }

  .quote-card {
    padding: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section {
    padding: 65px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .section-description {
    margin-top: 25px;
    font-size: 13px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project {
    height: 420px;
  }

  .project-wide {
    grid-column: auto;
  }

  .statement {
    padding: 65px 0;
  }

  .statement-title {
    font-size: clamp(34px, 9vw, 52px);
    letter-spacing: -1.5px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 35px;
  }

  .steps h3 {
    margin-top: 18px;
  }

  .contact-section {
    padding: 65px 0;
  }

  .contact-grid {
    display: block;
  }

  .contact-section .section-title {
    font-size: clamp(32px, 8.5vw, 45px);
    letter-spacing: -1.5px;
  }

  .contact-grid > .button {
    margin-top: 20px;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
    padding: 12px 18px;
    font-size: 12px;
  }

  .js-motion .gallery > .scroll-reveal,
  .js-motion .steps > .scroll-reveal,
  .js-motion .benefits-grid > .scroll-reveal {
    transition-delay: 0ms;
  }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-motion .scroll-reveal,
  .js-motion .photo-reveal,
  .js-motion .title-reveal .title-mask > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
/* Substitui os efeitos anteriores pelo controle em JavaScript */
html.motion-v5 .hero-image,
html.motion-v5 .headline-line > span,
html.motion-v5 .hero-eyebrow,
html.motion-v5 .hero-description,
html.motion-v5 .hero-link,
html.motion-v5 .hero-details,
html.motion-v5 .hero-bottom,
html.motion-v5 .quote-card {
  animation: none;
}

html.motion-v5 .scroll-reveal {
  opacity: 1;
  transform: none;
  clip-path: none;
  transition: none;
}

html.motion-v5 .title-mask > span,
html.motion-v5 .headline-line > span {
  transform: none;
  transition: none;
}

html.motion-v5 .project > img {
  transition: none;
}

html.motion-v5 .scroll-reveal.waiting-v5,
html.motion-v5 .quote-card.waiting-v5 {
  opacity: 0;
}

html.motion-v5 .title-mask,
html.motion-v5 .headline-line {
  display: block;
  overflow: hidden;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}

html.motion-v5 .title-mask > span,
html.motion-v5 .headline-line > span {
  display: block;
  transform-origin: left bottom;
}