/* ============================================
   Modern Styles - HostJaer Website Redesign
   Matching the professional modern design
   ============================================ */

/* ========== Top Bar ========== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.topbar-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

a.topbar-item:hover {
  color: var(--primary-medium);
}

.topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-socials a {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.topbar-socials a:hover {
  color: var(--primary-medium);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .topbar-hours {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    justify-content: center;
    gap: 0.85rem;
  }

  .topbar-left {
    display: none;
  }

  .topbar-right {
    gap: 0.85rem;
  }
}

/* ========== Header / Navigation ========== */
.header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1060;
  padding: 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--font-weight-medium);
  color: var(--gray-700);
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-menu > li > a:hover {
  color: var(--primary-medium);
}

.nav-menu > li > a .care {
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover > a .care {
  transform: rotate(180deg);
}

/* ---- Mega menu ---- */
.nav-dropdown {
  position: relative;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 340px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(23, 49, 32, 0.35);
  border: 1px solid rgba(23, 49, 32, 0.06);
  padding: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  transition: background var(--transition-fast);
}

.mega-link:hover {
  background: var(--tint, #f4faf6);
}

.mega-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
  color: var(--primary-dark);
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mega-text strong {
  font-size: 0.92rem;
  color: var(--primary-dark);
  font-weight: var(--font-weight-semibold);
}

.mega-text small {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}

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

/* ---- Client Area button: gradient border sweep on hover ---- */
.btn-client-area {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-medium);
  background: var(--primary-dark);
  border: 1.5px solid var(--primary-dark);
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.btn-client-area span {
  position: relative;
  z-index: 2;
}

.btn-client-area::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--primary-dark), var(--primary-medium), var(--primary-light), var(--primary-dark));
  opacity: 0;
  animation: spin-gradient 2.6s linear infinite;
  animation-play-state: paused;
  transition: opacity var(--transition-fast);
}

.btn-client-area::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: 1;
  border-radius: inherit;
  background: var(--primary-dark);
}

.btn-client-area:hover {
  color: var(--primary-medium);
  border-color: transparent;
}

