/* Minhas Global — Impex9 visual layout, client content */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --blue: #0388e0;
  --blue-dark: #046bd2;
  --blue-cta: #168cc5;
  --blue-deep: #0100be;
  --green: #169a43;
  --green-hover: #5bb23f;
  --black: #000;
  --white: #fff;
  --text: #000;
  --muted: #5c5656;
  --gray: #524e4e;
  --border: #c6c6c6;
  --card-bg: #ffffffba;
  --testimonial-bg: #f7f9fc;
  --section-soft: #e7ecff;
  --shadow: 0 0 10px rgba(0, 0, 0, 0.44);
  --card-shadow: 2px 0 10px 1px rgba(0, 0, 0, 0.5);
  --container: 1200px;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.footer-brand .logo-img {
  height: 72px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, #046bd2, #0388e0);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.logo-text span {
  font-size: 11px;
  color: #7a7a7a;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--black);
  margin-inline: auto;
  transition: 0.2s;
}

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

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  /* color: #7a7a7a; */
  transition: color 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li.current > a,
.main-nav > li:hover > a {
  color: var(--green);
}

.main-nav > li.current > a {
  color: var(--green);
  position: relative;
}

.main-nav > li.current > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.main-nav > li.current > a.header-cta::after {
  display: none;
}

.main-nav > li > a .chevron {
  font-size: 10px;
  line-height: 1;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e8eef4;
}

.dropdown::-webkit-scrollbar {
  width: 5px;
}
.dropdown::-webkit-scrollbar-track {
  background: #e8eef4;
  border-radius: 0 4px 4px 0;
}
.dropdown::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 4px;
}

