/* Tornearia São Miguel — industrial brand system */
:root {
  --navy-950: #050910;
  --navy-900: #0a1424;
  --navy-800: #122038;
  --navy-700: #1a2f4d;
  --steel-300: #b8c0cc;
  --steel-100: #e8ecf1;
  --gold-500: #c9a227;
  --gold-400: #e0bc4a;
  --gold-300: #f0d47a;
  --ink: #f4f6f8;
  --ink-muted: rgba(244, 246, 248, 0.68);
  --line: rgba(201, 162, 39, 0.28);
  --wa: #25d366;

  --font-display: "Bebas Neue", sans-serif;
  --font-brand: "Cinzel", serif;
  --font-body: "Source Sans 3", sans-serif;

  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 400;
}

p {
  margin: 0;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--space);
  background: linear-gradient(180deg, rgba(5, 9, 16, 0.92), rgba(5, 9, 16, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 9, 16, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.brand-lockup img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-lockup__name {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-lockup__tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.nav.is-open {
  display: flex;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem var(--space) 1rem;
  background: rgba(5, 9, 16, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav.is-open a {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

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

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1.05rem 1.75rem;
  font-size: 1rem;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.28);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
}

.btn--ghost {
  background: transparent;
  border-color: rgba(232, 236, 241, 0.35);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.btn--whatsapp {
  background: var(--wa);
  color: #04210f;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) var(--space) 4.5rem;
  overflow: hidden;
  background: #070b12;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 7px
    ),
    linear-gradient(160deg, #0a101a 0%, #121820 45%, #0a0e14 100%);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  transform: scale(1.05);
  filter: saturate(0.92) contrast(1.08) brightness(0.92);
  animation: hero-drift 20s var(--ease) infinite alternate;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 52%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 52%, #000 100%);
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 9, 16, 0.97) 0%, rgba(5, 9, 16, 0.82) 34%, rgba(5, 9, 16, 0.28) 62%, rgba(5, 9, 16, 0.45) 100%),
    linear-gradient(0deg, rgba(5, 9, 16, 0.92) 0%, rgba(5, 9, 16, 0.2) 38%, transparent 58%),
    linear-gradient(180deg, rgba(5, 9, 16, 0.55) 0%, transparent 22%);
}

.hero__spotlight {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 72% 0%, rgba(201, 162, 39, 0.16), transparent 62%),
    radial-gradient(ellipse 35% 60% at 50% 100%, rgba(201, 162, 39, 0.08), transparent 70%);
  mix-blend-mode: screen;
  animation: spot-breathe 6s ease-in-out infinite alternate;
}

@keyframes spot-breathe {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__edge {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 20%, var(--gold-300) 50%, var(--gold-500) 80%, transparent);
  opacity: 0.55;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

@media (max-width: 720px) {
  .hero__photo {
    object-position: 78% 35%;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 38%, #000 58%, rgba(0, 0, 0, 0.25) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 38%, #000 58%, rgba(0, 0, 0, 0.25) 100%);
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 9, 16, 0.55) 0%, rgba(5, 9, 16, 0.35) 40%, rgba(5, 9, 16, 0.88) 78%, rgba(5, 9, 16, 0.96) 100%),
      linear-gradient(90deg, rgba(5, 9, 16, 0.55), transparent 60%);
  }
}

.hero__logo {
  width: clamp(5.5rem, 14vw, 7.5rem);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  animation: logo-in 1s var(--ease) both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.65rem;
  animation: rise 0.9s 0.15s var(--ease) both;
}

.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s 0.28s var(--ease) both;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  animation: rise 0.9s 0.4s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.52s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.5rem;
  height: 2.4rem;
  border: 1px solid rgba(232, 236, 241, 0.35);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.4rem;
}