.btn-client-area:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes spin-gradient {
  to { transform: rotate(360deg); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mobile-nav-buttons {
  display: none;
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--font-size-sm);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
  display: block;
}

/* Mobile nav backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-backdrop {
    display: block;
  }

  .nav-actions {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    z-index: 1060;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu > li:first-child {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu > li > a {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    padding: 1rem 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu > li > a:hover {
    color: var(--primary-medium);
  }

  .nav-menu .mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-bottom: none;
  }

  .nav-menu .mobile-nav-buttons .btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
  }

  .nav-menu .mobile-nav-buttons .btn-client-area {
    border-color: var(--primary-medium);
  }

  /* Hamburger → X animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .mega-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 100%;
    display: none;
    border-left: 2px solid rgba(255,255,255,0.2);
    margin-top: 0.25rem;
  }

  .nav-dropdown.mobile-open .mega-panel {
    display: block;
  }

  .mega-link {
    padding: 0.55rem 0.25rem;
  }

  .mega-icon {
    width: 30px;
    height: 30px;
    background: rgba(96, 255, 150, 0.15);
    color: var(--primary-medium);
  }

  .mega-text strong {
    color: rgba(255,255,255,0.92);
    font-size: 0.88rem;
  }

  .mega-text small {
    display: none;
  }

  .nav-dropdown > a {
    cursor: pointer;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #3de077;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(96, 255, 150, 0.35);
}

.btn-outline {
  border: 2px solid var(--primary-medium);
  color: var(--primary-medium);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-medium);
  color: var(--white);
}

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

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-block {
  width: 100%;
}

/* ========== Modern Hero Section ========== */
.hero-modern {
  background: linear-gradient(135deg, #173120 0%, #0f2519 100%);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
}

.hero-modern > .container {
  width: 100%;
}

@media (max-width: 768px) {
  .hero-modern {
    min-height: calc(100vh - 68px);
    padding: 2.5rem 0;
  }
}

.hero-modern > .container {
  position: relative;
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(96, 255, 150, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(96, 255, 150, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Live network world layer */
.hero-tech {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(125% 104% at 48% 44%, #000 38%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0.1) 100%);
  mask-image: radial-gradient(125% 104% at 48% 44%, #000 38%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-tech-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-tech-svg image {
  opacity: 0.38;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 15, 0) 58%, rgba(10, 22, 15, 0.45) 100%),
    linear-gradient(100deg, rgba(10, 22, 15, 0.82) 0%, rgba(10, 22, 15, 0.5) 34%, rgba(10, 22, 15, 0.14) 60%, rgba(10, 22, 15, 0) 78%);
}

.net-arc {
  fill: none;
  stroke: #60ff96;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 5 16;
  opacity: 0.45;
  animation: heroDash 5.2s linear infinite;
  animation-delay: var(--d, 0s);
}

.net-node {
  animation: heroBlink 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.n-core {
  fill: #7dffb0;
  filter: drop-shadow(0 0 6px rgba(125, 255, 176, 0.85));
}

.n-ring {
  fill: none;
  stroke: #7dffb0;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: heroRing 3.6s ease-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes heroDash {
  to { stroke-dashoffset: -84; }
}

@keyframes heroBlink {
  0%, 100% { opacity: 0.4; }
  45% { opacity: 1; }
}

@keyframes heroRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  65%, 100% { transform: scale(3.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .net-arc,
  .net-node,
  .n-ring {
    animation: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(96, 255, 150, 0.1);
  border: 1px solid rgba(96, 255, 150, 0.35);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-medium) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.domain-search-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.domain-pricing-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
}

.domain-price-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.domain-price-tag strong {
  color: var(--white);
  font-weight: var(--font-weight-bold);
}

.domain-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  color: var(--dark);
  outline: none;
}

.domain-ext {
  border: none;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  margin-right: 0.5rem;
  color: var(--dark);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-icon {
  font-size: 2rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}

.badge-text strong {
  color: var(--white);
  font-weight: var(--font-weight-bold);
}

.badge-text span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-illustration {
  position: relative;
}

.server-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.server-halo {
  position: absolute;
  inset: -6% -10% 0;
  background: radial-gradient(ellipse 52% 46% at 50% 58%, rgba(96, 255, 150, 0.18) 0%, rgba(96, 255, 150, 0.05) 50%, rgba(96, 255, 150, 0) 74%);
  border-radius: 50%;
  pointer-events: none;
}

.server-cloud {
  position: absolute;
  top: -17.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: auto;
  color: rgba(96, 255, 150, 0.5);
  filter: drop-shadow(0 0 12px rgba(96, 255, 150, 0.3));
  pointer-events: none;
}

.server-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.server-photo-amber {
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 15px, transparent 15px 30px);
  mask-image: repeating-linear-gradient(180deg, #000 0 15px, transparent 15px 30px);
  animation: ledBankA 2.8s ease-in-out infinite;
}

.server-photo-amber-b {
  -webkit-mask-image: repeating-linear-gradient(180deg, transparent 0 15px, #000 15px 30px);
  mask-image: repeating-linear-gradient(180deg, transparent 0 15px, #000 15px 30px);
  animation: ledBankB 3.7s ease-in-out infinite;
  animation-delay: -1.4s;
}

@keyframes ledBankA {
  0%, 26% { opacity: 0; }
  33%, 57% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes ledBankB {
  0%, 14% { opacity: 1; }
  22%, 50% { opacity: 0; }
  58%, 86% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .server-photo-amber {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .domain-pricing-inline {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }

  .hero-veil {
    background: linear-gradient(180deg, rgba(10, 22, 15, 0.85) 0%, rgba(10, 22, 15, 0.45) 26%, rgba(10, 22, 15, 0.45) 74%, rgba(10, 22, 15, 0.88) 100%);
  }

  .server-visual {
    height: 360px;
  }

  .server-cloud {
    top: -22%;
    width: 120px;
  }

  .server-photo-amber {
    -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 22px);
    mask-image: repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 22px);
  }

  .server-photo-amber-b {
    -webkit-mask-image: repeating-linear-gradient(180deg, transparent 0 11px, #000 11px 22px);
    mask-image: repeating-linear-gradient(180deg, transparent 0 11px, #000 11px 22px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .domain-search-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .domain-input {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0.75rem 0.5rem;
  }

  .domain-ext {
    flex: 1 1 auto;
    margin-right: 0;
  }

  .domain-search-bar .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ========== Developer Partners Carousel Section ========== */
.partners-section {
  background: var(--white);
  padding: 4rem 0 5rem;
}

.developer-partners {
  text-align: center;
  overflow: hidden;
}

.partners-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.partners-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.carousel-track {
  --track-gap: 3rem;
  display: flex;
  gap: var(--track-gap);
  /* trailing gap keeps the -50% loop offset pixel-exact */
  padding-right: var(--track-gap);
  animation: scroll 33s linear infinite;
  width: max-content;
}

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* every tile is the same fixed box; logos fit inside it with object-fit */
.partner-logo {
  flex-shrink: 0;
  width: 170px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.partner-logo:hover {
  transform: scale(1.1);
}

.partner-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

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

@media (max-width: 768px) {
  .partner-logo {
    width: 130px;
    height: 52px;
  }

  .carousel-track {
    --track-gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .solution-banner {
    min-height: 0;
  }

  .solution-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .solution-content {
    max-width: 100%;
    align-self: auto;
  }

  .solution-figure {
    width: 100%;
    max-width: 640px;
    justify-self: center;
  }

  .solution-figure::after {
    filter: blur(6px);
  }

  .solution-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .solution-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .solution-banner .container {
    padding-top: 3rem;
  }

  .solution-features {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========== Footer ========== */
.footer-modern {
  position: relative;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 5.5rem 0 0;
  overflow: hidden;
}

/* subtle brand-colored corner accents, echoing the logo's diagonal mark */
.footer-modern::before,
.footer-modern::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--primary-medium);
  opacity: 0.06;
  border-radius: var(--radius-2xl);
  pointer-events: none;
  z-index: 0;
}

.footer-modern::before {
  top: -130px;
  left: -100px;
  transform: rotate(35deg);
}

.footer-modern::after {
  bottom: -140px;
  right: -110px;
  transform: rotate(35deg);
}

.footer-modern .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-link {
  display: inline-flex;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.trustpilot-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.trustpilot-logo {
  height: 15px;
  width: auto;
  flex-shrink: 0;
}

.trustpilot-rating {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.trustpilot-rating strong {
  color: var(--white);
  font-weight: var(--font-weight-bold);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  padding-bottom: 1rem;
}

.footer-col {
  padding: 0 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.footer-col:first-child {
  padding-left: 0;
  border-left: none;
}

.footer-col h4 {
  color: var(--primary-medium);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  margin-bottom: 1.25rem;
}

.footer-col .social-heading,
.footer-col .footer-col-spacer {
  margin-top: 1.75rem;
}

.footer-col-heading {
  display: block;
  color: var(--primary-medium);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

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

.social-links-modern {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.social-links-modern a {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-links-modern a:hover {
  background: var(--primary-medium);
  border-color: var(--primary-medium);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-col-badge {
  display: block;
  height: 100px;
  width: auto;
  margin-top: 1.6rem;
}

.footer-socials-row {
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-legal-links--center {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.footer-bottom-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  padding: 2rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom-modern p {
  white-space: nowrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--primary-medium);
}

.footer-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.footer-badges {
  display: flex;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.footer-badges a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.footer-badges a:hover {
  color: var(--primary-medium);
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    row-gap: 3rem;
  }

  .footer-col:nth-child(2n+1) {
    padding-left: 0;
    border-left: none;
  }

  .footer-col:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2.5rem;
  }

  .footer-bottom-modern {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-modern {
    padding-top: 4rem;
  }

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

  .footer-col {
    padding-left: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2.5rem;
    text-align: center;
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .footer-col-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col h4 {
    white-space: normal;
  }

  .footer-col:has(.social-links-modern) .social-links-modern {
    justify-content: center;
  }

  .footer-bottom-modern {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 6rem;
  }

  .footer-bottom-modern p,
  .footer-badges {
    white-space: normal;
  }
}

/* ========== WhatsApp Float Button ========== */
.whatsapp-float-modern {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.whatsapp-float-modern:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ========== Back to Top Button ========== */
/* Sits on the same side as the Tawk.to widget, but raised clear above it */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--primary-medium);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(23, 49, 32, 0.35);
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), background var(--transition-base);
}

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

.back-to-top:hover {
  background: var(--primary-medium);
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 6rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}
