/* =========================================================
   Sovic Systems — built from Figma frame "sovicsysytems1"
   Sizes scale fluidly between phones and a 1320px content width.
   ========================================================= */

:root {
  --blue: #0052c7;
  --blue-2: #0b4fd1;
  --navy: #072450;
  --ink: #0d1b2e;
  --light-blue: #8db2ff;
  --text: #000;
  --muted: #595959;
  --border: #cacaca;
  --input-border: #cdd7e6;
  --label: #3e4c5e;
  --placeholder: #757575;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fluid type (phone size → desktop size) */
  --fs-hero: clamp(2.125rem, 1.5rem + 2.2vw, 3.5rem);      /* 34 → 56 */
  --fs-h2: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem);       /* 28 → 44 */
  --fs-card: clamp(1.125rem, 1rem + 0.45vw, 1.5rem);       /* 18 → 24 */
  --fs-h4: clamp(1.125rem, 1rem + 0.3vw, 1.375rem);        /* 18 → 22 */
  --fs-lead: clamp(1rem, 0.925rem + 0.25vw, 1.125rem);     /* 16 → 18 */
  --fs-body: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);      /* 15 → 16 */
  --fs-small: clamp(0.8125rem, 0.78rem + 0.12vw, 0.875rem); /* 13 → 14 */

  --gutter: clamp(16px, 5vw, 96px);
  --section-gap: clamp(64px, 9vw, 160px);
  --radius-btn: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.page { overflow-x: hidden; overflow-x: clip; position: relative; }
.container { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-top: var(--section-gap); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue);
  font-size: var(--fs-small); font-weight: 600;
  line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 10px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--light-blue); }

.h2 {
  font-size: var(--fs-h2); font-weight: 500;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-top: 10px;
}
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-head .lead { max-width: 760px; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-body); font-weight: 500; line-height: 1.2;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn img { width: 24px; height: 24px; }
/* WhatsApp buttons: slightly bolder label */
.btn[href*="wa.me"], .btn-wa { font-weight: 600; }
.btn--primary { background: var(--navy); color: #eff6ff; border: 1px solid rgba(7, 36, 80, .8); }
.btn--primary:hover { background: var(--blue); box-shadow: 0 10px 24px rgba(0, 82, 199, .25); transform: translateY(-2px); }
.btn--outline { border: 1px solid rgba(80, 80, 80, .5); color: #000; background: rgba(255, 255, 255, .35); }
.btn--outline:hover { background: #fff; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--fs-body); font-weight: 500; line-height: 1.2; color: var(--muted);
}
/* Arrow is sized from the label's text, so the two always line up */
.link-arrow img { width: 1em; height: 1em; flex: none; transition: transform .2s; }
.link-arrow:hover img { transform: translateX(4px); }

/* =========================================================
   Top bar + header
   ========================================================= */
.topbar { background: rgba(0, 82, 199, .8); color: #fff; }
.topbar__inner {
  display: flex; justify-content: flex-end; align-items: center;
  gap: clamp(20px, 3vw, 48px); min-height: 40px; font-weight: 600;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.topbar__item img { width: 18px; height: 18px; }
.topbar__item span {
  position: relative;
}

.topbar__item span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.topbar__item:hover span::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header: large logo and menu sit on top of the banner, over both slides.
   A soft white fade behind them keeps the menu readable over any banner. */
.hero { --logo-w: clamp(150px, 17vw, 326px); }
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: clamp(110px, 11vw, 190px); pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 100%);
}
.header__inner {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 22px;
}
.header__logo { flex: none; margin-top: 21px; width: var(--logo-w); }
.header__logo img { width: 100%; height: auto; }

.nav {
  display: flex; align-items: center; gap: clamp(20px, 2.2vw, 36px);
  margin-top: 30px;
  font-size: 1rem; font-weight: 600; white-space: nowrap;
}
.nav a { position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover, .nav a.is-active { color: var(--blue); }
.nav a:hover::after { transform: scaleX(1); }

/* Hero banner slider: slides are stacked in one grid cell and cross-fade */
.hero { position: relative; display: grid; }
.hero__slide {
  grid-area: 1 / 1; position: relative; isolation: isolate; min-width: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: right center;
}

/* Slide 1: the white fade on the left is wide enough that the text never sits on the photo */
.hero__slide--main::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .94) 40%, rgba(255, 255, 255, .6) 54%, rgba(255, 255, 255, 0) 70%);
}

