/* ==========================================================================
   Mathstone Mármore & Superfície — folha de estilos
   Sistema: papel de pedra + verde granito. Serifada "slab" (corte de chapa)
   pareada com uma grotesca técnica. Sem cartão-ícone-círculo, sem eyebrow.
   ========================================================================== */

:root {
  --paper: #EDE7DC;
  --paper-alt: #E3DCCE;
  --ink: #211E1A;
  --ink-soft: #55504A;
  --ink-faint: #8A8377;
  --charcoal: #211E19;
  --charcoal-soft: #B7AEA0;
  --charcoal-faint: #7C7568;
  --line: rgba(33, 30, 26, 0.16);
  --line-soft: rgba(33, 30, 26, 0.09);
  --line-dark: rgba(237, 231, 220, 0.16);
  --line-dark-soft: rgba(237, 231, 220, 0.08);
  --granite: #414C3D;
  --granite-deep: #2B332A;
  --granite-light: #7C8B71;
  --rust: #8A5636;
  --radius: 2px;
  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ff-head: "Zilla Slab", Georgia, serif;
  --ff-body: "Archivo", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; max-width: 62ch; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section--deep { background: var(--paper-alt); }
.section--dark { background: var(--charcoal); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark p { color: var(--charcoal-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--charcoal-soft); }

.section-kicker {
  font-size: 0.82rem;
  color: var(--granite);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.section--dark .section-kicker { color: var(--granite-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-gold {
  background: var(--granite);
  color: var(--paper);
}

.btn-gold:hover { background: var(--granite-deep); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.section--dark .btn-ghost { border-color: var(--paper); color: var(--paper); }
.section--dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.hero .btn-ghost { border-color: rgba(237, 231, 220, 0.6); color: var(--paper); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 40px; height: 40px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }

.brand-word strong {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  color: var(--ink);
}

.brand-word span {
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

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

.nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--granite);
  transition: right 0.3s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { right: 0; background: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* Homepage only: header floats transparent over the dark hero photo until scrolled */
.header--overlay:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}

.header--overlay:not(.is-scrolled) .brand-word strong,
.header--overlay:not(.is-scrolled) .brand-word span,
.header--overlay:not(.is-scrolled) .nav a,
.header--overlay:not(.is-scrolled) .nav a[aria-current="page"] { color: var(--paper); }

.header--overlay:not(.is-scrolled) .nav a:hover { color: #fff; }
.header--overlay:not(.is-scrolled) .nav-toggle { border-color: rgba(237, 231, 220, 0.4); color: var(--paper); }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: clamp(7.5rem, 15vw, 9.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-kicker { color: var(--granite); }

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  max-width: 760px;
}

.page-hero p {
  margin-top: 1.1rem;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 1.1rem;
}

.article-meta span:not(:last-child)::after { content: "/"; margin-left: 0.9rem; color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 18, 15, 0.88) 0%, rgba(20, 18, 15, 0.45) 48%, rgba(20, 18, 15, 0.2) 100%);
}

.hero-content {
  padding-block: 6rem 3.5rem;
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: #fff;
}

.hero-content p {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  max-width: 540px;
  color: rgba(237, 231, 220, 0.88);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.6rem, 4vw, 3rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(237, 231, 220, 0.25);
  font-size: 0.95rem;
  color: rgba(237, 231, 220, 0.82);
}

.hero-facts span { padding: 0.3rem 0; }

/* ---------- About / História ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-media figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.about-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.3rem; }
.about-body > p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1.4rem; max-width: 60ch; }

.about-list { border-top: 1px solid var(--line); margin-top: 1.8rem; }

.about-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.about-list strong {
  color: var(--ink);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.02rem;
}

/* ---------- Spec list (produtos / diferenciais — não é sequência, sem número) ---------- */
.spec-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.spec-row {
  padding: clamp(1.3rem, 3vw, 1.7rem) clamp(0rem, 3vw, 1.8rem) clamp(1.3rem, 3vw, 1.7rem) 0;
  border-bottom: 1px solid var(--line);
}

.spec-row:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.spec-row:nth-child(even) { padding-left: clamp(1.4rem, 3vw, 1.8rem); }

.spec-row h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.spec-row p { color: var(--ink-soft); font-size: 0.96rem; max-width: 48ch; }

.section--dark .spec-list,
.section--dark .spec-row { border-color: var(--line-dark); }
.section--dark .spec-row p { color: var(--charcoal-soft); }

@media (max-width: 760px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd) { border-right: none; padding-left: 0; }
  .spec-row:nth-child(even) { padding-left: 0; }
}

/* Compact term list (home teaser, no description) */
.term-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.term-list li {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-head);
  font-size: 1.08rem;
  color: var(--ink);
}

.section-more { display: flex; margin-top: 2.4rem; }

/* ---------- Process ---------- */
.process-list { border-top: 1px solid var(--line); counter-reset: step; }

.process-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.process-item::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--ff-head);
  font-size: 1.5rem;
  color: var(--granite);
  font-weight: 600;
}

.process-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--ink); grid-column: 2; }
.process-item p { font-size: 0.92rem; color: var(--ink-soft); grid-column: 2; }

