/* ==========================================================================
   1. CORES DA MARCA (:root) — Identidade Marrom & Tons Pastéis (@abrzarquitetura)
   ========================================================================== */
:root {
  --bg: #FAF6F2;             /* Fundo principal: linho amendoado pastel */
  --surface: #FFFDFB;        /* Superfície clara: branco seda aquecido */
  --surface-alt: #F2E9E0;    /* Plano pastel areia / camurça suave */
  --surface-pastel: #EFE5DF; /* Plano pastel fendi rosado */
  --text: #2B1D16;           /* Texto principal: marrom expresso profundo */
  --text-muted: #634E42;     /* Texto secundário: taupe cacau acetinado */
  --accent: #4E3629;         /* Cor institucional: marrom cacau / nogueira */
  --accent-hover: #3B271D;   /* Hover dos botões principais: café torrado */
  --accent-soft: #7D5E4B;    /* Detalhes e ícones: marrom amêndoa suave */
  --accent-ink: #FDF9F6;     /* Texto claro sobre fundo marrom */
  --border: #E2D4C8;         /* Fios divisórios de 1px em tom fendi claro */

  /* Tipografia & Escala Espacial */
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1260px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET, ACESSIBILIDADE & SUPERFÍCIES DO NAVEGADOR
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* ==========================================================================
   3. TIPOGRAFIA EDITORIAL & BOTÕES
   ========================================================================== */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  color: var(--text);
  text-wrap: balance;
}

p,
dd,
figcaption,
blockquote {
  text-wrap: pretty;
}

.section-title {
  font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.section-lead {
  margin-top: 1.125rem;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 62ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out-expo),
              color 0.25s var(--ease-out-expo),
              border-color 0.25s var(--ease-out-expo),
              transform 0.25s var(--ease-out-expo);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.link-editorial {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  padding-block: 0.5rem;
  transition: color 0.2s ease;
}

.link-editorial:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   4. HEADER MINIMALISTA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1rem;
  background-color: rgba(250, 246, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  background-color: var(--accent);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 2.625rem;
  height: 2.625rem;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-city {
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding-block: 0.375rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.6875rem 1.1875rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle .icon-menu-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu-close {
  display: block;
}

/* ==========================================================================
   5. HERO DE GRANDE FORMATO
   ========================================================================== */
.hero {
  padding: 3.75rem 1rem 5.25rem;
}

.hero-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 1.75rem 2.5rem;
  margin-bottom: clamp(2rem, 3.8vw, 3.25rem);
}

.hero-title {
  grid-column: 1 / span 7;
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-aside {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.15vw, 1.125rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-showcase {
  margin: 0;
}

.hero-media {
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--surface-alt);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 660px;
  object-fit: cover;
  object-position: center 46%;
  animation: hero-frame-settle 1.1s var(--ease-out-expo) both;
}

@keyframes hero-frame-settle {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1);
  }
}

.hero-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.caption-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   6. MOSAICO ASSIMÉTRICO DE PROJETOS REAIS
   ========================================================================== */
.section-gallery {
  padding: 5.5rem 1rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.gallery-header .section-title {
  grid-column: 1 / span 6;
}

.gallery-header .section-lead {
  grid-column: 7 / span 6;
  margin-top: 0;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3.2vw, 3rem);
  row-gap: clamp(2.75rem, 5vw, 4.75rem);
  align-items: start;
}

.mosaic-item {
  margin: 0;
}

.mosaic-wide {
  grid-column: 1 / span 7;
}

.mosaic-square {
  grid-column: 8 / span 5;
}

.mosaic-offset {
  margin-top: clamp(0rem, 4vw, 3.75rem);
}

.mosaic-compact {
  grid-column: 1 / span 5;
}

.mosaic-feature {
  grid-column: 6 / span 7;
}

.photo-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 4px;
  background-color: var(--surface-alt);
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}

.photo-trigger img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}

.photo-trigger:hover img,
.photo-trigger:focus-visible img {
  transform: scale(1.025);
}

.mosaic-wide .photo-trigger img {
  aspect-ratio: 16 / 10;
}

.mosaic-square .photo-trigger img {
  aspect-ratio: 1 / 1;
}

.mosaic-compact .photo-trigger img {
  aspect-ratio: 4 / 3;
}

.mosaic-feature .photo-trigger img {
  aspect-ratio: 3 / 2;
}

