/* ============================================================
   Asaz Enterprise — site styles
   Design system: white + grey surfaces, single green accent.
   Green tokens pulled from the logo (#009030 brand, #007826 interactive).
   Typeface: Lato — Thin (100) for display, Light (300) for body.
   Fonts are self-hosted (assets/fonts/*.woff2) because the managed host
   blocks external fonts via CSP.
   ============================================================ */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/lato-latin-100.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-400.woff2") format("woff2");
}

:root {
  /* Brand green (from logo) */
  --green: #009030;
  --green-deep: #007826;      /* interactive text/buttons, AA on white */
  --green-hover: #00631f;
  --green-soft: #eaf5ee;      /* light green tint */
  --green-soft-2: #def0e5;

  /* Neutrals — white + grey */
  --white: #ffffff;
  --grey-50: #f7f8f9;
  --grey-100: #f0f2f3;
  --grey-200: #e4e7e9;
  --grey-300: #d3d7da;
  --grey-400: #78828a;
  --grey-500: #555e63;
  --ink: #1b2124;             /* near-black, not pure */
  --ink-soft: #2f383d;

  --line: #e4e7e9;

  --radius-card: 14px;
  --radius-input: 10px;

  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 92px;
  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(27, 33, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 33, 36, 0.08);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green-hover); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding: 96px 0; }
.section--grey { background: var(--grey-50); }
.section--tint { background: var(--green-soft); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey-500);
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;          /* buttons are pill */
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .12s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--green-deep);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-hover); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-300);
}
.btn--outline:hover { border-color: var(--green-deep); color: var(--green-deep); }

.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover { background: var(--green-soft); color: var(--green-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: inline-flex; align-items: center; }
.brand img { height: 62px; width: auto; }

.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--green-deep); background: var(--green-soft); }

.nav-link[aria-current="page"] { color: var(--green-deep); }

.nav-cta {
  background: var(--green-deep);
  color: var(--white);
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-hover); color: var(--white); }

.nav-cta[aria-current="page"] { color: var(--white); }

.nav-dropdown { position: relative; }

.nav-dropdown .chev { transition: transform .18s ease; }
.nav-dropdown:hover .chev,
.nav-dropdown.is-open .chev { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 110;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 10px;
  transition: background-color .14s ease, color .14s ease;
}
.dropdown-menu a:hover { background: var(--green-soft); color: var(--green-deep); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: block;
  background: var(--white);
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 24px;
  transition: max-height .4s cubic-bezier(.16,1,.3,1),
              opacity .3s ease, padding .4s ease;
}
.mobile-menu.is-open {
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  opacity: 1;
  padding: 12px 24px 24px;
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--grey-100);
}
.mobile-menu a:hover { color: var(--green-deep); }

.mobile-sub { padding-left: 16px; }
.mobile-sub a { font-size: 15px; font-weight: 400; color: var(--grey-500); }

/* ---------- Hero slider (home) ---------- */
.hero { position: relative; overflow: hidden; }

.slider { position: relative; height: calc(100svh - var(--header-h)); min-height: 560px; }

.slides { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  background: var(--white);
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 22px;
}

.slide__title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 100;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.45);
}
.slide__text .btn { margin-top: 30px; }

.slide__desc {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey-500);
  margin: 22px 0 32px;
}

.slide__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--green-soft);
  position: relative;
  overflow: hidden;
}
.slide__visual svg { width: 44%; height: 44%; color: var(--green); }

/* slider controls */
.slider__nav {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider__dots { display: flex; gap: 8px; }

.slider__dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--grey-300);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.slider__dot.is-active { background: var(--green-deep); transform: scale(1.25); }

.slider__arrows { display: flex; gap: 10px; }

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.arrow-btn:hover { border-color: var(--green-deep); color: var(--green-deep); background: var(--green-soft); }
.arrow-btn svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--grey-300); }

.category-card { display: flex; flex-direction: column; gap: 14px; }

.category-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.category-card .icon svg { width: 24px; height: 24px; }

.category-card h3 { font-size: 19px; }
.category-card p { font-size: 15px; color: var(--grey-500); }

.card-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { width: 16px; height: 16px; transition: transform .16s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Company ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.mv-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-card);
  padding: 32px;
}
.mv-panel h3 { font-size: 21px; margin-bottom: 12px; }
.mv-panel p { font-size: 16px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }

.carousel__viewport {
  overflow: hidden;
  margin: 0 8px;
}

