﻿/* ===============================
   Global Styles and Variables
   =============================== */
:root {
  --primary: #0A2D4F;
  --accent: #E52421;
  --grad: linear-gradient(90deg, var(--primary), var(--accent));
  --bg: #F8F9FC;
  --text: #2D3436;
  --muted: #636E72;
  --white: #ffffff;
  --card-bg: #ffffff;
  --max-width: 1100px;
  --radius: 12px;
  --glass: rgba(255, 255, 255, 0.6);
}

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

/* ===============================
   Base Links
   Every component styles its own anchors; this base layer only
   neutralises the browser default (link-blue + underline) that used to
   leak into CMS-rendered markup, e.g. the <a> the module engine wraps
   around a whole product card (title + summary + image).
   Links inside body copy are re-styled as underlined text links in
   pages.css / contact.css.
   =============================== */
a {
  text-decoration: none;
}

/* Card modules (product / category / showcase) are rendered as one big
   <a> around image + heading + summary — treat it as a layout wrapper. */
.products-grid-cards .product-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.products-grid-cards .product-item:hover h3 {
  color: var(--accent);
}

html {
  overflow-x: hidden;
  width: 100%
}

body {
  /* Apple-style system font stack: SF Pro on Apple devices,
     PingFang SC for Chinese, Arial fallback elsewhere */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  padding-top: 70px;
  /* content offset for fixed header */
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===============================
   Header
   =============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #ddd;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 20px;
  padding-inline-end: clamp(32px, 5vw, 72px);
  /* extra right breathing space */
}

.logo img {
  height: 50px;
  width: auto
}

/* ===============================
   Nav / Menus
   =============================== */
.navbar .menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  font-weight: 500;
  color: #000;
  padding: 8px 5px;
  transition: color .2s ease, background .2s ease;
  display: block;
  white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
  color: var(--accent)
}

/* Scroll lock + overlay (when mobile menu open) */
body.nav-open {
  overflow: hidden;
  touch-action: none
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible
}

/* ===============================
   Dropdown (base)
   =============================== */
.dropdown {
  position: relative
}

.dropdown>a {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown .arrow {
  font-size: 12px;
  transition: transform .3s ease;
  display: inline-block
}

.dropdown:hover .arrow,
.dropdown.active .arrow {
  transform: rotate(180deg)
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  border-radius: 8px;
  min-width: 280px;
  max-width: 320px;
  padding: 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-items {
  display: flex;
  flex-direction: column;
  padding: 8px 0
}

.dropdown-items a {
  padding: 12px 20px;
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s ease, color .2s ease;
  white-space: normal;
  /* allow wrapping in base list items */
}

.dropdown-items a:last-child {
  border-bottom: none
}

.dropdown-items a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ===============================
   Applications dropdown 
   =============================== */
@media (min-width:769px) {
  .dropdown.apps {
    position: static
  }


  .dropdown.apps .dropdown-menu {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    padding: 14px;
    margin-top: 10px;
    min-width: clamp(560px, 55vw, 920px);
    max-width: 1000px;
    left: 50%;
    transform: translateX(-50%);
  }

  .dropdown.apps .dropdown-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px 22px;
    padding: 4px;
    align-items: start;
  }

  .dropdown.apps .dropdown-items a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    color: var(--text);
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.3;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
  }

  .dropdown.apps .dropdown-items a:hover {
    background: var(--bg);
    border-color: rgba(10, 45, 79, .18);
    color: var(--accent);
    transform: translateY(-2px);
  }
}

/* ===============================
   Products fly-out
   =============================== */