.hero__scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* —— Sections shared —— */
.section-shell {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.section-shell--narrow {
  width: min(100% - 2 * var(--space), 960px);
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.section-head p {
  color: var(--ink-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* —— Empresa —— */
.empresa {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    radial-gradient(ellipse 70% 45% at 0% 20%, rgba(201, 162, 39, 0.07), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}

.empresa .section-shell {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .empresa .section-shell {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
  }
}

.empresa__figure {
  margin: 0;
  position: relative;
}

.empresa__figure::before {
  content: "";
  position: absolute;
  inset: -0.75rem 0.75rem 0.75rem -0.75rem;
  border: 1px solid var(--line);
  z-index: 0;
}

.empresa__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(0.95);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.empresa__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.15rem;
}

.empresa__copy p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
  max-width: 36rem;
}

.empresa__highlight {
  color: var(--steel-100) !important;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 2px solid var(--gold-500);
  margin: 1.35rem 0 1.5rem !important;
}

.empresa__highlight strong {
  color: var(--gold-300);
  font-weight: 700;
}

.empresa__copy .btn {
  margin-top: 0.5rem;
}

/* —— Diferencial —— */
.diferencial {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.diferencial .section-shell {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .diferencial .section-shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.diferencial__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.diferencial__copy h2 em {
  font-style: normal;
  color: var(--gold-400);
}

.diferencial__copy > p {
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.benefit-list {
  display: grid;
  gap: 1rem;
}

.benefit-list li {
  display: grid;
  gap: 0.15rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold-500);
}

.benefit-list strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.benefit-list span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.diferencial__figure {
  margin: 0;
  position: relative;
}

.diferencial__figure::before {
  content: "";
  position: absolute;
  inset: 0.75rem -0.75rem -0.75rem 0.75rem;
  border: 1px solid var(--line);
  z-index: 0;
}

.diferencial__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 68% 40%;
  filter: saturate(0.92) contrast(1.08);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

/* —— Serviços —— */
.servicos {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    linear-gradient(180deg, transparent, rgba(18, 32, 56, 0.5)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(184, 192, 204, 0.025) 11px,
      rgba(184, 192, 204, 0.025) 12px
    ),
    var(--navy-950);
}

.service-grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.25rem;
  }
}

.service-grid li {
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid rgba(184, 192, 204, 0.12);
}

.service-icon {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.service-grid p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* —— CTA band —— */
.cta-band {
  position: relative;
  padding: clamp(4.5rem, 12vw, 7.5rem) var(--space);
  overflow: hidden;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.28) saturate(0.7);
}

.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10, 20, 36, 0.35), rgba(5, 9, 16, 0.88)),
    linear-gradient(90deg, rgba(5, 9, 16, 0.7), transparent 40%, transparent 60%, rgba(5, 9, 16, 0.7));
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.cta-band p:not(.section-kicker) {
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

/* —— Contato —— */
.contato {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(201, 162, 39, 0.07), transparent 50%),
    var(--navy-900);
}

.contato__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contato__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: stretch;
  }
}

.contato__info dl {
  margin: 0 0 1.75rem;
  display: grid;
  gap: 1.35rem;
}

.contato__info dt {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.35rem;
}

.contato__info dd {
  margin: 0;
  color: var(--steel-100);
  font-size: 1.1rem;
}

.contato__info dd a {
  color: var(--gold-300);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contato__info dd a:hover {
  border-bottom-color: var(--gold-400);
}

.contato__info .btn--gold {
  color: var(--navy-950);
}

.contato__map {
  min-height: 280px;
  border: 1px solid var(--line);
  background: var(--navy-800);
}

.contato__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 5.5rem;
  border-top: 1px solid rgba(184, 192, 204, 0.1);
  background: var(--navy-950);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-footer__brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
}

.site-footer__name {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__slogan {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* —— Float WhatsApp —— */
.float-wa {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--wa);
  color: #04210f;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease);
  animation: float-pulse 2.8s ease-in-out infinite;
}

.float-wa:hover {
  transform: scale(1.08);
}

.float-wa svg {
  width: 1.7rem;
  height: 1.7rem;
}

@keyframes float-pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.08);
  }
}

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

  .hero__photo,
  .hero__logo,
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__scroll span,
  .hero__spotlight,
  .float-wa,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
