/* ==========================================
   AquaTest Template - SebaKMT Style
   ========================================== */

/* Import Inter Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ==========================================
   CSS Variables
   ========================================== */


/* overlay */
.form-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    backdrop-filter:blur(6px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

/* modal box */
.form-modal-box{
    background:#fff;
    padding:40px;
    border-radius:18px;
    max-width:420px;
    width:90%;
    text-align:center;
    box-shadow:0 30px 80px rgba(0,0,0,0.25);
    animation:modalPop .35s ease;
}

@keyframes modalPop{
    from{
        opacity:0;
        transform:translateY(40px) scale(.95);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

/* icon */
.form-modal-icon{
    width:70px;
    height:70px;
    margin:0 auto 20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
}

/* success */
.modal-success{
    background:#e6f9f0;
    color:#10b981;
}

/* error */
.modal-error{
    background:#ffeaea;
    color:#ef4444;
}

/* title */
#formModalTitle{
    font-size:22px;
    font-weight:700;
    margin-bottom:10px;
}

/* text */
#formModalMessage{
    color:#6b7280;
    margin-bottom:25px;
    line-height:1.5;
}

/* button */
.form-modal-btn{
    background:var(--primary);
    border:none;
    color:#fff;
    padding:12px 28px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.form-modal-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}





:root {
  --primary: #36a8df;
  --primary-dark: #1c6fb8;
  --dark: #25324a;
  --dark-deep: #1a2438;
  --text: #4a5568;
  --text-light: #718096;
  --light-bg: #f7f8fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing System */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typographic Scale */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */
}

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

body {
  margin: 0;
  padding: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}
h3 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}
h4 {
  font-size: var(--font-size-2xl);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Keyboard navigation accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Header
   ========================================== */
#site-header {
  background: transparent;
  height: 90px;
  position: fixed;
  top: 38px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 1200px;
  z-index: 1000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
  /* padding: 0 32px; */
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.85); /* Slightly more opaque */
  backdrop-filter: blur(16px); /* Stronger blur */
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06); /* Softer, larger shadow */
}

/* Ensure toggle button is above the full-screen menu */
body.menu-open #site-header {
  z-index: 20001;
}

.footer-logo{
    margin-bottom: 20px;
}

/* Menu Overlay Backdrop */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998; /* Just below mobile-nav */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* On home: header text is white over the hero */
.is-home #site-header:not(.scrolled) .site-logo .logo-text {
  color: var(--white);
}

.is-home #site-header:not(.scrolled) .desktop-nav > ul > li > a,
.is-home #site-header:not(.scrolled) .desktop-nav > div > ul > li > a {
  color: rgba(255, 255, 255, 0.85);
}

.is-home #site-header:not(.scrolled) .desktop-nav > ul > li > a:hover,
.is-home #site-header:not(.scrolled) .desktop-nav > ul > li.current > a,
.is-home #site-header:not(.scrolled) .desktop-nav > ul > li.active > a,
.is-home #site-header:not(.scrolled) .desktop-nav > div > ul > li > a:hover,
.is-home #site-header:not(.scrolled) .desktop-nav > div > ul > li.current > a,
.is-home #site-header:not(.scrolled) .desktop-nav > div > ul > li.active > a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.is-home #site-header:not(.scrolled) .header-btn {
  background: var(--primary);
  color: var(--white);
}

/* On inner pages: always solid header */
body:not(.is-home) #site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 40px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo .logo-img {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

/* Default state (Inner pages & Scrolled): Show Color, Hide White */
.site-logo .logo-white {
  display: none;
}
.site-logo .logo-color {
  display: block;
}

/* Home + Transparent Header (All Devices): Show White, Hide Color */
.is-home #site-header:not(.scrolled) .site-logo .logo-white {
  display: block;
}
.is-home #site-header:not(.scrolled) .site-logo .logo-color {
  display: none;
}

/* Mobile: Show Color Logo ONLY when menu is open */
body.menu-open .site-logo .logo-white {
  display: none !important;
}
body.menu-open .site-logo .logo-color {
  display: block !important;
}

.site-logo .logo-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.site-logo .logo-text span {
  color: var(--primary);
}

/* Navigation */
.desktop-nav {
  margin-left: auto;
  display: none; /* Hidden by default */
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex !important;
    align-items: center;
  }
}

/* Base Nav (Desktop) */
.desktop-nav > ul,
.desktop-nav > div > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px; /* Slightly more gap for premium feel */
  align-items: center;
}

.desktop-nav ul li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.desktop-nav ul li a:hover,
.desktop-nav ul li.active > a,
.desktop-nav ul li.current > a {
  color: var(--primary);
  background: rgba(54, 168, 223, 0.08); /* Subtle highlight */
}

