/* ------------------------------------------------------------------
   Home Page — premium section styles (Stats, Featured Products,
   Why Choose Us, Our Process). Uses the site's existing CSS variables
   (--accent-color, --heading-color, etc.) so it automatically follows
   whatever brand colors are set in the admin panel.
-------------------------------------------------------------------- */

/* ---------- Hero (premium redesign, light background + glows + a
   card-framed product visual — design language borrowed from a reference
   site the client liked) ---------- */
.hero-premium {
  position: relative;
  /* The header is fixed (out of document flow), so the hero needs its own
     top padding to clear it — main.css's original .hero class had this
     (padding: 120px 0 60px) but this section uses its own class instead,
     so it must be restated here. */
  padding: 130px 0 60px;
  background: radial-gradient(circle at 85% 25%, color-mix(in srgb, var(--accent-color), transparent 88%) 0%, color-mix(in srgb, var(--accent-color), transparent 95%) 40%, var(--background-color) 75%);
  overflow: clip;
}

@media (max-width: 991px) {
  .hero-premium {
    padding: 110px 0 50px;
  }
}

@media (max-width: 575px) {
  .hero-premium {
    padding: 96px 0 40px;
  }
}

.hero-premium-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-premium-glow-top {
  top: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
}

.hero-premium-glow-bottom {
  bottom: -50px;
  left: -50px;
  width: 320px;
  height: 320px;
  background: color-mix(in srgb, var(--heading-color), transparent 92%);
}

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

/* ---------- Hero intro (left column) ---------- */
.hero-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 18px 6px 6px;
  border-radius: 40px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--heading-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-intro-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px 4px 12px 4px;
  background: var(--accent-color);
  color: #fff;
  font-size: 14px;
}

.hero-intro-title {
  margin-bottom: 24px;
  font-size: calc(3.6rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Highlighter stroke behind the last word. */
.hero-intro-mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--heading-color);
}

.hero-intro-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.12em;
  right: -0.12em;
  bottom: 0.08em;
  height: 0.42em;
  border-radius: 0.4em 0.1em 0.4em 0.1em;
  background: color-mix(in srgb, var(--accent-color), transparent 70%);
  transform-origin: left;
  animation: hero-mark-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes hero-mark-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-intro-text {
  max-width: 520px;
  margin-bottom: 34px;
  padding-left: 18px;
  border-left: 3px solid var(--accent-color);
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-bottom: 40px;
}

.hero-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 6px 6px 6px 28px;
  border-radius: 40px;
  background: var(--heading-color);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--heading-color), transparent 75%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-intro-btn:hover {
  color: #fff;
  background: var(--accent-color);
  transform: translateY(-3px);
}

.hero-intro-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  transition: transform 0.4s ease, background-color 0.3s ease;
}

.hero-intro-btn:hover .hero-intro-btn-icon {
  background: #fff;
  color: var(--accent-color);
  transform: rotate(45deg);
}

.hero-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading-color);
  font-weight: 700;
}

.hero-intro-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px 5px 16px 5px;
  border: 1.5px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  color: var(--accent-color);
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-intro-link:hover {
  color: var(--accent-color);
}

.hero-intro-link:hover .hero-intro-link-icon {
  background: var(--accent-color);
  color: #fff;
}

/* ---------- Proof strip ---------- */
.hero-intro-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-intro-reach {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-intro-flags {
  display: flex;
}

.hero-intro-flags img {
  width: 38px;
  height: 38px;
  margin-left: -12px;
  border-radius: 50%;
  border: 3px solid var(--surface-color);
  object-fit: cover;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.12);
}

.hero-intro-flags img:first-child {
  margin-left: 0;
}

.hero-intro-reach-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-intro-reach-text strong {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-intro-reach-text small {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 0.8rem;
}

.hero-intro-quality {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 12px 20px;
  list-style: none;
  border-radius: 22px 7px 22px 7px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--heading-color), transparent 93%);
}

.hero-intro-quality li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--heading-color);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-intro-quality i {
  color: var(--accent-color);
}

@media (max-width: 1199px) {
  .hero-intro-title {
    font-size: 3rem;
  }
}

