.autoteco-home {
  --home-ink: var(--site-ink, #1d2b17);
  --home-muted: var(--site-muted, #506348);
  --home-accent: var(--site-accent, #38671b);
  --home-green: #78bc27;
  --home-line: #e0e8d9;
  --home-edge: clamp(20px, 5vw, 80px);
  --home-space: clamp(52px, 6vw, 84px);
  padding-block-start: var(--site-header-offset, 104px);
  background: #fff;
  color: var(--home-ink);
  font: 16px/1.65 var(--site-font, system-ui, sans-serif);
  text-align: start;
  word-break: normal;
  overflow-wrap: break-word;
}

.autoteco-home *,
.autoteco-home *::before,
.autoteco-home *::after { box-sizing: border-box; }
.autoteco-home img { display: block; max-inline-size: 100%; }
.autoteco-home a { color: inherit; text-decoration: none; }
.autoteco-home :is(h1, h2, h3, p, figure) { margin: 0; }
.autoteco-home :is(h1, h2, h3) { font-family: inherit; font-weight: 650; word-break: normal; }
.autoteco-home :is(.autoteco-home-chapter, .autoteco-home-shell, .autoteco-section-heading,
  .autoteco-hero-content, .autoteco-company-copy) { min-inline-size: 0; }
.autoteco-home .autoteco-home-shell {
  inline-size: min(calc(100% - var(--home-edge) * 2), 1280px);
  margin-inline: auto;
  padding-block: var(--home-space);
}
.autoteco-home [id] { scroll-margin-block-start: calc(var(--site-header-offset, 104px) + 20px); }

/* Retain editable CMS targets without inheriting the mirrored slideshow layout. */
.autoteco-home :is(#c-branch, #c-technologies1-1, #c-solutions, #c-news) {
  position: static;
  inset: auto;
  height: auto;
  block-size: auto;
  min-block-size: 0;
  max-block-size: none;
  margin-inline: auto;
  padding: 0;
  padding-block: var(--home-space);
  background: transparent;
  color: var(--home-ink);
}
.autoteco-home #c-branch::before { display: none; }

.autoteco-home .autoteco-eyebrow {
  margin-block-end: 14px;
  color: var(--home-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .07em;
}
.autoteco-home .autoteco-chapter-title {
  margin-block-end: 18px;
  max-inline-size: 850px;
  font-size: clamp(29px, 3.4vw, 45px);
  line-height: 1.2;
  letter-spacing: -.025em;
  white-space: pre-line;
  text-wrap: balance;
}
.autoteco-home .autoteco-section-heading { margin-block-end: 32px; }
.autoteco-home .autoteco-section-description {
  max-inline-size: 720px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.75;
}
.autoteco-home .autoteco-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-block-start: 28px;
}
.autoteco-home :is(.autoteco-button, .autoteco-text-link, .autoteco-inline-link) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-inline-size: 100%;
  min-inline-size: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
}
.autoteco-home :is(.autoteco-button, .autoteco-text-link, .autoteco-inline-link) > span[aria-hidden] {
  flex: 0 0 auto;
  font-size: 17px;
}
.autoteco-home .autoteco-button {
  justify-content: center;
  min-block-size: 46px;
  padding: 12px 22px;
  border: 1px solid var(--home-green);
  border-radius: 6px;
  background: var(--home-green);
  color: #19300c;
  transition: background .2s ease, border-color .2s ease;
}
.autoteco-home .autoteco-button:hover {
  border-color: #66a51e;
  background: #66a51e;
  color: #19300c;
}
.autoteco-home :is(.autoteco-text-link, .autoteco-inline-link) { color: var(--home-accent); }
.autoteco-home .autoteco-text-link { padding-block: 8px; }
.autoteco-home .autoteco-text-link:hover,
.autoteco-home a:hover .autoteco-inline-link { text-decoration: underline; text-underline-offset: 4px; }

.autoteco-home .autoteco-hero {
  background: linear-gradient(110deg, #fff 28%, #f8fbf3 100%);
  border-block-end: 1px solid #eef2e9;
}
.autoteco-home .autoteco-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-block-size: 560px;
  padding-block: 54px;
}
.autoteco-home .autoteco-hero-content { position: relative; z-index: 1; }
.autoteco-home .autoteco-hero-title {
  margin-block-end: 22px;
  font-size: clamp(40px, 4.7vw, 66px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -.035em;
  white-space: pre-line;
  text-wrap: balance;
}
.autoteco-home .autoteco-hero-description {
  max-inline-size: 560px;
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.75;
}
.autoteco-home .autoteco-hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  min-inline-size: 0;
  min-block-size: 416px;
  padding: 16px;
  isolation: isolate;
  transform: translateY(var(--autoteco-hero-shift, 0px));
}
.autoteco-home .autoteco-hero-halo {
  position: absolute;
  z-index: -1;
  inset: 24px 0 38px;
  max-inline-size: 380px;
  margin-inline: auto;
  border: 1px solid #e1edcf;
  border-radius: 48%;
  background: radial-gradient(circle at 46% 40%, #f6faef, #eaf3db 76%);
}
.autoteco-home .autoteco-hero-visual > img {
  inline-size: min(100%, 350px);
  block-size: 350px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: none;
  mask-image: none;
  filter: none;
}
.autoteco-home .autoteco-hero-caption {
  position: relative;
  max-inline-size: 100%;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.autoteco-home .autoteco-hero-no-image .autoteco-hero-layout { grid-template-columns: minmax(0, 840px); }

.autoteco-home :is(.autoteco-areas-grid, .autoteco-product-grid, .autoteco-service-grid,
  .autoteco-solution-grid, .autoteco-news-grid) { display: grid; gap: 22px; }
.autoteco-home .autoteco-areas-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.autoteco-home .autoteco-area-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-inline-size: 0;
  min-block-size: 108px;
  padding: 26px 28px;
  border: 1px solid var(--home-line);
  border-inline-start: 3px solid var(--home-green);
  border-radius: 8px;
  background: #f8fbf4;
  transition: border-color .2s ease, background .2s ease;
}
.autoteco-home .autoteco-area-card:hover { border-color: #bfd69f; background: #f0f7e6; }
.autoteco-home .autoteco-area-card h3 { min-inline-size: 0; font-size: 23px; line-height: 1.35; }
.autoteco-home .autoteco-area-card .autoteco-inline-link { font-size: 13px; }
.autoteco-home .autoteco-featured-label {
  margin-block: 36px 20px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
}
.autoteco-home .autoteco-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.autoteco-home .autoteco-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-inline-size: 0;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.autoteco-home .autoteco-product-card:hover { border-color: #b7cf98; box-shadow: 0 6px 20px #35521c0a; }
.autoteco-home .autoteco-product-image {
  display: grid;
  place-items: center;
  min-inline-size: 0;
  block-size: clamp(170px, 17vw, 230px);
  padding: 18px;
  background: #f8faf6;
}
.autoteco-home .autoteco-product-image img {
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.autoteco-home .autoteco-product-copy { display: grid; align-content: start; gap: 10px; min-inline-size: 0; padding: 20px; }
.autoteco-home .autoteco-product-category { color: var(--home-muted); font-size: 12px; line-height: 1.5; }
.autoteco-home .autoteco-product-card h3 { font-size: clamp(20px, 1.65vw, 23px); line-height: 1.3; }
.autoteco-home .autoteco-product-card .autoteco-inline-link { margin-block-start: 2px; font-size: 13px; }

.autoteco-home .autoteco-services-chapter { border-block: 1px solid #edf1e7; background: #f8fbf5; }
.autoteco-home .autoteco-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.autoteco-home .autoteco-service-card { min-inline-size: 0; }
.autoteco-home .autoteco-service-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 20px;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.autoteco-home .autoteco-service-number::after { inline-size: 34px; block-size: 2px; background: var(--home-green); content: ""; }
.autoteco-home .autoteco-service-card h3 { margin-block-end: 12px; font-size: 20px; line-height: 1.4; }
.autoteco-home .autoteco-service-card p { color: var(--home-muted); font-size: 15px; line-height: 1.8; }
.autoteco-home .autoteco-services-chapter .autoteco-actions { margin-block-start: 32px; }

.autoteco-home .autoteco-company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
}
.autoteco-home .autoteco-company-copy .autoteco-section-heading { margin-block-end: 0; }
.autoteco-home .autoteco-company-copy .autoteco-section-description { line-height: 1.85; }
.autoteco-home .autoteco-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  align-items: center;
  gap: 24px;
  min-inline-size: 0;
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid #e0eccf;
  border-radius: 10px;
  background: #f0f7e6;
}
.autoteco-home .autoteco-stat { display: grid; align-content: start; gap: 12px; min-inline-size: 0; }
.autoteco-home .autoteco-stat strong { color: var(--home-accent); font-size: clamp(48px, 5vw, 68px); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
.autoteco-home .autoteco-stat > span { color: var(--home-muted); font-size: 14px; line-height: 1.65; }

/* Optional CMS sections stay compact when their destinations are available. */
.autoteco-home :is(.autoteco-solution-grid, .autoteco-news-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.autoteco-home :is(.autoteco-solution-card, .autoteco-news-card) {
  display: grid;
  grid-template-rows: auto 1fr;
  min-inline-size: 0;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.autoteco-home :is(.autoteco-solution-card, .autoteco-news-card) > img { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.autoteco-home :is(.autoteco-solution-card, .autoteco-news-card) > div { display: grid; align-content: start; gap: 14px; padding: 22px; }
.autoteco-home :is(.autoteco-solution-card, .autoteco-news-card) h3 { font-size: 20px; line-height: 1.4; }
.autoteco-home .autoteco-news-card p { color: var(--home-muted); font-size: 12px; }
.autoteco-home .autoteco-card-link { color: var(--home-accent); font-size: 13px; font-weight: 650; }
.autoteco-home .autoteco-home-more { display: inline-flex; margin-block-start: 26px; color: var(--home-accent); font-size: 14px; font-weight: 650; }
.autoteco-home .autoteco-home-more:hover,
.autoteco-home a:hover .autoteco-card-link { text-decoration: underline; text-underline-offset: 4px; }

.autoteco-home :is(.cms-home-copy, .cms-home-overlay, .cms-hero-extra) {
  position: static;
  inset: auto;
  inline-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  margin-block: 0 22px;
  padding: 0;
  background: transparent;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.75;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
}
.autoteco-home .cms-home-copy p { margin-block: 10px; }
.autoteco-home .cms-home-overlay:has(h2) + .autoteco-chapter-title { display: none; }
.autoteco-home .cms-home-overlay h2 { color: var(--home-ink); font-size: clamp(29px, 3.4vw, 45px); line-height: 1.2; }

@media (max-width: 1050px) {
  .autoteco-home .autoteco-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .autoteco-home .autoteco-company-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
  .autoteco-home .autoteco-stats { padding: 26px; gap: 20px; }
}

@media (max-width: 900px) {
  .autoteco-home .autoteco-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .autoteco-home .autoteco-product-image { block-size: 220px; }
  .autoteco-home :is(.autoteco-solution-grid, .autoteco-news-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .autoteco-home .autoteco-hero-layout { gap: 28px; }
  .autoteco-home .autoteco-hero-visual { padding: 0; }
}

@media (max-width: 760px) {
  .autoteco-home .autoteco-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; min-block-size: 0; padding-block: 44px; }
  .autoteco-home .autoteco-hero-title { font-size: clamp(40px, 7vw, 54px); }
  .autoteco-home .autoteco-hero-description { max-inline-size: 620px; font-size: 16px; }
  .autoteco-home .autoteco-hero-visual { min-block-size: 320px; gap: 14px; }
  .autoteco-home .autoteco-hero-visual > img { inline-size: min(100%, 290px); block-size: 290px; }
  .autoteco-home .autoteco-hero-halo { inset: 0 20px 24px; max-inline-size: 330px; }
  .autoteco-home .autoteco-company-layout { grid-template-columns: minmax(0, 1fr); }
  .autoteco-home .autoteco-stats { min-block-size: 190px; padding: 28px; }
}

@media (max-width: 540px) {
  .autoteco-home { --home-edge: 20px; --home-space: 52px; }
  .autoteco-home .autoteco-eyebrow { font-size: 11px; letter-spacing: .035em; }
  .autoteco-home .autoteco-section-heading { margin-block-end: 26px; }
  .autoteco-home .autoteco-chapter-title { font-size: 29px; }
  .autoteco-home .autoteco-actions { gap: 10px 20px; margin-block-start: 24px; }
  .autoteco-home .autoteco-button { padding-inline: 18px; }
  .autoteco-home .autoteco-areas-grid { gap: 14px; }
  .autoteco-home .autoteco-area-card { min-block-size: 104px; padding: 22px; }
  .autoteco-home .autoteco-area-card h3 { font-size: 22px; }
  .autoteco-home .autoteco-featured-label { margin-block-start: 30px; }
  .autoteco-home .autoteco-product-grid { gap: 12px; }
  .autoteco-home .autoteco-product-image { block-size: 170px; padding: 12px; }
  .autoteco-home .autoteco-product-copy { gap: 9px; padding: 16px 12px; }
  .autoteco-home .autoteco-product-card h3 { font-size: 20px; }
  .autoteco-home .autoteco-product-card .autoteco-inline-link { gap: 6px; font-size: 12px; }
  .autoteco-home .autoteco-service-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .autoteco-home .autoteco-service-number { margin-block-end: 12px; }
  .autoteco-home .autoteco-service-card h3 { font-size: 20px; margin-block-end: 8px; }
  .autoteco-home .autoteco-stats { gap: 22px; padding: 26px 22px; }
  .autoteco-home :is(.autoteco-solution-grid, .autoteco-news-grid) { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .autoteco-home *, .autoteco-home *::before, .autoteco-home *::after { animation: none; transition: none; }
  .autoteco-home .autoteco-hero-visual { transform: none; }
}
