/* ==========================================================================
   AS Webverse: custom components
   Loaded after style.css and wordpress.css. Covers components added on top
   of the original design: home hero visual, floating WhatsApp button and
   social bar, Blog listing and Blog details.
   ========================================================================== */

/* ---------- Footer: as many link columns as there are menus ---------- */
@media (min-width: 992px) {
  .footer-cols {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Floating animations (shared)
   ========================================================================== */
@keyframes asw-float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes asw-float-x {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-12px);
  }
}
@keyframes asw-float-tilt {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(6px, -12px) rotate(-1.5deg);
  }
}
@keyframes asw-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Home hero: right-side visual
   ========================================================================== */
.hero-content.has-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-top: 70px;
  padding-bottom: 110px;
}
.hero-content.has-visual .hero-text h1 {
  font-size: clamp(38px, 5.2vw, 66px);
}

/* The reveal animation clips its element; the visual has labels outside its box. */
.hero-visual[data-reveal],
.hero-visual[data-reveal].is-visible {
  clip-path: none;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  /* Room for the overlapping image and labels. */
  padding: 34px 44px 38px 64px;
}
.hero-visual-frame {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
}
.hero-visual-main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  border-radius: 18px;
}
.hero-visual-small {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 40%;
  padding: 8px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: asw-float-tilt 7s ease-in-out infinite;
}
.hero-visual-small img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.hero-visual-tags {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-visual-tags--top {
  top: 8%;
  right: 0;
  flex-direction: column;
  align-items: flex-end;
}
.hero-visual-tags--top .hero-tag:nth-child(even) {
  margin-right: -30px;
}
.hero-visual-tags--bottom {
  left: 0;
  right: 0;
  bottom: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tag {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: #eaf2ff;
  color: var(--navy-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(7, 26, 74, 0.22);
  animation: asw-float-y 5.5s ease-in-out infinite;
}
/* Different rhythm per label so they never move in sync. */
.hero-visual-tags--top .hero-tag:nth-child(1) {
  animation-name: asw-float-x;
  animation-duration: 6s;
}
.hero-visual-tags--top .hero-tag:nth-child(2) {
  animation-duration: 6.8s;
  animation-delay: -1.6s;
}
.hero-visual-tags--top .hero-tag:nth-child(3) {
  animation-name: asw-float-x;
  animation-delay: -3s;
}
.hero-visual-tags--bottom .hero-tag:nth-child(1) {
  animation-duration: 6.2s;
  animation-delay: -0.8s;
}
.hero-visual-tags--bottom .hero-tag:nth-child(2) {
  animation-duration: 5s;
  animation-delay: -2.4s;
}
.hero-visual-tags--bottom .hero-tag:nth-child(3) {
  animation-duration: 7s;
  animation-delay: -1.2s;
}
.hero-visual-tags--bottom .hero-tag:nth-child(4) {
  animation-duration: 5.8s;
  animation-delay: -3.4s;
}

@media (max-width: 1199px) {
  .hero-content.has-visual {
    gap: 30px;
  }
  .hero-tag {
    font-size: 14px;
    padding: 10px 20px;
  }
}
@media (max-width: 991px) {
  .hero-content.has-visual {
    grid-template-columns: 1fr;
    padding-top: 50px;
    padding-bottom: 100px;
  }
  .hero-visual {
    margin: 10px auto 0;
    max-width: 500px;
  }
}
@media (max-width: 575px) {
  .hero-visual {
    padding: 26px 34px 34px 30px;
  }
  .hero-visual-frame {
    padding: 10px;
    border-radius: 20px;
  }
  .hero-visual-tags {
    gap: 8px;
  }
  .hero-visual-tags--top .hero-tag:nth-child(even) {
    margin-right: 0;
  }
  .hero-tag {
    font-size: 12.5px;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   Floating social bar (right side, vertical)
   ========================================================================== */
.floating-social {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: var(--shadow-lg);
}
.floating-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--navy-dark);
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast);
}
.floating-social a:hover,
.floating-social a:focus-visible {
  background: var(--blue-primary);
  color: var(--white);
  transform: translateX(-3px);
}
@media (max-width: 767px) {
  .floating-social {
    display: none;
  }
}

/* ==========================================================================
   WhatsApp chat button (bottom right)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform var(--dur-fast) var(--ease-out);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: asw-pulse-ring 2.2s ease-out infinite;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: var(--white);
  transform: scale(1.08);
}
.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--navy-deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition:
    opacity var(--dur-fast),
    transform var(--dur-fast);
}
.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}
body.drawer-open .whatsapp-float,
body.drawer-open .floating-social {
  visibility: hidden;
}
@media (max-width: 575px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-small,
  .hero-tag,
  .whatsapp-float::before {
    animation: none;
  }
}

/* ==========================================================================
   Blog listing
   ========================================================================== */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 40px;
}
.blog-filter .pill-btn {
  display: inline-flex;
  align-items: center;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-meta svg {
  color: var(--blue-primary);
}
.post-meta-cat {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-primary);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.post-meta-author {
  gap: 10px !important;
  color: var(--text-dark);
  font-weight: 600;
}
.post-meta-author img {
  border-radius: 50%;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-bottom: 40px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med);
}
.featured-post:hover {
  box-shadow: var(--shadow-lg);
}
.featured-post-media {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
}
.featured-post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.featured-post:hover .featured-post-media img {
  transform: scale(1.05);
}
.featured-post-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-blue);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.featured-post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 44px;
}
.featured-post-body h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--navy-deep);
}
.featured-post-body h2 a {
  color: inherit;
}
.featured-post-body h2 a:hover {
  color: var(--blue-primary);
}
.featured-post-body p {
  color: var(--text-muted);
  line-height: 1.7;
}
.featured-post-body .btn-primary {
  align-self: flex-start;
}