@media (max-width: 575px) {
  .hero-intro-badge {
    margin-bottom: 16px;
    font-size: 0.82rem;
  }

  .hero-intro-title {
    margin-bottom: 18px;
    font-size: 2.2rem;
  }

  .hero-intro-text {
    margin-bottom: 26px;
    padding-left: 14px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-intro-actions {
    gap: 16px;
    margin-bottom: 28px;
  }

  .hero-intro-btn {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
  }

  .hero-intro-proof {
    gap: 14px;
  }

  .hero-intro-quality {
    gap: 6px 14px;
    padding: 10px 16px;
  }
}

@media (max-width: 400px) {
  .hero-intro-title {
    font-size: 1.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro-mark::before {
    animation: none;
  }
}

/* ---------- Hero visual card ---------- */
.hero-premium-card-wrap {
  position: relative;
}

.hero-premium-card-glow {
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: 32px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 80%), transparent 70%);
  filter: blur(20px);
}

.hero-premium-image {
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
}

/* Constrains the plain fallback <img> (used when there's no product
   gallery) to a sane height regardless of the uploaded photo's native
   aspect ratio — without this a tall/portrait photo can render far larger
   than the text column and overflow the card. The gallery's own square
   frame (.hero-gallery-square) already has its own aspect-ratio, so this
   is a no-op there. */
img.hero-premium-image {
  height: 460px;
  object-fit: cover;
}

@media (max-width: 991px) {
  img.hero-premium-image {
    height: 380px;
  }
}

@media (max-width: 575px) {
  img.hero-premium-image {
    height: 300px;
  }
}

.hero-premium-chip {
  position: absolute;
  /* Centered under the active (middle) card rather than over the left peek. */
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: max-content;
  /* Keeps the badge above the sliding cards. */
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 44px);
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.3;
}

/* Swapped from JS to the active slide's product name; fades between names. */
.hero-premium-chip-label {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-premium-chip-label.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.hero-premium-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  font-size: 15px;
}

@media (max-width: 575px) {
  .hero-premium-chip {
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.7rem;
  }
}

/* One real product photo at a time, in a square frame, crossfading on a
   timer — see .image-crossfade-stack in the shared layout for the actual
   fade mechanics, and .image-crossfade-stack-zoom below for the added
   Ken Burns-style zoom while each photo is showing. */
.hero-gallery-square {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 18px;
}

@media (max-width: 575px) {
  .hero-gallery-square {
    max-width: 320px;
  }
}

/* Slow, continuous zoom-in on whichever photo is currently active — resets
   and restarts each time a new photo takes its turn. Duration matches the
   gallery's data-interval (4s) so the zoom completes just as it fades out. */
.image-crossfade-stack-zoom img.active {
  animation: hero-image-zoom 4s ease-in-out forwards;
}

@keyframes hero-image-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .image-crossfade-stack-zoom img.active {
    animation: none;
  }
}

/* ---------- Hero card slider ----------
   Coverflow-style strip: the active card sits fully in the center, with the
   previous card peeking in on the left and the next one on the right. The
   track moves by one card (+ gap) per tick via --hero-card-index, set from
   JS (see home.blade.php), which also adds clones at both ends so the loop
   never shows an empty side. */
.hero-card-slider {
  position: relative;
  overflow: hidden;
  /* drop-shadow (not box-shadow) so the shadow follows the cards' cut
     corners instead of drawing a plain rectangle behind them. */
  filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--heading-color), transparent 88%));
}

