/*
Theme Name: Baby Life
Theme URI: https://babylife.jo
Author: Baby Life / Khattab Group
Description: A bilingual brochure theme for Baby Life, Jordan's leading diaper manufacturer. Arabic is treated as a first-class design language rather than a translation layer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: babylife
*/

:root{
  /* ---- Brand palette, exactly as recorded in the site identity ---------- */
  --brand:#38a49c;        /* accent_color    */
  --brand-green:#b3ddba;  /* alternate_color */
  --brand-cream:#fff1ca;  /* third_color     */
  --brand-blue:#adc1d8;   /* fourth_color    */

  /* #38a49c sits at ~2.9:1 on white, below the 4.5:1 needed for body text.
     The brand colour is kept for fills and surfaces; this darker cousin —
     same hue, more depth — carries small text and links legibly. */
  --teal:var(--brand);
  --teal-deep:#1F6E68;

  /* Ground: near-white with a faint cool bias — deliberately not warm cream. */
  --milk:#FCFDFC;
  --cotton:#EDF5F3;
  --sage:var(--brand-green);
  --blush:#F7DBD2;

  /* Neutrals biased toward the brand teal rather than flat grey. */
  --ink:#12302D;
  --forest:#123833;
  --body:#4A625D;
  --mute:#82998F;
  --line:#E2ECE8;
  --hair:rgba(18,48,45,.10);

  --gold:#C6A15B;

  --display:'Fraunces',Georgia,serif;
  --sans:'Figtree',system-ui,-apple-system,sans-serif;
  --arabic:'Tajawal',system-ui,sans-serif;

  --r-md:20px;
  --r-lg:28px;
  --r-xl:44px;

  --shadow-soft:0 1px 3px rgba(15,39,36,.03),0 10px 30px rgba(15,39,36,.05);
  --shadow-lift:0 10px 24px rgba(15,39,36,.06),0 30px 70px rgba(15,39,36,.09);
  --ease:cubic-bezier(.22,.61,.36,1);

  --wrap:1200px;
  --gutter:clamp(20px,5vw,56px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--milk);color:var(--body);
  font-family:var(--sans);font-size:17px;line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}

h1,h2,h3,h4{
  font-family:var(--display);color:var(--ink);
  font-weight:400;line-height:1.06;letter-spacing:-.028em;
  text-wrap:balance;margin:0;
  font-variation-settings:'SOFT' 30,'WONK' 0;
}
h1{font-size:clamp(2.7rem,6.4vw,5.2rem)}
h2{font-size:clamp(2rem,4.4vw,3.4rem)}
h3{font-size:clamp(1.15rem,1.7vw,1.4rem);letter-spacing:-.012em;font-weight:500}
h4{font-size:1.05rem;font-weight:500}
p{margin:0 0 1.1rem}
p:last-child{margin-bottom:0}

.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:var(--gutter)}
/* Hidden until focused. Parking it off-canvas with a negative left offset
   extends the scrollable width; RTL pages open scrolled to the right edge, so
   the viewport lands on empty canvas and the site looks blank. Clip instead —
   it takes up no space in either direction. */
