/*
 Theme Name: Astra Jusur
 Theme URI: https://jusur.gent01.dev.grid.tf
 Description: Astra child theme for Jusur travel packages site
 Author: Jusur
 Template: astra
 Version: 2.0.0
 Text Domain: astra-jusur
 Tags: rtl-language, arabic
*/

/* =============================================
   JUSUR DESIGN SYSTEM v2
   Single unified system for all pages
   ============================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  --j-navy:   #0d2b4e;
  --j-navy2:  #0e3d6e;
  --j-orange: #e67e22;
  --j-gold:   #f39c12;
  --j-bg:     #f7f9fc;
  --j-white:  #ffffff;
  --j-text:   #1e293b;
  --j-muted:  #64748b;
  --j-border: #e2e8f0;
  --j-radius: 14px;
  --j-shadow: 0 2px 12px rgba(0,0,0,.07);
  --j-shadow2: 0 10px 32px rgba(0,0,0,.12);
  --j-container: 1160px;
  --j-transition: .22s ease;
}

/* =============================================
   BASE RESET & TYPOGRAPHY
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Cairo', sans-serif !important;
  color: var(--j-text);
  background: #fff;
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4 {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700;
  line-height: 1.25;
  color: var(--j-navy) !important;
}

a { color: var(--j-navy); transition: color var(--j-transition); }
a:hover { color: var(--j-orange); }

img { max-width: 100%; height: auto; }
p { line-height: 1.75; }

/* =============================================
   LAYOUT UTILS
   ============================================= */

/* Break out of Astra's flex container on all our pages */
.home #content > .ast-container,
.post-type-archive-packages #content > .ast-container,
.single-packages #content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home #primary,
.home .site-main,
.home .ast-article-single,
.home .entry-content,
.post-type-archive-packages #primary,
.post-type-archive-packages .site-main,
.single-packages #primary,
.single-packages .site-main,
.single-packages .ast-article-single,
.single-packages .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home.ast-plain-container.ast-no-sidebar #primary,
.post-type-archive-packages.ast-plain-container.ast-no-sidebar #primary,
.single-packages.ast-plain-container.ast-no-sidebar #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Shared container */
.j-container {
  max-width: var(--j-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Shared section spacing */
.j-section {
  padding: 5rem 0;
}
.j-section--gray { background: var(--j-bg); }
.j-section--navy {
  background: var(--j-navy);
  color: rgba(255,255,255,.85);
}

/* Section heading */
.j-section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--j-navy) !important;
  margin: 0 0 .5rem;
}
.j-section-sub {
  color: var(--j-muted);
  font-size: 1.05rem;
  margin: 0;
}
.j-section-hdr {
  margin-bottom: 2.75rem;
}
.j-section-hdr--between {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.j-section-hdr--center { text-align: center; }
.j-section-hdr--center .j-section-sub { max-width: 520px; margin: .5rem auto 0; }

/* =============================================
   BUTTONS
   ============================================= */

.j-btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform var(--j-transition), box-shadow var(--j-transition), background var(--j-transition);
  cursor: pointer;
}
.j-btn--primary {
  background: var(--j-orange);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(230,126,34,.35);
}
.j-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230,126,34,.45);
  color: #fff !important;
}
.j-btn--outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.5);
}
.j-btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff !important;
}
.j-btn--navy {
  background: var(--j-navy);
  color: #fff !important;
}
.j-btn--navy:hover {
  background: var(--j-navy2);
  transform: translateY(-2px);
  color: #fff !important;
}
.j-btn--sm { padding: .5rem 1.25rem; font-size: .88rem; }
.j-btn--lg { padding: .95rem 2.75rem; font-size: 1.1rem; }

/* See-all link */
.j-see-all {
  color: var(--j-orange);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.j-see-all:hover { text-decoration: underline; color: var(--j-orange); }

/* =============================================
   PAGE HERO (shared: homepage, archive, single)
   ============================================= */

.j-hero {
  min-height: 88vh;
  background: linear-gradient(160deg, #0a2240 0%, #0d3564 55%, #0e4d8a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* archive/page hero — shorter */
.j-hero--md { min-height: 44vh; padding: 5rem 2rem 3.5rem; }

/* single package hero — with BG image */
.j-hero--pkg {
  min-height: 72vh;
  background-size: cover;
  background-position: center;
}
.j-hero--pkg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,34,64,.88) 0%, rgba(10,34,64,.5) 60%, rgba(10,34,64,.2) 100%);
}