/* Desktop Dropdowns */
@media (min-width: 992px) {
  .desktop-nav ul li {
    position: relative;
  }

  .desktop-nav .nav-child {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    /* margin-top: 10px; */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    list-style: none;
    display: block !important;
  }

  .desktop-nav ul li:hover > .nav-child {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .desktop-nav .nav-child li {
    width: 100%;
  }

  .desktop-nav .nav-child li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0;
    color: var(--text) !important;
    white-space: nowrap;
  }

  .desktop-nav .nav-child li a:hover {
    background: rgba(54, 168, 223, 0.05);
    color: var(--primary) !important;
  }
}

/* Mobile Nav Drawer — Compact Multi-Level */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex !important;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav-content {
  width: 100%;
  padding: 80px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.mobile-nav > .mobile-nav-content > ul {
  flex: 1;
}

.mobile-nav ul li {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active ul li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation */
.mobile-nav.active ul li:nth-child(1) {
  transition-delay: 0.03s;
}
.mobile-nav.active ul li:nth-child(2) {
  transition-delay: 0.06s;
}
.mobile-nav.active ul li:nth-child(3) {
  transition-delay: 0.09s;
}
.mobile-nav.active ul li:nth-child(4) {
  transition-delay: 0.12s;
}
.mobile-nav.active ul li:nth-child(5) {
  transition-delay: 0.15s;
}
.mobile-nav.active ul li:nth-child(6) {
  transition-delay: 0.18s;
}
.mobile-nav.active ul li:nth-child(7) {
  transition-delay: 0.21s;
}
.mobile-nav.active ul li:nth-child(8) {
  transition-delay: 0.24s;
}
.mobile-nav.active ul li:nth-child(9) {
  transition-delay: 0.27s;
}

/* Menu items — Compact */
.mobile-nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  min-height: 44px;
}

.mobile-nav ul li a:active {
  color: var(--primary) !important;
}

.mobile-nav ul li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-nav ul li:last-child {
  border-bottom: none;
}

/* Link Wrapper */
.mobile-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Toggle Button — Compact */
.mobile-toggle-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  border-radius: 10px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle-btn:active {
  background: rgba(54, 168, 223, 0.08);
  transform: scale(0.92);
}

.mobile-toggle-btn svg {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  stroke-width: 2.5px;
}

.mobile-toggle-btn.active svg {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Submenu Level 2 — Compact indented */
.mobile-nav .nav-child {
  display: none;
  padding-left: 4px;
  padding-bottom: 4px;
  margin-top: 2px;
}

.mobile-nav li.open > .nav-child,
.mobile-nav li.open > .nav-child-level3 {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav .nav-child li {
  border-bottom: none;
  padding-left: 14px;
  border-left: 2px solid var(--primary);
  margin-bottom: 1px;
}

.mobile-nav .nav-child li a {
  font-size: 0.88rem;
  padding: 8px 0;
  font-weight: 500;
  color: var(--text) !important;
  min-height: 38px;
}

.mobile-nav .nav-child li a:active {
  color: var(--primary) !important;
}

/* Level 3 Submenu — Even more compact */
.mobile-nav .nav-child-level3 {
  display: none;
  padding-left: 10px;
  padding-bottom: 4px;
}

.mobile-nav .nav-child-level3 li {
  border-left: 1px dashed rgba(54, 168, 223, 0.3);
  padding-left: 12px;
}

.mobile-nav .nav-child-level3 li a {
  font-size: 0.82rem;
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 6px 0;
  min-height: 34px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile CTA Button — Compact */
.mobile-nav .mobile-only-action {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 12px;
}

.mobile-nav .mobile-only-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem !important;
  padding: 12px 32px !important;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(54, 168, 223, 0.25);
  font-weight: 600;
  width: 100%;
  min-height: 48px;
}

/* Bottom Contact Info — Compact */
.mobile-nav-contact {
  padding: 14px 0 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
  background: var(--light-bg);
  border-radius: 10px;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  text-decoration: none;
  min-height: 42px;
  transition: var(--transition);
}

.mobile-nav-contact a:active {
  background: rgba(54, 168, 223, 0.08);
  color: var(--primary) !important;
}

.mobile-nav-contact a svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Burger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 11000; /* Must be higher than .mobile-nav */
  margin-left: auto;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: absolute;
  left: 0;
}

/* Individual span positions */
.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 10px;
}
.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* Color adjustment for dark/light headers */
.is-home #site-header:not(.scrolled) .menu-toggle span {
  background-color: var(--white);
}

/* ALWAYS dark when active (header open is white) */
.menu-toggle.active span {
  background-color: var(--dark) !important;
}

#site-header.scrolled .menu-toggle span,
body:not(.is-home) .menu-toggle span {
  background-color: var(--dark);
}