.hero-card-track {
  --hero-card-width: 52%;
  --hero-card-gap: 16px;
  --hero-card-index: 0;
  display: flex;
  align-items: center;
  gap: var(--hero-card-gap);
  padding: 20px 0 32px;
  transform: translateX(calc((100% - var(--hero-card-width)) / 2 - var(--hero-card-index) * (var(--hero-card-width) + var(--hero-card-gap))));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-card-slide {
  flex: 0 0 var(--hero-card-width);
  padding: 14px;
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(255 255 255 / 0.8);
  /* Cuts the top-left and bottom-right corners; the other two stay rounded. */
  border-radius: 70px 17px 70px 17px;
  opacity: 0.5;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.hero-card-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-card-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 60px 14px 60px 14px;
  overflow: hidden;
}

/* Used by JS to jump from a clone back to its real slide without animating. */
.hero-card-track.is-snapping,
.hero-card-track.is-snapping .hero-card-slide {
  transition: none;
}

/* A single image has no neighbours to peek — show it as one full card. */
.hero-card-slider-single .hero-card-track {
  --hero-card-width: 100%;
  padding: 0;
}

.hero-card-slider-single .hero-card-slide {
  opacity: 1;
  transform: none;
}

.hero-card-slider-single .hero-card-slide img {
  aspect-ratio: auto;
  height: 460px;
}

@media (max-width: 991px) {
  .hero-card-slider-single .hero-card-slide img {
    height: 380px;
  }
}

@media (max-width: 575px) {
  .hero-card-track {
    --hero-card-width: 70%;
    --hero-card-gap: 10px;
  }

  .hero-card-slide {
    padding: 10px;
    border-radius: 50px 12px 50px 12px;
  overflow: hidden;
}

  .hero-card-slide img {
    border-radius: 42px 10px 42px 10px;
  overflow: hidden;
}

  .hero-card-slider-single .hero-card-slide img {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-track,
  .hero-card-slide {
    transition: none;
  }
}

/* ---------- Featured Products ("Our Work" style grid — design language
   borrowed from a reference site the client liked) ---------- */
.product-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.product-showcase-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 12px;
}

.product-showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.product-showcase-eyebrow .eyebrow-underline {
  width: 20px;
  height: 2px;
  background-color: var(--accent-color);
}

.product-showcase-title {
  margin: 0 0 16px;
  font-size: calc(2rem * var(--type-display-scale, 1));
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}

.product-showcase-desc {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/* The shared .image-crossfade-stack rule (used by the hero gallery too)
   defaults its <img> tags to object-fit: cover — override to contain here
   so product photos letterbox instead of cropping inside this smaller box.
   (The card itself, .product-showcase-card*, now lives in
   shared-sections.css since Services and Products pages use it too.) */
.product-showcase-card-image-box .image-crossfade-stack img {
  object-fit: contain;
}

@media (max-width: 1200px) {
  .product-showcase {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }
}

@media (max-width: 991px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-showcase-info {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .product-showcase-title {
    font-size: 1.6rem;
  }
}


/* ---------- Global Presence (rotating globe + country list) ----------
   Globe is drawn by frontend/assets/js/export-globe.js; this styles the
   frame around it and the country list that steers it. */
.global-presence-showcase {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 25% 45%, color-mix(in srgb, var(--accent-color), transparent 82%) 0%, transparent 45%),
    linear-gradient(160deg, var(--heading-color) 0%, color-mix(in srgb, var(--heading-color), #000 35%) 100%);
}

/* Tiny twinkling "stars" in the background. */
.global-presence-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1px 1px at 32% 72%, rgb(255 255 255 / 0.4), transparent),
    radial-gradient(1.5px 1.5px at 48% 12%, rgb(255 255 255 / 0.35), transparent),
    radial-gradient(1px 1px at 8% 88%, rgb(255 255 255 / 0.45), transparent),
    radial-gradient(1px 1px at 58% 92%, rgb(255 255 255 / 0.3), transparent),
    radial-gradient(1.5px 1.5px at 92% 8%, rgb(255 255 255 / 0.4), transparent),
    radial-gradient(1px 1px at 72% 40%, rgb(255 255 255 / 0.25), transparent),
    radial-gradient(1px 1px at 22% 48%, rgb(255 255 255 / 0.3), transparent);
  animation: global-stars-twinkle 6s ease-in-out infinite alternate;
}

@keyframes global-stars-twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.global-presence-showcase .container {
  position: relative;
  z-index: 1;
}

/* ---------- Globe ---------- */
.export-globe {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.export-globe.is-ready {
  opacity: 1;
  transform: none;
}

.export-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.export-globe.is-dragging canvas {
  cursor: grabbing;
}

.export-globe-hint {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.15);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

/* ---------- Panel ---------- */
.global-presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px dashed rgb(255 255 255 / 0.3);
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.global-presence-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-size: 13px;
}

.global-presence-title {
  color: #fff;
  font-size: calc(2.4rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.global-presence-title .accent-highlight {
  color: var(--accent-color);
}

.global-presence-lead {
  color: rgb(255 255 255 / 0.72);
  line-height: 1.7;
  margin-bottom: 24px;
}

.global-presence-count {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.global-presence-count strong {
  font-family: var(--heading-font);
  font-size: calc(3.2rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
}

.global-presence-count span {
  color: rgb(255 255 255 / 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Country list ---------- */
.country-list {
  position: relative;
  display: grid;
  gap: 10px;
  max-height: 392px;
  margin: 0;
  padding: 2px 8px 2px 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent-color), transparent 40%) transparent;
}

.country-list::-webkit-scrollbar {
  width: 5px;
}

.country-list::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent-color), transparent 40%);
}

.country-list-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Accent sweep behind the active row. */
.country-list-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-color), transparent 70%), transparent 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.country-list-item > * {
  position: relative;
  z-index: 1;
}

.country-list-item:hover,
.country-list-item:focus-visible {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.08);
  outline: none;
}

