:root {
  --ink: #132632;
  --muted: #526875;
  --blue: #087fa5;
  --blue-dark: #07516d;
  --blue-deep: #072f43;
  --sky: #dff3f8;
  --orange: #d96b27;
  --paper: #ffffff;
  --wash: #f3f7f8;
  --line: #d8e3e7;
  --shadow: 0 24px 70px rgba(7, 47, 67, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid #ffb267;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 227, 231, 0.9);
  box-shadow: 0 8px 32px rgba(7, 47, 67, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), 1320px);
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 222px;
}

.brand img {
  width: 222px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue-dark);
  background: var(--sky);
}

.header-phone {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.header-phone:hover {
  color: #fff;
  background: var(--blue-dark);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--blue-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("assets/ats-vending-machine-customer.webp") center center / cover no-repeat;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 28, 43, 0.96) 0%, rgba(4, 34, 51, 0.88) 42%, rgba(4, 34, 51, 0.34) 72%, rgba(4, 34, 51, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 47, 67, 0.55), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 104px 116px;
}

.hero-content > * {
  max-width: 710px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8fdcf0;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: inherit;
  font-family: "Aptos Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 790px !important;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 4.5vw, 4.3rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1.25em;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.35vw, 1.13rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--orange);
}

.button-primary:hover {
  color: #fff;
  background: #b95216;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding-block: clamp(82px, 10vw, 132px);
}

.section-light {
  background: var(--paper);
}

.split-layout,
.stock-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.section-copy p,
.stock-copy p,
.section-heading p {
  color: var(--muted);
}

.section-copy p:last-child,
.stock-copy p:last-child {
  margin-bottom: 0;
}

.image-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  pointer-events: none;
}

.image-card img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  image-rendering: auto;
}

.image-card figcaption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(7, 47, 67, 0.88);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-blue {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 88% 4%, rgba(93, 200, 228, 0.2), transparent 32%),
    linear-gradient(145deg, var(--blue-dark), var(--blue-deep));
}

.section-heading {
  max-width: 860px;
  margin-bottom: 46px;
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.76);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 32px;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.service-card-accent {
  background: var(--orange);
  border-color: transparent;
}

.service-number {
  display: block;
  margin-bottom: 44px;
  color: #8fdcf0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-card-accent .service-number {
  color: #fff4eb;
}

.service-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.section-stock {
  background: var(--wash);
}

.stock-layout {
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
}

.lead {
  color: var(--ink) !important;
  font-size: 1.26rem;
  font-weight: 750;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.product-list li {
  position: relative;
  padding: 14px 14px 14px 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.product-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 17px;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--sky);
}

.product-visual {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.product-visual img {
  width: 100%;
}

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

.machine-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 52px rgba(7, 47, 67, 0.08);
}

.machine-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.machine-card:nth-child(even) img {
  grid-column: 2;
  grid-row: 1;
}

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

.machine-card-body {
  padding: clamp(28px, 5vw, 52px);
}

.machine-card-body p,
.machine-card-body li {
  color: var(--muted);
}

.machine-card-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 26px;
  margin: 22px 0 0;
  padding-left: 1.2em;
}

.machine-card-body li::marker {
  color: var(--blue);
}

.section-dimensions {
  color: #fff;
  background:
    linear-gradient(rgba(7, 47, 67, 0.88), rgba(7, 47, 67, 0.92)),
    url("assets/vending-machine-coils.webp") center / cover fixed;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dimension-card {
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.dimension-card h3 {
  min-height: 2.2em;
}

.dimension-card a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dimension-card img {
  width: 100%;
  background: #fff;
  transition: transform 220ms ease;
}

.dimension-card a:hover img {
  transform: scale(1.015);
}

.section-contact {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}

.section-contact::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -140px;
  width: 520px;
  height: 520px;
  border: 90px solid rgba(8, 127, 165, 0.08);
  border-radius: 50%;
}

.contact-layout {
  position: relative;
  z-index: 1;
}

.contact-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.16rem;
}

.contact-card {
  padding: clamp(28px, 5vw, 48px);
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-key {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #061f2d;
}

.footer-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 30px;
  padding-block: 30px;
}

.footer-inner img {
  width: 210px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 82px;
  }

  .brand {
    flex-basis: 190px;
  }

  .brand img {
    width: 190px;
  }

  .site-nav {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .site-nav ul {
    width: max-content;
  }

  .header-phone {
    display: none;
  }

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

  .machine-card,
  .machine-card:nth-child(even) {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  }

  .machine-card:nth-child(even) img {
    grid-column: 1;
  }

  .machine-card-body ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 142px;
  }

  .header-inner {
    width: 100%;
    min-height: auto;
    padding: 12px 20px 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    flex-basis: 184px;
  }

  .site-nav {
    width: calc(100% + 40px);
    order: 3;
    margin-inline: -20px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul {
    padding: 6px 14px 8px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    background-position: 40% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(4, 28, 43, 0.96), rgba(4, 34, 51, 0.67));
  }

  .split-layout,
  .stock-layout,
  .contact-layout,
  .machine-card,
  .machine-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .machine-card:nth-child(even) img {
    grid-column: auto;
    grid-row: auto;
  }

  .image-card img {
    min-height: 420px;
  }

  .service-grid,
  .dimensions-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 28px;
  }

  .product-visual {
    order: -1;
  }

  .dimension-card h3 {
    min-height: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

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

  .hero-content {
    padding-block: 84px 92px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .section {
    padding-block: 74px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .machine-card-body {
    padding: 26px 22px 34px;
  }

  .machine-card img {
    min-height: 240px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .section-dimensions {
    background-attachment: scroll;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .skip-link,
  .footer-inner a {
    display: none;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: #fff;
  }

  .hero-image,
  .hero-shade {
    display: none;
  }

  .section {
    padding-block: 32px;
  }
}
