/*
  Polished CSS - non-breaking cleanup
  Critical decisions preserved: class names, breakpoints, colors, spacing rhythm, dark/amber visual system.
*/

:root {
  --color-primary: #f6bc11;
  --color-primary-dark: #d99b00;
  --color-on-primary: #17191d;
  --color-ink: #17191d;
  --color-body: #555c66;
  --color-muted: #8d95a1;
  --color-line: #e7e9ed;
  --color-soft: #f5f6f8;
  --color-white: #ffffff;
  --color-bg-gray: #eaecf0;
  --color-footer: #111318;
  --shadow-lg: 0 28px 80px rgba(11, 18, 28, 0.22);
  --shadow-sm: 0 16px 42px rgba(22, 25, 30, 0.1);
  --container: 1120px;
  --radius: 12px;
  --header-height: 86px;
  --font-main: "Roboto", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-ink);
  background: var(--color-bg-gray);
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(246, 188, 17, 0.22);
}

body.nav-open {
  overflow: hidden;
}

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

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

section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(246, 188, 17, 0.48);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-primary);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  flex-direction: column;
  background: rgba(22, 25, 27, 0.96);
  box-shadow: 0 1px 0 rgba(20, 24, 30, 0.08);
  backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 20, 25, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 981px) {
  .site-header {
    transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
  }

  .site-header.is-scrolled {
    height: 64px;
  }

  .site-header.is-scrolled .topbar {
    height: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .site-header.is-scrolled .nav-shell {
    min-height: 64px;
  }
}

.topbar {
  color: #cfd3da;
  background: #15171c;
  font-size: 11px;
  transition: height 0.3s ease, min-height 0.3s ease, opacity 0.2s ease;
}

.topbar__inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.topbar a {
  color: var(--color-white);
  font-weight: 600;
}

.topbar span {
  color: #aeb5c0;
}

.nav-shell {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  transition: min-height 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  letter-spacing: 0;
}

.brand__logo {
  width: 132px;
  height: 50px;
  object-fit: contain;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--color-white);
  background: var(--color-primary);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 20px;
  font-weight: 800;
}

.brand small {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #d6d2ca;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding-block: 22px;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-white);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121419;
}

.hero__slides {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hero__slide {
  position: relative;
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  display: flex;
  flex-direction: column;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.9), rgba(12, 14, 18, 0.62) 42%, rgba(12, 14, 18, 0.16)),
    linear-gradient(0deg, rgba(12, 14, 18, 0.52), rgba(12, 14, 18, 0.08));
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 620px;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  padding-inline: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--color-white);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  text-wrap: balance;
}

.hero p:not(.section-kicker) {
  max-width: 600px;
  margin: 22px 0 0;
  color: #e2e6ec;
  font-size: 16px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.hero__controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 40px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero__controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: var(--color-white);
  background: rgba(18, 20, 25, 0.55);
  cursor: pointer;
}

.hero__controls svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-strip {
  background: var(--color-primary);
}

.brand-strip__grid {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 1px;
}

