/* =========================================================
   Cansei Reformei — folha de estilo estática ajustada
   ========================================================= */

:root {
  --radius: 4px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;

  --background: oklch(0.985 0.002 90);
  --foreground: oklch(0.19 0.005 60);
  --card: oklch(1 0 0);
  --primary: oklch(0.19 0.005 60);
  --primary-foreground: oklch(0.985 0.002 90);
  --secondary: oklch(0.95 0.003 80);
  --muted: oklch(0.955 0.003 80);
  --muted-foreground: oklch(0.5 0.008 70);
  --accent: oklch(0.72 0.17 62);
  --accent-foreground: oklch(0.18 0.02 60);
  --border: oklch(0.9 0.004 80);
  --graphite: oklch(0.22 0.005 60);
  --graphite-deep: oklch(0.155 0.005 60);
}

@supports not (color: oklch(0 0 0)) {
  :root {
    --background: #fbfaf8;
    --foreground: #2b2622;
    --card: #ffffff;
    --primary: #2b2622;
    --primary-foreground: #fbfaf8;
    --secondary: #f1efeb;
    --muted: #f2f0ec;
    --muted-foreground: #7c7369;
    --accent: #d78a3e;
    --accent-foreground: #2a1d0f;
    --border: #e4e1da;
    --graphite: #33302c;
    --graphite-deep: #201d1a;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden; /* Evita qualquer rolagem lateral acidental */
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--primary-foreground);
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklch, var(--graphite-deep) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  border-radius: 2px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-foreground);
}
.brand-name span {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(253, 252, 250, 0.75);
  transition: color 0.2s ease;
}
.nav-desktop a:hover {
  color: var(--accent);
}
.nav-desktop .btn {
  padding: 0.625rem 1.25rem;
}

.nav-toggle {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--primary-foreground);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in oklch, var(--graphite-deep) 98%, transparent);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(253, 252, 250, 0.85);
}
.nav-mobile .btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle, .nav-mobile {
    display: none !important;
  }
}

.icon-x {
  display: none;
}
.nav-toggle.is-open .icon-menu {
  display: none;
}
.nav-toggle.is-open .icon-x {
  display: block;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px);
}
.whatsapp-float .icon {
  font-size: 1.25rem;
}
.whatsapp-float span {
  display: none;
}
@media (min-width: 640px) {
  .whatsapp-float span {
    display: inline;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  width: 100%;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(1.5);
}
.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: color-mix(in oklch, var(--graphite-deep) 35%, transparent);
}
.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--graphite-deep) 92%, transparent) 0%,
    color-mix(in oklch, var(--graphite-deep) 45%, transparent) 62%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 7rem 0 5rem;
  z-index: 2;
}
.hero-inner {
  margin: 1.25rem;
  max-width: 48rem;
}
.hero-inner .brand-logo {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
  margin-bottom: 2rem;
}
.hero-inner h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--primary-foreground);
}
.hero-inner .lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(253, 252, 250, 0.7);
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .hero-inner h1 {
    font-size: 3.25rem;
  }
}
@media (min-width: 1024px) {
  .hero-inner h1 {
    font-size: 4.25rem;
  }
}

.hero-strip {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in oklch, var(--graphite-deep) 60%, transparent);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.hero-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 80rem;
}
.hero-strip-item {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(253, 252, 250, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-strip-item:first-child {
  border-left: none;
}
.hero-strip-item span {
  margin-right: 0.75rem;
  color: var(--accent);
}
@media (min-width: 1024px) {
  .hero-strip {
    display: block;
  }
}

/* =========================================================
   SEÇÕES GERAIS
   ========================================================= */
section {
  padding: 5rem 0;
  width: 100%;
}
@media (min-width: 1024px) {
  section {
    padding: 7rem 0;
  }
}

.section-heading {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-heading h2 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .section-heading h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .section-heading h2 {
    font-size: 3rem;
  }
}
.section-heading p {
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* QUEM SOMOS */
.about {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
.about-media {
  position: relative;
  max-width: 100%;
}
.about-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  display: none;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 1.5rem 1.75rem;
}
.about-badge p {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.12em;
}
@media (min-width: 640px) {
  .about-badge {
    display: block;
  }
}
.about-text h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .about-text h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .about-text h2 {
    font-size: 3rem;
  }
}
.about-text > p {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.about-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.about-grid-item {
  background: var(--background);
  padding: 1.5rem 1.25rem;
}
.about-grid-item .bar {
  display: block;
  height: 1px;
  width: 2rem;
  background: var(--accent);
}
.about-grid-item p {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* SERVIÇOS */
.services {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--secondary) 60%, transparent);
}
.services-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background: var(--border);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.service-card {
  background: var(--background);
  padding: 2rem;
  transition: background-color 0.3s ease;
  height: 100%;
}
.service-card .icon {
  font-size: 1.5rem;
  color: var(--accent);
}
.service-card h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  transition: color 0.2s ease;
}
.service-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.service-card:hover {
  background: var(--graphite);
}
.service-card:hover h3 {
  color: var(--primary-foreground);
}
.service-card:hover p {
  color: rgba(253, 252, 250, 0.65);
}

.cta-banner {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 2rem;
}
.cta-banner p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
@media (min-width: 640px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
  }
}