.section--dark .process-list,
.section--dark .process-item { border-color: var(--line-dark); }
.section--dark .process-item::before { color: var(--granite-light); }
.section--dark .process-item h3 { color: var(--paper); }
.section--dark .process-item p { color: var(--charcoal-soft); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }

.filter-btn {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  padding: 0 0 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active { color: var(--ink); border-bottom-color: var(--granite); font-weight: 600; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
}

.gallery-item:nth-child(3n+1) { grid-row: span 2; aspect-ratio: 4 / 8.4; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .tag {
  position: absolute;
  inset: auto auto 0 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.74rem;
  padding: 0.45rem 0.8rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .tag { transform: translateY(0); }
.gallery-item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 18, 15, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
}

.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1000px; max-height: 84vh; position: relative; }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; }
.lightbox figcaption { text-align: center; margin-top: 1rem; color: var(--charcoal-soft); font-size: 0.85rem; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(237, 231, 220, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(237, 231, 220, 0.18); }
.lightbox-close { top: -1.4rem; right: -1.4rem; }
.lightbox-nav.prev { left: -1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: -1.4rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
}

/* ---------- Coverage area ---------- */
.coverage { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.coverage-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.coverage-list h3 {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.coverage-block + .coverage-block { margin-top: 2rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  padding: 0.4rem 0.9rem;
}

/* ---------- Video rail (bastidores) ---------- */
.video-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 var(--gutter) 1rem;
  scroll-snap-type: x proximity;
  max-width: var(--container);
  margin-inline: auto;
}

.video-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 22vw, 240px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--charcoal);
  scroll-snap-align: start;
}

.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

.video-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.5);
  border: 1px solid rgba(237, 231, 220, 0.5);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-play svg { width: 20px; height: 20px; margin-left: 2px; }
.video-card.is-playing .video-play { opacity: 0; transform: scale(0.8); }
.video-card:hover .video-play, .video-card.is-playing:hover .video-play { opacity: 1; transform: scale(1); }

.video-tag { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 2; color: var(--paper); font-size: 0.78rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }

.blog-card { display: flex; flex-direction: column; }
.blog-card .blog-media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card .blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.03); }

.blog-card-body { padding-top: 1.1rem; border-top: 2px solid var(--ink); flex: 1; display: flex; flex-direction: column; }
.blog-card-body .blog-meta { font-size: 0.8rem; color: var(--granite); font-weight: 600; margin-bottom: 0.6rem; }
.blog-card-body h3 { font-size: 1.24rem; margin-bottom: 0.6rem; }
.blog-card-body p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.blog-card-body .blog-link { margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink); font-weight: 600; }

