/*
Theme Name: TRENDawe
Description: TRENDawe pilot theme. Faithful public-layout replica structure with TRENDawe identity and original copy. Staging only (noindex).
Version: 0.1.0
Author: TRENDawe
*/

:root {
  --blue: #2f4bd7;
  --blue-dark: #1e36a8;
  --navy: #20243a;
  --ink: #16182b;
  --muted: #565b73;
  --orange: #f57c00;
  --border: #e4e7f2;
  --bg-soft: #f5f7ff;
  --radius: 14px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 2px 14px rgba(15, 23, 42, .08);
}
.site-header .header-inner, .site-header .btn, .site-header a, .site-header span {
  text-rendering: optimizeLegibility;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.site-logo { flex: none; }
.site-logo img { height: 40px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover { color: var(--blue); text-decoration: none; }
.nav-link .chev { transition: transform .18s ease; font-size: 11px; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.header-cta { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  padding: 11px 26px;
  cursor: pointer;
  border: 2px solid var(--blue);
  transition: background .15s ease, color .15s ease;
}
.btn-outline { background: #fff; color: var(--blue); }
.btn-outline:hover { background: var(--bg-soft); text-decoration: none; }
.btn-filled { background: var(--blue); color: #fff; }
.btn-filled:hover { background: var(--blue-dark); text-decoration: none; }

/* Dropdown panels */
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 25, 70, .14);
  padding: 14px;
  display: none;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 210;
}
.nav-panel.open { display: block; }
.panel-services { width: 320px; }
.panel-countries { width: 460px; }
.panel-company { width: 280px; }

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}
.panel-title-row:hover { background: var(--bg-soft); text-decoration: none; }

.platform-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  position: relative;
}
.platform-row:hover { background: var(--bg-soft); text-decoration: none; }
.platform-row .go { margin-inline-start: auto; color: #aab; font-size: 12px; }
.platform-row:hover .go { color: var(--blue); }

.pf-badge {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: none;
  letter-spacing: .2px;
}
.pf-badge img { display: block; width: 15px; height: 15px; }
.icon-bar .pf-badge img, .social-row .pf-badge img { width: 17px; height: 17px; }

/* Flyout */
.flyout {
  position: absolute;
  inset-inline-start: calc(100% + 10px);
  top: -8px;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 25, 70, .14);
  padding: 12px;
  display: none;
  z-index: 220;
}
.platform-row:hover > .flyout,
.platform-row:focus-within > .flyout { display: block; }
.flyout a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14.5px;
}
.flyout a:hover { background: var(--bg-soft); color: var(--blue); text-decoration: none; }
.flyout .fly-hub { font-weight: 700; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

/* Country panel */
.country-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.country-cols a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14.5px;
}
.country-cols a:hover { background: var(--bg-soft); color: var(--blue); text-decoration: none; }