.brand-strip span {
  display: grid;
  min-height: 74px;
  place-items: center;
  color: var(--color-on-primary);
  border-left: 1px solid rgba(23, 25, 29, 0.16);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-strip span:last-child {
  border-right: 1px solid rgba(23, 25, 29, 0.16);
}

.section {
  padding: 104px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 70px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split__media {
  position: relative;
}

.split__media::before {
  position: absolute;
  content: "";
  inset: 24px -24px -24px 24px;
  z-index: -1;
  background: var(--color-primary);
  border-radius: var(--radius);
}

.split--reverse .split__media::before {
  inset: 24px 24px -24px -24px;
}

.split__media img {
  aspect-ratio: 1.08 / 0.86;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

.split__content h2,
.section-head h2,
.catalog h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}

.split__content p:not(.section-kicker),
.section-head p:not(.section-kicker),
.catalog p {
  color: var(--color-body);
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.stats div {
  padding: 22px 18px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  border-radius: var(--radius);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--color-primary);
  font-size: 30px;
  line-height: 1;
}

.stats span {
  margin-top: 8px;
  color: var(--color-body);
  font-size: 13px;
  font-weight: 700;
}

.products,
.news {
  background: var(--color-bg-gray);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
}

.product-card > div {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card p {
  flex-grow: 1;
}

.product-card h3,
.service-grid h3,
.news-grid h3,
.footer h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.product-card p,
.service-grid p,
.news-grid p {
  color: var(--color-body);
  font-size: 15px;
}

.product-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card-actions .details-link {
  color: var(--color-primary);
}

.product-card-actions .instagram-link {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.product-card-actions .instagram-link:hover {
  color: var(--color-primary-dark);
}

.catalog {
  padding: 72px 0;
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(18, 20, 25, 0.92), rgba(18, 20, 25, 0.7)),
    url("images/ford-fiesta-on-cam-haric.webp") center 48% / cover;
}

.catalog h2,
.catalog p {
  color: var(--color-white);
}

.catalog .section-kicker {
  color: var(--color-primary);
}

.catalog p {
  max-width: 700px;
}

.catalog__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.catalog__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-grid article {
  min-height: 270px;
  padding: 32px 28px;
  background: var(--color-white);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  position: relative;
}

.service-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-body);
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  content: "";
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-grid article {
  padding: 32px;
  background: var(--color-white);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.news-grid article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-grid article p {
  flex-grow: 1;
}

.news-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bg-dark {
  background-color: #111111;
}

.text-white {
  color: #ffffff;
}

.section-header-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
}

.header-line {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--color-primary);
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}

.info-card {
  padding: 32px 24px;
  color: #dddddd;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-card svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  fill: var(--color-primary);
}

.info-card h3 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 20px;
}

.info-card p,
.info-card address {
  margin: 0;
  color: #555c66;
  font-style: normal;
}

.contact-map-full {
  width: 100%;
  min-height: 500px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.contact-map-full iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

.main-footer {
  padding: 60px 0 30px;
  color: #dddddd;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin: 0 0 25px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-contact-item {
  margin-bottom: 15px;
}

.footer-contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
}

.footer-contact-item p {
  margin: 0;
  color: #dddddd;
}

.text-yellow {
  color: var(--color-primary) !important;
}

.hours-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222222;
}

.hours-list li:last-child {
  border-bottom: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #222222;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
  color: var(--color-on-primary);
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.social-icons .icon-instagram {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icons .icon-whatsapp {
  fill: currentColor;
}

/* Hero Slider Dots */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero__dots button.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.25);
}

