/* ==========================================================
   Hill Top Industrial Services — main stylesheet
   Brand: charcoal #202124 + red #CE2128 (from logo)
   ========================================================== */

:root {
  --red: #ce2128;
  --red-dark: #a9181e;
  --ink: #202124;
  --ink-2: #2a2b2f;
  --ink-3: #35363b;
  --text: #4a4d55;
  --muted: #7a7e87;
  --light: #f5f5f6;
  --line: #e6e6e9;
  --white: #ffffff;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 50px -20px rgba(32, 33, 36, .25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
section[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg use { pointer-events: none; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; }

/* Decorative vertical grid lines (reference design motif) */
.grid-lines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  display: flex; justify-content: space-evenly;
  max-width: var(--container); margin-inline: auto;
}
.grid-lines span { width: 1px; background: rgba(32, 33, 36, .05); }

/* Logo-inspired slanted bars */
.slash {
  display: inline-block; position: relative; width: 22px; height: 14px; margin-right: 12px; vertical-align: -1px;
}
.slash::before, .slash::after {
  content: ""; position: absolute; top: 0; width: 6px; height: 100%;
  background: var(--red); transform: skewX(-20deg);
}
.slash::before { left: 2px; }
.slash::after { left: 12px; }
.slash--light::before, .slash--light::after { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1; position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.label {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.label::after { content: ""; width: 48px; height: 2px; background: var(--red); }
.label__num { color: var(--red); font-weight: 700; }
.section-title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink); font-weight: 600; }

.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px 60px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .section-title { margin-bottom: 0; }
.section-head__text { margin: 0; max-width: 480px; }
.section-head--light .section-title { color: #fff; }
.section-head--light .section-head__text { color: rgba(255, 255, 255, .7); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .35s var(--ease); }
.topbar { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 42px; }
.topbar__tag { margin: 0; }
.topbar__contact { display: flex; gap: 26px; }
.topbar__contact li, .topbar__contact a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact .ico { color: var(--red); }
.topbar__contact a:hover { color: #fff; }

.navbar { background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.brand img { width: 170px; height: auto; transition: width .3s var(--ease); }

.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink);
  position: relative; padding-block: 8px;
}
.nav-menu > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-menu > li > a:not(.btn):hover, .nav-menu a.is-active { color: var(--red); }
.nav-menu > li > a:not(.btn):hover::after, .nav-menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-menu__cta { display: none; }
.navbar__cta { padding: 13px 22px; font-size: 14px; }

.site-header.is-scrolled .navbar { box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .2); }
.site-header.is-scrolled .navbar__inner { height: 70px; }
.site-header.is-scrolled .brand img { width: 150px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; background: var(--ink); border: 0; border-radius: var(--radius);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.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); }

/* ==========================================================
   HERO SLIDER
   ========================================================== */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 700px; max-height: 1000px;
}
.hero__slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: calc(var(--header-h) + 42px) 0 120px;
  opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transition: transform 7s linear;
}
.slide.is-active .slide__bg { transform: scale(1); }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(32, 33, 36, .92) 0%, rgba(32, 33, 36, .7) 45%, rgba(32, 33, 36, .25) 100%),
    linear-gradient(0deg, rgba(32, 33, 36, .6) 0%, transparent 35%);
}
/* Red slanted bars echoing the logo mark */
.slide::after {
  content: ""; position: absolute; z-index: 1; right: 7%; top: -10%; width: 120px; height: 120%;
  background: linear-gradient(90deg, var(--red) 0 38%, transparent 38% 62%, var(--red) 62% 100%);
  transform: skewX(-20deg); opacity: .14;
}
.slide__content { position: relative; z-index: 2; }
.slide__title {
  color: #fff; font-size: clamp(34px, 5.2vw, 76px); font-weight: 800; line-height: 1.04;
  max-width: 15ch; margin-bottom: 24px;
}
.slide__title em { font-style: normal; color: var(--red); }
.slide__text { font-size: clamp(16px, 1.5vw, 19px); max-width: 560px; color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* staggered entrance */
.slide .eyebrow, .slide__title, .slide__text, .slide__actions {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.slide.is-active .eyebrow { opacity: 1; transform: none; transition-delay: .35s; }
.slide.is-active .slide__title { opacity: 1; transform: none; transition-delay: .5s; }
.slide.is-active .slide__text { opacity: 1; transform: none; transition-delay: .65s; }
.slide.is-active .slide__actions { opacity: 1; transform: none; transition-delay: .8s; }

.hero__controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero__counter { font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.hero__current { font-size: 30px; color: #fff; }
.hero__sep { width: 50px; height: 1px; background: rgba(255, 255, 255, .4); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); transform: skewX(-20deg); transition: background .3s, width .3s var(--ease); }
.hero__dot[aria-selected="true"] { background: var(--red); width: 56px; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 22px;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius);
  transition: background .3s, border-color .3s;
}
.hero__arrow:hover { background: var(--red); border-color: var(--red); }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3; background: rgba(255, 255, 255, .1); }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--red); }
.hero__progress span.is-running { animation: heroProgress var(--slide-time, 6500ms) linear forwards; }
.hero:hover .hero__progress span.is-running { animation-play-state: paused; }
@keyframes heroProgress { to { width: 100%; } }

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px);
  text-transform: uppercase; letter-spacing: .04em; padding-inline: 34px; display: inline-flex; align-items: center; gap: 68px; white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 10px; height: 26px; background: #fff; transform: skewX(-20deg); margin-right: -34px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   ABOUT
   ========================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 0 70px 70px 0; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 5; position: relative; }