.country-list-item.is-active {
  border-color: color-mix(in srgb, var(--accent-color), transparent 30%);
  transform: translateX(6px);
}

.country-list-item.is-active::before {
  transform: scaleX(1);
}

.country-list-flag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15);
}

.country-list-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-list-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.country-list-meta {
  flex-shrink: 0;
  color: rgb(255 255 255 / 0.55);
  font-size: 0.78rem;
  font-weight: 600;
}

.country-list-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.5);
  font-size: 13px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s ease;
}

.country-list-item.is-active .country-list-arrow {
  background: var(--accent-color);
  color: #fff;
  transform: scale(1.1);
}

.country-list-item.is-active .country-list-meta {
  color: rgb(255 255 255 / 0.85);
}

@media (max-width: 991px) {
  .global-presence-title {
    font-size: 2rem;
  }

  .export-globe {
    max-width: 440px;
  }
}

@media (max-width: 575px) {
  .global-presence-title {
    font-size: 1.7rem;
  }

  .global-presence-count strong {
    font-size: 2.6rem;
  }

  .country-list {
    max-height: 340px;
  }

  .country-list-meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-presence-stars {
    animation: none;
  }

  .export-globe,
  .country-list-item,
  .country-list-item::before {
    transition: none;
  }
}

/* ---------- Latest Updates ----------
   Newest update as a large photo feature; the rest on a timeline beside
   it. A "Never miss an update" card fills the column when there are fewer
   than three updates. Same cut-corner shape used across the site. */
.updates-showcase {
  position: relative;
  overflow: clip;
}

.updates-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.updates-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px dashed color-mix(in srgb, var(--accent-color), transparent 45%);
  border-radius: 30px;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.updates-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--heading-color);
  color: #fff;
  font-size: 13px;
}

.updates-title {
  font-size: calc(2.4rem * var(--type-display-scale, 1));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.updates-title .accent-highlight {
  color: var(--accent-color);
}

.updates-lead {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.updates-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 40px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  color: var(--heading-color);
  font-weight: 700;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.updates-all-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  transition: transform 0.4s ease;
}

.updates-all-link:hover {
  color: #fff;
  background: var(--heading-color);
  border-color: var(--heading-color);
}

.updates-all-link:hover .updates-all-link-arrow {
  transform: rotate(45deg);
}

/* ---------- Layout ---------- */
.updates-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.updates-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Featured update ---------- */
.update-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: 28px;
  overflow: hidden;
  border-radius: 60px 14px 60px 14px;
  color: #fff;
  isolation: isolate;
}

.update-feature-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  animation: update-image-pan 20s ease-in-out infinite alternate;
}

@keyframes update-image-pan {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.12) translateX(-2%); }
}

.update-feature-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, color-mix(in srgb, var(--heading-color), transparent 5%) 0%, color-mix(in srgb, var(--heading-color), transparent 55%) 50%, color-mix(in srgb, var(--heading-color), transparent 80%) 100%);
}

.update-feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 22px;
}

.update-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 30px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.update-live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a5f;
}

.update-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff5a5f;
  animation: update-live-ping 1.6s ease-out infinite;
}