/* Force visibility on mobile */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex !important;
    z-index: 11000; /* Highest priority */
  }
}

/* Burger Animation to X - Perfectly Centered */
.menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Mobile Menu State Cleanup */
@media (max-width: 991px) {
  .header-actions {
    display: flex !important;
    gap: 8px;
    margin-left: auto;
    margin-right: 0;
    order: 2;
  }
  .header-actions .header-btn {
    display: none;
  }
  .menu-toggle {
    order: 3;
    margin-left: 8px;
  }
}

/* Menu open — social icons go dark */
body.menu-open .header-social {
  color: var(--dark) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: transparent !important;
}
body.menu-open .header-social:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

.main-nav > ul,
.main-nav > div > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
}

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

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

.main-nav ul li a {
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  display: block;
  white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li.current > a,
.main-nav ul li.active > a {
  color: var(--primary);
  background: rgba(54, 168, 223, 0.08);
}

/* Arrow for parent items */
.main-nav ul li.deeper > a::after {
  content: " ▾";
  font-size: 11px;
  opacity: 0.5;
}

/* ==========================================
   MEGA MENU
   ========================================== */

/* Dropdown Base */
.desktop-nav .nav > li {
  position: static; /* Required for full-width mega menu */
}

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* Changed from 100vw to 100% of header */
  background: var(--white);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-top: 1px solid var(--border);
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 12px 12px; /* Add bottom radius to match header */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  padding: var(--space-xl) 0;
}

.mega-menu-wrapper::before {
  content: "";
  position: absolute;
  /* Сдвигаем слой вверх ровно на столько, 
       сколько составляет ваше расстояние (щель) */
  top: -25px;
  left: 0;
  right: 0;
  /* Высота слоя должна быть чуть больше размера щели */
  height: 30px;
  background: transparent;
  /* Убеждаемся, что слой активен для мыши */
  pointer-events: auto;
}

.desktop-nav .nav > li:hover .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(0%) translateY(0);
}

.mega-menu-inner {
  width: 100%;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mega-col {
  padding: 0;
}

/* Col Divider */
.mega-col:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding-right: 40px;
}

.mega-title {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.mega-title:hover {
  color: var(--primary);
}

.mega-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 235px;
  height: 2px;
  background: var(--primary);
}

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

.mega-col ul li {
  margin-bottom: 15px;
}

.mega-col ul li a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1.4;
}

.mega-col ul li a:hover {
  color: var(--primary) !important;
  transform: translateX(6px);
}

/* Ensure regular nested navs don't clash */
.main-nav ul li.deeper:not(:hover) > ul {
  opacity: 0;
  visibility: hidden;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px; /* Unified radius */
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.header-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(54, 168, 223, 0.35);
}

/* Social Icon Buttons (Desktop Header) */
.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--dark);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.header-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.header-social svg {
  width: 18px;
  height: 18px;
}

/* Instagram specific hover */
.header-social[aria-label="Instagram"]:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.06);
}
/* WhatsApp specific hover */
.header-social[aria-label="WhatsApp"]:hover {
  border-color: #25d366;
  color: #25d366;
  fill: #25d366;
  background: rgba(37, 211, 102, 0.06);
}
.header-social[aria-label="WhatsApp"] svg {
  fill: currentColor;
}

/* Home page transparent header — social icons white */
.is-home #site-header:not(.scrolled) .header-social {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}
.is-home #site-header:not(.scrolled) .header-social:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

/* Mobile Social Links */
.mobile-nav-social {
  display: flex;
  gap: 10px;
  padding: 15px 0 0;
  margin-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mobile-social-btn svg {
  flex-shrink: 0;
}
.mobile-social-btn[aria-label="Instagram"] {
  background: linear-gradient(
    135deg,
    rgba(225, 48, 108, 0.08),
    rgba(131, 58, 180, 0.08)
  );
  color: #e1306c;
}
.mobile-social-btn[aria-label="Instagram"]:hover {
  background: linear-gradient(
    135deg,
    rgba(225, 48, 108, 0.15),
    rgba(131, 58, 180, 0.15)
  );
}
.mobile-social-btn[aria-label="WhatsApp"] {
  background: rgba(37, 211, 102, 0.08);
  color: #25d366;
}
.mobile-social-btn[aria-label="WhatsApp"]:hover {
  background: rgba(37, 211, 102, 0.15);
}

/* ==========================================
   Hero Section
   ========================================== */
/* ==========================================
   Hero Section (Slider)
   ========================================== */
.hero-slider {
  height: 90vh;
  position: relative;
  border-radius: 16px;
  margin: 38px 46px 0;
  overflow: hidden;
  background: #000; /* Fallback */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease-in-out,
    visibility 0s linear 0.8s;
  z-index: 1;
  will-change: opacity;
  transform: translateZ(0); /* Hardware accel */
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.8s ease-in-out,
    visibility 0s;
  z-index: 2;
}

/* Ensure overlay effect (darkening) */
.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker for better contrast */
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); /* Reduced blur slightly for performance */
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 650px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translate3d(0, 0, 0); /* Fix for backdrop-filter flicker */
  will-change: transform;
}