.about__img--main::before {
  content: ""; position: absolute; left: -22px; top: 40px; bottom: 40px; width: 8px; background: var(--red); transform: skewY(-20deg);
}
.about__img--sub {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 10px solid #fff; box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; left: 24px; bottom: 24px; background: var(--ink); color: #fff; padding: 22px 26px; max-width: 210px;
  display: flex; align-items: center; gap: 14px;
}
.about__badge strong { font-family: var(--font-head); font-size: 52px; line-height: 1; color: var(--red); }
.about__badge span { font-size: 14px; line-height: 1.4; font-weight: 600; }
.about__quote {
  margin: 30px 0 34px; padding: 22px 26px; background: var(--light); border-left: 4px solid var(--red);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink); text-transform: uppercase;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services { background: var(--light); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; display: flex; flex-direction: column; position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.08); }
.service-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(32, 33, 36, .45), transparent 60%); }
.service-card__body { padding: 44px 30px 30px; position: relative; flex: 1; display: flex; flex-direction: column; }
.service-card__num {
  position: absolute; right: 26px; top: 20px; font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #d8d8dc;
}
.service-card__icon {
  position: absolute; top: -34px; left: 30px; width: 68px; height: 68px; display: grid; place-items: center;
  background: var(--red); color: #fff; transition: background .35s var(--ease);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.service-card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-card__icon { background: var(--ink); }
.service-card h3 { font-size: 24px; margin-bottom: 10px; }
.service-card p { font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags li { font-size: 12.5px; font-weight: 600; padding: 5px 12px; background: var(--light); color: var(--ink); border-radius: 30px; }
.service-card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; color: var(--ink);
  border-bottom: 2px solid var(--red); padding-bottom: 4px;
}
.service-card__link:hover { color: var(--red); }
.service-card__link .ico { transition: transform .3s var(--ease); }
.service-card__link:hover .ico { transform: translate(3px, -3px); }

/* ==========================================================
   WHY (dark)
   ========================================================== */
.why { background: var(--ink); color: rgba(255, 255, 255, .72); overflow: hidden; }
.why__bg {
  position: absolute; inset: 0; opacity: .1;
  background: url("../../images/brand/industrial-plant-bg.webp") center / cover no-repeat;
}
.why .container { position: relative; }
.why .label { color: rgba(255, 255, 255, .6); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); border-left: 1px solid rgba(255, 255, 255, .12); }
.value {
  padding: 40px 28px; border-right: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: relative; transition: background .4s var(--ease);
}
.value::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.value:hover { background: var(--ink-2); }
.value:hover::before { width: 100%; }
.value__icon { width: 46px; height: 46px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.value h3 { color: #fff; font-size: 21px; }
.value p { font-size: 15px; margin: 0; }

/* ==========================================================
   CHOOSE (checklist)
   ========================================================== */
.choose__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 30px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.checklist svg {
  width: 30px; height: 30px; padding: 7px; flex-shrink: 0; background: var(--red); color: #fff;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.choose__media { position: relative; }
.choose__media img { width: 100%; aspect-ratio: 9 / 7; object-fit: cover; }
.choose__card {
  position: absolute; left: -30px; bottom: -30px; right: 40px; background: var(--red); color: #fff; padding: 26px 30px;
  display: flex; align-items: center; gap: 10px;
}
.choose__card p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.choose__card p span { opacity: .55; margin-inline: 4px; }

/* ==========================================================
   VISION / MISSION
   ========================================================== */
.vm { background: var(--light); }
.vm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: #fff; padding: clamp(32px, 4vw, 54px); position: relative; overflow: hidden; }
.vm-card::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 110px; height: 180px;
  background: linear-gradient(90deg, var(--red) 0 38%, transparent 38% 62%, var(--red) 62%);
  transform: skewX(-20deg); opacity: .08;
}
.vm-card__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
  color: var(--red); margin-bottom: 18px;
}
.vm-card h3 { font-size: clamp(22px, 2.3vw, 30px); text-transform: uppercase; margin-bottom: 18px; }
.vm-card p { margin: 0; }
.vm-card--red { background: var(--ink); color: rgba(255, 255, 255, .75); }
.vm-card--red h3 { color: #fff; }
.vm-card--red::after { opacity: .25; }

/* ==========================================================
   CTA
   ========================================================== */
.cta { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: -60px; top: -20%; height: 140%; width: 260px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .12) 0 38%, transparent 38% 62%, rgba(0, 0, 0, .12) 62%);
  transform: skewX(-20deg);
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 60px; position: relative; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 38px); max-width: 22ch; margin-bottom: 10px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { display: grid; gap: 18px; margin-top: 30px; }
.contact__list li { display: flex; align-items: center; gap: 18px; color: var(--ink); font-weight: 700; }
.contact__list small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a:hover { color: var(--red); }
.contact__ico { width: 54px; height: 54px; display: grid; place-items: center; background: var(--light); color: var(--red); flex-shrink: 0; }
.contact__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact__form { background: var(--ink); padding: clamp(28px, 4vw, 48px); color: #fff; position: relative; }
.contact__form::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--red); }
.contact__form h3 { color: #fff; font-size: 28px; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: rgba(255, 255, 255, .7); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 15px; color: #fff;
  background: var(--ink-3); border: 1px solid transparent; border-radius: var(--radius); transition: border-color .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select { color: #fff; background-color: var(--ink-3); color-scheme: dark; }
.field select option { color: var(--ink); background: #fff; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field .is-invalid { border-color: #ff6b70; }
.form-msg { font-size: 14px; min-height: 1em; margin-bottom: 12px; }
.form-msg.is-error { color: #ff8a8e; }
.form-msg.is-ok { color: #8ee6a8; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: #17181a; color: rgba(255, 255, 255, .6); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 80px 60px; }
.footer__brand img { width: 180px; margin-bottom: 22px; }
.footer__brand p { max-width: 340px; }
.footer h2.footer__title { color: #fff; font-size: 19px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--red); transform: skewX(-20deg); }
.footer__col li { margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s var(--ease), transform .25s var(--ease); }
.footer__links a .ico { color: var(--red); font-size: 15px; transition: transform .25s var(--ease); }
.footer__links a:hover { transform: translateX(4px); }
.footer__contact { font-style: normal; }
.footer__contact p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; line-height: 1.55; }
.footer__contact .ico { color: var(--red); margin-top: 4px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-block: 22px; }
.footer__bottom p { margin: 0; }
.footer__tagline { font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 22px; border-radius: 50%;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1199px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .navbar__cta { display: none; }
}

@media (max-width: 991px) {
  :root { --header-h: 74px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }

  .navbar { backdrop-filter: none; background: #fff; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0; padding: 130px 28px 30px;
    background: #fff; box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
    transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto;
  }
  .nav-menu.is-open { transform: none; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 14px 0; font-size: 18px; }
  .nav-menu > li > a:not(.btn)::after { display: none; }
  .nav-menu__cta { display: block; border: 0 !important; margin-top: 24px; }
  .nav-menu__cta .btn { display: flex; padding: 16px; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(32, 33, 36, .5); z-index: 50; }
  .nav-toggle { position: relative; z-index: 2; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .about__grid, .choose__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 620px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .choose__media { margin: 0 0 30px 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .hero { min-height: 600px; }
  .slide::after { display: none; }
  .slide::before { background: linear-gradient(0deg, rgba(32, 33, 36, .92) 10%, rgba(32, 33, 36, .6) 100%); }
  .hero__controls { bottom: 26px; }
  .hero__counter { display: none; }
  .hero__arrow { width: 46px; height: 46px; font-size: 18px; }
  .values { grid-template-columns: 1fr 1fr; }
  .vm__grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 575px) {
  .topbar { font-size: 12.5px; }
  .topbar__contact { gap: 16px; }
  .brand img { width: 140px; }
  .site-header.is-scrolled .brand img { width: 130px; }
  .slide { padding-bottom: 90px; }
  .slide__actions .btn { padding: 13px 18px; font-size: 13px; }
  .slide__text { margin-bottom: 26px; }
  .services__grid, .values, .footer__grid { grid-template-columns: 1fr; }
  .about__media { padding: 0 30px 50px 0; }
  .about__img--main::before { display: none; }
  .about__badge { left: 12px; bottom: 12px; padding: 16px 18px; }
  .about__badge strong { font-size: 40px; }
  .choose__media { margin-left: 0; }
  .choose__card { position: static; margin-top: -2px; }
  .choose__card .slash { display: none; }
}

/* ==========================================================
   MULTI-PAGE COMPONENTS
   ========================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.topbar__tag { display: inline-flex; align-items: center; gap: 8px; }
.topbar__tag .ico { color: var(--red); }
.topbar__contact a { white-space: nowrap; }
.section--tight { padding-block: clamp(56px, 7vw, 90px) 0; }
.center-btn { text-align: center; margin-top: 54px; }

/* ---------- Dropdown submenu ---------- */
.nav-menu a { display: inline-flex; align-items: center; gap: 5px; }
.has-sub { position: relative; }
.has-sub__caret { font-size: 14px; transition: transform .3s var(--ease); }
.has-sub:hover .has-sub__caret, .has-sub:focus-within .has-sub__caret { transform: rotate(180deg); }
.sub-toggle { display: none; }
.submenu {
  position: absolute; top: calc(100% + 22px); left: -24px; min-width: 270px; z-index: 5;
  background: #fff; border-top: 3px solid var(--red); box-shadow: 0 24px 50px -18px rgba(32, 33, 36, .3); padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 25px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .submenu a { display: flex; gap: 12px; padding: 11px 24px; font-size: 15px; font-weight: 600; transition: background .25s, color .25s, padding .25s var(--ease); }
.nav-menu .submenu a .ico { color: var(--red); font-size: 17px; }
.nav-menu .submenu a:hover, .nav-menu .submenu a.is-current { background: var(--light); color: var(--red); padding-left: 30px; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: calc(126px + 34px) 0 38px; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(32, 33, 36, .94) 0%, rgba(32, 33, 36, .78) 55%, rgba(32, 33, 36, .45) 100%); }
.page-banner::after {
  content: ""; position: absolute; z-index: 1; right: 8%; top: -10%; width: 110px; height: 120%;
  background: linear-gradient(90deg, var(--red) 0 38%, transparent 38% 62%, var(--red) 62% 100%); transform: skewX(-20deg); opacity: .18;
}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner__title { color: #fff; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; max-width: 32ch; margin: 0; }
.page-banner__text { color: rgba(255, 255, 255, .8); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; margin: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; padding: 0; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 12px; color: var(--red); }
.breadcrumb li + li::before { content: ""; width: 4px; height: 12px; background: rgba(255, 255, 255, .5); transform: skewX(-20deg); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }

/* ---------- About: mini services list ---------- */
.mini-services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-services a {
  display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--light);
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.25;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.mini-services__icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; background: #fff; color: var(--red); font-size: 22px; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.mini-services__arrow { margin-left: auto; color: var(--red); transition: transform .3s var(--ease); }
.mini-services a:hover { background: var(--ink); color: #fff; }
.mini-services a:hover .mini-services__arrow { transform: translate(3px, -3px); }

/* ---------- Services page rows ---------- */
.checklist--sm { gap: 12px 22px; margin: 22px 0 30px; }
.checklist--sm li { font-size: 15px; font-weight: 600; }
.checklist--sm svg { width: 24px; height: 24px; padding: 5px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; margin-bottom: clamp(60px, 8vw, 100px); scroll-margin-top: 130px; }
.svc-row:last-child { margin-bottom: 0; }
.svc-row--rev .svc-row__media { order: 2; }
.svc-row__media { position: relative; }
.svc-row__media img { width: 100%; aspect-ratio: 9 / 6.5; object-fit: cover; }
.svc-row__num { position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; padding: 16px 22px; }
.svc-row__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }

/* ---------- Service detail ---------- */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.svc-detail__img { position: relative; margin-bottom: 60px; }
.svc-detail__img img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.svc-detail__img .service-card__icon { top: auto; bottom: -34px; left: 30px; }
.svc-detail__subtitle { font-size: clamp(21px, 2vw, 26px); margin: 38px 0 18px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-grid li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--light); border-left: 3px solid var(--red); font-weight: 700; color: var(--ink); line-height: 1.35; }
.feature-grid svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.svc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.svc-pager__link { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.25; }
.svc-pager__link small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.svc-pager__link .ico { width: 48px; height: 48px; padding: 13px; background: var(--light); transition: background .3s, color .3s; }
.svc-pager__link--next { text-align: right; }
.svc-pager__link:hover { color: var(--red); }
.svc-pager__link:hover .ico { background: var(--red); color: #fff; }

.svc-detail__aside { position: static; }
.side-box { background: var(--light); padding: 30px; margin-bottom: 24px; }
.side-box h2.side-box__title { font-size: 21px; margin-bottom: 20px; padding-bottom: 12px; position: relative; }
.side-box__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--red); transform: skewX(-20deg); }
.side-nav li + li { margin-top: 8px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; font-family: var(--font-head); font-weight: 600; color: var(--ink); transition: background .25s, color .25s; }
.side-nav a .ico { color: var(--red); transition: transform .25s var(--ease), color .25s; }
.side-nav a:hover, .side-nav a.is-current { background: var(--red); color: #fff; }
.side-nav a:hover .ico, .side-nav a.is-current .ico { color: #fff; transform: translateX(3px); }
.side-box--dark { background: var(--ink); color: rgba(255, 255, 255, .75); }
.side-box--dark h2.side-box__title { color: #fff; }
.side-box__line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; overflow-wrap: anywhere; }
.side-box__line .ico { color: var(--red); }
.side-box__line a { color: #fff; }
.side-box--dark .btn { margin-top: 12px; }

/* ---------- Contact page ---------- */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info-card { background: var(--light); padding: 34px 28px; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.info-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.info-card:hover::before { transform: scaleX(1); }
.info-card__icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 24px; margin-bottom: 22px; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.info-card h3 { font-size: 20px; margin-bottom: 8px; }
.info-card address, .info-card p { font-style: normal; margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--red); }
.map iframe { display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0; filter: grayscale(.35); }

@media (max-width: 991px) {
  .topbar__tag { display: none; }
  .page-banner { padding: calc(116px + 26px) 0 30px; }
  .nav-menu > li > a { display: flex; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .has-sub__caret { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: var(--light); border: 0; color: var(--ink); font-size: 18px; }
  .sub-toggle .ico { transition: transform .3s var(--ease); }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .submenu { position: static; grid-column: 1 / -1; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; }
  .submenu::before { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .nav-menu .submenu li { border: 0; }
  .nav-menu .submenu a { padding: 10px 12px; font-size: 15.5px; }
  .svc-row, .svc-detail { grid-template-columns: 1fr; }
  .svc-row--rev .svc-row__media { order: 0; }
  .svc-detail__aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .side-box { margin: 0; }
  .info-cards { grid-template-columns: 1fr 1fr; }
}
/* ---------- Company profile download ---------- */
.profile-dl {
  display: flex; align-items: center; gap: 26px; margin-top: 56px; padding: 32px 36px;
  background: var(--ink); color: rgba(255, 255, 255, .75); position: relative; overflow: hidden;
}
.profile-dl::after {
  content: ""; position: absolute; right: 22%; top: -20%; width: 90px; height: 140%;
  background: linear-gradient(90deg, var(--red) 0 38%, transparent 38% 62%, var(--red) 62%); transform: skewX(-20deg); opacity: .12; pointer-events: none;
}
.profile-dl__icon { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 28px; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.profile-dl__text { flex: 1; position: relative; z-index: 1; }
.profile-dl h2.profile-dl__title { color: #fff; font-size: clamp(20px, 2vw, 26px); margin-bottom: 6px; }
.profile-dl p { margin: 0; font-size: 15px; }
.profile-dl .btn { position: relative; z-index: 1; flex-shrink: 0; }
.side-box--profile .profile-dl__icon { width: 54px; height: 54px; font-size: 24px; margin-bottom: 18px; }
.side-box--profile p { font-size: 15px; }
.footer__credit { font-size: 13.5px; }
.footer__credit strong { color: #fff; font-weight: 600; }
.footer__credit a:hover strong { color: var(--red); }

@media (max-width: 767px) {
  .profile-dl { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .profile-dl .btn { width: 100%; }
}
@media (max-width: 575px) {
  .feature-grid, .info-cards, .mini-services, .svc-detail__aside { grid-template-columns: 1fr; }
  .svc-pager__link { font-size: 15px; }
  .svc-pager__link .ico { width: 40px; height: 40px; padding: 10px; }
}

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