@keyframes update-live-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.update-feature-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #fff;
  color: var(--heading-color);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.2);
  line-height: 1;
  animation: update-date-float 4.5s ease-in-out infinite;
}

.update-feature-date strong {
  font-family: var(--heading-font);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-color);
}

.update-feature-date small {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes update-date-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.update-feature-body {
  max-width: 560px;
  padding-right: 22px;
}

.update-feature-body h3 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.update-feature-body p {
  margin: 0;
  color: rgb(255 255 255 / 0.85);
  line-height: 1.7;
}

.update-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.update-feature-link:hover {
  color: var(--heading-color);
  background: #fff;
  transform: translateY(-2px);
}

/* ---------- Timeline ---------- */
.updates-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.updates-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 2px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent-color), transparent 40%) 0 6px, transparent 6px 12px);
}

.update-row {
  position: relative;
}

.update-row-dot {
  position: absolute;
  top: 26px;
  left: -30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.update-row-card {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--heading-color), transparent 94%);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.update-row-card:hover {
  transform: translateX(6px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.update-row-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 25px 8px 25px 8px;
}

.update-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.update-row-card:hover .update-row-thumb img {
  transform: scale(1.12);
}

.update-row-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.update-row-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.update-row-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}

.update-row-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 28%);
}

.update-row-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--heading-color);
  font-size: 0.85rem;
  font-weight: 700;
}

.update-row-link i {
  transition: transform 0.3s ease;
}

.update-row-link:hover {
  color: var(--accent-color);
}

.update-row-link:hover i {
  transform: translateX(4px);
}

/* ---------- "Never miss an update" card ---------- */
.updates-follow-card {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 28px 26px;
  background: linear-gradient(145deg, var(--heading-color), color-mix(in srgb, var(--heading-color), var(--accent-color) 30%));
  color: #fff;
  border-radius: 42px 10px 42px 10px;
}

.updates-follow-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 0 0 30px rgb(255 255 255 / 0.03), 0 0 0 60px rgb(255 255 255 / 0.02);
  pointer-events: none;
}

.updates-follow-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-color);
  font-size: 22px;
  transform-origin: 50% 10%;
  animation: update-bell-ring 4s ease-in-out infinite;
}

@keyframes update-bell-ring {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(14deg); }
  78% { transform: rotate(-12deg); }
  82% { transform: rotate(8deg); }
  86% { transform: rotate(-5deg); }
  90% { transform: rotate(0); }
}

.updates-follow-body {
  position: relative;
}

.updates-follow-body h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.updates-follow-body p {
  margin-bottom: 18px;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

.updates-follow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.updates-follow-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.25);
  color: #fff;
  font-size: 17px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.updates-follow-social:hover {
  color: #fff;
  background: var(--accent-color);
  transform: translateY(-3px);
}

.updates-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 30px;
  background: #fff;
  color: var(--heading-color);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.updates-follow-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .updates-layout {
    grid-template-columns: 1fr;
  }

  .update-feature {
    min-height: 400px;
  }

  .updates-title {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .updates-title {
    font-size: 1.7rem;
  }

  .update-feature {
    min-height: 380px;
    padding: 22px;
  }

  .update-feature-body h3 {
    font-size: 1.45rem;
  }

  .updates-timeline {
    padding-left: 24px;
  }

  .updates-timeline::before {
    left: 5px;
  }

  .update-row-dot {
    left: -24px;
  }

  .update-row-card {
    flex-direction: column;
  }

  .update-row-thumb {
    width: 100%;
    height: 160px;
  }

  .updates-follow-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-feature-image,
  .update-live-dot::after,
  .update-feature-date,
  .updates-follow-icon {
    animation: none;
  }

  .update-row-card:hover {
    transform: none;
  }
}

/* ---------- Shared section polish ---------- */
/* .section-badge itself now lives in the shared layout (frontend/layouts/app.blade.php)
   since it's used site-wide, not just on the homepage — see the note there. */

/* ---------- Small-screen refinements ---------- */
@media (max-width: 420px) {
  .world-map-wrap {
    border-radius: 14px;
  }

  .world-map-inner {
    border-radius: 14px;
  }
}

