:root {
  /* Brand and layout tokens keep the page easy to adjust for future campaigns. */
  --wine: #a41c18;
  --wine-dark: #74120f;
  --charcoal: #434341;
  --ink: #1f1f1d;
  --muted: #6d6b66;
  --white: #ffffff;
  --porcelain: #fbfaf7;
  --beige: #f5f1ea;
  --line: rgba(67, 67, 65, 0.14);
  --shadow: 0 24px 70px rgba(31, 31, 29, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.gallery-page {
  background: var(--beige);
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(164, 28, 24, 0.38);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

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

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

.container {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.section-pad {
  padding: clamp(58px, 7vw, 104px) 0;
}

.site-header {
  /* Floating premium navigation with enough contrast over photography. */
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 28px), 1120px);
  margin: 12px auto 0;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(31, 31, 29, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  color: var(--white);
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(31, 31, 29, 0.86);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.brand img {
  width: clamp(116px, 10.5vw, 142px);
  height: auto;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.35vw, 22px);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  opacity: 0.84;
  transition: color 180ms ease, opacity 180ms ease;
}

.main-nav a:hover {
  color: #f3c8c5;
  opacity: 1;
}

.header-cta {
  border-radius: 999px;
  background: var(--wine);
  color: var(--white);
  padding: 10px 15px;
  font-weight: 700;
  font-size: 0.78rem;
  transition: background 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  background: #bf2420;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  /* First viewport: large environment photo, direct offer, and clear conversion path. */
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: 128px 0 62px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.84) 0%, rgba(17, 16, 15, 0.54) 44%, rgba(17, 16, 15, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 16, 15, 0.56) 0%, rgba(17, 16, 15, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), 780px);
  margin-left: max(18px, calc((100vw - var(--max)) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d6d4;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5.3vw, 4.65rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.82rem, 3vw, 3.15rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.88;
}

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

.btn-primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(164, 28, 24, 0.28);
}

.btn-primary:hover {
  background: #bf2420;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  border-color: rgba(164, 28, 24, 0.28);
  color: var(--wine);
  background: var(--white);
}

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

.hero-panel {
  position: absolute;
  right: max(18px, calc((100vw - var(--max)) / 2));
  bottom: 48px;
  z-index: 1;
  width: min(320px, calc(100% - 36px));
  border-left: 3px solid var(--wine);
  border-radius: var(--radius-sm);
  background: rgba(31, 31, 29, 0.68);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: #f5cbc8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.08;
}

.authority-grid,
.process-grid,
.faq-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.section-copy p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.conversion-card p,
.owner-card span {
  color: var(--muted);
  font-size: 0.96rem;
}

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

.owner-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
}

.owner-card img {
  width: 100%;
  aspect-ratio: 4 / 4.25;
  object-fit: cover;
}

.owner-card figcaption {
  padding: 24px;
}

.owner-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.05;
}

.services {
  background: var(--beige);
}