.main-nav > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Mega-dropdown (Sectors) ─────────────────────────────── */
/* Anchor to .header-inner so the wide panel never clips off-screen */
.main-nav > li:has(> .mega-dropdown) {
  position: static;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  transform: translateY(10px);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 20px;
  width: auto;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  overflow-x: hidden;
}
.main-nav > li:hover > .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-col {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e8eef4;
}
.mega-col::-webkit-scrollbar { width: 5px; }
.mega-col::-webkit-scrollbar-track { background: #e8eef4; border-radius: 3px; }
.mega-col::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
.mega-col-heading {
  display: block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.mega-col-heading:hover,
.mega-col-heading.active { color: var(--green); }
.mega-col-heading.active {
  border-bottom-color: var(--green);
}
.mega-col a:not(.mega-col-heading) {
  display: block;
  font-size: 13px;
  color: #54595f;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, padding 0.15s;
  border-radius: 3px;
}
.mega-col a:not(.mega-col-heading):hover { color: var(--blue); }
.mega-col a:not(.mega-col-heading).active {
  color: var(--green);
  font-weight: 700;
  background: #eef7f0;
  padding-left: 8px;
  padding-right: 8px;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #54595f;
  transition: 0.15s;
}

.dropdown a:hover {
  color: var(--green);
  background: #f5f8fa;
}

.dropdown a.active,
.dropdown li.active > a {
  color: var(--green);
  background: #eef7f0;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
  transition: 0.25s;
}

.btn:hover {
  background: var(--black);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  color: var(--white);
}

.btn-black {
  background: var(--black);
}

.btn-black:hover {
  background: var(--green-hover);
}

.btn-sm {
  font-size: 16px;
  padding: 12px 22px;
}

.header-cta {
  margin-left: 8px;
  padding: 12px 22px;
  font-size: 15px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  padding: 80px 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: capitalize;
  color: #fafafa;
  margin-bottom: 30px;
  max-width: 980px;
}

.hero-accent {
  background: #e2e2e2;
  color: var(--blue-deep);
  padding: 0 10px;
  border-radius: 10px;
}

.hero-divider {
  width: 59px;
  height: 4px;
  background: var(--white);
  margin-bottom: 30px;
}

.hero p {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 32px;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  padding: 60px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

.about-images {
  position: relative;
  min-height: 420px;
}

.about-img-main {
  width: 78%;
  border-radius: 235px;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 92%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-title .typed-word {
  color: var(--blue-dark);
}

.about-copy p {
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--black);
}

.about-copy .btn {
  margin-top: 16px;
}

/* ========== SERVICES / PRODUCTS ========== */
.services-section {
  padding: 60px 20px;
}

.services-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* ---- Product Slider ---- */
.product-slider-wrapper {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.product-slider-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.product-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;  /* all cards same height */
  padding: 10px;
}

.slider-card {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(3, 136, 224, 0.35);
}

.slider-btn:hover {
  background: var(--black);
  transform: scale(1.1);
}

.slider-btn-prev { margin-right: 14px; }
.slider-btn-next { margin-left: 14px; }

.slider-btn:disabled {
  background: #ccc;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* ---- Regular services grid (Our Services section) ---- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 30px;
  max-width: var(--container);
  margin-inline: auto;
}

.service-card {
  width: calc(23% - 23px);
  background: transparent;
}

.service-card.wide {
  width: calc(32% - 14px);
}

.service-media {
  border-radius: 10px;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.35s;
}

.service-card:hover .service-media img {
  transform: scale(1.1);
}

.service-body {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  margin-top: -20px;
  position: relative;
  z-index: 1;
  padding: 24px 20px 22px;
  border-radius: 0 0 6px 6px;
}

/* Slider cards: body fills remaining height, button pinned to bottom */
.slider-card .service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slider-card .service-body p {
  flex: 1;
}

.slider-card .service-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 12px;
}

.service-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-body .btn {
  font-size: 16px;
  padding: 10px 18px;
}

/* ========== PARTNERS ========== */
.partners-section {
  padding: 60px 20px;
}

.partners-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 40px;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0.15);
  border-radius: 10px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========== CTA BANNER ========== */
.cta-wrap {
  position: relative;
  z-index: 9;
  margin-bottom: -98px;
  padding: 0 20px;
}

.cta-banner {
  max-width: var(--container);
  margin-inline: auto;
  background: var(--blue-cta);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 23vh;
  position: relative;
  overflow: visible;
}

.cta-text {
  flex: 1;
  max-width: 52%;
  color: var(--white);
  z-index: 2;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-text p {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 18px;
}

.cta-image {
  position: absolute;
  right: 103px;
  top: -10px;
  width: 50%;
  max-width: 300px;
  pointer-events: none;
}

.cta-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  animation: shapeMove 4s linear infinite;
}

@keyframes shapeMove {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
  position: relative;
  padding: 180px 20px 60px;
  background-color: var(--section-soft);
  background-image: url("../images/testimonial-bg-3-2.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(231, 236, 255, 0.5);
  pointer-events: none;
}

.testimonials-section > * {
  position: relative;
  z-index: 1;
}

.testimonials-section .section-title {
  text-align: center;
}

.testimonials-intro {
  text-align: center;
  max-width: 70%;
  margin: 0 auto 40px;
  color: var(--black);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin-inline: auto;
}

/* When testimonials-grid is replaced by slider wrapper, centre it */
.testimonials-section .product-slider-wrapper {
  max-width: var(--container);
}

.testimonial-card {
  background: var(--testimonial-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  padding: 28px 24px;
}

/* Testimonial slider — equal height, author pinned to bottom */
.testimonial-card.slider-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card.slider-card p {
  flex: 1;
}

.testimonial-card.slider-card .testimonial-author {
  margin-top: auto;
}

.stars {
  color: #fec42d;
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid #bbbbbb;
  object-fit: cover;
}

.testimonial-author h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--black);
}

.testimonial-author span {
  font-size: 16px;
  color: var(--gray);
}

/* ========== CONTACT FORM SECTION ========== */
.contact-section {
  padding: 60px 20px;
  background: #f8fafc;
}

.contact-section .section-title {
  text-align: center;
  margin-bottom: 36px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  max-width: var(--container);
  margin-inline: auto;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}

.info-block p,
.info-block a {
  color: #54595f;
  font-size: 15px;
}

.info-block a:hover {
  color: var(--blue);
}

.iso-note {
  font-size: 14px;
  color: #54595f;
  line-height: 1.7;
  margin-top: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0b1c2c;
  color: #d0d5dd;
  padding: 60px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text strong {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: #94a3b8;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #b8c0cc;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 18px;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #b8c0cc;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #9aa3af;
  max-width: var(--container);
  margin-inline: auto;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scroll-top.show {
  display: flex;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, #0b1c2c 0%, #168cc5 100%);
  color: var(--white);
  padding: 100px 20px 70px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  max-width: 700px;
  margin-inline: auto;
  opacity: 0.95;
}

.page-content {
  padding: 60px 20px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 40px auto;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #e5eaf2;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--container);
  margin: 40px auto 0;
}

.why-card {
  padding: 28px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.why-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 12px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 40px auto 0;
}

.expertise-card {
  padding: 24px;
  background: #f7f9fc;
  border-radius: 10px;
}

.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
}

.detail-list {
  margin-top: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }

  .slider-card {
    /* width set by JS */
  }

  .service-card,
  .service-card.wide {
    width: calc(48% - 15px);
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-image {
    right: 20px;
    max-width: 220px;
  }

  .stats-row,
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 300;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > li > a {
    padding: 14px 8px;
    border-bottom: 1px solid #eee;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 12px;
    max-height: none;
    overflow: visible;
  }

  .main-nav > li.open > .dropdown {
    display: block;
  }

  /* mega-dropdown mobile */
  .mega-dropdown {
    position: static;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px 12px;
    grid-template-columns: 1fr;
    gap: 16px 0;
    opacity: 1;
    visibility: visible;
    display: none;
    max-height: none;
    overflow: visible;
  }
  .main-nav > li.open > .mega-dropdown {
    display: grid;
  }
  .mega-col {
    margin-bottom: 4px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .mega-col-heading {
    font-size: 11px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    position: static;
  }
  .mega-col a:not(.mega-col-heading) { padding: 4px 0; }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .hero-accent {
    padding: 4px 8px;
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    min-height: 320px;
  }

  .section-title {
    font-size: 30px;
  }

  .slider-card {
    /* width set by JS */
  }

  .service-card,
  .service-card.wide {
    width: 100%;
  }

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

  .cta-text {
    max-width: 100%;
  }

  .cta-image {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 200px;
    align-self: flex-end;
  }

  .cta-image img {
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }

  .cta-wrap {
    margin-bottom: -40px;
  }

  .testimonials-section {
    padding-top: 100px;
    background-size: cover;
  }

  .testimonials-intro {
    max-width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-row,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 32px;
  }
}

/* ── Why Choose (detail page) ──────────────────────────── */
.why-choose-section {
  padding: 72px 0;
  background: var(--bg);
}
.why-choose-section .section-title {
  text-align: center;
  margin-bottom: 48px;
}
.why-choose-section .section-title span {
  color: var(--blue);
}
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.why-choose-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.why-choose-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.why-choose-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 14px;
}
.why-choose-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.why-choose-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 600px) {
  .why-choose-grid { grid-template-columns: 1fr; }
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.25s;
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
/* Make product images look clickable */
.service-media {
  cursor: zoom-in;
}
.service-media img {
  transition: transform 0.2s, opacity 0.2s;
}
.service-media img:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ========== SITE SEARCH ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  position: relative;
  flex: 0 1 260px;
  max-width: 280px;
  margin-left: 8px;
  z-index: 1100;
}

.site-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  border-radius: 8px;
}

