/* ============================================================
   AlMohamy v5 — TOP area (header, hero, stats, showcase, footer)
   Class prefix: t5-
   ========================================================== */

/* ---------- Announcement bar ---------- */
.t5-announcement {
  background: linear-gradient(90deg, rgba(212,168,83,.18), rgba(79,124,255,.12));
  border-bottom: 1px solid var(--v5-line-dark);
  color: var(--v5-text-2);
  font-size: .85rem;
}
.t5-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .45rem;
  min-height: 36px;
}
.t5-announcement-text {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t5-ann-badge {
  flex: none;
  padding: .15rem .55rem;
  border-radius: var(--v5-r-full);
  background: var(--v5-grad-gold);
  color: #1a1205;
  font-weight: 800;
  font-size: .72rem;
}
.t5-ann-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--v5-gold-300);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.t5-ann-link:hover { color: var(--v5-gold-400); }
.t5-ann-link .icon { width: .85rem; height: .85rem; }

@media (max-width: 640px) {
  .t5-announcement-text { font-size: .78rem; }
  .t5-ann-badge { font-size: .68rem; }
}

/* ---------- Header ---------- */
/* The block template wraps the header in <header class="wp-block-template-part"> of the same height,
   so the wrapper is what must stick. */
header.wp-block-template-part:has(> .t5-header) { position: sticky; top: 0; z-index: 100; }
.t5-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,13,34,.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--v5-line-dark);
  transition: background .3s var(--v5-ease), box-shadow .3s var(--v5-ease);
}
.t5-header.scrolled {
  background: rgba(6,13,34,.92);
  box-shadow: 0 8px 30px -12px rgba(3,8,23,.6);
}
.t5-nav-wrap { width: 100%; }
.t5-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}
.t5-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--v5-text);
  flex: none;
}
.t5-logo-icon { width: 36px; height: 32px; object-fit: contain; }
.t5-logo-brand { display: flex; flex-direction: column; line-height: 1.1; }
.t5-logo-text { font-weight: 900; font-size: 1.05rem; color: var(--v5-text); }
.t5-logo-sub { font-size: .7rem; color: var(--v5-text-3); letter-spacing: .05em; }
/* letter-spacing only on latin sub, acceptable */

.t5-nav { flex: 1; display: flex; justify-content: center; }
.t5-nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.t5-nav-list a {
  display: inline-flex;
  align-items: center;
  padding: .5rem .7rem;
  border-radius: var(--v5-r-full);
  color: var(--v5-text-2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.t5-nav-list a:hover { color: var(--v5-text); background: var(--v5-glass); }

.t5-cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.t5-wa-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(37,211,102,.15);
  border: 1px solid rgba(37,211,102,.35);
  color: #5be0b0;
  text-decoration: none;
  transition: transform .25s var(--v5-ease), background .25s;
}
.t5-wa-icon:hover { transform: translateY(-2px); background: rgba(37,211,102,.25); }
.t5-wa-icon .icon { width: 1.25rem; height: 1.25rem; }
.t5-trial-btn { font-size: .92rem; padding: .7rem 1.2rem; min-height: 44px; }

.t5-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--v5-line-dark-2);
  background: var(--v5-glass);
  color: var(--v5-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.t5-mobile-toggle .icon { width: 1.4rem; height: 1.4rem; }

/* Mobile menu sheet */
.t5-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--v5-ink-900);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s var(--v5-ease);
}
[dir="rtl"] .t5-mobile-menu { transform: translateX(-100%); }
.t5-mobile-menu.open { transform: none; }
.t5-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.t5-mobile-close {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--v5-line-dark-2);
  background: var(--v5-glass);
  color: var(--v5-text);
  display: grid; place-items: center;
  cursor: pointer;
}
.t5-mobile-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.t5-mobile-list a {
  display: block;
  padding: .9rem 1rem;
  border-radius: 12px;
  color: var(--v5-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--v5-ease), transform .4s var(--v5-ease), background .2s;
}
.t5-mobile-menu.open .t5-mobile-list a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i,0) * 60ms + 100ms);
}
.t5-mobile-list a:hover { background: var(--v5-glass); }
.t5-mobile-actions { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.t5-mobile-cta { }
.t5-mobile-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9rem;
  color: var(--v5-text-3);
}
.t5-mobile-contact a { color: var(--v5-text-3); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }

.menu-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(3,8,23,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.menu-overlay.show { display: block; }
.menu-overlay[hidden] { display: none; }

@media (max-width: 1199px) {
  .t5-nav { display: none; }
  .t5-mobile-toggle { display: inline-flex; }
  .t5-trial-btn { display: none; }
  /* keep wa icon */
}

@media (min-width: 1200px) {
  .t5-mobile-toggle { display: none; }
}

/* ---------- Hero ---------- */
.t5-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(6rem, 5rem + 4vw, 8rem); }
.t5-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}
@media (max-width: 1023px) {
  .t5-hero-inner { grid-template-columns: 1fr; }
  .t5-hero-visual { order: 2; }
}
.t5-hero-text { display: flex; flex-direction: column; gap: 1.25rem; }
.t5-hero-eyebrow { align-self: flex-start; }
.t5-hero-title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  color: var(--v5-text);
  text-wrap: balance;
}
.t5-hero-title em { font-style: normal; color: transparent; background: var(--v5-grad-gold-text); -webkit-background-clip: text; background-clip: text; }
.t5-hero-lead { max-width: 56ch; }
.t5-hero-micro { margin: 0; font-size: .9rem; color: var(--v5-text-3); }
.t5-hero-actions { margin-top: .25rem; }

.t5-trust-row {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
}
.t5-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--v5-text-2);
  font-weight: 600;
}
.t5-trust-row .icon { width: 1rem; height: 1rem; color: var(--v5-gold-400); }

/* Hero visual */
.t5-hero-visual {
  position: relative;
  min-height: 360px;
}
.t5-app-window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--v5-ink-800);
  border: 1px solid var(--v5-line-dark-2);
  box-shadow: var(--v5-shadow-lg);
}
.t5-window-bar {
  display: flex;
  gap: .45rem;
  padding: .6rem .85rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--v5-line-dark);
}
.t5-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.t5-dot:nth-child(1) { background: #f05252; }
.t5-dot:nth-child(2) { background: #f3c64a; }
.t5-dot:nth-child(3) { background: #19c38a; }
.t5-window-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1366 / 768;
  object-fit: cover;
}

.t5-hero-main {
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  transition: transform .5s var(--v5-ease);
  will-change: transform;
}
.t5-hero-main:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.t5-hero-secondary {
  position: absolute;
  bottom: -10%;
  inset-inline-start: -6%;
  width: 46%;
  transform: perspective(1200px) rotateY(8deg) rotateX(2deg);
  z-index: 2;
  box-shadow: var(--v5-shadow-md);
}
.t5-chip-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  border-radius: var(--v5-r-full);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--v5-line-dark-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--v5-text);
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--v5-shadow-md);
  animation: t5-float 6s ease-in-out infinite;
}
.t5-chip-float .icon { width: 1rem; height: 1rem; color: var(--v5-gold-400); }
.t5-chip-1 { top: 6%; inset-inline-end: -4%; animation-delay: 0s; }
.t5-chip-2 { top: 46%; inset-inline-start: -6%; animation-delay: 1.2s; }
.t5-chip-3 { bottom: 8%; inset-inline-end: 10%; animation-delay: 2.4s; }

@keyframes t5-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .t5-chip-float { animation: none; }
  .t5-hero-main { transform: none; }
}

@media (max-width: 1023px) {
  .t5-hero-secondary { display: none; }
  .t5-chip-2, .t5-chip-3 { display: none; }
  .t5-chip-1 { top: 4%; inset-inline-end: 4%; }
  .t5-hero-main { transform: none; }
  .t5-hero-visual { min-height: auto; }
}

/* ---------- Stats strip ---------- */
/* Full-width ink band so the overlapping strip never sits on the white page background. */
.t5-stats-band { background: var(--v5-ink-950); }
:where(.wp-site-blocks) > .t5-stats-band { margin-block-start: 0; }
.t5-stats-wrap {
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}
.t5-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--v5-glass-2);
  border: 1px solid var(--v5-line-dark-2);
  border-radius: var(--v5-r-xl);
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--v5-shadow-lg);
}
.t5-stat {
  padding: 1.25rem 1rem;
  text-align: center;
  background: rgba(6,13,34,.75);
}
.t5-stat-icon { margin-bottom: .4rem; }
.t5-stat-icon .icon { width: 1.4rem; height: 1.4rem; }
.t5-stat-num {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 900;
  color: var(--v5-text);
  line-height: 1.1;
}
.t5-stat-label { font-size: .78rem; color: var(--v5-text-3); margin-top: .25rem; }