.j-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.j-hero__eyebrow {
  display: inline-block;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.j-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #fff !important;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.j-hero__title span { color: var(--j-gold); }

.j-hero__sub {
  color: rgba(255,255,255,.75);
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.j-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.j-hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  font-size: 1.3rem;
  animation: j-bounce 2s infinite;
}
@keyframes j-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Breadcrumb in single hero */
.j-hero__breadcrumb {
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.j-hero__breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.j-hero__breadcrumb a:hover { color: #fff; }

/* Badges row */
.j-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: .5rem;
}
.j-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .9rem;
}
.j-badge--price {
  background: var(--j-orange);
  border-color: transparent;
  font-size: 1rem;
}

/* =============================================
   PACKAGE CARD (shared: homepage + archive)
   ============================================= */

.j-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.j-card {
  background: var(--j-white);
  border-radius: var(--j-radius);
  overflow: hidden;
  box-shadow: var(--j-shadow);
  border: 1px solid var(--j-border);
  transition: transform var(--j-transition), box-shadow var(--j-transition);
  display: flex;
  flex-direction: column;
}
.j-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--j-shadow2);
}

.j-card__img {
  display: block;
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--j-navy), var(--j-navy2));
  text-decoration: none;
}
.j-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.j-card:hover .j-card__img img { transform: scale(1.05); }

.j-card__img-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}

.j-card__country {
  position: absolute;
  top: .85rem;
  right: .85rem;
  background: rgba(255,255,255,.92);
  color: var(--j-navy);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .8rem;
  border-radius: 50px;
}

.j-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.j-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  line-height: 1.4;
}
.j-card__title a {
  color: var(--j-navy) !important;
  text-decoration: none;
}
.j-card__title a:hover { color: var(--j-orange) !important; }

.j-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-bottom: 1.25rem;
}
.j-card__meta span {
  color: var(--j-muted);
  font-size: .83rem;
}

.j-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--j-border);
  margin-top: auto;
}
.j-card__price small {
  display: block;
  color: var(--j-muted);
  font-size: .72rem;
  margin-bottom: .15rem;
}
.j-card__price strong {
  color: var(--j-orange);
  font-size: 1.15rem;
  font-weight: 800;
}

/* =============================================
   WHY US — 3 PILLARS
   ============================================= */

.j-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.j-pillar {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--j-white);
  border-radius: var(--j-radius);
  border: 1px solid var(--j-border);
  box-shadow: var(--j-shadow);
}
.j-pillar__icon { font-size: 2.4rem; margin-bottom: 1rem; }
.j-pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--j-navy) !important;
  margin-bottom: .55rem;
}
.j-pillar p {
  color: var(--j-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   CTA STRIP
   ============================================= */

.j-cta-strip {
  background: var(--j-navy);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.j-cta-strip__text {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.j-cta-strip__title {
  color: #fff !important;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: .6rem;
}

/* =============================================
   SINGLE PACKAGE — BODY SECTIONS
   ============================================= */

.j-pkg-body {
  padding: 4rem 0;
  background: var(--j-white);
}

.j-pkg-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--j-border);
}
.j-pkg-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.j-pkg-section__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--j-navy) !important;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--j-orange);
  display: inline-block;
}

