/*
	Theme Name: Hello Elementor Child - Joy Zone
	Theme URI: https://joyzone.sa/
	Description: Child theme for Hello Elementor. All Joy Zone customisations (CSS and PHP) live here so a parent-theme update never overwrites them.
	Author: Joy Zone
	Template: hello-elementor
	Version: 1.0.0
	Text Domain: hello-elementor-child
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ==========================================================================
   Joy Zone custom styles
   --------------------------------------------------------------------------
   Anything written below overrides the parent theme. The parent's
   reset.css and theme.css are loaded first (see functions.php), so plain
   selectors are usually enough - avoid !important unless a plugin forces it.

   The site is RTL/Arabic: prefer logical properties (margin-inline-start,
   padding-inline-end, inset-inline-start) over left/right so the layout
   stays correct in both directions.
   ========================================================================== */

/* ==========================================================================
   KHARABEESH — placeholder @font-face blocks REMOVED.
   They pointed at files that were never delivered to this theme, so every
   page request fired six 404s for fonts that do not exist. The real face is
   declared further down against the file that is actually uploaded:
   /wp-content/uploads/fonts/kharabeesh-full-2.woff2
   ========================================================================== */

:root {
	/* "Joyzone AR" is the Hekaya face the site already uses in its header and on
	   the home page - it is the brand's reading font. Kharabeesh stays declared
	   further down as a display face, but it is no longer the site default:
	   having two faces in play was what made the same menu look different from
	   one page to the next. (A switch to Geist/Cairo was tried on 2026-09-15 and
	   reverted at the client's request: the site keeps this face.) */
	--jz-font: 'Joyzone AR', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Site-wide default. Deliberately no universal `*` selector: that would also
   hit icon elements (Font Awesome / eicons), whose glyphs ARE their
   font-family, and every icon on the site would turn into a stray letter. */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--jz-font);
}

/* --- Booking plugin -------------------------------------------------------
   The plugin hard-codes Tajawal in its own CSS and, on the confirmation page,
   in a <style> block printed inside the content - which lands AFTER this file
   in the document, so matching specificity would lose on source order. The
   `body` prefix raises specificity just enough to win without !important.
   Overriding from here (rather than editing the plugin) means a plugin
   update can't wipe it out.
   -------------------------------------------------------------------------- */

/* Public booking form at /jz */
body .jz-booking-container {
	font-family: var(--jz-font);
}

/* Payment / booking confirmation page */
body .jzps-wrap,
body .jzps-wrap * {
	font-family: var(--jz-font);
}

/* Staff login button */
body .jz-staff-login {
	font-family: var(--jz-font);
}

/* ==========================================================================
   KHARABEESH — the real brand face, self-hosted
   Declared across the full weight range so the browser maps every weight to
   this one file instead of synthesising a fake bold, which on a display face
   smears the letterforms.
   ========================================================================== */
@font-face{
	font-family:"Kharabeesh";
	src:url("/wp-content/uploads/fonts/kharabeesh-full-2.woff2") format("woff2");
	font-weight:100 900;
	font-style:normal;
	font-display:swap;
}
/* Second declaration, later in the file, so this is the one that wins - it has
   to say the same thing as the first or the site font silently changes. */
:root{ --jz-font: 'Joyzone AR', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; }

/* ==========================================================================
   [jz_trip_banner] — school-trip pricing banner above the booking form
   Brand language: hard black outlines, offset shadows, the star texture, and
   Kharabeesh on the headline. Arabic headings keep a 1.25 line-height; the
   tighter Latin values collide with the dots and descenders.
   ========================================================================== */
.jztb{
	--jztb-ink:#0E0A08;
	--jztb-yellow:#F9DE04;
	--jztb-red:#E51D1C;
	--jztb-cyan:#3CBDCD;
	direction:rtl;
	/* a flat multiply just swallowed the texture on this dark a base, so the
	   star field sits under a fixed ink veil instead - visible, not noisy. */
	background:linear-gradient(rgba(14,10,8,.87),rgba(14,10,8,.87)),
	           url('/wp-content/uploads/2026/09/tex-cyan.jpg') center/cover var(--jztb-ink);
	border:3px solid var(--jztb-ink);
	border-radius:26px;
	box-shadow:0 10px 0 var(--jztb-ink);
	overflow:hidden;
	margin:0 0 34px;
}
.jztb-in{padding:clamp(26px,4vw,46px) clamp(18px,3.5vw,40px);}

