/* Taka Marcha Moto Peças — site institucional mobile-first */

:root {
  --red: #e21e2d;
  --red-dark: #b91220;
  --orange: #ef5a26;
  --black: #0f0f10;
  --graphite: #19191b;
  --graphite-soft: #252528;
  --white: #ffffff;
  --off-white: #f5f5f4;
  --gray-100: #e9e9e7;
  --gray-300: #c8c8c4;
  --gray-500: #737370;
  --gray-700: #373735;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1160px;
  --header-height: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 68px;
  background: var(--white);
  color: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button, a { -webkit-tap-highlight-color: transparent; }

address { font-style: normal; }

figure { margin: 0; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(15, 15, 16, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 142px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.menu-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 2.5px 0;
  border-radius: 999px;
  background: var(--white);
}

.main-nav {
  position: absolute;
  top: calc(var(--header-height) - 1px);
  right: 0;
  left: 0;
  display: none;
  padding: 14px 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: var(--black);
}

.main-nav.is-open { display: grid; }

.main-nav a {
  padding: 13px 10px;
  color: var(--white);
  font-weight: 800;
}

.main-nav .nav-cta {
  margin-top: 8px;
  border-radius: 12px;
  background: var(--red);
  text-align: center;
}

/* Shared typography and buttons */
.eyebrow {
  margin: 0 0 14px;
  color: #ff6974;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow-dark { color: var(--red); }

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section h2 { font-size: clamp(2rem, 8vw, 3.65rem); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 900;
  text-align: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:active { transform: translateY(1px); }

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover { background: var(--red-dark); }

.button-secondary {
  border-color: rgba(255, 255, 255, .42);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.button-light {
  background: var(--white);
  color: var(--black);
}

.button-outline-dark {
  border-color: var(--black);
  color: var(--black);
}

.button-wide { width: 100%; }

/* Hero */
.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(226, 30, 45, .26), transparent 34%),
    linear-gradient(135deg, rgba(226, 30, 45, .08), transparent 46%),
    var(--black);
  color: var(--white);
}

.hero-grid {
  display: grid;
  gap: 34px;
  padding-block: 58px 52px;
}

.hero-content { max-width: 700px; }

.hero h1 {
  max-width: 730px;
  font-size: clamp(2.75rem, 12vw, 5.7rem);
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d9d9d7;
  font-size: clamp(1.04rem, 4.5vw, 1.32rem);
}

.hero-actions,
.location-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #d8d8d5;
  font-size: .8rem;
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  background: var(--graphite);
  box-shadow: var(--shadow-lg);
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.hero-photo-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(10, 10, 10, .74);
  color: var(--white);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* Trust strip */
.trust-strip {
  background: var(--red);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 19px;
}

.trust-grid article {
  display: grid;
  gap: 3px;
  padding-inline: 8px;
  border-right: 1px solid rgba(255, 255, 255, .24);
  text-align: center;
}

.trust-grid article:last-child { border-right: 0; }

.trust-grid strong { font-size: .94rem; }

.trust-grid span {
  font-size: .68rem;
  line-height: 1.22;
  opacity: .88;
}

/* General sections */
.section { padding-block: 74px; }

.section-heading {
  max-width: 750px;
  margin-bottom: 30px;
}

.section-heading > p:last-child,
.structure-copy > p,
.about-grid > div > p,
.reviews-card p {
  color: var(--gray-500);
}

/* Services */
.service-layout {
  display: grid;
  gap: 26px;
}

.services-list {
  display: grid;
  gap: 10px;
}

.service-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 19px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .045);
}

.service-item > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #fff0f1;
  color: var(--red);
  font-weight: 900;
}

.service-item h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.service-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: .93rem;
}

.feature-photo {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-lg);
  background: var(--graphite);
  box-shadow: var(--shadow-lg);
}

.feature-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 44%;
}

.feature-photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 15, 16, .78);
  color: var(--white);
  font-size: .84rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
}

.section-cta {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 22px;
  border-left: 4px solid var(--red);
  background: var(--off-white);
}

.section-cta strong { display: block; }

.section-cta p {
  margin: 2px 0 0;
  color: var(--gray-500);
}

.text-link {
  align-self: center;
  color: var(--red);
  font-weight: 900;
}

/* Structure */
.section-dark {
  background: var(--graphite);
  color: var(--white);
}

.structure-grid {
  display: grid;
  gap: 36px;
}

.section-dark .structure-copy > p { color: var(--gray-300); }

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 31px;
  color: #eeeeeb;
  font-weight: 750;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff6974;
  font-weight: 900;
}

.structure-main-photo {
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-lg);
}

.structure-main-photo img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center 58%;
}

/* Products */
.products-section { background: var(--off-white); }