/* Highlights list */
.j-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 2rem;
}
.j-list li {
  padding: .5rem 0 .5rem 0;
  color: var(--j-text);
  font-size: .95rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.j-list li::before {
  content: '✦';
  color: var(--j-orange);
  flex-shrink: 0;
  margin-top: .1rem;
}
.j-list--check li::before { content: '✔'; color: #27ae60; }
.j-list--cross li::before { content: '✖'; color: #e74c3c; }
.j-list--single { grid-template-columns: 1fr; }

/* Included/Excluded grid */
.j-incl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.j-incl-col {
  border-radius: var(--j-radius);
  overflow: hidden;
  border: 1px solid var(--j-border);
}
.j-incl-col__head {
  padding: .85rem 1.25rem;
  font-weight: 700;
  font-size: .95rem;
}
.j-incl-col--yes .j-incl-col__head { background: #eafaf1; color: #1e8449; }
.j-incl-col--no  .j-incl-col__head { background: #fdf0f0; color: #c0392b; }
.j-incl-col .j-list { padding: 1.25rem; grid-template-columns: 1fr; gap: .4rem; }

/* Itinerary prose */
.j-prose { line-height: 1.8; color: var(--j-text); }
.j-prose h3 {
  font-size: 1.1rem !important;
  color: var(--j-navy) !important;
  margin: 1.5rem 0 .5rem;
  padding-right: .75rem;
  border-right: 3px solid var(--j-orange);
}
.j-prose p { margin-bottom: 1rem; color: #444; }

/* Gallery */
.j-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.j-gallery a { display: block; border-radius: 8px; overflow: hidden; }
.j-gallery img {
  width: 100%; height: 180px;
  object-fit: cover;
  transition: transform .3s;
}
.j-gallery a:hover img { transform: scale(1.05); }

/* Inquiry form section */
.j-form-section {
  background: var(--j-bg);
  border-radius: var(--j-radius);
  padding: 2.5rem;
  border: 1px solid var(--j-border);
}
.j-form-section p.j-form-intro {
  color: var(--j-muted);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

/* WPForms styling */
.j-form-section .wpforms-form .wpforms-field-label {
  font-weight: 600 !important;
  color: var(--j-text) !important;
  font-size: .9rem !important;
  margin-bottom: .4rem !important;
}
.j-form-section .wpforms-form input[type="text"],
.j-form-section .wpforms-form input[type="email"],
.j-form-section .wpforms-form textarea {
  border: 1.5px solid var(--j-border) !important;
  border-radius: 8px !important;
  padding: .75rem 1rem !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: .95rem !important;
  transition: border-color var(--j-transition) !important;
}
.j-form-section .wpforms-form input:focus,
.j-form-section .wpforms-form textarea:focus {
  border-color: var(--j-navy) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(13,43,78,.1) !important;
}
.j-form-section .wpforms-form .wpforms-submit {
  background: var(--j-orange) !important;
  border-radius: 50px !important;
  padding: .8rem 2.5rem !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  transition: all var(--j-transition) !important;
}
.j-form-section .wpforms-form .wpforms-submit:hover {
  background: var(--j-navy) !important;
  transform: translateY(-2px);
}

/* =============================================
   PAGINATION
   ============================================= */

.j-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.j-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 .75rem;
  border-radius: 8px;
  border: 1.5px solid var(--j-border);
  color: var(--j-navy);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--j-transition);
}
.j-pagination .page-numbers.current,
.j-pagination .page-numbers:hover {
  background: var(--j-orange);
  border-color: var(--j-orange);
  color: #fff;
}

/* =============================================
   GENERAL PAGE CONTENT (من نحن، اتصل بنا...)
   ============================================= */

/* Consistent entry header */
.ast-page-builder-template .entry-header,
.page .entry-header {
  display: none; /* we handle titles in templates */
}

/* Style Astra's default page content area */
.page:not(.home) #primary {
  max-width: var(--j-container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.page:not(.home) .entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--j-text);
}
.page:not(.home) .entry-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--j-border);
}
.page:not(.home) .entry-content p {
  margin-bottom: 1.25rem;
}
.page:not(.home) h1.entry-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  font-weight: 900;
  color: var(--j-navy) !important;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--j-orange);
  display: inline-block;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .j-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .j-pillars     { grid-template-columns: repeat(2, 1fr); }
  .j-gallery     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .j-hero        { min-height: 72vh; padding: 4.5rem 1.5rem 3rem; }
  .j-hero--md    { min-height: 35vh; padding: 4rem 1.5rem 2.5rem; }
  .j-hero--pkg   { min-height: 55vh; }
  .j-section     { padding: 3.5rem 0; }
  .j-cards-grid  { grid-template-columns: 1fr; }
  .j-pillars     { grid-template-columns: 1fr; }
  .j-incl-grid   { grid-template-columns: 1fr; }
  .j-list        { grid-template-columns: 1fr; }
  .j-gallery     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .j-hero__ctas  { flex-direction: column; align-items: center; }
  .j-btn--lg     { width: 100%; text-align: center; }
  .j-gallery     { grid-template-columns: 1fr; }
  .j-form-section { padding: 1.5rem; }
}

/* ---- Featured badge on card ---- */
.j-card__featured {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: var(--j-gold);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(243,156,18,.4);
}

/* =============================================
   SITE TITLE — جسور — Branded Style
   ============================================= */
.site-title,
.site-title a,
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  font-family: 'Cairo', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #ffffff 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

/* On white/light backgrounds (e.g. scrolled header if any) */
.main-header-bar .site-title a {
  background: linear-gradient(135deg, #0d2b4e 0%, #e67e22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Site title size override */
.site-title,
.site-title a,
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  font-size: 2.8rem !important;
}

/* ===== HEADER MENU ITEMS ===== */
.main-header-menu .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--j-navy) !important;
  letter-spacing: .01em;
  padding: 0 .9rem !important;
  transition: color .2s !important;
}
.main-header-menu .menu-item > .menu-link:hover,
.main-header-menu .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link:hover,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link {
  color: var(--j-orange) !important;
}