@media (max-width: 767px) {
  .t5-stats-wrap { margin-top: -2rem; }
  .t5-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .t5-stat { scroll-snap-align: start; min-width: 44%; }
}

/* ---------- Showcase ---------- */
.t5-showcase { padding-top: clamp(5rem, 4rem + 5vw, 8rem); }
.t5-showcase-head { margin-bottom: 2rem; }
.t5-showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.t5-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .4rem;
  border-radius: var(--v5-r-full);
  background: var(--v5-glass);
  border: 1px solid var(--v5-line-dark);
}
.t5-tablist button {
  border: 0;
  background: transparent;
  color: var(--v5-text-2);
  padding: .5rem 1rem;
  border-radius: var(--v5-r-full);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.t5-tablist button[aria-selected="true"] {
  background: var(--v5-grad-gold);
  color: #1a1205;
}
.t5-tablist button:focus-visible { outline: 2px solid var(--v5-gold-400); outline-offset: 2px; }

.t5-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--v5-line-dark-2);
  background: var(--v5-glass);
  color: var(--v5-text);
  cursor: pointer;
}
.t5-theme-toggle .icon { width: 1.2rem; height: 1.2rem; }

.t5-showcase-panels { position: relative; }
.t5-showcase-panel {
  display: none;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  animation: t5-fade .4s var(--v5-ease);
}
.t5-showcase-panel.is-active { display: grid; }
@keyframes t5-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .t5-showcase-panel.is-active { grid-template-columns: 1fr; }
}

.t5-showcase-window { margin-bottom: 0; }
.t5-showcase-caption { padding: 1rem; }
.t5-showcase-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--v5-text);
  margin: 0 0 .5rem;
}
.t5-showcase-lead { color: var(--v5-text-2); margin: 0 0 1rem; line-height: 1.7; }
.t5-showcase-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.t5-showcase-bullets li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--v5-text-2);
  font-size: .92rem;
}
.t5-showcase-bullets li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v5-gold-500);
  flex: none;
}

/* ---------- Footer ---------- */
.t5-footer {
  background: var(--v5-ink-950);
  color: var(--v5-text);
  padding-top: 0;
  position: relative;
}
.t5-footer-gold-line {
  height: 2px;
  background: var(--v5-grad-gold);
}
.t5-footer-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid var(--v5-line-dark);
  margin-bottom: 2.5rem;
}
.t5-footer-cta-title { margin: 0 0 .35rem; font-size: 1.5rem; font-weight: 900; color: var(--v5-text); }
.t5-footer-cta-lead { margin: 0; color: var(--v5-text-3); }
.t5-footer-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.t5-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .t5-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .t5-footer-grid { grid-template-columns: 1fr; }
}
.t5-footer-col h4, .t5-footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--v5-text);
  margin: 0 0 1rem;
}
.t5-footer-blurb { color: var(--v5-text-3); font-size: .9rem; line-height: 1.7; margin: .75rem 0 1rem; }
.t5-store-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: var(--v5-r-full);
  background: var(--v5-glass);
  border: 1px solid var(--v5-line-dark-2);
  color: var(--v5-text-2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}
.t5-store-badge .icon { width: 1rem; height: 1rem; }
.t5-footer-contact, .t5-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.t5-footer-col ul a, .t5-footer-contact a {
  color: var(--v5-text-3);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.t5-footer-col ul a:hover, .t5-footer-contact a:hover { color: var(--v5-gold-400); }
.t5-footer-contact .icon { width: .9rem; height: .9rem; }

.t5-footer-markets {
  padding-block: 1.5rem;
  border-top: 1px solid var(--v5-line-dark);
  border-bottom: 1px solid var(--v5-line-dark);
  color: var(--v5-text-3);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.t5-markets-label { color: var(--v5-text-2); font-weight: 700; }

.t5-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  color: var(--v5-text-3);
  font-size: .85rem;
}
.t5-footer-version { color: var(--v5-gold-400); font-weight: 700; }

/* reduced motion already handled in core; ensure tilt disabled */
@media (prefers-reduced-motion: reduce) {
  .t5-showcase-panel { animation: none; }
}