.hero-card h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
}

.hero-card p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Slider Controls */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-prev {
  left: 30px;
}
.slider-next {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Partners Strip (Infinite Slider) */
.partners-strip {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 24px;
}

.partners-window {
  position: relative;
  overflow: hidden;
  /* Mask gradient logic moves here */
}

.partners-window::before,
.partners-window::after {
  content: "";
  position: absolute;
  top: 0;
  width: 400px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-window::before {
  left: 0;
  background: linear-gradient(to right, var(--light-bg), transparent);
}

.partners-window::after {
  right: 0;
  background: linear-gradient(to left, var(--light-bg), transparent);
}

/* Responsive adjustments for slider controls */
@media (max-width: 768px) {
  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.2); /* More contrast on mobile */
  }
  .slider-prev {
    left: 10px;
  }
  .slider-next {
    right: 10px;
  }

  .partners-window::before,
  .partners-window::after {
    width: 100px;
  }
}

.partners-track {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  animation: scrollPartners 40s linear infinite;
}

/* .partners-track:hover {
    animation-play-state: paused;
} */

.partner-item img {
  height: 120px;
  width: auto;
  object-fit: contain;
  /* filter: grayscale(100%); */
  opacity: 0.6;
  transition: var(--transition);
  max-width: 150px;
}

.partner-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px; /* Unified radius */
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(54, 168, 223, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(54, 168, 223, 0.2);
}

.highlight {
  color: var(--primary);
}

/* ==========================================
   Utility Classes
   ========================================== */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.content-block {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.content-block p {
  margin-bottom: var(--space-md);
}

.lead-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--primary);
}

.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-card img {
  display: block;
  width: 100%;
}

.intro-image-wrapper {
  position: relative;
}

.about-contact-img {
  border-radius: var(--radius-lg);
}

.hero-tag--light {
  background: rgba(54, 168, 223, 0.1);
  color: var(--primary);
  border: none;
}

.cta-banner-text {
  text-align: left;
}

/* ==========================================
   Intro Section (Two Columns)
   ========================================== */
.intro-section {
  padding: 100px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.intro-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.intro-content p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.intro-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.intro-feature-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(54, 168, 223, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 20px;
}

.intro-feature-item h4 {
  margin-bottom: 4px;
  font-size: 17px;
}

.intro-feature-item p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ==========================================
   CTA Banner (Dark Banner)
   ========================================== */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(54, 168, 223, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin-bottom: 0;
  max-width: 600px;
}

/* ==========================================
   Software Section (POSEYEDON)
   ========================================== */
.software-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.software-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.software-image img {
  display: block;
  width: 100%;
}

.software-content h2 {
  margin-bottom: 20px;
}

.software-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.sw-feature {
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sw-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sw-feature h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--dark);
}

.sw-feature p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ==========================================
   Monitoring Section (Dark BG with stats)
   ========================================== */
.monitoring-section {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.monitoring-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(54, 168, 223, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.monitoring-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}

.monitoring-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.monitoring-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   Products Section
   ========================================== */
.products-section {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.product-card .card-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .card-image {
  transform: scale(1.08);
}

.product-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
  opacity: 0.5;
}

.product-card .card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 12px;
  line-height: 1.3;
}

.product-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-card .card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.product-card .card-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.card-view-link svg {
  transition: transform 0.3s ease;
}

.card-view-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
}

.card-view-link:hover svg {
  transform: translateX(4px);
}

.card-link::after {
  content: "→";
  transition: var(--transition);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ==========================================
   SmartEAR Featured Product Section
   ========================================== */
.featured-product {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d2137 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.featured-product::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(54, 168, 223, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.featured-image img {
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.featured-content .product-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(54, 168, 223, 0.2);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.featured-content h2 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 20px;
}

.featured-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin-bottom: 30px;
}

.feature-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-badge .badge-icon {
  color: var(--primary);
  font-size: 18px;
}

.feature-badge .sw-feature h4 svg {
  color: var(--primary);
  margin-right: 12px;
}

/* Page Hero → canonical definition is in Page Hero (Mini) section below */

/* Breadcrumbs — Integrated inside .page-hero */
.hero-breadcrumbs {
  margin-bottom: 24px;
}

.hero-breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  gap: 2px;
}

.hero-breadcrumbs li {
  display: flex;
  align-items: center;
}

.hero-breadcrumbs a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-breadcrumbs a:hover {
  color: var(--white);
}

.hero-breadcrumbs a svg {
  opacity: 0.7;
}

.hero-breadcrumbs .bc-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
}

