/*
Theme Name: TraVisa
Theme URI: https://yovisa.co
Author: TraVisa
Author URI: https://yovisa.co
Description: قالب ووردبريس مخصص لمنصة ترافيزا لخدمات التأشيرات والهجرة، بتصميم أصلي يدعم اللغة العربية واتجاه RTL بالكامل. يتضمن أنواع محتوى مخصصة للخدمات وآراء العملاء، وخيارات تخصيص لبيانات التواصل ولون الهوية.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yovisa
Tags: rtl-language-support, custom-logo, custom-menu, translation-ready, one-page
*/

/* -------------------------------------------------
   Reset & base
------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.25; }
p { margin: 0; line-height: 1.8; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

:root {
  --accent: #1657D6;
  --accent-dark: color-mix(in srgb, var(--accent) 82%, black);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  --ink: #12213b;
  --muted: #5c6b85;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --border: #e5e9f2;
}

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 16px;
  white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-dark { background: #fff; color: var(--accent-dark); }
.btn-on-dark:hover { background: var(--accent-soft); }
.btn-on-transparent { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-on-transparent:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 14.5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--accent-dark); background: var(--accent-soft); padding: 7px 16px; border-radius: 999px;
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 20px 40px -24px rgba(18,33,59,.25); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0;
}
.icon-badge.on-alt { background: #fff; }

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

.grid-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
@media (max-width: 900px) {
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .grid-6 { grid-template-columns: minmax(0, 1fr); }
}

.promo-banner {
  background-size: cover; background-position: center top;
  min-height: 200px;
}
@media (max-width: 780px) {
  .promo-banner { min-height: 240px; background-position: 70% top; }
}

/* -------------------------------------------------
   Header
------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { max-height: 42px; width: auto; }
.site-logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo-text .name { font-weight: 900; font-size: 19px; color: var(--ink); }
.site-logo-text .name span { color: var(--accent); }
.site-logo-text .tagline { font-size: 11px; color: var(--muted); font-weight: 500; }

.main-nav ul { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--ink); }
.main-nav a:hover { color: var(--accent); }

.nav-toggle { display: none; }
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; order: 1; }
  .site-header .wrap > .site-logo { order: 2; }
  .site-header .wrap > .btn { order: 3; }
}

#yovisa-mobile-nav {
  height: auto;
  background: #fff;
  border-top: 1px solid rgba(18,33,59,.08);
  box-shadow: 0 12px 24px rgba(18,33,59,.12);
}
#yovisa-mobile-nav a {
  display: block;
  padding: 10px 4px;
  font-weight: 500;
  color: var(--ink);
}

/* -------------------------------------------------
   Hero
------------------------------------------------- */
.hero {
  padding-top: 76px;
  background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent);
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-top: 22px; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-top: 20px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }

.hero-card-wrap { position: relative; display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 380px; aspect-ratio: 3/3.6; border-radius: 32px;
  background: linear-gradient(155deg, var(--accent), var(--accent-dark)); position: relative;
  box-shadow: 0 40px 70px -30px color-mix(in srgb, var(--accent) 55%, transparent); overflow: hidden;
}
.hero-card-inner {
  position: absolute; inset: 24px; background: rgba(255,255,255,.97); border-radius: 22px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.hero-card-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg-alt); }
.hero-card-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.hero-card-cta { margin-top: auto; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

/* -------------------------------------------------
   Testimonials
------------------------------------------------- */
.stars { display: flex; gap: 3px; color: #f5a524; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}

/* -------------------------------------------------
   App promo
------------------------------------------------- */
.app-promo {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark)); border-radius: 28px;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px;
  align-items: center; overflow: hidden; position: relative;
}
.app-promo h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.app-promo p { color: rgba(255,255,255,.92); margin-top: 14px; font-size: 16px; max-width: 48ch; }
.app-promo .actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.app-phone { position: relative; width: 210px; height: 300px; }
.app-phone img { position: absolute; width: 150px; height: auto; border-radius: 18px; filter: drop-shadow(0 18px 34px rgba(0,0,0,.35)); }
.app-phone .phone-back { top: 0; left: 0; opacity: .85; }
.app-phone .phone-front { bottom: 0; right: 0; }
.app-badge { display: inline-flex; }
.app-badge img { height: 44px; width: auto; display: block; border-radius: 8px; }
@media (max-width: 480px) { .app-badge img { height: 38px; } }