.carousel__track {
  display: flex;
  gap: 18px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 22px 0;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  flex: 0 0 auto;
  width: 190px;
  height: 110px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  transition: transform .32s ease, border-color .18s ease, box-shadow .18s ease;
}
.carousel__item:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.carousel__item.is-active {
  transform: scale(1.16);
  border-color: var(--green);
  box-shadow: 0 12px 30px rgba(0,120,38,.18);
  z-index: 1;
}
.carousel__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.carousel__arrow--prev { left: -14px; }
.carousel__arrow--next { right: -14px; }

/* ---------- Products ---------- */
.products-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.products-subnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.products-subnav__list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  transition: all .15s ease;
}
.products-subnav__list a:hover {
  color: var(--green-deep);
  border-color: var(--green);
  background: var(--green-soft);
}

.product-section { padding: 88px 0; border-top: 1px solid var(--line); }
.product-section:first-of-type { border-top: 0; }

.product-section__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
.product-section__head .icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-section__head .icon svg { width: 26px; height: 26px; }
.product-section__head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.product-section__head p { margin-top: 8px; color: var(--grey-500); }

.sub-product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}
.sub-product h4 { font-size: 18px; margin-bottom: 10px; }
.sub-product p { font-size: 15px; color: var(--grey-500); }

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--grey-500);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--green);
}

/* ---------- Services ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 26px 28px 26px 92px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.step + .step { margin-top: 18px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px; top: 26px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 400;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--grey-500); }

/* ---------- Solutions ---------- */
.solution-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.solution-panel h3 { font-size: 22px; }
.solution-panel p { color: var(--grey-500); flex: 1; }

/* ---------- Contact ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
}
.contact-card .icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card a, .contact-card p { font-size: 15px; color: var(--grey-500); word-break: break-word; }
.contact-card a:hover { color: var(--green-deep); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--grey-50);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.01em; font-weight: 100; }
.page-hero p { max-width: 62ch; font-size: 18px; color: var(--grey-500); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grey-50);
  border-top: 1px solid var(--line);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 15px; color: var(--grey-500); }
.footer-col a:hover { color: var(--green-deep); }

.footer-about p { font-size: 15px; color: var(--grey-500); margin-bottom: 16px; }
.footer-about .brand img { height: 44px; width: auto; margin-bottom: 16px; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-bottom img { height: 56px; width: auto; }
.footer-bottom p { font-size: 14px; color: var(--grey-400); }

/* ---------- Reveal-on-scroll (lazy load) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger helper */
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .slide__inner { grid-template-columns: 1fr; gap: 32px; }
  .slide__visual { max-width: 360px; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }

  .split, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .carousel__item { width: 150px; height: 96px; }
  .carousel__arrow--prev { left: -6px; }
  .carousel__arrow--next { right: -6px; }

  .product-section { padding: 64px 0; }
  .product-section__head { flex-direction: column; gap: 12px; }

  .step { padding: 22px 22px 22px 78px; }
  .step::before { left: 20px; top: 22px; width: 40px; height: 40px; font-size: 14px; }

  .slide__title { font-size: clamp(30px, 9vw, 44px); }
  .slide__desc { font-size: 16px; }
  .slider { min-height: 500px; }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .slider__nav { bottom: 20px; }
  .arrow-btn { width: 40px; height: 40px; }
}