/* Slide 2 (AMC): same light look as slide 1, with a group of equipment beside the text */
.hero__slide--amc { background: linear-gradient(115deg, #f6f9ff 0%, #f3f7fe 45%, #e4edfc 100%); }
.hero__slide--amc .hero__content { position: relative; }
.hero__slide--amc :is(.hero__title, .hero__text) { max-width: min(620px, 54%); }
/* Transparent picture: sits beside the text, below the menu and above the boxes */
.hero__devices {
  position: absolute; z-index: -1; right: 0;
  top: calc(43px + var(--logo-w) * 0.5075 + clamp(32px, 4vw, 72px) - 40px);
  width: clamp(380px, 42%, 600px); height: auto;
}


/* Content of a slide rises in each time the slide is shown */
.hero__slide.is-entering :is(.eyebrow, .hero__title, .hero__text, .hero__actions, .glass-card) {
  animation: hero-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__slide.is-entering .hero__title { animation-delay: .08s; }
.hero__slide.is-entering .hero__text { animation-delay: .16s; }
.hero__slide.is-entering .hero__actions { animation-delay: .24s; }
.hero__slide.is-entering .glass-card { animation-delay: .34s; }
.hero__slide.is-entering .glass-card:nth-child(2) { animation-delay: .44s; }
.hero__slide.is-entering .glass-card:nth-child(3) { animation-delay: .54s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } }

/* Slider dots */
.hero__dots {
  position: absolute; left: 50%; bottom: clamp(24px, 2.4vw, 44px); transform: translateX(-50%); z-index: 2;
  display: flex; gap: 12px;
}
.hero__dots button {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(130, 145, 170, .55); transition: width .3s, background-color .3s;
}
.hero__dots button.is-active { width: 36px; background: var(--blue-2); }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-top: 12px; padding: 12px;
  border: 1px solid rgba(80, 80, 80, .25); border-radius: 12px;
  background: rgba(255, 255, 255, .7); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; width:100%; background: #000; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
/* Top padding clears the header (22 + 21 + logo height), then a gap below the logo */
.hero__content { padding: calc(43px + var(--logo-w) * 0.5075 + clamp(32px, 4vw, 72px)) 0 clamp(72px, 6vw, 110px); }
.hero__title { font-size: var(--fs-hero); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.hero__text {
  margin-top: clamp(16px, 1.4vw, 22px); max-width: 620px;
  font-size: var(--fs-lead); font-weight: 500; line-height: 1.65; color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(24px, 2vw, 36px); }

.hero__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 20px;
  margin-top: clamp(40px, 4.5vw, 80px);
}
.glass-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 16px;
  min-height: clamp(150px, 9vw, 176px); padding: 22px;
  border: 1px solid var(--border); border-radius: 20px;
  /* Frosted glass: the banner shows through, blurred and lightened */
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(19.7px); -webkit-backdrop-filter: blur(19.7px);
  transition: border-color .25s, box-shadow .25s;
}
.glass-card:hover { border-color: rgba(0, 82, 199, .45); box-shadow: 0 12px 32px rgba(7, 36, 80, .08); }
.glass-card h3 { font-size: var(--fs-card); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.glass-card p { font-size: var(--fs-body); line-height: 1.5; }

/* =========================================================
   About
   ========================================================= */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
/* Photo block: wide photo on top, square photo + "15+ years" card below, blue bar on the left */
.about__collage {
  --r: clamp(12px, 0.94vw, 18px);
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 0.94vw, 18px);
  padding-left: clamp(16px, 1.46vw, 28px);
}
.about__bar {
  position: absolute; left: 0; top: 0; bottom: 38%;
  width: clamp(6px, 0.52vw, 10px); border-radius: 5px; background: var(--blue-2);
}
.about__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.about__photo--wide { grid-column: 1 / -1; aspect-ratio: 550 / 309.38; object-position: 50% 60%; }
.about__photo--square { aspect-ratio: 1; }
.about__stat {
  aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(16px, 1.6vw, 30px); border-radius: var(--r);
  background: var(--ink); color: #fff;
}
.about__stat strong { font-size: var(--fs-h2); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.about__stat span {
  margin-top: 8px; opacity: .85;
  font-size: var(--fs-body); font-weight: 500; line-height: 1.4;
}

.about__content .lead { margin-top: 20px; }
.about__features {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: clamp(32px, 5vw, 80px); row-gap: 22px;
  margin-top: clamp(28px, 2.6vw, 40px);
  font-size: var(--fs-lead); color: var(--muted); line-height: 1.5;
}
.about__features li { display: flex; align-items: center; gap: 16px; }
.about__features li::before {
  content: ""; width: 8px; height: 8px; flex: none; margin-left: 2px;
  background: var(--blue); border-radius: 2px; transform: rotate(45deg);
}

/* Floating 3D logo decorations (animated GIF, cropped like the design) */
.deco { position: absolute; z-index: -1; overflow: hidden; opacity: .5; pointer-events: none; aspect-ratio: 533 / 561; }
.deco img { position: absolute; max-width: none; left: -40.91%; top: -.07%; width: 187.29%; height: 100%; }
.deco--about { width: min(27.76vw, 533px); right: -9.2vw; top: calc(var(--section-gap) - 7.5vw); transform: rotate(-13.49deg); }
.deco--sales { width: min(27.76vw, 533px); left: -15.8vw; top: calc(var(--section-gap) * -1 + 1.5vw); transform: rotate(8.88deg); }

/* =========================================================
   Services carousel
   ========================================================= */
.services__head { display: flex; align-items: flex-end; gap: 24px 0; flex-wrap: wrap; }
.services__head > div { flex: 0 1 480px; min-width: 260px; padding-right: 24px; }
.services__intro { max-width: 600px; flex: 1 1 420px; padding-bottom: 8px; }

.slider-btns { position: relative; width: 115px; height: 50px; margin-top: clamp(24px, 2.2vw, 36px); }
.slider-btns__bg { position: absolute; left: -4px; top: 0; width: 123px; height: 58px; max-width: none; pointer-events: none; }
.slider-btns__btn {
  position: absolute; top: 0; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; cursor: pointer; transition: opacity .2s, transform .2s;
}
.slider-btns__btn img { width: 24px; height: 24px; }
.slider-btns__btn--prev { left: 0; }
/* Previous uses the same arrow as Next, mirrored */
.slider-btns__btn--prev img { transform: scaleX(-1); }
.slider-btns__btn--next { left: 65px; }
.slider-btns__btn:hover { transform: scale(1.06); }

.carousel {
  --edge: max(var(--gutter), (100% - 1320px) / 2);
  margin-top: clamp(24px, 2.6vw, 36px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; gap: 24px; width: max-content; padding-inline: var(--edge); }
.svc-card {
  position: relative; overflow: hidden; isolation: isolate;
  width: clamp(270px, 31.25vw, 600px); aspect-ratio: 6 / 5;
  border-radius: 19.4px; scroll-snap-align: start; background: #0c1a33;
}
/* Each card has its own photo. The photos are wider than the card, so --pos (set per card
   in index.html) slides the photo sideways to keep its subject in view. */
.svc-card > img {
  position: absolute; inset: 0; z-index: -2; max-width: none;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50%) 50%;
  transition: filter .4s ease;
}
.svc-card::after {
  content: ""; position: absolute; z-index: -1;
  left: -11.3%; top: 10%; width: 122.56%; height: 100%;
  background: url("assets/texture.png") center / 100% 100% no-repeat;
  opacity: var(--shade, .2);
}
.svc-card h3 {
  position: absolute; left: 3.2%; right: 3.2%; bottom: 10.5%;
  color: #fff; font-size: var(--fs-card); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em;
}
.svc-card:hover > img { filter: brightness(1.12); }

.dots { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.dots button {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%;
  background: #d9d9d9; cursor: pointer; transition: background-color .2s, transform .2s;
}
.dots button.is-active { background: #484a49; }
.dots button:hover { transform: scale(1.15); }

/* =========================================================
   Sales
   ========================================================= */
.sales__grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px;
  margin-top: clamp(36px, 4vw, 64px);
}
/* Each card shares the grid's rows (photo, title, description, link), so the
   titles, descriptions and links line up across a row whatever their length. */
.product {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  background: #fff;
  box-shadow: 0 4.9px 24.5px rgba(0, 0, 0, .06);
  transition: background-color .25s, transform .25s;
}
/* Photos are shown whole, never cropped */
.product__media { position: relative; aspect-ratio: 281.5 / 195.86; background: #fff; }
.product__media > img { width: 100%; height: 100%; object-fit: contain; }
.product__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .05); pointer-events: none; }
.hex {
  position: absolute; z-index: 1; right: 16px; bottom: -24px;
  width: 52px; height: 60px; display: grid; place-items: center;
}
.hex img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex b { position: relative; color: #fff; font-size: 16px; font-weight: 500; }
.product__body { display: contents; }
.product h3 {padding: 34px 20px 0;font-size: clamp(1.125rem, 1rem + 0.3vw, 1.22rem);font-weight: 600;line-height: 1.3;letter-spacing: -0.03em;word-spacing: 2px;}
.product p { padding: 8px 20px 0; font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }
.product .link-arrow { margin: 16px 20px 22px; align-self: end; justify-self: start; }

/* Blue state on the hovered card only */
.product:hover { background: var(--blue); transform: translateY(-4px); }
.product:hover :is(h3, p, .link-arrow) { color: #fff; }
.product:hover .link-arrow img { filter: brightness(0) invert(1); }

/* =========================================================
   AMC
   ========================================================= */
.amc {margin: var(--section-gap) auto 0;background: var(--navy);color: #fff;border-radius: 15px;padding: clamp(56px, 5vw, 88px) 0 clamp(48px, 4vw, 72px);}
.amc .h2 { color: #fff; max-width: 760px; }
.amc__intro { color: #fff; max-width: 760px; margin-top: clamp(16px, 1.5vw, 22px); }
.amc__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 40px) clamp(24px, 3vw, 48px);
  margin-top: clamp(36px, 4vw, 64px);
}
.amc__list li { display: flex; gap: 16px; }
.amc__list li > img { flex: none; width: 16px; height: 16px; margin-top: .35em; }
.amc__list h3 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.3; }
.amc__list p { margin-top: 6px; font-size: var(--fs-body); line-height: 1.5; opacity: .9; }
.amc__cta {
  display: flex; width: fit-content; align-items: center; gap: .4em;
  margin: clamp(32px, 3vw, 48px) auto 0;
  font-size: var(--fs-body); font-weight: 600; line-height: 1.2;
  padding: 10px 20px; border-radius: 100px; transition: background-color .2s;
}
.amc__cta:hover { background: rgba(255, 255, 255, .1); }
.amc__cta img { width: 1em; height: 1em; transition: transform .2s; transform: translate(0, 1px); }
.amc__cta:hover img { transform: translate(4px, 1px); }

/* =========================================================
   IT infrastructure
   ========================================================= */
.chips {
  display: grid; grid-template-columns: repeat(4, 240px); gap: 16px;
  margin-top: clamp(28px, 3.4vw, 52px);
}
.chips li {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border: 1px solid rgba(0, 82, 199, .5); border-radius: 8px;
  font-size: var(--fs-body); font-weight: 500; line-height: 1.2;
  color: var(--muted); text-align: left;
  transition: border-color .2s, background-color .2s;
}
.chips li:hover { border-color: var(--blue); background: rgba(0, 82, 199, .04); }
.chips img { width: 18px; height: 18px; flex: none; }

/* =========================================================
   Team
   ========================================================= */
/* Intro spans most of the row: two lines on desktop */
.team__intro { max-width: 85%; margin-top: 16px; }
.team__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: space-between; row-gap: 56px;
  max-width: 1000px; margin: clamp(40px, 4.5vw, 72px) auto 0;
}
.tech { position: relative; padding: 0 0 24px 24px; }
/* Odd number of members: center the last card under the two columns */
.tech:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 400px; }
.tech::before {
  content: ""; position: absolute; left: 0; top: 30px;
  width: 100px; height: 124px; background: #0051c5;
}
.tech__card {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  min-height: 130px; padding: 18px 16px 18px 30px;
  background: #fff; box-shadow: 0 6px 44.8px rgba(0, 0, 0, .2);
  transition: transform .25s;
}
.tech:hover .tech__card { transform: translate(4px, -4px); }
.tech h3 { grid-column: 1; font-size: var(--fs-card); font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; color: var(--blue); }
.tech p { grid-column: 1; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; color: var(--muted); }
.tech__card img { grid-column: 2; grid-row: 1 / span 2; width: 72px; height: 65px; object-fit: cover; opacity: .7; }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  --notch: clamp(90px, 12vw, 220px);
  --notch-d: calc(var(--notch) * 0.3436);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: var(--section-gap);
  background: var(--blue); color: #fff;
  padding: calc(var(--notch-d) + clamp(48px, 6vw, 100px)) 0 clamp(56px, 5.5vw, 96px);
  clip-path: polygon(0 0, calc(50% - var(--notch) / 2 - 12px) 0, calc(50% - 12px) var(--notch-d),
                     calc(50% + var(--notch) / 2 - 12px) 0, 100% 0, 100% 100%, 0 100%);
}
.contact__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cd { position: absolute; opacity: .3; max-width: none; height: auto; }
.cd--a { width: 27.55vw; left: -17.3vw; top: -5.3vw; transform: rotate(-21.19deg); }
.cd--b { width: 32.73vw; left: 64.2vw; top: 8.2vw; transform: rotate(-21.7deg); }
.cd--c { width: 27.55vw; left: 88.5vw; top: -5vw; transform: rotate(-49.44deg); }

.contact__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px;
  width: min(1200px, 100% - 2 * var(--gutter));
}
.contact__kicker { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact__title { margin-top: 12px; font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
.contact__text { margin-top: 14px; max-width: 480px; font-size: var(--fs-lead); line-height: 1.6; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-call, .btn-wa {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 12px 22px; border-radius: 11.1px;
  font-size: var(--fs-body); transition: background-color .2s, color .2s;
}
.btn-call { font-weight: 500; }
.btn-call { background: #fff; color: var(--blue-2); }
.btn-call:hover { background: var(--navy); color: #fff; }
.btn-wa { border: 1.1px solid #fff; }
.btn-wa img { width: 24px; height: 24px; }
.btn-wa:hover { background: rgba(255, 255, 255, .12); }
.contact__block { margin-top: 24px; }
.contact__block h3 { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: .85; }
.contact__block a, .contact__block p { display: block; margin-top: 6px; font-size: var(--fs-lead); font-weight: 500; line-height: 1.55; }
.contact__block a:hover { text-decoration: underline; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start;
  padding: clamp(22px, 2.1vw, 36px); background: #fff; color: var(--label); border-radius: 22.3px;
}
.field { display: flex; flex-direction: column; gap: 6.7px; min-width: 0; }
.field > span { font-size: var(--fs-small); font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15.6px;
  border: 1.1px solid var(--input-border); border-radius: 11.1px; background: #fff;
  font-size: 1rem; color: #0d1b2e;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field ::placeholder { color: var(--placeholder); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px;
  background: #fff url("assets/chevron-down.svg") no-repeat right 14px center / 24px 24px;
}
.field :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 82, 199, .15); }
.field .is-invalid { border-color: #d93025; }
.field .is-invalid:focus { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .15); }
.req { color: #d93025; font-weight: 500; }
.field__error { font-size: 14px; line-height: 1.35; color: #c5221f; }
.field__error:empty { display: none; }
.form__submit { grid-column: 1; justify-self: start; }
.form__submit:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.form__status { grid-column: 1 / -1; padding: 12px 16px; border-radius: 11.1px; border: 1px solid transparent; font-size: 15px; line-height: 1.45; }
.form__status.is-success { background: #e8f6ee; border-color: #b7e0c6; color: #17663a; }
.form__status.is-error { background: #fdecea; border-color: #f5c2bd; color: #b3261e; }
.form__status:empty { display: none; }
/* Cloudflare Turnstile: reserve the widget's height so the form does not jump when it loads */
.form__captcha .cf-turnstile { min-height: 65px; max-width: 400px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #fff; padding-top: clamp(48px, 5vw, 80px); }
/* Four columns spread evenly across the row, with equal gaps between them */
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px 24px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer__logo { width: clamp(170px, 13vw, 220px); height: auto; }
.socials { display: none; flex-wrap: wrap; gap: 14px; }
.socials a { flex: none; width: 32px; height: 32px; transition: transform .2s, opacity .2s; }
.socials a:hover { transform: translateY(-3px); opacity: .7; }

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: var(--fs-body); line-height: 1.5; }
.footer__col h3 { font-size: var(--fs-lead); font-weight: 700; color: #000; margin-bottom: 6px; }
.footer__col a, .footer__col p { color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--blue); }
.footer__col--visit { width: min(300px, 100%); }
.footer__col--visit .footer__maplink { color: var(--blue); font-weight: 500; }
.footer__col a {
  position: relative;
  text-decoration: none;
}

.footer__col a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.footer__col a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.footer__map {
  display: block; margin-top: 10px; width: 100%; aspect-ratio: 387 / 196;
  border: 1px solid rgba(0, 0, 0, .1); border-radius: 12px; overflow: hidden;
}
.footer__map img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.footer__map:hover img { transform: scale(1.04); }

.footer__bottom {
  margin-top: clamp(32px, 3vw, 48px);
  border-top: 1.9px solid rgba(0, 82, 199, .12);
  padding: 20px var(--gutter) 24px;
  text-align: center; font-size: var(--fs-small); color: rgba(0, 0, 0, .7); line-height: 1.5;
}
.footer__bottom span { color: #000; }
.footer__credit { margin-top: 4px; font-size: 13px; }
.footer__credit a { color: #000; transition: color .2s; }
.footer__credit a:hover { color: var(--blue); }
.footer__credit a {
  position: relative;
  text-decoration: none;
}

.footer__credit a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.footer__credit a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue, #007bff);
  color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s;

  z-index: 99999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}
/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero__devices {
    width: clamp(300px, 30vw, 420px);

  }
}

@media (max-width: 1024px) {
  .hero__slide--amc {
    position: relative;
  }

  .hero__slide--amc::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.72) 75%,
      rgba(255, 255, 255, 0.25) 100%
    );
  }
  .about__stat strong {
    font-size: clamp(1.4rem, 5.2vw, 5rem);
  }

  .about__stat span {
    font-size: clamp(0.8rem, 2.9vw, 3rem);
  }
}

@media (max-width: 768px) {
  .hero__devices {
    width: 100%;
    right: -40%;
  }

  .hero__slide--amc::before {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.82) 95%,
      rgba(255, 255, 255, 0.75) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero__devices {
    top: 20%;
  }
}
@media (min-width: 1441px) {
.amc__cta img { transform: translate(0, 2px); }
.amc__cta:hover img { transform: translate(4px, 2px); }

}
@media (min-width: 992px) {
.amc {
  position: relative;
  background: transparent;
}

.amc::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  right: 20px;
  background: var(--navy);
  border-radius: 15px;
  z-index: 0;
}

.amc > * {
  position: relative;
  z-index: 1;
}
}
@media (max-width: 1280px) {
  .sales__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .chips { grid-template-columns: repeat(2, 240px); }
.services__head { align-items: flex-start; }
}

/* AMC banner picture: no room beside the text from here down */
@media (max-width: 1100px) {
  .hero__devices {/* display: none; */}
  .hero__slide--amc :is(.hero__title, .hero__text) { max-width: 620px; }
}

@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  /* Footer stacks: logo row on top, then the three link columns */
  .footer__grid { display: grid; grid-template-columns: auto auto minmax(0, 300px); }
  .footer__brand { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
  .deco--about { top: auto; bottom: -10vw; }

  /* Photo sits behind the text on narrower screens: soften it so text stays readable */
  .hero__bg { object-position: 72% center; }
  .hero__slide--main::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 55%, rgba(255,255,255,.25) 100%);
  }
  .glass-card { background: rgba(255, 255, 255, .5); }
}

/* Menu collapses into the ☰ button */
@media (max-width: 991px) {
  body:has(.nav.is-open) {
    overflow: hidden;
  }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; width: min(320px, 100%);
    padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 40px rgba(7, 36, 80, .18);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 16px; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(0, 82, 199, .06); }
  .amc { border-radius: 0px;}
    .btn--outline {
        background: rgba(255, 255, 255, .95);
    }
}

@media (max-width: 860px) {
  .hero__slide--main::before {
    background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.84) 45%, rgba(255,255,255,.72) 100%);
  }
  .hero__cards { grid-template-columns: 1fr; max-width: 520px; }
  .glass-card { min-height: 0; }
  .team__grid { grid-template-columns: minmax(0, 400px); justify-content: center; row-gap: 40px; }
  .team__intro { max-width: none; }
  .amc__list { grid-template-columns: 1fr; }
  .deco { display: none; }
}