.card.card-photo { padding: 0; overflow: hidden; }
.card.card-photo .card-photo-media {
  height: 150px; background-size: cover; background-position: center; border-radius: 18px 18px 0 0;
}
.card.card-photo .card-body { padding: 24px; }
@media (max-width: 780px) { .app-promo { grid-template-columns: 1fr; } .app-phone { display: none; } }

/* -------------------------------------------------
   CTA banner
------------------------------------------------- */
.cta-banner { background: var(--ink); }
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 2.8vw, 30px); }
.cta-banner p { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 15.5px; }

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.site-footer { background: #0c1830; padding: 64px 0 28px; }
.site-footer .wrap.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 780px) { .site-footer .wrap.footer-grid { grid-template-columns: 1fr; } }
.site-footer .footer-about p { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 16px; max-width: 42ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: rgba(255,255,255,.16); }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact a, .footer-contact .item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); font-size: 14.5px; }
.footer-contact a:hover { color: #fff; }
.footer-contact .item.address { align-items: flex-start; }
.footer-contact .item.address svg { flex-shrink: 0; margin-top: 2px; }
.site-footer .bottom-bar {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.site-footer .bottom-bar span { color: rgba(255,255,255,.4); font-size: 13px; }

/* -------------------------------------------------
   Generic content pages (page.php / single.php)
------------------------------------------------- */
.page-header-simple { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 56px 0; text-align: center; }
.page-header-simple h1 { font-size: clamp(26px, 3.4vw, 36px); }
.content-area { padding: 64px 0; }
.content-area .entry-content { max-width: 760px; margin: 0 auto; font-size: 16.5px; color: var(--ink); }
.content-area .entry-content h2 { font-size: 24px; margin-top: 32px; margin-bottom: 12px; }
.content-area .entry-content p { margin-bottom: 16px; }
.content-area .entry-content img { border-radius: 14px; margin: 16px 0; }


/* -------------------------------------------------
   WhatsApp floating button
------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37,211,102,.6);
}
.whatsapp-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2.2s ease-out infinite;
}
.whatsapp-float svg { position: relative; z-index: 1; }
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (max-width: 780px) {
  .whatsapp-float { left: 14px; bottom: 14px; width: 52px; height: 52px; }
}


/* Hide SiteSEO plugin's floating admin icon (admin-only, clashes with WhatsApp button) */
#siteseo-universal-metabox-icon,
.siteseo-universal-modal {
  display: none !important;
}


/* -------------------------------------------------
 *    Country visa picker (taxonomy-product_cat.php)
 * ------------------------------------------------- */
.yovisa-picker-sub { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-size: 16px; }
.yovisa-visa-picker { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.yovisa-picker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .yovisa-picker-fields { grid-template-columns: 1fr; } }
.yovisa-field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.yovisa-field select {
	  appearance: none; font-family: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink);
	  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235c6b85' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left 16px center/14px no-repeat;
	  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 16px;
}
.yovisa-field select:focus { outline: none; border-color: var(--accent); }
.yovisa-picker-result { margin-top: 26px; padding-top: 26px; border-top: 1px dashed var(--border); }
.yovisa-result-price { display: flex; align-items: baseline; justify-content: space-between; background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; }
.yovisa-result-price-label { font-weight: 700; color: var(--ink); font-size: 15px; }
.yovisa-result-price-value { font-weight: 900; color: var(--accent-dark); font-size: 26px; }
.yovisa-result-docs h3 { font-size: 16.5px; margin-bottom: 12px; }
.yovisa-result-docs ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.yovisa-result-docs li { position: relative; padding-inline-start: 26px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.yovisa-result-docs li::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.yovisa-picker-result .btn { width: 100%; }
.yovisa-draft-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; }
.yovisa-wa-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 10px; color: #1f8a4c; font-weight: 600; font-size: 14px; text-decoration: none; }
.yovisa-wa-link:hover { background: var(--bg-alt); }

.yovisa-cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.yovisa-cart-link:hover { opacity: 0.75; }
.yovisa-cart-count { position: absolute; top: 0; left: 0; background: #d64545; color: #fff; font-size: 11px; line-height: 1; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.woocommerce div.product:before,
.woocommerce div.product:after,
.woocommerce ul.products:before,
.woocommerce ul.products:after { content: ""; display: table; }
.woocommerce div.product:after,
.woocommerce ul.products:after { clear: both; }
.woocommerce div.product { padding-bottom: 40px; }