/* ---------- Hero with background image ---------- */
.image-banner {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.page-hero--image {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 104px 0;
}
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,32,17,0.60), rgba(7,32,17,0.76));
}
.page-hero--image .container { position: relative; z-index: 1; }
.page-hero--image h1 { color: var(--white); font-weight: 100; }
.page-hero--image p { color: rgba(255,255,255,0.88); }
.page-hero--image .eyebrow { color: #a7e0b9; }

/* ---------- Card with background image ---------- */
.card--image {
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ---------- Active-on-hover / active-on-scroll ---------- */
.sub-product, .step, .solution-panel {
  transition: transform .2s ease, box-shadow .2s ease,
              border-color .2s ease, background-color .2s ease;
}

.sub-product:hover, .sub-product.is-active,
.step:hover, .step.is-active,
.solution-panel:hover, .solution-panel.is-active {
  border-color: var(--green);
  background-color: var(--white);
  box-shadow: 0 10px 28px rgba(0,120,38,0.12);
  transform: translateY(-3px);
}

/* ---------- Contact form ---------- */
.form { max-width: 560px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--grey-400); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 14px; color: var(--grey-400); margin-top: 8px; }

/* ---------- Minimal footer ---------- */
.site-footer--minimal { padding: 48px 24px; }
.site-footer--minimal .footer-bottom { border-top: 0; padding: 0; gap: 14px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 95;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--green-deep); background: var(--green-soft); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Sub-product item backgrounds (per product page) ---------- */
.page-medical .sub-product { background-image: url("../bg/medical.svg"); }
.page-intercom .sub-product { background-image: url("../bg/intercom.svg"); }
.page-energy .sub-product { background-image: url("../bg/energy.svg"); }
.page-security .sub-product { background-image: url("../bg/security.svg"); }
.page-medical .sub-product,
.page-intercom .sub-product,
.page-energy .sub-product,
.page-security .sub-product {
  background-size: cover;
  background-position: center;
}

/* ---------- Hero slider with photo backgrounds ---------- */
.slide {
  background-size: cover;
  background-position: center;
}
.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,26,14,.52) 0%, rgba(8,26,14,.18) 55%, rgba(8,26,14,.02) 100%);
}
.slide__inner {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
}
.slide__text { max-width: 680px; }
.slide__tag { color: #bfe8cd; }
.slide__title { color: #ffffff; }
.slide__desc { color: rgba(255,255,255,.92); }

/* ---------- Parallax banner ---------- */
.image-banner--fixed { background-attachment: fixed; }
@media (max-width: 768px) {
  .image-banner--fixed { background-attachment: scroll; }
}

/* ---------- Category card with image ---------- */
.category-card { padding: 0; overflow: hidden; }
.category-card__img { width: 100%; height: 150px; object-fit: cover; display: block; }
.category-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Sub-product card with image ---------- */
.sub-product { padding: 0; overflow: hidden; }
.sub-product__img { width: 100%; height: 190px; object-fit: cover; display: block; }
.sub-product__body { padding: 24px 26px; }
.sub-product--text { padding: 26px 28px; }

/* ---------- Services steps darken on hover/scroll ---------- */
.step:hover, .step.is-active {
  background-color: #0c2a16;
  border-color: #0c2a16;
  box-shadow: 0 12px 30px rgba(0,60,20,.25);
}
.step:hover h3, .step.is-active h3 { color: #ffffff; }
.step:hover p, .step.is-active p { color: rgba(255,255,255,.85); }
.step:hover::before, .step.is-active::before { background: var(--green); color: #ffffff; }

/* ---------- Product image zoom on hover / scroll-active ---------- */
.sub-product__img { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.sub-product:hover .sub-product__img,
.sub-product.is-active .sub-product__img { transform: scale(1.07); }
.category-card__img { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.category-card:hover .category-card__img,
.category-card.is-active .category-card__img { transform: scale(1.07); }

/* ---------- Footer copyright (darker) ---------- */
.site-footer--minimal .footer-bottom p {
  color: var(--ink);
  font-size: 14px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .brand img { height: 48px; }
}

/* ---------- Mission / Vision panels darken on hover or scroll ---------- */
.mv-panel { transition: background-color .3s ease, border-color .3s ease; }
.mv-panel h3, .mv-panel p { transition: color .3s ease; }
.mv-panel:hover, .mv-panel.is-active {
  background-color: #0c2a16;
  border-color: #0c2a16;
  border-left-color: var(--green);
}
.mv-panel:hover h3, .mv-panel.is-active h3 { color: #ffffff; }
.mv-panel:hover p, .mv-panel.is-active p { color: rgba(255,255,255,.85); }

/* ---------- Mobile Products sub-menu toggle ---------- */
.mobile-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--grey-100);
}
.mobile-sub-row > a { flex: 1 1 auto; border-bottom: 0; }
.mobile-sub-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-sub-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.mobile-sub-toggle.is-open svg { transform: rotate(180deg); }

/* ---------- Home slider: title + subtitle near the bottom ---------- */
.slide { align-items: flex-end; }
.slide__inner { padding-bottom: 82px; }
.slide__subtitle {
  margin-top: 12px;
  max-width: 48ch;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.45);
}
@media (max-width: 768px) { .slide__inner { padding-bottom: 76px; } }

/* ---------- Solutions panels highlight on hover / scroll (like Services) ---------- */
.solution-panel { position: relative; overflow: hidden; }
.solution-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12,42,22,.92);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.solution-panel > * { position: relative; z-index: 1; }
.solution-panel:hover::before,
.solution-panel.is-active::before { opacity: 1; }
.solution-panel:hover, .solution-panel.is-active {
  background-color: #0c2a16;
  border-color: #0c2a16;
  box-shadow: 0 12px 30px rgba(0,60,20,.25);
}
.solution-panel:hover h3, .solution-panel.is-active h3 { color: #ffffff; }
.solution-panel:hover p, .solution-panel.is-active p { color: rgba(255,255,255,.85); }