@media (min-width:769px) {
  .dropdown .dropdown-items .has-flyout {
    position: relative
  }

  /* 任何尺寸都不向左翻转：飞出面板始终锚定在菜单右侧 */
  .dropdown .dropdown-items .has-flyout.flip-left .flyout-menu {
    left: calc(100% + 12px);
    right: auto;
  }

  :root {
    --edge-pad: 16px;
  }

  .dropdown .dropdown-items .has-flyout .flyout-menu {
    max-width: min(680px, calc(100vw - (2 * var(--edge-pad))))
  }

  .dropdown .dropdown-items .has-flyout .sub-arrow {
    margin-left: 8px;
    font-size: 12px;
    opacity: .6;
    transition: transform .2s ease;
  }

  .dropdown .dropdown-items .has-flyout:hover .sub-arrow {
    transform: translateX(2px)
  }

  .dropdown .dropdown-items .has-flyout .flyout-menu {
    position: absolute;
    top: -10px;
    left: calc(100% + 12px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1200;
    overflow: auto;
    overscroll-behavior: contain;

    min-width: 320px;
    max-height: min(70vh, 520px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .dropdown .dropdown-items .has-flyout:hover .flyout-menu,
  .dropdown .dropdown-items .has-flyout:focus-within .flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown .dropdown-items .has-flyout .flyout-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    color: var(--text);
    font-weight: 500;
    line-height: 1.3;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
    white-space: normal;
    word-break: break-word;
  }

  .dropdown .dropdown-items .has-flyout .flyout-menu a:hover {
    background: var(--bg);
    border-color: rgba(10, 45, 79, .18);
    color: var(--accent);
    transform: translateY(-1px);
  }

  .dropdown .dropdown-menu {
    overflow: visible
  }
}

@media (min-width:1024px) {
  .dropdown .dropdown-items .has-flyout .flyout-menu {
    min-width: 520px;
    width: clamp(520px, 42vw, 680px);
    max-height: min(70vh, 560px);
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px 16px;
    padding: 12px;
  }
}

/* ===============================
   Products fly-out (narrow desktop)
   窄屏：飞出面板保持右侧，改为单列
   =============================== */
@media (min-width:769px) and (max-width:1200px) {
  .dropdown .dropdown-items .has-flyout .flyout-menu {
    min-width: 0;
    width: clamp(220px, 26vw, 340px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(70vh, 560px);
  }
}

/* ===============================
   Products fly-out (mobile)
   =============================== */
@media (max-width:768px) {
  .dropdown .dropdown-items .has-flyout .flyout-menu {
    position: static;
    padding: 4px 0 8px 14px;
    border: 0;
    box-shadow: none;
    border-left: 2px solid #e9ecef;
    margin-left: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .dropdown .dropdown-items .has-flyout.open .flyout-menu {
    max-height: 800px
  }

  .dropdown .dropdown-items .has-flyout .flyout-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown .dropdown-items .has-flyout.open .sub-arrow {
    transform: rotate(90deg)
  }
}

/* ===============================
   Hamburger / Mobile Nav
   =============================== */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1110;
  flex-shrink: 0;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary);
  transition: all .3s ease-in-out
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg)
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg)
}

/* Mobile nav container */
@media (max-width:768px) {
  .hamburger-menu {
    display: block
  }

  .header-container {
    height: 70px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: 15px;
    padding-inline-end: 15px;
  }

  .navbar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    z-index: 1050;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .navbar.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto
  }

  .navbar .menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
  }

  .navbar .menu>li {
    width: 100%;
    border-bottom: 1px solid #eee
  }

  .navbar .menu>li:last-child {
    border-bottom: none
  }

  .navbar a {
    padding: 15px 20px;
    width: 100%;
    white-space: normal
  }

  /* Mobile dropdown accordions */
  .dropdown {
    position: relative
  }

  .dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 1000px
  }

  .dropdown-items {
    padding: 0
  }

  .dropdown-items a {
    padding: 12px 20px 12px 40px;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    white-space: normal;
    word-wrap: break-word;
  }

  .dropdown-items a:hover {
    background: #e9ecef
  }
}

/* ===============================
   Hero
   =============================== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  /* fallback shown when no banner is configured in admin */
  background: var(--primary) url("https://media.istockphoto.com/id/1471925891/photo/rfid-tags-close-up.webp?a=1&b=1&s=612x612&w=0&k=20&c=hQ85YkiC5utpbFsWv4EdZZ0f3ryM8ygTncNyg04QIlU=") no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%
}

.hero-bg-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: no-repeat center/cover;
  opacity: 0;
  transition: opacity 1.2s ease
}

.hero-bg-item.active {
  opacity: 1
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 45, 79, .6)
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
  width: 100%
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem
}

.btn {
  background: var(--grad);
  color: var(--white);
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.05)
  }

  100% {
    transform: scale(1)
  }
}

.hero .btn:hover {
  background: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  color: var(--white);
  animation: none
}

/* ===============================
   Industry Solutions
   =============================== */
.industry-solutions {
  padding: 60px 20px;
  background: var(--white);
  width: 100%;
  overflow: hidden
}

.industry-solutions h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.solution-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow .3s ease;
  border-left: 4px solid var(--accent);
  width: 100%;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15)
}

.solution-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 15px
}

.solution-card p {
  color: var(--text);
  line-height: 1.7
}

/* ===============================
   Products Section
   =============================== */
.products {
  padding: 60px 20px;
  background: var(--bg);
  width: 100%;
  overflow: hidden
}

.products h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center
}

.section-desc {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.1rem
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.product-card {
  display: block;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  width: 100%;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary)
}

.product-card .arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all .3s ease;
  font-size: 20px;
  color: var(--accent)
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2)
}

.product-card:hover .arrow {
  opacity: 1;
  transform: translateX(5px)
}

.product-card p {
  color: var(--text)
}

/* ===============================
   Partners /
   =============================== */
.partners {
  position: relative;
  padding: 56px 20px;
  background: var(--white);
  color: var(--text);
  overflow: hidden;
}

.partners h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
}

.partners h2::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.partners .partners-desc {
  color: var(--muted);
  margin-bottom: 32px;
  text-align: center;
}