.hero-breadcrumbs .bc-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Legacy wrapper (no longer used, kept for safety) */
.breadcrumbs-wrapper {
  display: none;
}

.hero-content-full {
  /* max-width: 900px; */
  margin: 0 auto;
  text-align: left; /* Keep it left-aligned for industrial look, or user might prefer center? User said 'заголовок во всю ширину' */
}

.hero-content-full h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #ffffff !important;
}

.hero-content-full p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #cbd5e1 !important;
  max-width: 800px;
}

/* .hero-tag → canonical definition is in Page Hero (Mini) section below */

/* Catalog Sections */
.catalog-root-section {
  margin-bottom: 100px;
}

.root-header h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.catalog-sub-section h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 50px;
  margin-bottom: 30px;
}
/* background: #1e293b; removed */

.hero-content-col {
  flex: 1;
}

/* .hero-tag → see canonical definition in Page Hero (Mini) section */

.hero-content-col h1 {
  font-family: "Inter", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: none;
  text-transform: none; /* Changed from uppercase to mixed case per ref */
}

.hero-content-col p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #94a3b8; /* Slate-400 */
  margin-bottom: 32px;
  max-width: 600px;
}

/* .hero-btn → canonical definition is in Page Hero (Mini) section below */

@media (max-width: 992px) {
  .page-hero {
    padding: 130px 0px 30px;
  }
  .hero-grid {
    flex-direction: column;
    gap: 40px;
  }
  .hero-image-col {
    width: 100%;
    max-width: 500px;
    order: -1; /* Image first? or text first? Ref usually has image left on desktop. Mobile maybe image top. */
  }
  .hero-content-col h1 {
    font-size: 2.5rem;
  }
}

/* ==========================================
   Events Section
   ========================================== */
.events-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-date {
  text-align: center;
  min-width: 60px;
  padding: 12px;
  background: rgba(54, 168, 223, 0.08);
  border-radius: var(--radius);
}

.event-date .day {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.event-date .month {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.event-info h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.event-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ==========================================
   CTA Section (Bottom CTA before footer)
   ========================================== */
.cta-section {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================
   Footer
   ========================================== */
#site-footer {
  background: var(--dark-deep);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand .logo-text span {
  color: var(--primary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* .footer-social → canonical definition is in SVG Icon Support section below */

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

.footer-col .contact-item .ci-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

/* ==========================================
   Aquatest Content Blocks (PREMIUM REDESIGN)
   ========================================== */
.section-title-main {
  font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 20px;
}

.aquatest-services {
  padding: 120px 0;
  background: radial-gradient(circle at 100% 100%, #f1f5f9, #ffffff);
  position: relative;
}

.aquatest-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2336a8df' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.services-grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(54, 168, 223, 0.3);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle at top right,
    rgba(54, 168, 223, 0.05),
    transparent
  );
  border-radius: 0 0 0 100%;
  transition: transform 0.6s ease;
}

.service-card:hover::after {
  transform: scale(1.5);
}

.service-card.large {
  grid-column: span 7;
}
.service-card.medium {
  grid-column: span 5;
}
.service-card.full {
  grid-column: span 12;
}

.service-card .icon-wrap {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(54, 168, 223, 0.1);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.service-card h4 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Support Section */
.aquatest-support {
  padding: 120px 0;
  background: #0f172a;
  color: #fff;
}

.support-glass-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.support-text h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.support-text p.lead {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 40px;
}

.feature-list-glass {
  display: grid;
  gap: 20px;
}

.feature-glass-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  gap: 20px;
  transition: background 0.3s ease;
}

.feature-glass-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.feature-glass-item .dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 15px var(--primary);
}

.feature-glass-item h5 {
  color: #f8fafc;
  margin-bottom: 6px;
  font-size: 18px;
}

.feature-glass-item p {
  color: #94a3b8;
  margin-bottom: 0;
  font-size: 15px;
}

.support-visual {
  position: relative;
}

.support-visual .main-img {
  border-radius: 32px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .services-grid-bento {
    grid-template-columns: 1fr;
  }
  .service-card.large,
  .service-card.medium {
    grid-column: span 12;
  }
  .support-glass-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ==========================================
   Inner Pages - Article Content
   ========================================== */
.main-content {
  padding: 0;
  background: var(--white);
  min-height: 50vh;
}

/* Article page*/
.item-page,
.blog,
.categories-list,
.category-list {
  max-width: 1200px;
  margin: 0 auto;
}

/* full width override for page builder */
.com_sppagebuilder .main-content {
  padding: 0;
}

.com_sppagebuilder .main-content .container {
  max-width: 100%;
  padding: 0;
}

/* Page header */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--light-bg);
}

.page-header h1,
.page-header h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.25rem);
  margin-bottom: 0;
}

