:root {
  --ink: #12100e;
  --charcoal: #1c1916;
  --stone: #f4f1eb;
  --paper: #fffaf2;
  --muted: #786f64;
  --line: #ded3c3;
  --gold: #c6a060;
  --bronze: #7a5235;
  --sage: #5e7068;
  --whatsapp: #25d366;
  --shadow: 0 18px 44px rgba(18, 16, 14, 0.14);
  --max: 1180px;
  font-family: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: #f7f3ec;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 48px);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.84);
  border-bottom: 1px solid rgba(122, 82, 53, 0.14);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 10px 30px rgba(18, 16, 14, 0.1);
}

.brand {
  display: block;
  width: 132px;
  overflow: hidden;
  background: #100e0c;
  border: 1px solid rgba(198, 160, 96, 0.28);
  border-radius: 6px;
}

.brand img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.site-nav {
  display: none;
}

.site-nav a {
  color: rgba(18, 16, 14, 0.72);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

.header-cta,
.btn,
.category-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta {
  display: none;
  padding: 12px 20px;
  color: var(--paper);
  background: var(--charcoal);
  box-shadow: 0 10px 24px rgba(18, 16, 14, 0.14);
}

.nav-toggle {
  justify-self: end;
  display: inline-grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(18, 16, 14, 0.18);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.site-header.nav-open .site-nav {
  position: fixed;
  inset: 82px 0 auto 0;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.98);
  border-bottom: 1px solid rgba(122, 82, 53, 0.16);
}

.site-header.nav-open .site-nav a {
  padding: 14px;
  border-radius: 6px;
  background: rgba(18, 16, 14, 0.04);
}

.hero {
  position: relative;
  display: grid;
  gap: 34px;
  min-height: 84svh;
  padding: clamp(118px, 14vw, 148px) clamp(20px, 5vw, 64px) clamp(54px, 8vw, 88px);
  color: var(--ink);
  background:
    linear-gradient(100deg, rgba(255, 250, 242, 0.95), rgba(255, 250, 242, 0.76) 48%, rgba(245, 239, 229, 0.54)),
    url("./assets/images/hero-marmore-claro.jpg") center / cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 14%, rgba(255, 250, 242, 0.92), transparent 34%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 160, 96, 0.45), transparent);
}

.hero-copy,
.hero-visual,
.section > *,
.cta-band > *,
.site-footer > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy,
.hero-copy > *,
.section-heading {
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.06;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 6.2vw, 4.65rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.82rem, 4.8vw, 3.45rem);
}

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

.hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(18, 16, 14, 0.78);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-trust {
  margin: 14px 0 0;
  color: rgba(18, 16, 14, 0.68);
  font-size: 0.94rem;
  font-weight: 700;
}

.btn {
  padding: 13px 21px;
  border: 1px solid transparent;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  text-align: center;
}

.btn:hover,
.header-cta:hover,
.category-card a:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #d8b56e, #b98d49);
  box-shadow: 0 14px 30px rgba(198, 160, 96, 0.22);
}

.btn-secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 242, 0.28);
  background: rgba(255, 250, 242, 0.06);
}

.hero .btn-secondary {
  color: var(--ink);
  border-color: rgba(18, 16, 14, 0.22);
  background: rgba(255, 250, 242, 0.58);
}

.hero-visual {
  overflow: hidden;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid rgba(198, 160, 96, 0.34);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(83, 58, 39, 0.18);
}

.hero-visual img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.hero-note {
  display: grid;
  gap: 2px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  border-top: 1px solid rgba(198, 160, 96, 0.26);
}

.hero-note span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.wide {
  max-width: 850px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

.category-grid,
.materials-grid,
.application-grid,
.contact-grid,
.process-grid {
  display: grid;
  gap: 18px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.category-card,
.material-card,
.mini-card,
.process-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 10px 28px rgba(18, 16, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.material-card:hover,
.mini-card:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 160, 96, 0.62);
  box-shadow: var(--shadow);
}

.category-card img {
  aspect-ratio: 1 / 1.18;
  padding: 12px;
  background: linear-gradient(135deg, #f8f4ed, #ebe0d2);
  object-fit: contain;
}

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

.category-card p,
.material-card p,
.mini-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.category-card a {
  margin-top: 8px;
  color: var(--bronze);
  font-weight: 900;
}

.materials {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.7), rgba(238, 231, 220, 0.92)),
    var(--paper);
}

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

.material-card {
  display: grid;
  background: var(--paper);
}

.material-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f5ee, #e9dfd1);
}

.material-media img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  aspect-ratio: 4 / 3.2;
  object-fit: contain;
  transition: opacity 0.26s ease, transform 0.36s ease;
}

.material-card:hover .material-media img {
  transform: scale(1.012);
}

.material-media.is-changing img {
  opacity: 0.08;
}

.material-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.tag {
  align-self: flex-start;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(198, 160, 96, 0.22);
  border: 1px solid rgba(198, 160, 96, 0.48);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.material-meta {
  display: grid;
  gap: 7px;
  margin: 2px 0 6px;
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 800;
}

.material-meta span {
  padding-left: 12px;
  border-left: 2px solid rgba(198, 160, 96, 0.62);
}

.btn-card {
  margin-top: auto;
  color: var(--paper);
  background: var(--charcoal);
}

.applications {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(18, 16, 14, 0.96), rgba(38, 33, 28, 0.94)),
    var(--charcoal);
}

.applications .section-heading {
  margin: 0;
  text-align: left;
}

.applications .section-heading p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.74);
}