/* ==========================================================================
   Blog details
   ========================================================================== */
.blog-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 56px;
}
.blog-detail .prose {
  max-width: none;
  margin: 0;
}
.blog-detail-image {
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.blog-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-detail-meta {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}
.blog-detail-footer {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}
.post-navigation .nav-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.share-links-label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.share-links a,
.share-links button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-dark);
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
}
.share-links a:hover,
.share-links button:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}
.share-links button.is-copied {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admin-bar .blog-sidebar {
  top: calc(var(--header-h) + 56px);
}
.sidebar-widget {
  padding: 24px;
  background: var(--blue-faint);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.sidebar-widget .search-form {
  margin-top: 0;
}
.sidebar-title {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--navy-deep);
}
.sidebar-promo {
  background: var(--grad-navy);
  border: 0;
}
.sidebar-promo h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--white);
}
.sidebar-promo p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.sidebar-categories,
.sidebar-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 14.5px;
  font-weight: 500;
}
.sidebar-categories li:last-child a {
  border-bottom: 0;
}
.sidebar-categories a:hover {
  color: var(--blue-primary);
}
.sidebar-categories span {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-color);
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}
.sidebar-recent li + li {
  margin-top: 14px;
}
.sidebar-recent a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-recent img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.sidebar-recent strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  transition: color var(--dur-fast);
}
.sidebar-recent a:hover strong {
  color: var(--blue-primary);
}
.sidebar-recent time {
  font-size: 12px;
  color: var(--text-muted);
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tags a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
}
.sidebar-tags a:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}

@media (max-width: 991px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post-media {
    min-height: 260px;
  }
  .blog-detail {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
}
@media (max-width: 575px) {
  .featured-post-body {
    padding: 26px;
  }
}

/* ---------- Portfolio: display-only list (no preview modal) ---------- */
.portfolio-card {
  cursor: default;
}

/* ==========================================================================
   Team slider (About page)
   ========================================================================== */
.team-slider-section {
  background: var(--blue-faint); /* Same as the "What we believe" section. */
  overflow: hidden;
}
.team-slider-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.team-slider-top .section-head {
  flex: 1;
  margin-bottom: 0;
}
.team-slider-nav {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
.team-slider-btn {
  width: 52px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--blue-primary);
  color: var(--white);
  transition:
    background var(--dur-fast),
    transform var(--dur-fast);
}
.team-slider-btn:hover,
.team-slider-btn:focus-visible {
  background: var(--blue-bright);
  transform: translateY(-2px);
}
.team-slider-section.is-static .team-slider-nav {
  display: none;
}

.team-slider {
  --per-view: 3;
  --gap: 24px;
  overflow: hidden;
  touch-action: pan-y;
}
.team-slider-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.team-slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
}

.member-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-height: 230px;
  padding: 30px 26px 30px 30px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--dur-med),
    border-color var(--dur-med);
  user-select: none;
}
.member-card:hover {
  border-color: rgba(36, 99, 232, 0.35);
  box-shadow: var(--shadow-md);
}
.member-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.member-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-dark);
}
.member-card-role {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-primary);
}
.member-card-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.member-card-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--navy-dark);
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
}
.member-card-social a:hover,
.member-card-social a:focus-visible {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}
.asw-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.member-card-photo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 10px 16px rgba(7, 26, 74, 0.16)); /* Follows the shield outline. */
}
/* Shield frame: blue shield behind, photo clipped to the same shield inside. */
.member-shield {
  width: 138px;
  aspect-ratio: 186 / 240;
  padding: 5px;
  background: var(--grad-blue);
  clip-path: url(#asw-shield);
  transition: transform var(--dur-med) var(--ease-out);
}
.member-card:hover .member-shield {
  transform: translateY(-4px);
}
.member-shield img,
.member-card-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  clip-path: url(#asw-shield);
  background: var(--blue-soft);
  pointer-events: none;
}
.member-card-initials {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-dark);
}

@media (max-width: 1199px) {
  .team-slider {
    --per-view: 2;
  }
}
@media (max-width: 767px) {
  .team-slider {
    --per-view: 1;
    --gap: 16px;
  }
  .team-slider-top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }
  .member-card {
    min-height: 210px;
    padding: 24px 20px 24px 24px;
  }
  .member-shield {
    width: 118px;
  }
}