/* Article */
.item-page h1 {
  font-size: 38px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.item-page h2 {
  font-size: 28px;
  margin-top: 50px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-bg);
}

.item-page h3 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.item-page p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 65ch; /* Optimal reading width for article text */
}

/* Article images */
.item-page img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

.item-page .pull-right {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 450px;
}

.item-page .pull-left {
  float: left;
  margin: 0 32px 24px 0;
  max-width: 450px;
}

/* Article lists */
.item-page ul,
.item-page ol {
  margin-bottom: 30px;
  padding-left: 0;
}

.item-page ul {
  list-style: none;
}

.item-page ul li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--light-bg);
}

.item-page ul li:last-child {
  border-bottom: none;
}

.item-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.item-page ol li {
  padding: 10px 0 10px 8px;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--light-bg);
}

/* Article tables */
.item-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.item-page table th {
  background: var(--dark);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-page table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.item-page table tr:nth-child(even) {
  background: var(--light-bg);
}

.item-page table tr:hover {
  background: rgba(54, 168, 223, 0.04);
}

/* Blockquotes */
.item-page blockquote {
  margin: 30px 0;
  padding: 24px 30px;
  background: rgba(54, 168, 223, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  color: var(--dark);
  font-style: italic;
}

/* Category Blog Layout — Cards for articles */
.blog .items-leading .leading-0,
.blog .items-row .item {
  margin-bottom: 30px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog .items-leading .leading-0:hover,
.blog .items-row .item:hover {
  box-shadow: var(--shadow-md);
}

/* ==========================================
   SP Page Builder overrides
   ========================================== */
.sppb-section {
  /* Maintain template typography */
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* ==========================================
   Intro Section
   ========================================== */
.intro-section {
  padding: 80px 0 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* .intro-feature-item → canonical definition is in Intro Section (Two Columns) above */

/* ==========================================
   SVG Icon Support
   ========================================== */
.sw-feature h4 svg {
  vertical-align: text-bottom;
  margin-right: 8px;
  color: var(--primary);
}

.feature-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

/* ==========================================
   Scroll to Top
   ========================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(54, 168, 223, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(54, 168, 223, 0.6);
  color: var(--white);
}

.scroll-to-top svg {
  stroke-width: 2.5;
}

/* ==========================================
   Responsive
   ========================================== */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .intro-grid,
  .software-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slider {
    margin: 16px 16px 0 16px;
  }

  #site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    height: 72px;
    border-radius: 16px;
  }

  .site-logo img {
    height: 34px;
  }

  .container {
    padding: 0 20px;
  }

  .intro-section,
  .software-section,
  .products-section,
  .monitoring-section,
  .featured-product,
  .cta-section {
    padding: 60px 0;
  }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  /* Typography scale-down */
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }

  /* Header — Compact & Clean */
  #site-header {
    top: 8px;
    left: 8px;
    right: 8px;
    height: 64px;
    border-radius: 14px;
  }

  body.menu-open #site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .header-inner {
    gap: 12px;
    padding: 0 16px;
  }

  /* Social icons — compact on mobile, hide text button */
  .header-btn {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .header-social {
    width: 34px;
    height: 34px;
  }
  .header-social svg {
    width: 16px;
    height: 16px;
  }

  .site-logo img {
    height: 30px;
  }

  .site-logo .logo-text {
    font-size: 1rem;
  }

  /* Hero Slider — Edge to edge, lower height */
  .hero-slider {
    margin: 8px 8px 0;
    border-radius: 14px;
  }

  .hero-card h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .slider-dots {
    bottom: 12px;
  }

  /* Partners strip */
  .partners-strip {
    padding: 0 0;
  }

  .partners-track img {
    height: 62px;
  }

  /* Sections — Tighter padding */
  .intro-section,
  .software-section,
  .products-section,
  .monitoring-section,
  .featured-product,
  .cta-section {
    padding: 48px 0;
  }

  /* Single-column grids */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 32px;
  }

  /* Footer — Single column */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-brand .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* CTA Banner — Stack vertically */
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 20px;
  }

  .cta-banner-inner .btn {
    width: 100%;
  }

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

  /* Software features */
  .software-features {
    grid-template-columns: 1fr;
  }

  /* Featured product */
  .featured-content h2 {
    font-size: 28px;
  }

  .feature-badges {
    flex-direction: column;
  }

  /* Events */
  .events-list {
    grid-template-columns: 1fr;
  }

  /* Article pages */
  .item-page .pull-right,
  .item-page .pull-left {
    float: none;
    margin: 16px 0;
    max-width: 100%;
  }

  .item-page-premium {
    padding: 24px;
    border-radius: 16px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  /* Page Hero — Less padding on mobile */
  .page-hero {
    padding: 140px 0 60px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

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

  /* Breadcrumbs in hero */
  .hero-breadcrumbs ul {
    font-size: 12px;
  }

  /* Main content */
  .main-content {
    padding: 0;
  }

  /* Scroll to top — Smaller on mobile */
  .scroll-to-top {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  /* Intro features — Vertical on mobile */
  .intro-feature-item {
    gap: 16px;
  }

  .intro-feature-item .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  /* Monitoring section */
  .monitoring-content h2 {
    font-size: 1.75rem;
  }

  /* Contact cards responsive */
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  /* AquaTest service sections */
  .aquatest-bento-grid {
    grid-template-columns: 1fr;
  }

  .support-features-list {
    grid-template-columns: 1fr;
  }

  /* SPPB */
  #sp-page-builder,
  .sp-page-builder {
    padding: 20px 15px 40px !important;
  }

  .sppb-addon-articles .sppb-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .sppb-addon-text-block .sppb-addon-title {
    font-size: 1.5rem !important;
  }
}

/* ---- Small Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  /* Header — Ultra compact */
  #site-header {
    top: 6px;
    left: 6px;
    right: 6px;
    height: 58px;
  }

  .header-inner {
    padding: 0 12px;
  }

  .site-logo img {
    height: 26px;
  }

  .site-logo .logo-text {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-slider {
    margin: 6px 6px 0;
    border-radius: 12px;
  }

  .hero-card h1 {
    font-size: 24px;
  }

  .hero-card p {
    font-size: 13px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }

  /* Typography */
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 22px;
  }

  /* Stats → single column */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-number {
    font-size: 28px;
  }

  /* Sections */
  .intro-section,
  .software-section,
  .products-section,
  .monitoring-section,
  .featured-product,
  .cta-section {
    padding: 36px 0;
  }

  /* Featured */
  .featured-content h2 {
    font-size: 24px;
  }

  /* Page Hero */
  .page-hero {
    padding: 120px 0 48px;
  }

  /* Mobile nav adjustments */
  .mobile-nav-content {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-nav ul li a {
    font-size: 1.2rem;
    padding: 12px 0;
  }

  /* Footer */
  .footer {
    padding: 48px 0 20px;
  }

  /* Breadcrumbs in hero */
  .hero-breadcrumbs ul {
    font-size: 11px;
  }
}

/* ==========================================
   Page Hero (Mini)
   ========================================== */
.page-hero {
  position: relative;
  padding: 180px 0 80px; /* Accounts for fixed header */
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  border-radius: 0 0 30px 30px; /* Modern touch */
  overflow: hidden;
  margin-bottom: 60px;
  background-color: var(--dark); /* Fallback */
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(37, 50, 74, 0.7),
    rgba(37, 50, 74, 0.9)
  );
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  line-height: 1.6;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

/* ==========================================
   PREMIUM ARTICLE PAGE STYLES
   ========================================== */
.item-page-premium {
  background: var(--white);
  border-radius: 24px;
  /* padding: 50px; */
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}

.article-category-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(54, 168, 223, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.article-image-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
}

.article-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.article-text-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-text-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 40px;
}