.split {
  display: grid;
  gap: 32px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.application-grid {
  width: 100%;
}

.mini-card {
  min-height: 168px;
  padding: 20px;
  background: rgba(255, 250, 242, 0.07);
  border-color: rgba(255, 250, 242, 0.14);
}

.mini-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 900;
}

.mini-card h3 {
  margin-bottom: 8px;
  color: var(--paper);
}

.mini-card p {
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  gap: 16px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c1916, #342820);
}

.gallery-item img {
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  padding: 10px;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.82));
}

.gallery-item figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 900;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.why-section {
  background: var(--paper);
}

.why-layout,
.about-layout {
  display: grid;
  gap: 34px;
  width: min(100%, var(--max));
  margin: 0 auto;
  align-items: center;
}

.why-image {
  overflow: hidden;
  border-radius: 8px;
  background: #efe6da;
  box-shadow: var(--shadow);
}

.why-image img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.why-content p,
.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.benefit-grid {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.benefit-grid span {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 241, 235, 0.72);
  color: var(--charcoal);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(18, 16, 14, 0.05);
}

.process-section {
  background:
    linear-gradient(180deg, rgba(244, 241, 235, 0.95), rgba(255, 250, 242, 0.92)),
    var(--stone);
}

.process-step {
  padding: 22px;
  background: rgba(255, 250, 242, 0.8);
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--ink);
  background: rgba(198, 160, 96, 0.24);
  border: 1px solid rgba(198, 160, 96, 0.42);
  border-radius: 50%;
  font-weight: 900;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.94), rgba(18, 16, 14, 0.78)),
    url("./assets/images/pedreira-03.jpeg") center / cover;
  color: var(--paper);
}

.about-section .section-heading {
  margin: 0;
  text-align: left;
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  color: rgba(255, 250, 242, 0.82);
}

.cta-band {
  padding: clamp(58px, 8vw, 86px) clamp(20px, 5vw, 64px);
  text-align: center;
  color: var(--paper);
  background: linear-gradient(135deg, #17130f, #3a2b20);
}

.cta-band > div {
  max-width: 760px;
  margin: 0 auto;
}

.cta-band p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.78);
}

.section-cta {
  display: flex;
  justify-content: center;
  width: min(100%, var(--max));
  margin: 26px auto 0;
}

.contact-section {
  background: var(--stone);
}

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

.contact-list a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--charcoal);
  font-weight: 800;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 20px rgba(18, 16, 14, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 160, 96, 0.58);
  box-shadow: var(--shadow);
}

.contact-list span {
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-actions {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: 0 18px 44px rgba(18, 16, 14, 0.12);
}

.contact-hint {
  margin: 0;
  color: rgba(255, 250, 242, 0.76);
  font-weight: 700;
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 42px clamp(20px, 5vw, 64px) 86px;
  color: rgba(255, 250, 242, 0.78);
  background: #100e0c;
}

.footer-brand,
.site-footer nav,
.footer-contact,
.footer-bottom {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-brand img {
  width: 178px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #100e0c;
  border: 1px solid rgba(198, 160, 96, 0.3);
  border-radius: 6px;
}

.footer-brand p {
  margin: 14px 0 0;
}

.site-footer nav,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: grid;
  gap: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 242, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.34), 0 4px 12px rgba(18, 16, 14, 0.22);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.42), 0 6px 14px rgba(18, 16, 14, 0.22);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 16, 14, 0.88);
}

.lightbox img {
  width: auto;
  max-width: min(100%, 1120px);
  max-height: 88svh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (min-width: 680px) {
  .category-grid,
  .application-grid,
  .contact-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .material-card:first-child {
    grid-column: span 2;
    grid-template-columns: 1.1fr 0.9fr;
  }

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

@media (min-width: 680px) and (max-width: 899px) {
  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 680px;
  }

  .gallery-item {
    min-height: 300px;
  }
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 2vw, 30px);
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
    align-items: center;
  }

  .hero-visual {
    align-self: end;
  }

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

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

  .material-card:first-child {
    grid-column: span 2;
  }

  .split {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

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

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

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

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

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

  .why-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }

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

  .about-layout {
    grid-template-columns: 0.75fr 1.25fr;
  }
}

@media (max-width: 430px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 16px;
    gap: 10px;
  }

  .site-header.nav-open .site-nav {
    inset: 68px 0 auto 0;
    padding: 14px 16px;
  }

  .site-header.nav-open .site-nav a {
    padding: 15px;
    font-size: 1rem;
  }

  .brand {
    width: 108px;
  }

  .hero {
    min-height: auto;
    padding: 104px 18px 52px;
  }

  h1 {
    font-size: 1.88rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.58rem;
    line-height: 1.14;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
    padding-inline: 14px;
  }

  .section {
    padding: 58px 18px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .hero-copy,
  .hero-copy > *,
  .section-heading {
    width: 100%;
    max-width: 100%;
  }

  .category-card div,
  .material-card-body,
  .process-step {
    padding: 20px;
  }

  .material-media {
    min-height: 260px;
  }

  .material-meta {
    font-size: 0.84rem;
  }

  .mini-card {
    min-height: auto;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item {
    min-height: 248px;
  }

  .gallery-item img {
    padding: 8px;
  }

  .gallery-item figcaption {
    font-size: 0.96rem;
  }

  .contact-list a,
  .contact-actions {
    padding: 18px;
  }

  .section-cta {
    margin-top: 22px;
  }

  .site-footer {
    padding-inline: 18px;
    padding-bottom: 104px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 1.76rem;
  }

  h2 {
    font-size: 1.48rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

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

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

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