.mosaic-caption {
  margin-top: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mosaic-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.mosaic-detail {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
}

/* ==========================================================================
   7. ESPECIALIDADES & EXECUÇÃO (EDITORIAL + LISTA EM FIOS DE 1PX)
   ========================================================================== */
.section-services {
  padding: 6rem 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.services-editorial {
  grid-column: 1 / span 5;
}

.services-photo {
  margin-top: 2.25rem;
  padding: 0.875rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.services-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
  background-color: var(--surface);
}

.services-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.services-cta-wrap {
  margin-top: 2rem;
}

.services-list {
  grid-column: 6 / span 7;
}

.service-row {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.service-row:first-child {
  border-top: 1px solid var(--border);
}

.service-heading {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.service-icon {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--accent-soft);
  flex-shrink: 0;
}

.service-row h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.4375rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.service-row p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
  padding-left: 2.25rem;
}

/* ==========================================================================
   8. DEPOIMENTOS REAIS (GOOGLE MAPS)
   ========================================================================== */
.section-reviews {
  padding: 5.5rem 1rem;
  background-color: var(--surface-pastel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reviews-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
}

.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-soft);
}

.star-icon {
  width: 1.0625rem;
  height: 1.0625rem;
}

.rating-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rating-text strong {
  color: var(--text);
  font-weight: 600;
}

.reviews-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.75rem;
  gap: 2.5rem;
}

.review-entry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.review-entry + .review-entry {
  border-left: 1px solid var(--border);
  padding-left: 2.5rem;
}

.review-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 58ch;
}

.review-footer {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   9. VISITE NOSSO ESPAÇO & CONTATO
   ========================================================================== */
.section-contact {
  padding: 6rem 1rem;
  background-color: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-invite {
  grid-column: 1 / span 6;
}

.contact-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.contact-details {
  grid-column: 7 / span 6;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 2rem;
  font-variant-numeric: tabular-nums;
}

.detail-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.1875rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.detail-item dd {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}

.detail-item dd a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.detail-item dd a:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   10. RODAPÉ INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background-color: #38251B;
  color: #FAF5F0;
  padding: 3.25rem 1rem 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(250, 245, 240, 0.16);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  display: inline-flex;
  background-color: #2A1B13;
  border: 1px solid rgba(250, 245, 240, 0.22);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: #FFFDFB;
}

.footer-address {
  font-size: 0.875rem;
  color: #DECFC3;
  margin-top: 0.1875rem;
  font-variant-numeric: tabular-nums;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #F2E7DE;
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFDFB;
  text-decoration: underline;
}

.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: #DECFC3;
}

/* ==========================================================================
   11. LIGHTBOX DA GALERIA (<dialog>)
   ========================================================================== */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  padding: 2rem;
  background-color: rgba(38, 25, 18, 0.96);
  color: #FAF6F2;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lightbox::backdrop {
  background-color: rgba(38, 25, 18, 0.92);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lightbox-counter {
  font-size: 0.9375rem;
  color: #DECFC3;
  font-variant-numeric: tabular-nums;
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(250, 246, 242, 0.3);
  border-radius: 3px;
  color: #FFFDFB;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  margin-block: auto;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-figure img {
  max-height: 76dvh;
  width: auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  font-size: 0.9375rem;
  color: #F2E7DE;
  text-align: center;
  max-width: 60ch;
}

.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid rgba(250, 246, 242, 0.3);
  border-radius: 3px;
  color: #FFFDFB;
  cursor: pointer;
}

/* ==========================================================================
   12. RESPONSIVIDADE (TABLET 768PX & MOBILE 375PX)
   ========================================================================== */
@media (max-width: 980px) {
  .hero-intro,
  .gallery-header,
  .services-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title,
  .hero-aside,
  .gallery-header .section-title,
  .gallery-header .section-lead,
  .services-editorial,
  .services-list,
  .contact-invite,
  .contact-details {
    grid-column: 1 / -1;
  }

  .hero-aside {
    gap: 1.25rem;
  }

  .reviews-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .review-entry + .review-entry {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }

  .rating-summary {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 4.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 1.0625rem;
    padding-block: 0.5rem;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 2.5rem 0.75rem 3.75rem;
  }

  .section-gallery,
  .section-services,
  .section-reviews,
  .section-contact {
    padding: 4rem 0.75rem;
  }

  .site-footer {
    padding: 2.75rem 0.75rem 2rem;
  }

  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .gallery-mosaic {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }

  .mosaic-wide,
  .mosaic-square,
  .mosaic-compact,
  .mosaic-feature {
    grid-column: 1 / -1;
  }

  .mosaic-offset {
    margin-top: 0;
  }

  .service-row p {
    padding-left: 0;
  }

  .detail-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-details {
    padding: 0.5rem 1.25rem;
  }

  .hero-actions .btn,
  .contact-cta-group .btn {
    width: 100%;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-stage {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    display: none;
  }
}