/* ---------- Article ---------- */
.article-cover { max-width: var(--container); margin: 0 auto clamp(2rem, 5vw, 3.5rem); padding-inline: var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

.article-body { max-width: 680px; margin-inline: auto; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { color: var(--ink); font-size: 1.55rem; margin: 2.4rem 0 1rem; }
.article-body h3 { color: var(--ink); font-size: 1.15rem; margin: 1.8rem 0 0.7rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.article-body li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--ink); }

.article-cta {
  max-width: 680px;
  margin: 2.6rem auto 0;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
}

.article-cta p { margin: 0; color: var(--ink); font-family: var(--ff-head); font-size: 1.1rem; max-width: none; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Review CTA (honest placeholder) ---------- */
.review-cta {
  max-width: 620px;
  margin-inline: auto;
  text-align: left;
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 5vw, 2.6rem);
}

.review-cta h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.review-cta p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.4rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  text-align: left;
  padding: 1.4rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--ff-head);
  font-size: 1.1rem;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}

.faq-question .plus::before, .faq-question .plus::after {
  content: ""; position: absolute; background: var(--ink);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.faq-question .plus::before { width: 14px; height: 1.5px; }
.faq-question .plus::after { width: 1.5px; height: 14px; transition: opacity 0.25s ease; }
.faq-item.is-open .faq-question .plus::after { opacity: 0; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 68ch; font-size: 0.96rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--charcoal);
  color: var(--paper);
  padding: clamp(2.4rem, 6vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 520px; color: var(--paper); }
.cta-banner .cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-banner .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-banner .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 2rem; max-width: 460px; }

.contact-detail {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.contact-detail:last-of-type { border-bottom: 1px solid var(--line); }
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--granite); margin-top: 2px; }
.contact-detail strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-detail span, .contact-detail a { color: var(--ink-soft); font-size: 0.94rem; }

.social-row { display: flex; gap: 1.4rem; margin-top: 1.8rem; }
.social-row a { font-size: 0.9rem; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

.form-card { border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }

.field label { display: block; font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.5rem; font-weight: 500; }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414c3d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
}

.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--granite); }

.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.9rem; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--paper); padding: clamp(3.2rem, 7vw, 4.5rem) 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .brand-word strong { color: var(--paper); }
.footer-brand .brand-word span { color: var(--charcoal-soft); }
.footer-brand p { color: var(--charcoal-soft); font-size: 0.9rem; max-width: 320px; margin-top: 1.1rem; }

.footer-col h4 { font-family: var(--ff-body); font-size: 0.85rem; font-weight: 700; color: var(--paper); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a, .footer-col span { color: var(--charcoal-soft); font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding: 1.5rem 0; font-size: 0.8rem; color: var(--charcoal-faint);
}

.footer-bottom a { color: var(--charcoal-faint); }
.footer-bottom a:hover { color: var(--paper); }

/* ---------- Floating actions ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1.1rem, 4vw, 1.8rem);
  bottom: clamp(1.1rem, 4vw, 1.8rem);
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(20, 18, 15, 0.3);
}

.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

.to-top {
  position: fixed;
  right: clamp(1.1rem, 4vw, 1.8rem);
  bottom: clamp(5.1rem, 12vw, 6rem);
  z-index: 200;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal (used once, on hero only) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .term-list { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .coverage, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-bottom: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-list li, .spec-row, .process-item { grid-template-columns: 48px 1fr; }
}

@media (max-width: 640px) {
  .term-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(3n+1) { grid-row: span 1; aspect-ratio: 4/5; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-actions .btn-gold { display: none; }
}

/* ---------- Mobile nav drawer ---------- */
.nav-drawer {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(20, 18, 15, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(320px, 84vw);
  background: var(--paper);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head { display: flex; justify-content: flex-end; }

.nav-drawer-panel a {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  color: var(--ink);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.nav-drawer-panel .nav-toggle { border-color: var(--line); color: var(--ink); }
.nav-drawer-panel .btn { margin-top: 0.5rem; }