.products-gallery {
  display: grid;
  gap: 16px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: var(--radius-lg);
  background: var(--graphite);
  box-shadow: var(--shadow-sm);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.gallery-card:first-child img { object-position: center 62%; }

.gallery-card:nth-child(2) img { object-position: center 44%; }

.gallery-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(15, 15, 16, .8);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.gallery-card figcaption span {
  color: var(--gray-300);
  font-size: .82rem;
}

.products-note {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(239, 90, 38, .34), transparent 40%),
    var(--black);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.products-note-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 950;
}

.products-note h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.12;
}

.products-note p {
  margin: 12px 0 22px;
  color: var(--gray-300);
}

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

.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-logo-panel {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(239, 90, 38, .32), transparent 42%),
    var(--black);
  box-shadow: var(--shadow-lg);
}

.about-logo-panel img {
  width: min(100%, 520px);
  max-height: 230px;
  object-fit: contain;
}

.about-grid p { color: var(--gray-500); }

/* Reviews */
.reviews-section { background: var(--off-white); }

.reviews-card {
  display: grid;
  gap: 26px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.reviews-card p { color: var(--gray-300); }

.rating-box {
  display: grid;
  min-width: 220px;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .08);
  text-align: center;
}

.stars {
  color: #ffc947;
  letter-spacing: .12em;
}

.rating-box strong {
  margin-top: 8px;
  font-size: 3.2rem;
  line-height: 1;
}

.rating-box span {
  margin-bottom: 18px;
  color: var(--gray-300);
}

/* Location */
.location-grid {
  display: grid;
  gap: 30px;
}

.location-grid address {
  margin-top: 22px;
  color: var(--gray-700);
  font-size: 1.03rem;
}

.hours-card {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: var(--off-white);
}

.hours-card span {
  color: var(--gray-500);
  font-size: .92rem;
}

.map-card {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
    repeating-linear-gradient(0deg, #d9d9d7 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, #d9d9d7 0 1px, transparent 1px 34px);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.map-pin {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
}

.map-card span {
  max-width: 330px;
  margin-top: 5px;
  color: var(--gray-500);
}

.map-card a {
  margin-top: 16px;
  color: var(--red);
  font-weight: 900;
}

/* Contact */
.contact-section { padding-top: 0; }

.contact-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red), #ad0e1b);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-block: 28px;
}

.contact-details > div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.contact-details span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .74);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-details a {
  font-size: 1.14rem;
  font-weight: 900;
}

.contact-details p { margin: 0; }

/* Footer */
.site-footer {
  padding-block: 42px 94px;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand img {
  width: 148px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.footer-grid p {
  margin: 6px 0 0;
  color: var(--gray-300);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--gray-300);
  font-weight: 800;
}

.copyright { font-size: .8rem; }

/* Mobile action bar */
.mobile-action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 66px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
}

.mobile-action-bar a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: var(--black);
  font-size: .72rem;
  font-weight: 900;
}

.mobile-action-bar a:first-child {
  background: var(--red);
  color: var(--white);
}

.mobile-action-bar span {
  font-size: 1rem;
  line-height: 1;
}

/* Responsive */
@media (min-width: 620px) {
  .hero-actions,
  .location-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

  .products-note {
    grid-column: 1 / -1;
  }

  .reviews-card {
    grid-template-columns: 1.4fr .8fr;
    align-items: center;
  }

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

  .contact-details > div {
    padding-right: 18px;
    padding-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 0;
  }

  .contact-details > div:last-child { border-right: 0; }
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }

  .menu-toggle { display: none; }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: .88rem;
  }

  .main-nav .nav-cta {
    margin: 0 0 0 8px;
    padding-inline: 18px;
  }

  .hero-grid {
    grid-template-columns: 1.03fr .97fr;
    min-height: 680px;
    align-items: center;
    padding-block: 72px;
  }

  .hero-photo-card,
  .hero-photo-card img {
    min-height: 500px;
  }

  .trust-grid strong { font-size: 1.25rem; }
  .trust-grid span { font-size: .84rem; }

  .section { padding-block: 106px; }

  .service-layout {
    grid-template-columns: 1.03fr .97fr;
    align-items: stretch;
  }

  .structure-grid,
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .structure-main-photo,
  .structure-main-photo img {
    min-height: 610px;
  }

  .products-gallery {
    grid-template-columns: 1.12fr .88fr;
    grid-template-rows: auto auto;
  }

  .gallery-card-tall {
    grid-row: 1 / 3;
    min-height: 720px;
  }

  .gallery-card-tall img { min-height: 720px; }

  .gallery-card:not(.gallery-card-tall) {
    min-height: 345px;
  }

  .gallery-card:not(.gallery-card-tall) img {
    min-height: 345px;
  }

  .products-note {
    grid-column: 2;
    min-height: 355px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: end;
  }

  .site-footer { padding-bottom: 42px; }

  .mobile-action-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
