/* PrintMec — estilos principais */

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #f0f0f3;
  --color-surface: #ffffff;
  --color-text: #2d2d33;
  --color-text-muted: #5c5c66;
  --color-border: #e2e2e8;
  --color-accent: #d9167e;
  --color-accent-hover: #b81268;
  --color-accent-soft: rgba(217, 22, 126, 0.12);
  --color-header-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px rgba(26, 26, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 31, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --container: min(1120px, 100% - 2rem);
  --header-h: 100px;
  --transition: 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121214;
    --color-bg-alt: #1a1a1f;
    --color-surface: #1e1e24;
    --color-text: #ececf0;
    --color-text-muted: #a4a4b0;
    --color-border: #2e2e38;
    --color-header-bg: rgba(18, 18, 20, 0.88);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: min(640px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  display: block;
  width: auto;
  max-height: 88px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 1px;
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0.35s;
  }

  .site-nav.is-open {
    max-height: 320px;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
  }

  .site-nav__list a:hover {
    background: var(--color-bg-alt);
  }
}

/* Hero */

.hero {
  position: relative;
  scroll-margin-top: var(--header-h);
}

.hero--banner {
  display: flex;
  flex-direction: column;
  min-height: clamp(304px, 57.6vh, 576px);
  padding: 0;
  overflow: hidden;
}

.hero--banner .container {
  padding-inline: 1rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(6, 6, 8, 0.267) 0%,
      rgba(10, 10, 14, 0.171) 42%,
      rgba(10, 10, 14, 0.034) 72%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 10, 14, 0.418) 0%,
      rgba(10, 10, 14, 0.192) 48%,
      transparent 100%
    );
  pointer-events: none;
}

.hero--banner .hero__content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  max-width: var(--container);
  text-align: start;
}

.hero--banner .hero__eyebrow {
  color: #f9a8d4;
}

.hero--banner .hero__title {
  color: #fafafa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero--banner .hero__lead {
  color: rgba(250, 250, 252, 0.88);
  max-width: 52ch;
}

.text-gradient--on-dark {
  background: linear-gradient(120deg, #fda4af, #e879f9, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero--banner .text-gradient--on-dark {
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--on-dark:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 1.2rem + 3vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(120deg, #d9167e, #9333ea, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .text-gradient {
    background: linear-gradient(120deg, #f472b6, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero--banner .hero__actions {
  justify-content: flex-start;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost.btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.btn--ghost.btn--on-dark:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.btn--link {
  background: none;
  border: none;
  color: var(--color-accent);
  padding-inline: 0.5rem;
  font-weight: 500;
}

.btn--link:hover {
  text-decoration: underline;
}

/* Sections */

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  max-width: 640px;
  margin-bottom: 2.5rem;
  margin-inline: auto;
  text-align: center;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Feature list */

.feature-list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-list__item {
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-list__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-list__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-list__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-list__body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Cards two */

.cards-two {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-two {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.card__lead {
  margin: 0 0 1rem;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.9375rem;
}

.card__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.card__list li + li {
  margin-top: 0.5rem;
}

/* Materiais de engenharia */

.material-columns {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .material-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.material-block {
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.material-block__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.material-block__lead {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.material-block__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.material-block__list li + li {
  margin-top: 0.5rem;
}

/* Tiles grid */

.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile--wide {
    grid-column: span 2;
  }
}

.tile {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

.tile__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tile__icon--1 {
  color: #6366f1;
}

.tile__icon--2 {
  color: #ec4899;
}

.tile__icon--3 {
  color: #f59e0b;
}

.tile__icon--4 {
  color: #22c55e;
}

.tile__icon--5 {
  color: var(--color-accent);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.14),
    rgba(236, 72, 153, 0.12),
    rgba(245, 158, 11, 0.1)
  );
}

@media (prefers-color-scheme: dark) {
  .tile__icon--5 {
    background: linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.22),
      rgba(236, 72, 153, 0.18),
      rgba(245, 158, 11, 0.14)
    );
  }
}

.tile__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.tile p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps__item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.steps__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--color-accent);
  border-radius: 12px;
}

.steps__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.steps__item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Form */

.form-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-sm);
  color: #b91c1c;
  font-size: 0.9375rem;
}

@media (prefers-color-scheme: dark) {
  .form-error {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.2);
  }
}

.form-error:not(.visually-hidden) {
  position: static;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  clip: auto;
  overflow: visible;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  outline: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row--half {
  display: grid;
  gap: 1rem;
}

@media (min-width: 500px) {
  .form-row--half {
    grid-template-columns: 1fr 1fr;
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  float: right;
  margin-left: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.faq-item[open] .faq-item__question::after {
  content: "−";
}

.faq-item__question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-item__answer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.faq-item__answer a {
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.site-footer__inner {
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.site-footer__location {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-footer__social-link:hover {
  transform: scale(1.08);
}

.site-footer__social-link--wa:hover {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.site-footer__social-link--ig:hover {
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35);
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-footer__social-link svg {
  width: 22px;
  height: 22px;
}

.site-footer__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* WhatsApp float */

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.wa-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.wa-float__icon {
  width: 30px;
  height: 30px;
}