/* Logo grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.partner-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 22px 20px;
  display: grid;
  place-items: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  min-height: 96px;
}

.partner-card img {
  max-height: 44px;
  max-width: 100%;
  opacity: 1;
  filter: none;
  transition: transform .22s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.partner-card:hover img {
  transform: scale(1.03);
}

/* Badges */
.partner-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.p-badge {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.partner-card.reveal {
  transform: translateY(14px);
  opacity: 0;
}

.partner-card.reveal.visible {
  transform: none;
  opacity: 1;
}

@media (max-width: 992px) {
  .partners {
    padding: 48px 20px;
  }

  .partners-grid {
    gap: 22px;
  }

  .partner-card {
    min-height: 88px;
    padding: 18px;
  }

  .partner-card img {
    max-height: 40px;
  }
}

@media (max-width: 480px) {
  .partners {
    padding: 40px 16px;
  }

  .partners h2 {
    font-size: 1.7rem;
  }

  .partners .partners-desc {
    font-size: 1rem;
  }

  .partner-card {
    min-height: 80px;
    padding: 14px;
  }

  .partner-card img {
    max-height: 34px;
  }
}

/* ===============================
   Footer
   =============================== */
.pentapath-footer {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    overflow: hidden;
    --footer-pad: clamp(20px, 4vw, 40px);
}

.pentapath-footer .footer-wrap {
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: var(--footer-pad) 0;
}

/* Grid Layout */
.pentapath-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

/* Common Links */
.pentapath-footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pentapath-footer a:hover {
    color: var(--accent);
}

/* Column Headers */
.pentapath-footer .footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    position: relative;
    display: inline-block;
}

.pentapath-footer .footer-col h4::after {
    /* content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
    border-radius: 2px; */
}

/* --- Brand Column --- */
.pentapath-footer .footer-logo img {
    max-width: 140px;
    height: auto;
    margin-bottom: 12px;
}

.pentapath-footer .footer-brand p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 35ch;
}

.pentapath-footer .footer-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.pentapath-footer .footer-meta li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.pentapath-footer .footer-meta .icon {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
}

/* --- Social Icons --- */
.pentapath-footer .footer-social-block {
    margin-top: 22px;
}

.pentapath-footer .footer-social-block h4 {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: #fff;
}

.pentapath-footer .footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pentapath-footer .footer-social li {
    display: flex;
}

.pentapath-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--white);
    opacity: 0.85;
    transition: all 0.25s ease;
}

.pentapath-footer .footer-social a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

.pentapath-footer .footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Instagram 图标：描边风格，避免子路径被填充成实心色块 */
.pentapath-footer .footer-social svg.social-ig {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Links Lists (Products/Solutions) --- */
.pentapath-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pentapath-footer .footer-links a {
    font-size: 14px;
    opacity: 0.85;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.pentapath-footer .footer-links a:hover {
    opacity: 1;
    border-bottom-color: var(--accent);
    padding-left: 4px;
    /* Slight movement on hover */
}

/* --- CTA Column --- */
.pentapath-footer .footer-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pentapath-footer .footer-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--grad);
    /* Ensure this variable exists, or use a fallback color */
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pentapath-footer .footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.pentapath-footer .footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pentapath-footer .badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Legal Section --- */
.pentapath-footer .footer-legal {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
}

.pentapath-footer .legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .pentapath-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns */
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .pentapath-footer .footer-wrap {
        padding: 30px 20px;
        /* Add side padding for mobile */
    }

    .pentapath-footer .footer-grid {
        grid-template-columns: 1fr;
        /* 1 column */
        gap: 40px;
    }

    .pentapath-footer .footer-legal {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition:
    opacity .6s ease,
    transform .6s ease,
    filter .6s ease;
  will-change: opacity, transform, filter;
}

/* visible state */
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* direction variants (optional) */
[data-reveal="up"] {
  --rv: translateY(18px);
}

[data-reveal="down"] {
  --rv: translateY(-18px);
}

[data-reveal="left"] {
  --rv: translateX(24px);
}

[data-reveal="right"] {
  --rv: translateX(-24px);
}

[data-reveal="fade"] {
  --rv: translateY(0);
}

[data-reveal="zoom"] {
  transform: scale(.96);
}

[data-reveal="zoom"].visible {
  transform: scale(1);
}

/* use var if set */
.reveal {
  transform: var(--rv, translateY(18px));
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ===============================
   Tablet tweaks
   =============================== */
@media (max-width:992px) {

  .solutions-grid,
  .product-grid,
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .hero h1 {
    font-size: 2.3rem
  }

  .hero p {
    font-size: 1rem
  }
}

/* ===============================
   Mobile tweaks
   =============================== */
@media (max-width:480px) {
  .hero {
    height: 70vh
  }

  .hero h1 {
    font-size: 1.8rem
  }

  .hero p {
    font-size: .95rem
  }

  .btn {
    padding: 10px 20px;
    font-size: .95rem
  }

  .logo img {
    height: 40px
  }

  .solutions-grid,
  .product-grid,
  .testimonial-grid {
    grid-template-columns: 1fr
  }

  .industry-solutions,
  .products,
  .testimonials {
    padding: 40px 15px
  }

  .section-desc {
    font-size: 1rem
  }

  .product-card img {
    height: 180px
  }
}