/* Atlas Neumáticos — landing */
:root {
  --ink: #121214;
  --asphalt: #1c1c20;
  --slate: #2a2a30;
  --steel: #8b8b96;
  --mist: #e8e6e1;
  --paper: #f4f2ed;
  --amber: #e88c2a;
  --amber-deep: #c46f18;
  --amber-soft: rgba(232, 140, 42, 0.14);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mist);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink) 18%, var(--amber) 19% 42%, var(--slate) 43% 68%, var(--ink) 69%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.logo span {
  color: var(--amber);
}

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

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(232, 230, 225, 0.82);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  background: var(--amber);
  color: var(--ink) !important;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: #f0a04a;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f0a04a;
}

.btn-ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, 0.55) 0%, rgba(18, 18, 20, 0.35) 35%, rgba(18, 18, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 18, 20, 0.75) 0%, rgba(18, 18, 20, 0.2) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8.5rem 0 4.5rem;
  max-width: 40rem;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.brand-lockup em {
  font-style: normal;
  color: var(--amber);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(244, 242, 237, 0.92);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: rgba(232, 230, 225, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  color: var(--amber);
  line-height: 1;
}

.hero-meta span {
  font-size: 0.88rem;
  color: var(--steel);
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-head h2,
.cta-band h2,
.footer-brand h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--paper);
}

.section-head p {
  margin: 0;
  color: var(--steel);
}

/* Services */
.services {
  background:
    radial-gradient(ellipse at top right, rgba(232, 140, 42, 0.08), transparent 45%),
    var(--asphalt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  border-radius: var(--radius);
  isolation: isolate;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.15) 0%, rgba(18, 18, 20, 0.92) 78%);
  z-index: 1;
}

.service-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.5rem;
}

.service-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-body p {
  margin: 0;
  color: rgba(232, 230, 225, 0.78);
  font-size: 0.95rem;
}

/* About */
.about {
  background: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 28rem;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(18, 18, 20, 0.9);
  border-left: 3px solid var(--amber);
  backdrop-filter: blur(8px);
  max-width: 14rem;
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--amber);
  letter-spacing: 0.03em;
  line-height: 1;
}

.about-badge span {
  font-size: 0.88rem;
  color: var(--steel);
}

.trust-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.trust-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.trust-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.trust-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.trust-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--paper);
}

.trust-list p {
  margin: 0;
  color: var(--steel);
  font-size: 0.95rem;
}

/* Process */
.process {
  background:
    linear-gradient(180deg, #17171a 0%, #121214 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.step.is-visible {
  opacity: 1;
  transform: none;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: var(--steel);
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  background: var(--asphalt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 16rem 16rem;
  gap: 0.85rem;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate);
}

.gallery-grid figure:first-child {
  grid-row: 1 / span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.88rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background:
    linear-gradient(105deg, rgba(18, 18, 20, 0.92), rgba(18, 18, 20, 0.7)),
    url("../images/workshop.jpg") center / cover no-repeat;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band p {
  margin: 0;
  max-width: 32rem;
  color: rgba(232, 230, 225, 0.8);
}

/* Footer */
.site-footer {
  background: #0e0e10;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--steel);
  margin: 0 0 1.25rem;
}

.footer-brand h2 {
  font-size: 2rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 260px;
  background: var(--slate);
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

.addresses h3,
.contact-form-wrap h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.address-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.address-list li {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.address-list strong {
  display: block;
  color: var(--amber);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.address-list span,
.address-list a {
  display: block;
  color: var(--steel);
  font-size: 0.92rem;
}

.address-list a:hover {
  color: var(--mist);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(232, 230, 225, 0.75);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--amber);
  background: rgba(232, 140, 42, 0.06);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--steel);
}

.form-success {
  display: none;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(46, 160, 90, 0.15);
  border: 1px solid rgba(46, 160, 90, 0.35);
  color: #9be0b4;
  font-size: 0.95rem;
}

.form-success.is-visible {
  display: block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.88rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid,
  .process-steps,
  .footer-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 18rem;
  }

  .gallery-grid figure {
    min-height: 14rem;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(14, 14, 16, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .services-grid,
  .about-grid,
  .process-steps,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-visual,
  .about-visual img {
    min-height: 22rem;
  }

  .hero-content {
    padding-top: 7.5rem;
  }

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

  .gallery-grid figure:first-child {
    grid-column: auto;
  }
}