.skip{
	position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;
	overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
.skip:focus{
	position:fixed;inset-inline-start:16px;top:16px;z-index:200;
	width:auto;height:auto;margin:0;padding:.7rem 1.1rem;
	clip-path:none;background:#fff;border-radius:8px;
	box-shadow:var(--shadow-lift);color:var(--ink);
}

/* Fine letter-spaced small caps — a restrained, premium signal. */
.eyebrow{
  font-family:var(--sans);font-size:.72rem;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;color:var(--teal);
  display:block;margin-bottom:1.1rem;
}
.ar{font-family:var(--arabic);direction:rtl;unicode-bidi:isolate}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  padding:1rem 1.9rem;border-radius:999px;
  font-weight:600;font-size:.95rem;letter-spacing:.01em;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
  border:1px solid transparent;cursor:pointer;font-family:var(--sans);
}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{transform:translateY(-2px);background:var(--teal-deep);box-shadow:0 14px 32px rgba(23,90,82,.26)}
.btn-ghost{border-color:var(--hair);color:var(--ink)}
.btn-ghost:hover{transform:translateY(-2px);border-color:var(--ink)}
:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:6px}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  backdrop-filter:saturate(150%) blur(14px);
  background:rgba(252,253,252,.88);
  border-bottom:1px solid var(--hair);
}
.nav{display:flex;align-items:center;gap:1.6rem;min-height:104px}
.brand{font-family:var(--display);font-size:1.5rem;font-weight:500;color:var(--ink);letter-spacing:-.035em;flex:none}
.brand em{font-style:normal;color:var(--teal)}
.brand img{height:auto;width:auto;max-height:78px;max-width:250px}
.nav-menu{display:flex;gap:2rem;margin-inline-start:auto;font-size:.93rem;font-weight:500;list-style:none;margin-block:0;padding:0}
.nav-menu a{color:var(--body);transition:color .2s var(--ease)}
.nav-menu a:hover,.nav-menu .current-menu-item>a{color:var(--ink)}
.nav-lang{
  font-family:var(--arabic);font-weight:700;font-size:.98rem;
  padding:.45rem 1.05rem;border-radius:999px;
  border:1px solid var(--hair);color:var(--ink);flex:none;
  transition:background .25s var(--ease),border-color .25s var(--ease);
}
.nav-lang.is-latin{font-family:var(--sans);font-weight:600;font-size:.9rem}
.nav-lang:hover{background:var(--cotton);border-color:transparent}
.nav-toggle{display:none;background:none;border:0;font-size:1.5rem;color:var(--ink);cursor:pointer;padding:.3rem}