/* ==========================================
   SPPB GLOBAL KILLSWITCH — PREMIUM RESTYLING
   ==========================================
   Since SPPB renders directly (bypassing Joomla overrides),
   CSS is the ONLY way to make these pages match our design.
   ========================================== */

/* 1. COLLAPSE SPPB LAYOUT WRAPPERS */
#sp-page-builder,
.sp-page-builder {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 30px 0 60px !important;
}

.sp-page-builder .page-content,
.sppb-section,
.sppb-row-container,
.sppb-container {
  display: contents !important;
}

.sppb-row-overlay,
.sppb-empty-space,
.sppb-divider {
  display: none !important;
}

.sppb-column,
.sppb-column-addons {
  display: contents !important;
}

/* 2. SPPB ROW → Transparent (no layout interference) */
.sppb-row {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* 3. SPPB COLUMNS → Full width, no float */
[class*="sppb-col-"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* 4. SPPB ADDON (global) */
.sppb-addon {
  margin-bottom: 30px !important;
}

/* ==========================================
   SPPB TEXT BLOCK → Premium Typography
   ========================================== */
.sppb-addon-text-block {
  text-align: left !important;
}

.sppb-addon-text-block .sppb-addon-title {
  font-family: "Inter", sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 15px !important;
  line-height: 1.2 !important;
}

.sppb-addon-text-block .sppb-addon-content {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: var(--text) !important;
}

.sppb-addon-text-block .sppb-addon-content p {
  margin-bottom: 1em !important;
}

/* ==========================================
   SPPB ARTICLES ADDON → Premium Product Cards
   ========================================== */
.sppb-addon-articles .sppb-addon-title {
  font-family: "Inter", sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  letter-spacing: -0.3px !important;
  margin-bottom: 25px !important;
}

/* Article listing row → Grid layout */
.sppb-addon-articles .sppb-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 25px !important;
}

/* Individual article columns */
.sppb-addon-articles [class*="sppb-col-"] {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Article Card — Matching .product-card from catalog */
.sppb-addon-article {
  background: var(--white) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sppb-addon-article:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--primary) !important;
}

/* Article Card Link */
.sppb-addon-article > a {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Article Card Image */
.sppb-addon-article img.sppb-img-responsive {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.sppb-addon-article:hover img.sppb-img-responsive {
  transform: scale(1.08) !important;
}

/* Article body content (below image) */
.sppb-addon-article .sppb-addon-article-title,
.sppb-addon-article h3,
.sppb-addon-article h4 {
  font-family: "Inter", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.3px !important;
  padding: 20px 22px 0 !important;
  transition: color 0.3s !important;
}

.sppb-addon-article:hover h3,
.sppb-addon-article:hover h4,
.sppb-addon-article:hover .sppb-addon-article-title {
  color: var(--primary) !important;
}

.sppb-addon-article h3 a,
.sppb-addon-article h4 a,
.sppb-addon-article .sppb-addon-article-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.sppb-addon-article p,
.sppb-addon-article .sppb-addon-article-introtext {
  font-size: 0.9rem !important;
  color: var(--text-light) !important;
  line-height: 1.6 !important;
  padding: 0 22px !important;
  margin: 0 0 15px !important;
  flex-grow: 1 !important;
}

/* Read More link in article card */
.sppb-addon-article .sppb-readmore,
.sppb-addon-article a.sppb-btn,
.sppb-addon-article .sppb-btn-default {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  margin: 0 22px 22px !important;
  background: var(--light-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  width: fit-content !important;
}

.sppb-addon-article:hover .sppb-readmore,
.sppb-addon-article:hover a.sppb-btn,
.sppb-addon-article:hover .sppb-btn-default {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(54, 168, 223, 0.25) !important;
}

/* ==========================================
   SPPB FEATURE ADDON → Premium Card
   ========================================== */
.sppb-addon-feature {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition) !important;
  text-align: center !important;
}

.sppb-addon-feature:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: var(--primary) !important;
}

.sppb-addon-feature img {
  border-radius: var(--radius-lg) !important;
  max-width: 100% !important;
  height: auto !important;
  margin-bottom: 15px !important;
}

/* ==========================================
   SPPB GENERIC ADDON TYPOGRAPHY
   ========================================== */
.sppb-addon-title {
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  font-size: 1.2rem !important;
  margin-bottom: 10px !important;
}

.sppb-addon-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.sppb-addon-content {
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* ==========================================
   SPPB INLINE STYLE OVERRIDES
   Kill any SPPB-generated inline <style> rules
   ========================================== */
.sp-page-builder [style*="padding"],
.sp-page-builder [style*="margin"] {
  padding: initial !important;
  margin: initial !important;
}

/* Override box-shadow from inline */
.sp-page-builder [style*="box-shadow"] {
  box-shadow: none !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  #sp-page-builder,
  .sp-page-builder {
    padding: 20px 15px 40px !important;
  }
  .sppb-addon-articles .sppb-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .sppb-addon-text-block .sppb-addon-title {
    font-size: 1.5rem !important;
  }
  .item-page-premium {
    padding: 25px;
    border-radius: 16px;
  }
  .article-title {
    font-size: 1.6rem;
  }
  .page-hero {
    padding: 90px 0 80px; /* Accounts for fixed header */
  }
}

/* ==========================================
   PREMIUM PAGINATION
   ========================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  width: 100%;
}

.pagination-wrapper .pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  list-style: none;
  background: var(--white);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-wrapper .pagination li {
  display: inline-flex;
  margin: 0;
}

.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: transparent;
  border: none;
  line-height: 1;
}

.pagination-wrapper .pagination li a:hover,
.pagination-wrapper .pagination li a:focus {
  background: rgba(54, 168, 223, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Active Page */
.pagination-wrapper .pagination li.active span {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(54, 168, 223, 0.3);
}

/* Disabled State */
.pagination-wrapper .pagination li.disabled span {
  color: var(--text-light);
  opacity: 0.5;
  background: transparent;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 480px) {
	
  .footer-logo {
      margin: 0 auto 30px auto;
  }
	
  .pagination-wrapper .pagination {
    gap: 4px;
    padding: 8px 12px;
  }
  .pagination-wrapper .pagination li a,
  .pagination-wrapper .pagination li span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }
}