/* DIFERENCIAIS */
.diferenciais {
  background: var(--graphite-deep);
  color: var(--primary-foreground);
}
.diferenciais .section-heading h2 {
  color: var(--primary-foreground);
}
.dif-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .dif-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .dif-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dif-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}
.dif-item .icon {
  font-size: 1.25rem;
  color: var(--accent);
}
.dif-item h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--primary-foreground);
}
.dif-item p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(253, 252, 250, 0.6);
}

/* TRABALHOS */
.trabalhos-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.trabalhos-head h2 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .trabalhos-head h2 {
    font-size: 2.25rem;
  }
}
.trabalhos-head p {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 42rem;
}
@media (min-width: 1024px) {
  .trabalhos-head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.trabalhos-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-underline-offset: 8px;
  transition: color 0.2s ease;
}
.trabalhos-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.portfolio-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 250px;
  gap: 1rem;
}
@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
}
.portfolio-grid .reveal {
  height: 100%;
}
.span-row-2 {
  grid-row: span 1;
}
@media (min-width: 640px) {
  .span-row-2 {
    grid-row: span 2;
  }
}
.portfolio-item {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--muted);
}
.portfolio-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.portfolio-item:hover img {
  transform: scale(1.05);
}
.portfolio-item .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: color-mix(in oklch, var(--graphite-deep) 0%, transparent);
  padding: 1.25rem;
  opacity: 0;
  transition: all 0.3s ease;
}
.portfolio-item:hover .caption {
  background: color-mix(in oklch, var(--graphite-deep) 55%, transparent);
  opacity: 1;
}
.portfolio-item .caption span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

/* INSTAGRAM */
.instagram-section {
  background: var(--graphite);
  color: var(--primary-foreground);
  overflow: hidden;
}
.instagram-section .container {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .instagram-section .container {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
.instagram-section h2 {
  margin-top: 1.25rem;
  color: var(--primary-foreground);
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .instagram-section h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .instagram-section h2 {
    font-size: 3rem;
  }
}
.instagram-section > .container > div:first-child > p:not(.eyebrow) {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: rgba(253, 252, 250, 0.65);
  line-height: 1.6;
}
.instagram-handle {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.instagram-section .btn {
  margin-top: 2rem;
  padding: 1.25rem 2rem;
}
.instagram-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
}
.instagram-feed a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.instagram-feed img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: all 0.5s ease;
}
.instagram-feed a:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* CONTATO */
.contato-grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 1024px) {
  .contato-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}
.contato-grid h2 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .contato-grid h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .contato-grid h2 {
    font-size: 3rem;
  }
}
.contato-grid > div:first-child > p {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.contato-info {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
@media (min-width: 1024px) {
  .contato-info {
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 3.5rem;
  }
}
.contato-info ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contato-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-word;
}
.contato-info .icon {
  margin-top: 2px;
  font-size: 1.25rem;
  color: var(--accent);
}
.contato-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .contato-actions {
    flex-direction: row;
  }
}

/* FOOTER */
.site-footer {
  background: var(--graphite-deep);
  color: var(--primary-foreground);
  width: 100%;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  margin: 1.25rem;
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer-brand img {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
}
.footer-brand .brand-name {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}
.footer-brand .slogan {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(253, 252, 250, 0.55);
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(253, 252, 250, 0.5);
}
.footer-col ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.footer-col a {
  color: rgba(253, 252, 250, 0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-col li {
  color: rgba(253, 252, 250, 0.7);
}
.footer-bottom {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 4rem;
  font-size: 0.75rem;
  color: rgba(253, 252, 250, 0.45);
  text-align: center;
}
body {
  margin-right: 1.25rem;
}