/* ---------- hero ---------- */
.hero{padding-block:clamp(3rem,8vw,6.5rem) 0;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.bilingual{display:flex;align-items:center;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
.bilingual .ar{font-size:1.05rem;font-weight:700;color:var(--teal-deep)}
.bilingual .bar{width:34px;height:1px;background:var(--hair)}
.bilingual .est{font-size:.72rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--mute)}
.hero h1{margin-bottom:1.6rem}
.hero h1 em{font-style:italic;color:var(--teal-deep);font-variation-settings:'SOFT' 60,'WONK' 1}
.hero-lede{font-size:1.1rem;max-width:42ch;margin-bottom:2.4rem}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
.hero-media{position:relative}
.hero-photo{border-radius:var(--r-xl);overflow:hidden;aspect-ratio:4/5;box-shadow:var(--shadow-lift);background:var(--cotton)}
.hero-photo img{width:100%;height:100%;object-fit:cover}
.hero-badge{
  position:absolute;inset-inline-start:-28px;bottom:38px;
  background:#fff;border-radius:var(--r-md);
  padding:1.05rem 1.35rem;box-shadow:var(--shadow-lift);
  display:flex;align-items:center;gap:.9rem;
}
.hero-badge .num{font-family:var(--display);font-size:2.1rem;color:var(--teal-deep);line-height:1}
.hero-badge .lbl{font-size:.8rem;line-height:1.35;max-width:15ch}

/* ---------- sections ---------- */
.section{padding-block:clamp(4rem,10vw,8rem)}
.section-tight{padding-block:clamp(2.5rem,6vw,4rem)}
.sec-head{max-width:56ch}
.sec-head.center{margin-inline:auto;text-align:center}
.sec-head p{margin-top:1.2rem;font-size:1.05rem;margin-bottom:0}

/* ---------- ranges ---------- */
.families{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:clamp(2.5rem,5vw,4rem)}
.family{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.family:hover{transform:translateY(-6px);box-shadow:var(--shadow-lift)}
/* Products get generous, quiet space around them — the premium cue. */
.family .shot{aspect-ratio:4/3;display:grid;place-items:center;padding:2.4rem;background:linear-gradient(170deg,color-mix(in srgb,var(--brand-green) 40%,#fff),#fff)}
.family:nth-child(2) .shot{background:linear-gradient(170deg,color-mix(in srgb,var(--blush) 55%,#fff),#fff)}
.family:nth-child(3) .shot{background:linear-gradient(170deg,color-mix(in srgb,var(--brand-blue) 34%,#fff),#fff)}
.family .shot img{max-height:100%;width:auto;object-fit:contain;mix-blend-mode:multiply}
.family .body{padding:1.8rem 1.9rem 2rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.family .ar-name{font-family:var(--arabic);font-size:1rem;color:var(--teal-deep);font-weight:700;direction:rtl}
.family p{font-size:.95rem;margin:0}
.family .sizes{margin-top:auto;padding-top:1.2rem;border-top:1px solid var(--line);font-size:.82rem;color:var(--mute)}

/* ---------- heritage band ---------- */
.heritage{background:var(--forest);color:#CFE0DA;border-radius:var(--r-xl);overflow:hidden}
.heritage-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,4.5rem);align-items:center;padding:clamp(2.6rem,6vw,5rem)}
.heritage h2{color:#fff}
.heritage .eyebrow{color:var(--gold)}
.heritage p{color:rgba(255,255,255,.76);margin-top:1.2rem;max-width:46ch}
.h-stats{display:grid;gap:1.6rem;margin:0;padding:0;list-style:none}
.h-stat{display:flex;align-items:baseline;gap:1.1rem;padding-bottom:1.4rem;border-bottom:1px solid rgba(255,255,255,.13)}
.h-stat:last-child{border-bottom:0;padding-bottom:0}
.h-stat .n{font-family:var(--display);font-size:clamp(2.1rem,3.6vw,2.9rem);color:#fff;line-height:1;min-width:3.4ch}
.h-stat .l{font-size:.92rem;color:rgba(255,255,255,.72)}

/* ---------- quality grid ---------- */
.ben-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:clamp(2.5rem,5vw,3.5rem);border-top:1px solid var(--hair)}
.ben{padding:2.2rem 0;border-bottom:1px solid var(--hair)}
.ben:not(:nth-child(3n)){border-inline-end:1px solid var(--hair);padding-inline-end:2rem}
.ben:not(:nth-child(3n+1)){padding-inline-start:2rem}
.ben .idx{font-family:var(--display);font-size:.95rem;color:var(--teal);display:block;margin-bottom:.7rem}
.ben h3{margin-bottom:.45rem}
.ben p{font-size:.93rem;margin:0}

/* ---------- gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;margin-top:clamp(2.5rem,5vw,3.5rem)}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.tile:hover{transform:translateY(-5px);box-shadow:var(--shadow-lift)}
.tile .shot{
  aspect-ratio:1/1;display:grid;place-items:center;padding:1.9rem;
  background:
    radial-gradient(66% 56% at 50% 34%, rgba(255,255,255,.9), transparent 72%),
    linear-gradient(168deg, color-mix(in srgb,var(--brand-green) 58%,#fff), color-mix(in srgb,var(--brand-blue) 34%,#fff));
}
.tile .shot img{max-height:100%;width:auto;object-fit:contain;mix-blend-mode:multiply}
.tile .cap{padding:1rem 1.2rem 1.3rem;border-top:1px solid var(--line)}
.tile .cap strong{display:block;color:var(--ink);font-weight:600;font-size:.95rem}
.tile .cap span{font-size:.82rem;color:var(--mute)}
.tile-empty{display:grid;place-items:center;text-align:center;padding:2rem;color:var(--mute);font-size:.88rem;border-style:dashed}

/* ---------- journal ---------- */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:clamp(2.5rem,5vw,3.5rem)}
.post-card{border-radius:var(--r-lg);overflow:hidden;background:#fff;border:1px solid var(--line);transition:transform .35s var(--ease),box-shadow .35s var(--ease);display:flex;flex-direction:column}
.post-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lift)}
.post-card .thumb{aspect-ratio:16/11;overflow:hidden;background:var(--cotton)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.post-card:hover .thumb img{transform:scale(1.04)}
.post-card .body{padding:1.5rem 1.6rem 1.8rem}
.post-card .meta{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--teal);margin-bottom:.6rem}

/* ---------- page & article ---------- */
.page-hero{padding-block:clamp(3rem,7vw,5.5rem) clamp(1.5rem,3vw,2.5rem)}
.page-hero .lede{font-size:1.12rem;max-width:60ch;margin-top:1.3rem}
.entry{max-width:72ch;font-size:1.05rem}
.entry h2{margin:2.6rem 0 1rem}
.entry h3{margin:2rem 0 .8rem}
.entry ul,.entry ol{padding-inline-start:1.3rem}
.entry li{margin-bottom:.5rem}
.entry img{border-radius:var(--r-md);margin-block:1.8rem}
.entry a:not(.btn){color:var(--teal-deep);text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
.entry blockquote{margin:2rem 0;padding-inline-start:1.4rem;border-inline-start:2px solid var(--teal);font-family:var(--display);font-size:1.3rem;line-height:1.4;color:var(--ink)}

/* ---------- contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.contact-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:clamp(1.8rem,3vw,2.6rem)}
.contact-list{list-style:none;margin:0;padding:0;display:grid;gap:1.4rem}
.contact-list li{display:grid;gap:.2rem}
.contact-list .k{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--teal)}
.contact-list .v{color:var(--ink);font-weight:500}
#babylife-map{height:420px;border-radius:var(--r-lg);overflow:hidden;background:var(--cotton);border:1px solid var(--line)}

/* Form fields */
.contact-card input[type=text],
.contact-card input[type=email],
.contact-card input[type=tel],
.contact-card textarea,
.contact-card select,
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 textarea,.wpcf7 select{
  width:100%;padding:.85rem 1rem;font:inherit;font-size:.98rem;color:var(--ink);
  background:var(--milk);border:1px solid var(--line);border-radius:12px;
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.wpcf7 input:focus,.wpcf7 textarea:focus,.wpcf7 select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(46,139,130,.14)}
.wpcf7 input[type=submit]{
  background:var(--ink);color:#fff;border:0;border-radius:999px;padding:1rem 2rem;
  font-weight:600;cursor:pointer;transition:background .25s var(--ease),transform .25s var(--ease);
}
.wpcf7 input[type=submit]:hover{background:var(--teal-deep);transform:translateY(-2px)}
.wpcf7 label{display:block;margin-bottom:1rem;font-size:.9rem;color:var(--body)}

/* ---------- cta ---------- */
.cta{text-align:center;padding-block:clamp(4rem,8vw,6.5rem)}
.cta h2{max-width:20ch;margin-inline:auto}
.cta p{max-width:50ch;margin:1.3rem auto 2.2rem}
.cta-actions{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:#A9C0BA;padding-block:clamp(3.5rem,7vw,5rem) 2rem;margin-top:clamp(3rem,6vw,5rem)}
.f-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:2.5rem}
.site-footer h4{color:#fff;font-family:var(--sans);font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;margin:0 0 1.2rem;font-weight:600}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.65rem;font-size:.93rem}
.site-footer a{transition:color .2s var(--ease)}
.site-footer a:hover{color:#fff}
.site-footer .brand{color:#fff;display:inline-block;margin-bottom:1.1rem}
.site-footer .brand em{color:var(--sage)}
.f-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:3rem;padding-top:1.6rem;display:flex;justify-content:space-between;gap:1rem;font-size:.84rem;color:#7E9791;flex-wrap:wrap;align-items:center}
.f-origin{display:inline-flex;align-items:center;gap:1rem;flex-wrap:wrap}

/* -------------------------------------------------------------------------
 * Arabic
 *
 * Arabic is a connected script: tracking breaks the joins and casing does
 * nothing. Glyphs also read larger and need more leading than Latin.
 * ---------------------------------------------------------------------- */

body.is-arabic,
body.is-arabic .btn,
body.is-arabic input,
body.is-arabic textarea,
body.is-arabic select{font-family:var(--arabic)}
body.is-arabic h1,
body.is-arabic h2,
body.is-arabic h3,
body.is-arabic h4,
body.is-arabic .brand{font-family:var(--arabic);font-weight:700;letter-spacing:normal;line-height:1.35}
body.is-arabic h1{font-size:clamp(2rem,4.6vw,3.4rem)}
body.is-arabic h2{font-size:clamp(1.6rem,3.4vw,2.5rem)}
body.is-arabic .eyebrow{letter-spacing:normal;text-transform:none;font-weight:700}
body.is-arabic p,body.is-arabic li{line-height:1.9}
body.is-arabic .hero h1 em{font-style:normal}
/* Latin-ordered runs must not reverse inside RTL text. */
body.is-arabic a[href^="tel:"],
body.is-arabic a[href^="mailto:"],
body.is-arabic .h-stat .n,
body.is-arabic .hero-badge .num,
body.is-arabic .ben .idx{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero-grid,.heritage-inner,.contact-grid{grid-template-columns:1fr}
  .families,.posts{grid-template-columns:1fr 1fr}
  .ben-grid{grid-template-columns:1fr 1fr}
  .ben:not(:nth-child(3n)){border-inline-end:0;padding-inline-end:0}
  .ben:not(:nth-child(3n+1)){padding-inline-start:0}
  .ben:nth-child(odd){border-inline-end:1px solid var(--hair);padding-inline-end:2rem}
  .ben:nth-child(even){padding-inline-start:2rem}
  .gallery{grid-template-columns:1fr 1fr}
  .f-grid{grid-template-columns:1fr 1fr}
  .hero-badge{inset-inline-start:16px}
  .nav-toggle{display:block;margin-inline-start:auto}
  .nav-menu{
    display:none;position:absolute;top:100%;inset-inline:0;
    flex-direction:column;gap:0;background:#fff;
    border-bottom:1px solid var(--hair);padding:1rem var(--gutter) 1.4rem;
  }
  .nav-menu.open{display:flex}
  .nav-menu li{padding:.55rem 0;border-bottom:1px solid var(--hair)}
  .nav-menu li:last-child{border-bottom:0}
}
@media (max-width:980px){
  /* The pack shot sticking while the copy scrolls only works beside it. */
  .product-grid{grid-template-columns:1fr}
  .product-shot{position:static;aspect-ratio:4/3}
}
@media (max-width:620px){
  .families,.posts,.ben-grid,.gallery,.f-grid{grid-template-columns:1fr}
  .ben{border-inline-end:0!important;padding-inline:0!important}
  .spec{gap:1.4rem}
  .post-nav-next{margin-inline-start:0;text-align:start}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important}
  html{scroll-behavior:auto}
  .family:hover,.tile:hover,.post-card:hover,.btn:hover{transform:none}
}

/* The header carries its own switcher; TranslatePress's floating widget would
   be a second, redundant control sitting over the content. */
.trp-floating-switcher,
.trp-language-switcher.trp-floating-switcher,
.trp-switcher-position-bottom{display:none!important}

.site-footer .brand img{height:auto;width:auto;max-height:58px;max-width:200px}

/* ---------- map pin -------------------------------------------------- */
/* Drawn in CSS rather than an image file: Leaflet's default marker resolves
   its icons relative to its own stylesheet and 404s from this theme. */
.bl-pin{background:none;border:0}
.bl-pin__dot{
	display:block;width:20px;height:20px;margin:3px;border-radius:50%;
	background:var(--brand);border:3px solid #fff;
	box-shadow:0 2px 10px rgba(15,39,36,.35);
}
.bl-pin__dot::after{
	content:'';position:absolute;inset:-7px;border-radius:50%;
	border:1px solid color-mix(in srgb,var(--brand) 55%,transparent);
}

/* ---------- colour: tinted section grounds ----------------------------
   The palette was carrying almost no weight with everything on near-white.
   These are the brand's own secondary colours, held at low saturation so the
   page gains depth without turning noisy. */
.section--tint-sage{background:color-mix(in srgb,var(--brand-green) 26%,#fff)}
.section--tint-cream{background:color-mix(in srgb,var(--brand-cream) 46%,#fff)}
.section--tint-blue{background:color-mix(in srgb,var(--brand-blue) 20%,#fff)}
.section--tint-teal{background:color-mix(in srgb,var(--brand) 8%,#fff)}

/* A soft wash behind the hero so the page does not open on flat white. */
.hero{
	background:
		radial-gradient(58% 78% at 82% 12%, color-mix(in srgb,var(--brand-green) 34%,transparent), transparent 70%),
		radial-gradient(46% 62% at 6% 88%, color-mix(in srgb,var(--blush) 42%,transparent), transparent 72%);
}

/* Cards lift off a tinted ground when they carry a hairline and a little warmth. */
.section--tint-sage .family,
.section--tint-cream .family,
.section--tint-blue .tile,
.section--tint-sage .tile,
.section--tint-cream .post-card{border-color:rgba(255,255,255,.9)}

/* Eyebrow and rules pick up more of the brand on tinted grounds. */
.section--tint-cream .eyebrow,
.section--tint-sage .eyebrow{color:var(--teal-deep)}

/* ---------- hero product panel ----------------------------------------
   The pack needs a lit ground and breathing room, not a photo crop. */
.hero-photo--pack{
	aspect-ratio:4/4.2;
	display:grid;place-items:center;
	padding:clamp(2rem,5vw,3.6rem);
	background:
		radial-gradient(72% 62% at 50% 34%, #fff, transparent 70%),
		linear-gradient(168deg, color-mix(in srgb,var(--brand-green) 46%,#fff), color-mix(in srgb,var(--brand-blue) 26%,#fff));
}
.hero-photo--pack img{
	width:auto;height:auto;max-width:100%;max-height:100%;
	object-fit:contain;mix-blend-mode:multiply;
	filter:drop-shadow(0 22px 34px rgba(15,39,36,.20));
}

/* -------------------------------------------------------------------------
 * Jordan
 *
 * The national colours are loud next to a teal-and-sage palette, so they are
 * confined to two components rather than spread across the page: a hairline
 * ribbon at the very top, and a seal that appears where origin is the point.
 * ---------------------------------------------------------------------- */

:root{
  --jo-black:#000;
  --jo-white:#fff;
  --jo-green:#007A3D;
  --jo-red:#CE1126;
}

/* Reads left-to-right as the flag does: red chevron, then the three bands.
   The white band is nudged to a light grey — true white against a near-white
   page reads as a gap in the ribbon rather than a stripe. */
.jo-stripe{
  height:4px;width:100%;
  background:linear-gradient(90deg,
    var(--jo-red)   0 7%,
    var(--jo-black) 7% 38%,
    #DCE5E1        38% 69%,
    var(--jo-green) 69% 100%);
}
body.is-arabic .jo-stripe{transform:scaleX(-1)}

.jo-flag{
  width:1.45em;height:.725em;flex:none;
  border-radius:2px;box-shadow:0 0 0 1px rgba(18,48,45,.14);
}

.jo-seal{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.5rem .95rem .5rem .75rem;
  border:1px solid var(--line);border-radius:999px;background:#fff;
  font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--ink);
  line-height:1;
}
.jo-seal--lg{padding:.65rem 1.15rem .65rem .9rem;font-size:.88rem}
.page-head .jo-seal{margin-top:2rem}
/* On the dark footer the white pill would shout; hollow it out instead. */
.site-footer .jo-seal{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);color:#fff}

.jo-star{width:1em;height:1em;color:var(--teal);flex:none}

/* -------------------------------------------------------------------------
 * Interior page headings
 *
 * Every page except the home page opened with a bare title on flat white, so
 * the copy started before the page had established itself. This gives them a
 * band of their own — the same wash as the hero, at lower intensity.
 * ---------------------------------------------------------------------- */

.page-head{
  padding-block:clamp(3rem,7vw,5.4rem) clamp(2.2rem,5vw,3.4rem);
  border-bottom:1px solid var(--hair);
  background:
    radial-gradient(62% 86% at 88% 6%, color-mix(in srgb,var(--brand-green) 30%,transparent), transparent 70%),
    radial-gradient(50% 70% at 2% 96%, color-mix(in srgb,var(--brand-cream) 52%,transparent), transparent 74%),
    var(--milk);
}
.page-head h1{max-width:20ch}
.page-head .lede{
  font-size:clamp(1.05rem,1.5vw,1.2rem);max-width:58ch;
  margin-top:1.4rem;margin-bottom:0;color:var(--body);
}
.page-head-ar{
  font-family:var(--arabic);direction:rtl;unicode-bidi:isolate;
  font-size:1.15rem;font-weight:700;color:var(--teal-deep);
  margin:.9rem 0 0;
}
/* An article headline is a sentence, not a label — it needs a longer measure. */
.page-head--article h1{max-width:24ch}
.page-head--article .lede{max-width:62ch}

.page-figure{
  margin:0 0 clamp(2rem,4vw,3rem);
  border-radius:var(--r-lg);overflow:hidden;
  box-shadow:var(--shadow-soft);
}

/* -------------------------------------------------------------------------
 * Long-form copy
 * ---------------------------------------------------------------------- */

/* Left-aligned, not centred: it then shares an edge with the heading band and
   the logo above it. A centred measure floats free of both. */
.entry{max-width:70ch;margin-inline:0}

/* The editor's "large" size renders bigger than the h1 it sits under, which
   inverts the hierarchy. Hold it to a lede. The !important is answering core's
   own !important on the preset font-size custom property. */
.entry .has-large-font-size,
.entry p.has-large-font-size{
  font-size:clamp(1.2rem,1.9vw,1.42rem)!important;line-height:1.6;
  color:var(--ink);font-weight:400;margin-bottom:1.8rem;
}

/* The heading band already carries the top space; a full section pad under it
   leaves the copy stranded. */
.page-head + .section,
.page-head + .product{padding-top:clamp(1.8rem,3.5vw,2.8rem)}

.entry h2{
  margin:3rem 0 1rem;font-size:clamp(1.7rem,3vw,2.3rem);
  padding-top:1.6rem;border-top:1px solid var(--hair);
}
.entry h2:first-child{margin-top:0;padding-top:0;border-top:0}
.entry h3{margin:2.2rem 0 .7rem}

.entry ul{list-style:none;padding-inline-start:0}
.entry ul li{position:relative;padding-inline-start:1.5rem}
.entry ul li::before{
  content:'';position:absolute;inset-inline-start:.15rem;top:.72em;
  width:6px;height:6px;border-radius:50%;background:var(--teal);
}
.entry ol{padding-inline-start:1.3rem}
.entry ol li::marker{color:var(--teal-deep);font-weight:600}

/* A paragraph led by a bold term is a definition — the About and product pages
   both use that shape to introduce a range. Give it the weight of one. */
.entry p:has(> strong:first-child){
  border-inline-start:2px solid color-mix(in srgb,var(--brand) 40%,transparent);
  padding-inline-start:1.2rem;margin-block:1.5rem;
}
.entry p > strong:first-child{color:var(--ink)}

.entry hr{
  border:0;height:auto;margin:3rem 0;text-align:center;
  color:color-mix(in srgb,var(--brand) 55%,transparent);
}
.entry hr::before{content:'✦';font-size:1rem;letter-spacing:1.4rem}

.post-nav{
  max-width:70ch;margin:clamp(2.5rem,5vw,3.5rem) auto 0;padding-top:1.8rem;
  border-top:1px solid var(--hair);
  display:flex;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;
  font-size:.93rem;
}
.post-nav a{color:var(--teal-deep)}
.post-nav a:hover{color:var(--ink)}
.post-nav-next{margin-inline-start:auto;text-align:end}

/* -------------------------------------------------------------------------
 * Product pages
 * ---------------------------------------------------------------------- */

.product{padding-block:clamp(2rem,4vw,3rem) clamp(3rem,7vw,5rem)}
.crumbs{
  display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;
  font-size:.82rem;color:var(--mute);margin-bottom:clamp(1.6rem,3vw,2.4rem);
}
.crumbs a{color:var(--teal-deep)}
.crumbs a:hover{color:var(--ink)}

.product-grid{
  display:grid;grid-template-columns:1.05fr .95fr;
  gap:clamp(2rem,5vw,4.5rem);align-items:start;
}
.product-shot{
  border-radius:var(--r-xl);overflow:hidden;
  aspect-ratio:1/1;display:grid;place-items:center;
  padding:clamp(1.6rem,3.4vw,2.6rem);
  background:
    radial-gradient(64% 54% at 50% 32%, rgba(255,255,255,.92), transparent 72%),
    linear-gradient(165deg,
      color-mix(in srgb,var(--brand-green) 72%,#fff) 0%,
      color-mix(in srgb,var(--brand-blue)  52%,#fff) 58%,
      color-mix(in srgb,var(--brand-cream) 66%,#fff) 100%);
  box-shadow:var(--shadow-soft);
  position:sticky;top:130px;
}
.product-shot img{
  width:auto;height:auto;max-width:100%;max-height:100%;
  object-fit:contain;mix-blend-mode:multiply;
  filter:drop-shadow(0 20px 30px rgba(15,39,36,.18));
}

.product-info h1{font-size:clamp(2.2rem,4.6vw,3.6rem)}
.product-ar{
  font-family:var(--arabic);direction:rtl;unicode-bidi:isolate;
  font-size:1.2rem;font-weight:700;color:var(--teal-deep);margin:.8rem 0 0;
}
.spec{
  list-style:none;margin:1.8rem 0 0;padding:0;
  display:flex;gap:2.2rem;flex-wrap:wrap;
  padding-block:1.2rem;border-block:1px solid var(--hair);
}
.spec li{display:grid;gap:.25rem}
.spec .k{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--teal)}
.spec .v{color:var(--ink);font-weight:600;font-size:1.02rem}
body.is-arabic .spec .k{letter-spacing:normal;text-transform:none;font-weight:700}

.product-copy{max-width:52ch;margin-inline:0;margin-top:1.6rem;font-size:1.02rem}
.product-info .jo-seal{margin-top:1.8rem}
.product-cta{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.8rem}

/* ---------- range chips ---------- */
.chips{display:flex;gap:.55rem;flex-wrap:wrap;margin-bottom:clamp(2rem,4vw,2.8rem)}
.chip{
  padding:.55rem 1.15rem;border-radius:999px;
  border:1px solid var(--line);background:#fff;
  font-size:.88rem;font-weight:600;color:var(--body);
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.chip:hover{border-color:var(--ink);color:var(--ink)}
.chip.is-on{background:var(--ink);border-color:var(--ink);color:#fff}

/* The archive card carries a range label the home-page gallery does not. */
.cap-range{
  display:block;font-size:.68rem;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;
  color:var(--teal-deep);margin-bottom:.4rem;
}
body.is-arabic .cap-range{letter-spacing:normal;text-transform:none;font-weight:700}

.posts--flush{margin-top:0}

/* ---------- pagination ---------- */
.pagination{margin-top:clamp(2.5rem,5vw,3.5rem)}
.pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.pagination .page-numbers{
  min-width:42px;height:42px;padding:0 .8rem;
  display:inline-grid;place-items:center;border-radius:999px;
  border:1px solid var(--line);background:#fff;font-size:.9rem;font-weight:600;
  color:var(--body);transition:background .25s var(--ease),color .25s var(--ease);
}
.pagination .page-numbers:hover{color:var(--ink);border-color:var(--ink)}
.pagination .page-numbers.current{background:var(--ink);border-color:var(--ink);color:#fff}

/* ---------- social icons ---------------------------------------------- */
.social-row{display:flex;gap:.6rem;margin-top:1.4rem;flex-wrap:wrap}
.social-btn{
	display:grid;place-items:center;width:42px;height:42px;border-radius:50%;
	background:rgba(255,255,255,.10);color:#fff;
	transition:background .25s var(--ease),transform .25s var(--ease),color .25s var(--ease);
}
.social-btn svg{width:20px;height:20px;fill:currentColor}
.social-btn:hover{background:var(--brand);color:#fff;transform:translateY(-2px)}
/* Same component on a light ground. */
.social-row--light .social-btn{background:var(--cotton);color:var(--teal-deep)}
.social-row--light .social-btn:hover{background:var(--brand);color:#fff}