@media (max-width: 640px) {
  .topbar__inner { justify-content: center; gap: 16px; min-height: 36px; }
  .topbar__item { font-size: 13px; gap: 6px; }
  .topbar__item img { width: 16px; height: 16px; }
  .header__inner { padding-top: 10px; }
  .header__logo { margin-top: 10px; }
  .nav-toggle { margin-top: 8px; }
  .hero__content { padding-top: calc(20px + var(--logo-w) * 0.5075 + 36px); }

  .hero__actions .btn { flex: 1 1 auto; }

  .services__intro { flex-basis: 100%; }
  .carousel__track { gap: 16px; }
  .svc-card { width: min(82vw, 400px); }
  .dots { margin-top: 28px; }

  .sales__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hex { width: 44px; height: 51px; right: 10px; bottom: -20px; }
  .hex b { font-size: 14px; }
  .product h3 { padding: 28px 14px 0; }
  .product p { padding: 6px 14px 0; }
  .product .link-arrow { margin: 14px 14px 18px; font-size: 14px; }

  .chips { grid-template-columns: 1fr; width: 100%; max-width: 360px; }

  .tech { padding: 0 0 20px 16px; }
  .tech::before { width: 84px; height: 108px; top: 26px; }
  .tech__card { min-height: 116px; padding: 16px 12px 16px 22px; }
  .tech__card img { width: 60px; height: 54px; }

  .form { grid-template-columns: 1fr; }
  .form__submit { width: 100%; justify-self: stretch; }
  .btn-call { flex: 1 1 auto; justify-content: center; }
  .btn-wa { flex: 1 1 auto; justify-content: center; }
  .contact__actions { margin-top: 24px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__col--visit { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .sales__grid { grid-template-columns: 1fr; }
}

/* Smallest phones: keep the phone number and email on one line */
@media (max-width: 360px) {
  .topbar__inner { gap: 10px; }
  .topbar__item { font-size: 12px; gap: 4px; }
  .topbar__item img { width: 14px; height: 14px; }
}

/* =========================================================
   Section intro animations
   Elements marked [data-reveal] in index.html start hidden (only when
   JS runs). script.js adds .is-visible as each one scrolls into view,
   staggered by --d within its section, then removes data-reveal.
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}

/* Eyebrow: slides in from the left while its blue marker grows */
.js .eyebrow[data-reveal] { transform: translateX(-24px); }
.js .eyebrow[data-reveal].is-visible { transform: none; }
.js .eyebrow[data-reveal]::before { transform: scaleY(0); }
.js .eyebrow[data-reveal].is-visible::before {
  transform: none;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0ms) + 250ms);
}

/* Headings: soft blur-in on top of the rise */
.js :is(.h2, .hero__title, .contact__title)[data-reveal] { filter: blur(6px); }
.js :is(.h2, .hero__title, .contact__title)[data-reveal].is-visible { filter: none; transition-property: opacity, transform, filter; }

/* Hero cards and small items pop up a little */
.js :is(.glass-card, .chips li, .about__features li)[data-reveal] { transform: translateY(20px) scale(.97); }
.js :is(.glass-card, .chips li, .about__features li)[data-reveal].is-visible { transform: none; }

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