.panel-company a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14.5px;
}
.panel-company a:hover { background: var(--bg-soft); color: var(--blue); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 85% -10%, #eef1ff 0%, rgba(238, 241, 255, 0) 60%),
    radial-gradient(700px 420px at -10% 110%, #fff4e6 0%, rgba(255, 244, 230, 0) 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 72px 24px 96px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(20, 25, 70, .06);
}
.hero-kicker .star { color: #f5a623; }
.hero h1 {
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin: 22px 0 18px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue), #5b8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; text-align: center; }
.hero-art img { max-height: 560px; width: auto; filter: drop-shadow(0 30px 50px rgba(20, 25, 70, .22)); }

.icon-bar {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 26px;
  display: flex;
  gap: 10px;
  background: rgba(22, 24, 43, .9);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(20, 25, 70, .3);
}
.icon-bar .pf-badge { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; }

/* Platform brand colors */
.pf-facebook  { background: #1877f2; }
.pf-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.pf-youtube   { background: #ff0000; }
.pf-tiktok    { background: #010101; }
.pf-telegram  { background: #229ed9; }
.pf-twitter   { background: #000; }
.pf-linkedin  { background: #0a66c2; }
.pf-spotify   { background: #1db954; }
.pf-discord   { background: #5865f2; }
.pf-pinterest { background: #e60023; }
.pf-snapchat  { background: #fffc00; color: #000; }
.pf-threads   { background: #101010; }
.pf-reddit    { background: #ff4500; }
.pf-twitch    { background: #9146ff; }
.pf-soundcloud{ background: #ff5500; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, #101223 0%, #1b2350 55%, #243a8f 100%);
  color: #cdd3f0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.6fr .8fr;
  gap: 44px;
  padding: 64px 24px 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 16px;
}
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: #aab1d8; max-width: 34ch; }
.social-row { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.social-row a { display: inline-flex; }
.social-row .pf-badge {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; line-height: 0;
}
.social-row .pf-badge img { width: 18px; height: 18px; object-fit: contain; margin: 0; display: block; }
.social-row a:hover { transform: translateY(-2px); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 10px; }
.footer-links a { color: #cdd3f0; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }

.footer-services { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.footer-services details { margin: 0 0 6px; }
.footer-services summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e6e9fa;
  font-size: 14.5px;
  font-weight: 600;
  padding: 7px 0;
}
.footer-services summary::-webkit-details-marker { display: none; }
.footer-services summary .chev { margin-inline-start: auto; font-size: 11px; color: #8b93c4; transition: transform .18s ease; }
.footer-services details[open] summary .chev { transform: rotate(180deg); }
.footer-services .svc-links { padding: 2px 0 8px 34px; }
.footer-services .svc-links a { display: block; color: #aab1d8; font-size: 13.5px; padding: 3px 0; }
.footer-services .svc-links a:hover { color: #fff; }
.footer-services .svc-links a.svc-all { font-weight: 700; color: #cdd3f0; }

.footer-countries {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 34px 24px 46px;
  text-align: center;
}
.footer-countries h3 { color: #fff; font-size: 20px; margin: 0 0 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pills a {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #e6e9fa;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, .04);
}
.pills a:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }


/* Compact language dropdown */
.lang-dd { position: relative; flex: none; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 6px 9px;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--blue); border: 1.5px solid var(--blue); border-radius: 8px;
  background: #fff; cursor: pointer; list-style: none; white-space: nowrap;
  font-family: inherit;
}
.lang-dd-btn::-webkit-details-marker { display: none; }
.lang-dd-caret { font-size: 9px; }
.lang-dd[open] .lang-dd-btn { background: #eef1ff; }
.lang-dd-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 88px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
  padding: 4px; z-index: 60;
}
.lang-dd-menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: #0b1220; text-decoration: none;
}
.lang-dd-menu a:hover { background: #f1f4ff; color: var(--blue); }
.lang-dd-menu a[aria-current="true"] { color: var(--blue); background: #eef1ff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 20px 20px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav > ul > li { width: 100%; }
  .nav-panel { position: static; box-shadow: none; border-radius: 10px; margin: 4px 0 8px; width: 100%; max-height: 50vh; }
  .flyout { position: static; display: none; width: 100%; box-shadow: none; border-radius: 10px; margin: 2px 0 6px 34px; }
  .platform-row.fly-open > .flyout { display: block; }
  .platform-row:hover > .flyout { display: none; }
  .header-inner { gap: 8px; height: 60px; padding: 0 12px; }
  .site-logo img { height: 28px; max-width: 106px; }
  .nav-toggle { width: 40px; height: 40px; min-width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
  .header-cta { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: none; }
  .header-cta .btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; border-radius: 8px; }
  .main-nav { top: 64px; max-height: calc(100vh - 64px); }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 120px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero h1 { font-size: 38px; }
  .hero-art img { max-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-services { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .country-cols { grid-template-columns: 1fr; }
  .header-inner { padding: 0 10px; gap: 6px; }
  .header-cta { gap: 5px; }
  .header-cta .btn { padding: 6px 8px; font-size: 11px; min-height: 38px; display: inline-flex; align-items: center; }
  .lang-dd-btn { padding: 5px 8px; font-size: 11px; min-height: 38px; }
  .site-logo img { height: 24px; max-width: 88px; }
  [dir="rtl"] .header-inner { padding: 0 8px; gap: 5px; }
  [dir="rtl"] .site-logo { flex: 0 1 auto; min-width: 0; }
  [dir="rtl"] .site-logo img { max-width: 76px; }
  [dir="rtl"] .header-cta { gap: 4px; min-width: 0; }
  [dir="rtl"] .header-cta .btn { padding: 5px 6px; font-size: 10.5px; white-space: nowrap; min-height: 38px; display: inline-flex; align-items: center; }
  [dir="rtl"] .lang-dd-btn { padding: 5px 6px; font-size: 10.5px; min-height: 38px; }
  .hero-inner { padding: 36px 18px 100px; }
  .hero h1 { font-size: 30px; }
  .hero-ctas .btn { padding: 10px 14px; font-size: 14px; }
}

/* Interior pages */
.page-hero { background: linear-gradient(180deg, #eef2ff, #fff); padding: 56px 0 36px; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin: 14px 0 10px; color: #0b1220; }
.page-hero .lead { color: #4b5563; max-width: 640px; font-size: 17px; }
.page-hero .pf-badge { width: 44px; height: 44px; border-radius: 12px; }
.page-hero .pf-badge img { width: 24px; height: 24px; }
.page-body { padding: 40px 0 64px; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.svc-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #0b1220; font-weight: 600; text-decoration: none; }
.svc-card:hover { border-color: var(--blue); color: var(--blue); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 12px 0 28px; }
.step { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: #4b5563; font-size: 14px; }
@media (max-width: 640px) { .page-hero h1 { font-size: 27px; } }

/* Homepage sections */
.stats-band { background: var(--blue-dark); padding: 30px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { text-align: center; color: #fff; }
.stat-num { display: block; font-size: 30px; font-weight: 800; }
.stat-label { display: block; margin-top: 4px; color: #c7d2fe; font-size: 14px; }
.home-section { padding: 48px 0; }
.home-section-alt { background: #f8fafc; }
.home-section h2 { font-size: 28px; font-weight: 800; color: #0b1220; margin: 0 0 14px; }
.home-section > .wrap > p { color: #4b5563; max-width: 720px; font-size: 16px; }
.feat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.feat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; }
.home-section-alt .feat-card { background: #fff; }
.feat-card h3 { margin: 0 0 8px; font-size: 16px; color: #0b1220; }
.feat-card p { margin: 0; color: #4b5563; font-size: 14px; }
.api-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.api-band > div { flex: 1 1 420px; }
.api-band p { color: #4b5563; margin: 0; }
.faq-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 20px; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px 20px; background: #fff; }
.faq-item h3 { margin: 0 0 8px; font-size: 15px; color: #0b1220; }
.faq-item p { margin: 0; color: #4b5563; font-size: 14px; }
.cta-band { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); padding: 52px 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.cta-inner p { color: #c7d2fe; margin: 0 0 22px; }
.cta-inner .hero-ctas { justify-content: center; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-num { font-size: 21px; }
  .stat-label { font-size: 12px; }
  .home-section { padding: 36px 0; }
  .home-section h2 { font-size: 23px; }
}
.stats-caption { text-align: center; color: #a5b4fc; font-size: 11px; margin-top: 10px; opacity: .85; }