.hero__dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .hero__dots {
    bottom: 24px;
  }
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  background-color: rgba(20, 22, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-bar a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-bottom-bar a:active {
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-bottom-bar svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 100;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  place-items: center;
  color: var(--color-white);
  background: #25d366;
  border-radius: 50px;
  box-shadow: 2px 2px 3px #999999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 980px) {
  :root {
    --header-height: 58px;
  }

  .topbar {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    color: #262a31;
    padding: 10px 20px 22px;
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    box-shadow: var(--shadow-sm);
    transform: translateY(calc(-100% - 90px));
    transition: transform 220ms ease;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    color: var(--color-primary-dark);
  }

  .main-nav a::after {
    background: var(--color-primary-dark);
  }

  .nav-open .main-nav {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 15px 0;
  }

  .main-nav a::after {
    bottom: 8px;
  }

  .hero__content {
    min-height: 660px;
  }

  .brand-strip__grid,
  .product-grid,
  .service-grid,
  .news-grid,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split--reverse .split__content {
    order: 2;
  }

  .catalog__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog__actions {
    width: 100%;
    flex-direction: column;
  }

  .catalog__actions .btn {
    width: 100%;
    text-align: center;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .mobile-bottom-bar {
    display: block;
  }

  .whatsapp-float {
    bottom: 70px;
  }

  body {
    padding-bottom: 50px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero__content {
    min-height: 640px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p:not(.section-kicker) {
    font-size: 16px;
  }

  .hero__controls {
    right: 14px;
    bottom: 20px;
  }

  .section {
    padding: 72px 0;
  }

  .brand-strip__grid,
  .product-grid,
  .service-grid,
  .news-grid,
  .footer__grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .brand-strip span {
    min-height: 58px;
    border-left: 0;
    border-bottom: 1px solid rgba(23, 25, 29, 0.16);
  }

  .brand-strip span:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .split__media::before,
  .split--reverse .split__media::before {
    inset: 14px -14px -14px 14px;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .contact-map-full,
  .contact-map-full iframe {
    min-height: 360px;
    height: 360px;
  }

  .whatsapp-float {
    right: 20px;
    bottom: 70px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }

}

/* Scroll Reveal & Back to Top */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 99;
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-footer);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: var(--color-on-primary);
  background: var(--color-primary);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 70px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   Dark Theme / Production Polish Tokens
   ========================================================================== */

:root {
  --color-bg-dark1: #141617;
  --color-bg-dark2: #1a1c1d;
  --color-card-dark: #232627;
  --color-panel-dark: #191b1c;
  --color-line-dark: rgba(255, 255, 255, 0.08);
  --color-text-light: #cfd3da;
  --shadow-dark-card: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand__logo {
  width: 126px;
}

.hero__content {
  min-height: 590px;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.92), rgba(12, 14, 18, 0.68) 38%, rgba(12, 14, 18, 0.18)),
    linear-gradient(0deg, rgba(12, 14, 18, 0.58), rgba(12, 14, 18, 0.08));
}

.brand-strip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.brand-strip span {
  letter-spacing: 0.01em;
}

.section {
  position: relative;
  padding: 86px 0;
}

.products,
.services,
.news,
.contact-section {
  overflow: hidden;
}

.products::before,
.services::before,
.news::before,
.contact-section::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(246, 188, 17, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.section-head {
  position: relative;
  margin-bottom: 38px;
}

.section-head p:not(.section-kicker) {
  max-width: 620px;
  margin-inline: auto;
}

.section-head--left p:not(.section-kicker) {
  margin-inline: 0;
}

.split {
  gap: 56px;
}

.product-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.service-grid article,
.news-grid article,
.info-card {
  border: 1px solid var(--color-line-dark);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.2);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 1 / 1.12;
}

.product-card > div {
  padding: 22px;
}

.product-card h3,
.service-grid h3,
.news-grid h3 {
  font-size: 18px;
}

.product-card p,
.service-grid p,
.news-grid p {
  font-size: 14px;
  line-height: 1.58;
}

.product-card-actions {
  gap: 10px;
}

.product-card-actions a {
  font-size: 11px;
}

.catalog {
  position: relative;
  padding: 58px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.catalog__inner {
  position: relative;
  z-index: 1;
}

.service-grid {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  gap: 24px !important;
}

.service-grid article {
  min-height: 220px;
  padding: 28px 24px;
}

.service-grid span {
  margin-bottom: 26px;
}

.references .split__content {
  padding: 28px 0;
}

.news-grid {
  position: relative;
  z-index: 1;
}

.news-grid article {
  min-height: 230px;
}

.news-grid span {
  color: var(--color-primary);
}

.contact-section {
  padding-bottom: 92px;
}

.contact-lead {
  max-width: 640px;
  margin: -22px auto 34px;
  color: var(--color-text-light);
  text-align: center;
}

.contact-info-cards,
.contact-map-full {
  position: relative;
  z-index: 1;
}

.contact-map-full {
  min-height: 420px;
  border: 1px solid var(--color-line-dark);
  box-shadow: var(--shadow-dark-card);
}

.map-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: min(340px, calc(100% - 36px));
  padding: 14px 16px;
  color: var(--color-white);
  background: rgba(20, 22, 23, 0.88);
  border: 1px solid rgba(246, 188, 17, 0.32);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.map-badge strong {
  color: var(--color-primary);
  font-size: 13px;
  text-transform: uppercase;
}

.map-badge span {
  color: var(--color-text-light);
  font-size: 13px;
}

.contact-map-full iframe {
  height: 420px;
  filter: grayscale(0.2) contrast(1.04);
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero__content {
    min-height: 640px;
  }

  .product-grid,
  .service-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand__logo {
    width: 104px;
    height: 42px;
  }

  .hero__content {
    min-height: 560px;
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 88px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.04;
  }

  .hero p:not(.section-kicker) {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__dots {
    bottom: 70px;
  }

  .hero__controls {
    bottom: 46px;
  }

  .section {
    padding: 64px 0;
  }

  .product-grid,
  .service-grid,
  .news-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .catalog {
    padding: 50px 0;
  }

  .service-grid article,
  .news-grid article {
    min-height: auto;
  }

  .contact-lead {
    margin-top: -16px;
  }

  .contact-map-full,
  .contact-map-full iframe {
    min-height: 330px;
    height: 330px;
  }

  .map-badge {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 12px;
  }

  .back-to-top {
    bottom: 76px;
  }

  .mobile-bottom-bar a {
    padding: 13px 12px calc(13px + env(safe-area-inset-bottom));
    font-size: 0.96rem;
  }
}

/* Dynamic Section Backgrounds */
#corporate,
#catalog,
#references,
#contact {
  background: var(--color-bg-dark1) !important;
}

#products,
#services,
.news {
  background: var(--color-bg-dark2) !important;
}

/* Headings in Dark Theme */
#corporate h2,
#products h2,
#services h2,
#references h2,
.news h2,
#contact h2 {
  color: var(--color-white) !important;
}

/* Paragraphs and general descriptions in Dark Theme */
#corporate p:not(.section-kicker),
#products p:not(.section-kicker),
#services p:not(.section-kicker),
#references p:not(.section-kicker),
.news p:not(.section-kicker),
#contact p:not(.section-kicker),
.split__content p:not(.section-kicker),
.section-head p:not(.section-kicker) {
  color: var(--color-text-light) !important;
}

/* Stats Divs (About Section) */
#corporate .stats div {
  background: var(--color-card-dark) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

#corporate .stats strong {
  color: var(--color-primary) !important;
}

#corporate .stats span {
  color: var(--color-text-light) !important;
}

/* Cards (Products, Services, News, Contact) */
.product-card,
.service-grid article,
.news-grid article,
.info-card {
  background: var(--color-card-dark) !important;
  color: var(--color-text-light) !important;
}

.product-card h3,
.service-grid h3,
.news-grid h3,
.info-card h3 {
  color: var(--color-white) !important;
}

.product-card p,
.service-grid p,
.news-grid p,
.info-card p,
.info-card address,
.info-card p a {
  color: var(--color-text-light) !important;
}

.info-card p a:hover {
  color: var(--color-primary) !important;
}

/* Check list (References Section) */
#references .check-list li {
  color: var(--color-text-light) !important;
}