.site-search-toggle:hover {
  color: var(--green);
  background: #f3f7f4;
}

.site-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.site-search-input {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #f8fafb;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.site-search-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(3, 136, 224, 0.15);
}

.site-search-input::placeholder {
  color: #8a8a8a;
  font-weight: 400;
}

.site-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #e8e8e8;
  color: #555;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.site-search-clear:hover {
  background: #d4d4d4;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 340px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  z-index: 1200;
}

.site-search-empty {
  padding: 18px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.site-search-list {
  margin: 0;
  padding: 6px;
}

.site-search-hit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 8px;
  transition: background 0.12s;
}

.site-search-hit:hover,
.site-search-hit.is-active {
  background: #f0f6fb;
}

.site-search-hit-badge {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #e8f3fc;
  white-space: nowrap;
}

.site-search-hit-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-search-hit-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.site-search-hit-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-search-hit-meta {
  font-size: 11px;
  color: #8a8a8a;
  margin-top: 2px;
}

.site-search-hit mark {
  background: #d8f0e0;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

@media (max-width: 991px) {
  .site-search {
    flex: 0 0 auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .site-search-toggle {
    display: flex;
  }

  .site-search-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(92vw, 360px);
    padding: 10px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    border: 1px solid #e2e6ea;
  }

  .site-search.is-open .site-search-box {
    display: flex;
    flex-wrap: wrap;
  }

  .site-search-input {
    flex: 1 1 auto;
  }

  .site-search-results {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    max-height: min(55vh, 360px);
    box-shadow: none;
    border: 1px solid #eef1f4;
  }
}

@media (max-width: 767px) {
  .site-search {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    order: 3;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .main-nav {
    order: 4;
  }
}