.jztb-head{text-align:center;margin-bottom:clamp(22px,3vw,32px);}
.jztb-kick{
	display:inline-block;font-family:var(--jz-font);font-weight:800;
	font-size:13px;letter-spacing:.1em;
	background:var(--jztb-yellow);color:var(--jztb-ink);
	border:3px solid var(--jztb-ink);border-radius:999px;padding:6px 18px;margin-bottom:14px;
}
.jztb-title{
	font-family:var(--jz-font);font-weight:800;color:#fff;
	font-size:clamp(26px,4.2vw,46px);line-height:1.25;margin:0 0 12px;
}
.jztb-sub{margin:0 auto;max-width:56ch;color:#D5DEDD;font-size:16px;line-height:1.85;}

.jztb-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
@media (max-width:760px){.jztb-cards{grid-template-columns:1fr;}}
.jztb-card{
	position:relative;text-align:center;
	background:#fff;color:var(--jztb-ink);
	border:3px solid var(--jztb-ink);border-radius:20px;
	box-shadow:0 7px 0 var(--jztb-ink);
	padding:22px 16px 18px;
	transition:transform .14s,box-shadow .14s;
}
.jztb-card:hover{transform:translateY(3px);box-shadow:0 4px 0 var(--jztb-ink);}
.jztb-card--y{background:var(--jztb-yellow);}
.jztb-card--c{background:var(--jztb-cyan);}
.jztb-card--r{background:var(--jztb-red);color:#fff;}
.jztb-size{display:block;font-family:var(--jz-font);font-weight:800;font-size:16px;margin-bottom:6px;}
.jztb-price{
	display:block;font-family:var(--jz-font);font-weight:800;
	font-size:clamp(38px,5.4vw,56px);line-height:1.1;letter-spacing:-.01em;
}
.jztb-price i{font-style:normal;font-size:.36em;margin-inline-start:6px;opacity:.75;}
.jztb-unit{display:block;font-size:14px;opacity:.8;margin-top:2px;}
.jztb-best{
	/* physical left/translate: the logical pair lands the badge off-centre in RTL */
	position:absolute;top:-14px;left:50%;transform:translateX(-50%);
	background:var(--jztb-yellow);color:var(--jztb-ink);
	border:3px solid var(--jztb-ink);border-radius:999px;
	font-family:var(--jz-font);font-weight:800;font-size:12.5px;padding:3px 14px;white-space:nowrap;
}

.jztb-incl{
	list-style:none;margin:clamp(22px,3vw,30px) 0 0;padding:0;
	display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px 22px;
}
.jztb-incl li{
	position:relative;padding-inline-start:28px;color:#E4EBEA;font-size:15px;line-height:1.7;
}
.jztb-incl li::before{
	content:"";position:absolute;inset-inline-start:0;top:.62em;
	/* physical borders - border-inline-start flips in RTL and turns the tick
	   into a chevron pointing the wrong way. */
	width:15px;height:9px;border-left:3px solid var(--jztb-yellow);
	border-bottom:3px solid var(--jztb-yellow);transform:rotate(-45deg);
}
.jztb-note{
	margin:22px 0 0;text-align:center;color:#fff;font-size:15.5px;
	background:rgba(255,255,255,.09);border-radius:14px;padding:12px 16px;
}
.jztb-note b{color:var(--jztb-yellow);font-family:var(--jz-font);font-weight:800;font-size:19px;}

/* ===========================================================================
   بوستر عرض الرحلات المدرسية — فوق نموذج الحجز في /jz
   البوستر طولي (٩:١٦). عرضه بكامل عرض الصفحة يبتلع الشاشة ويدفع النموذج
   تحت الطيّة، فيُقيَّد ارتفاعه ويُوضع داخل شريط بلون خلفية البوستر نفسه
   حتى يذوب فيه بدل أن يبدو ملصقاً معلّقاً في الفراغ.
   ========================================================================= */
.jz-offer-band{
	position:relative;
	margin:0 0 34px;
	padding:34px 16px 38px;
	background:linear-gradient(180deg,#2fb9c9 0%,#22a5b6 100%);
	border-block-end:5px solid #10222b;
	overflow:hidden;
}
/* نقاط خفيفة تكسر السطح اللوني بدون تشتيت */
.jz-offer-band::before{
	content:"";position:absolute;inset:0;
	background-image:radial-gradient(rgba(255,255,255,.16) 1.5px,transparent 1.6px);
	background-size:26px 26px;
	pointer-events:none;
}
.jz-offer-band .elementor-widget-image,
.jz-offer-band figure,
.jz-offer-band .elementor-image{margin:0;}

.jz-offer-poster{
	position:relative;
	display:block;
	width:100%;
	max-width:360px;
	margin-inline:auto;
	border:5px solid #10222b;
	border-radius:26px;
	overflow:hidden;
	box-shadow:0 18px 40px rgba(6,42,52,.38);
	background:#2fb9c9;
	transform:rotate(-1.2deg);
	transition:transform .35s ease,box-shadow .35s ease;
}
.jz-offer-poster:hover{
	transform:rotate(0deg) translateY(-4px);
	box-shadow:0 24px 52px rgba(6,42,52,.45);
}
.jz-offer-poster img{
	display:block;width:100%;height:auto;border-radius:21px;
}

/* شريط "احجز الآن" أسفل البوستر يربطه بالنموذج تحته */
.jz-offer-hint{
	position:relative;
	margin:20px auto 0;
	max-width:420px;
	text-align:center;
	color:#fff;
	font-family:var(--jz-font,inherit);
	font-weight:800;
	font-size:20px;
	line-height:1.5;
	text-shadow:0 2px 0 rgba(6,42,52,.35);
}

@media (max-width:768px){
	.jz-offer-band{padding:22px 14px 26px;margin-bottom:24px;}
	.jz-offer-poster{max-width:300px;transform:none;border-width:4px;border-radius:22px;}
	.jz-offer-poster img{border-radius:18px;}
	.jz-offer-hint{font-size:17px;}
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion:reduce){
	.jz-offer-poster{transform:none;transition:none;}
	.jz-offer-poster:hover{transform:none;}
}