/* Brand Marquee text */
.brand-slide {
  color: rgba(255, 255, 255, 0.35) !important;
}

.brand-slide:hover {
  color: var(--color-primary) !important;
}

/* Product Card Actions Dark Override */
.product-card-actions {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.product-card-actions .instagram-link {
  color: var(--color-white) !important;
}

.product-card-actions .instagram-link:hover {
  color: var(--color-primary) !important;
}

/* Mobile Navigation Dropdown Override */
@media (max-width: 980px) {
  .main-nav {
    background: var(--color-bg-dark1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  }

  .main-nav a {
    color: var(--color-text-light) !important;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    color: var(--color-primary) !important;
  }

  .nav-toggle {
    background: var(--color-bg-dark1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .nav-toggle span {
    background: var(--color-text-light) !important;
  }
}

/* Final cascade: keep the polished dark/amber system as the last decision. */
body {
  color: var(--color-text-light);
  background:
    radial-gradient(circle at 18% 10%, rgba(246, 188, 17, 0.08), transparent 26rem),
    linear-gradient(180deg, #151718 0%, #111314 100%);
}

.service-grid {
  background: transparent !important;
  border: none !important;
}

.product-card,
.service-grid article,
.news-grid article,
.info-card {
  border: 1px solid var(--color-line-dark);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.2);
}

.fade-in-up {
  opacity: 1;
  transform: none;
}

/* Non-breaking stability polish */
.site-header,
.mobile-bottom-bar,
.map-badge {
  -webkit-backdrop-filter: blur(16px);
}

.map-badge {
  -webkit-backdrop-filter: blur(12px);
}

.split > *,
.product-card,
.service-grid article,
.news-grid article,
.info-card {
  min-width: 0;
}

.btn:active,
.hero__controls button:active,
.hero__dots button:active,
.nav-toggle:active {
  transform: translateY(0);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .mobile-bottom-bar {
    background-color: #141617;
  }

  .map-badge {
    background-color: #141617;
  }
}