.services-grid {
  /* Cards reflow from three columns to a single column without horizontal scroll. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(31, 31, 29, 0.09);
}

.service-card img {
  width: 100%;
  height: 236px;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 500ms ease, filter 500ms ease;
}

.service-card::after,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(31, 31, 29, 0.28), rgba(31, 31, 29, 0) 48%);
  opacity: 0.7;
}

.service-card div {
  padding: 22px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-card:hover img {
  transform: scale(1.045);
  filter: saturate(1);
}

.project-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.path-card {
  padding: clamp(52px, 8vw, 98px) max(22px, calc((100vw - var(--max)) / 2));
}

.path-card h2 {
  font-size: clamp(1.95rem, 3.2vw, 3.3rem);
}

.path-card p {
  max-width: 590px;
}

.path-dark {
  background: var(--charcoal);
  color: var(--white);
}

.path-dark p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.78);
}

.path-light {
  background: var(--white);
}

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

.feature-list li {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 20px;
  color: var(--charcoal);
  font-weight: 700;
}

.feature-icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(164, 28, 24, 0.1);
}

.feature-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  width: 9px;
  height: 15px;
  border: solid var(--wine);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.process {
  background: var(--ink);
  color: var(--white);
}

.process .section-copy p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px 18px;
}

.timeline span {
  color: #f1b6b2;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-item {
  margin: 0;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.conversion {
  padding-top: 0;
}

.conversion-card {
  justify-content: space-between;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(120deg, rgba(67, 67, 65, 0.94), rgba(31, 31, 29, 0.98)),
    url("assets/projects/projeto-1.png") center / cover;
  color: var(--white);
  padding: clamp(32px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-hero {
  padding: 130px 0 52px;
  background:
    linear-gradient(120deg, rgba(31, 31, 29, 0.95), rgba(67, 67, 65, 0.86)),
    url("assets/projects/projeto-2.png") center / cover;
  color: var(--white);
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.64fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.gallery-hero h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.3vw, 4.2rem);
}

.gallery-hero p:not(.section-kicker) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-hero-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.gallery-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-hero-card figcaption {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
}

.complete-gallery {
  padding-top: 42px;
}

.complete-gallery-grid {
  columns: 4 230px;
  column-gap: 16px;
}

.complete-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(31, 31, 29, 0.11);
  cursor: zoom-in;
}

.complete-gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 500ms ease, filter 500ms ease;
}

.complete-gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(31, 31, 29, 0.72);
  color: var(--white);
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.complete-gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.lightbox {
  width: min(94vw, 1040px);
  max-height: 92vh;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  max-height: 76vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox-close {
  display: inline-flex;
  margin: 0 0 12px auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.conversion-card div {
  max-width: 680px;
}

.conversion-card p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.76);
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0;
  box-shadow: 0 12px 28px rgba(31, 31, 29, 0.06);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--charcoal);
  font-weight: 800;
}

summary::marker {
  color: var(--wine);
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 52px 0;
}

.footer-grid {
  align-items: end;
}

.footer-logo {
  width: min(290px, 80vw);
  margin-bottom: 18px;
}

.site-footer p {
  max-width: 440px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

address {
  display: grid;
  gap: 10px;
  justify-items: end;
  font-style: normal;
  color: rgba(255, 255, 255, 0.76);
}

address a:hover {
  color: #f5c4c1;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 18px 40px rgba(164, 28, 24, 0.38);
  transition: transform 180ms ease, background 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  background: #bf2420;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reveal {
  /* Applied by IntersectionObserver for subtle scroll reveals. */
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

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

  .main-nav.is-open {
    position: fixed;
    inset: 82px 16px auto;
    display: grid;
    gap: 0;
    border-radius: 22px;
    background: rgba(31, 31, 29, 0.96);
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 16px;
    border-radius: 14px;
  }

  .main-nav.is-open a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 760px;
  }

  .hero-panel {
    left: 18px;
    right: auto;
  }

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

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .section-pad {
    padding: 58px 0;
  }

  .hero {
    min-height: 760px;
    align-items: center;
    padding-top: 112px;
    padding-bottom: 156px;
  }

  .hero-content {
    margin-inline: auto;
  }

  .hero-panel {
    bottom: 28px;
  }

  .authority-grid,
  .process-grid,
  .faq-grid,
  .footer-grid,
  .project-paths {
    grid-template-columns: 1fr;
  }

  .path-card {
    padding-inline: 22px;
  }

  .conversion-card {
    align-items: flex-start;
  }

  address {
    justify-items: start;
  }

  .gallery-hero {
    padding-top: 112px;
  }

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

  .gallery-hero-card {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(calc(100% - 20px), 1260px);
    margin-top: 10px;
    padding: 8px 8px 8px 12px;
  }

  .brand img {
    width: 112px;
  }

  h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 1.62rem;
    line-height: 1.08;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .btn {
    padding: 11px 16px;
  }

  .hero-actions,
  .hero-actions .btn,
  .conversion-card .btn {
    width: 100%;
  }

  .services-grid,
  .feature-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 270px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .feature-list li {
    min-height: 86px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .gallery-hero h1 {
    font-size: 2.35rem;
  }

  .complete-gallery-grid {
    columns: 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
