/* ============================================================
   THE HALAL VILLAGE — theme foundation
   Tokens, base elements, type scale, shared primitives.
   Ported verbatim from design/v2 (theme.css, home.css, pages.css).
   Canonical breakpoints for component cards:
   1080, 860 (desktop-nav collapse), 760, 560, 520, 480.
   The token layer is fluid and carries no breakpoints of its own; the one
   media query below belongs to the .apply__card form primitive, which moved
   here from companies.css in card 22 and brought its own 860 rule with it
   rather than leaving a copy in every stylesheet that renders the card.
   ============================================================ */
:root{
  --navy:#191E4B; --blue:#146EA0; --bright:#1982B4; --ink:#05050A;
  --pale:#E3ECF1; --pale-2:#F4F8FB; --line:#DBE6ED; --white:#fff; --muted:#3f4a57; /* secondary text: dark enough to read on white */
  --green:#1F8A5B; --amber:#C2703D;
  --edu-accent:#0D98C9; --edu-cream:#F5F2EB; /* the education platform's cyan (large shapes and rules only) and cream ground */
  --grad-vert:linear-gradient(180deg,#191D4E 0%,#1977AA 40%,#1B80B4 72%,#0B5390 100%);
  --grad-btn:linear-gradient(135deg,#191E4B 0%,#146EA0 55%,#1982B4 100%);
  --grad-band:linear-gradient(180deg,#146EA0 0%,#0F5A90 100%);
  --font:'Jost',system-ui,sans-serif; --serif:'Lora',Georgia,serif;
  --r-control:8px; --r-card:14px; --r-surface:22px; --shadow-card:0 14px 40px -22px rgba(12,40,80,.45);
  --shadow-soft:0 4px 24px -10px rgba(12,40,80,.30);
  --shadow-pop:0 30px 70px -30px rgba(12,40,80,.55);
  --ease:cubic-bezier(.5,.1,.1,1);
  --fs-h1:clamp(34px,5vw,62px); --fs-h2:clamp(26px,2.6vw,34px); --fs-h3:21px;
  --fs-body-lg:18px; --fs-body:16px; --fs-small:14px; --fs-micro:12.5px; --text:#232a3d;
  --maxw:1300px; --gutter:40px; --topbar-h:38px; --nav-h:74px; --hdr-h:74px;
}
/* one page gutter and content width; every wrapper and bleed rail reads these */
@media (max-width:1080px){:root{--gutter:32px;}}
@media (max-width:860px){:root{--gutter:28px;}}
@media (max-width:760px){:root{--gutter:24px;}}
@media (max-width:560px){:root{--gutter:22px;}}
@media (max-width:520px){:root{--gutter:20px;}}
@media (max-width:480px){:root{--gutter:16px;--fs-h1:clamp(32px,9vw,36px);}}
@media (min-width:1600px){:root{--maxw:1480px;}}
@media (min-width:2400px){:root{--maxw:1720px;}}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--white);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden;}
h1,h2,h3,h4,p{margin:0;}
img{display:block;max-width:100%;}
/* From WooCommerce's stylesheet, which only the funnel pages still load (functions.php). */
.woocommerce img,.woocommerce-page img{height:auto;max-width:100%;}
.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}
a{color:inherit;text-decoration:none;}
::selection{background:var(--bright);color:#fff;}
input,select{font-family:inherit;}

/* ---------- keyboard focus (card 21)
   The v2 design defines no focus styles at all, so nothing in the theme was
   visible under keyboard focus. One global ring, opt-out only where a
   component already ships its own (home.css .btile__go, pillars.css .edu__hit,
   seller.css .sw-card__btn) — those are single-class rules that win by being
   later in the cascade at equal specificity, which is why this block is
   deliberately the low-specificity one. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:2px solid var(--bright);outline-offset:2px;border-radius:3px;}
/* dark surfaces: the brand blue disappears on navy, so the ring goes light */
:where(.footer,.pbanner,.tup,.vhero,.chero,.shero,.modal--video,.cban)
  :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline-color:#8fd0f0;}

/* ---------- minimum target size (card 21)
   WCAG 2.5.8 (AA) puts the floor at 24x24 and exempts links sitting inside a
   sentence, whose size is constrained by the surrounding line-height — that
   covers the consent lines, the membership fine print and Woo's privacy note,
   which are deliberately left alone. These five are standalone navigation
   links that only *looked* like prose, and each measured 18-23px tall. The
   larger controls (buttons, pills, steppers, icon circles) are held at 44 in
   their own sheets. */
.footer ul a,
.footer__bottom-links a,
.crumbs a,
.prod__rate a,
.funnel .woocommerce p.woocommerce-LostPassword a{
  display:inline-flex;align-items:center;min-height:24px;}
@media (max-width:760px){.footer ul a,.footer__bottom-links a{min-height:44px;}}
/* 44px hit zone without growing the inline link */
.vprice__join{position:relative;}
.vprice__join::after{content:"";position:absolute;inset:-14px -6px;}

/* skip link — first focusable element on every page (header.php) */
/* Deliberately NOT animated: this is the first thing a keyboard user reaches,
   so it has to be on screen the instant it takes focus. Transitioning it in
   makes its visibility depend on frames actually being painted, which is one
   more thing that can go wrong for the one control that must never fail. */
.skip-link{position:fixed;top:8px;left:8px;z-index:200;transform:translateY(-160%);
  background:#fff;color:var(--blue);font-size:15px;font-weight:600;
  padding:12px 20px;border-radius:var(--r-surface);box-shadow:var(--shadow-pop);border:1.5px solid var(--blue);}
.skip-link:focus{transform:none;}
/* the skip target takes focus programmatically; it must not draw a ring of
   its own around the entire page body */
#thv-main:focus{outline:none;}

.shell{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gutter);}
.eyebrow{font-size:14px;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--blue);}
.section-title{font-weight:600;font-size:clamp(28px,3.2vw,42px);line-height:1.05;letter-spacing:-.01em;}
.hero-title{font-size:var(--fs-h1);font-weight:600;line-height:1.0;letter-spacing:-.02em;}
.lead{font-size:17px;line-height:1.55;font-weight:300;color:var(--muted);}
.section{padding:clamp(64px,8vw,108px) 0;}
.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:42px;}
.section__head .lead{max-width:560px;}
.section__head .eyebrow{margin-bottom:12px;display:block;}
.section__head p{margin-top:14px;color:var(--muted);font-size:17px;line-height:1.55;font-weight:300;}
.link-more{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:15px;color:var(--blue);white-space:nowrap;min-height:44px;}
.link-more .arrow{transition:transform .3s var(--ease);}
.link-more:hover .arrow{transform:translateX(5px);}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 28px;
  border-radius:26px;font-size:15.5px;font-weight:600;color:#fff;
  background:var(--grad-btn);background-size:160% 160%;
  transition:background-position .4s var(--ease),background-color .25s,border-color .25s;}
.btn:hover{background-position:100% 0;}
.btn--ghost{background:var(--pale);color:var(--blue);box-shadow:none;}
.btn--ghost:hover{background:#d6e6f0;}
.btn--line{background:transparent;color:var(--blue);border:1.5px solid var(--line);box-shadow:none;}
.btn--line:hover{background:var(--pale-2);border-color:var(--blue);box-shadow:none;}
.btn--light{background:#fff;color:var(--navy);}
.btn--light:hover{background:#fff;}
.btn--sm{height:44px;padding:0 18px;font-size:14px;}

/* logo */
.logo{display:block;height:54px;width:auto;}
.logo--sm{height:42px;} .logo--lg{height:60px;}
/* WooCommerce ships a blanket `.woocommerce img,.woocommerce-page img{height:auto}`
   (specificity 0,1,1) that outranks the single-class rules above and stretched the
   header and footer logo to its intrinsic 232x154, bleeding it out of the nav bar.
   Both body classes are needed: shop/product pages get `woocommerce`, while cart
   and checkout get only `woocommerce-page`. Same values, restated where Woo cannot
   outrank them. */
.woocommerce .logo,.woocommerce-page .logo{height:54px;width:auto;}
.woocommerce .logo--sm,.woocommerce-page .logo--sm{height:42px;}
.woocommerce .logo--lg,.woocommerce-page .logo--lg{height:60px;}

/* chip — generalized from the design's .inspire__filters .chip; reused by
   webshop dept pills and mosaic filters */
.chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;
  min-height:44px;padding:0 18px;border-radius:22px;border:1px solid var(--line);color:var(--muted);background:#fff;
  cursor:pointer;transition:all .25s var(--ease);}
.chip svg{flex:none;}
.chip:hover{border-color:var(--blue);color:var(--blue);}
.chip.is-active{background:var(--navy);color:#fff;border-color:var(--navy);}

/* form primitives shared by every capture surface (card 17 moved these here
   from the three page stylesheets that each had their own copy: the footer
   newsletter is site-wide, so they cannot live in a per-page file) */
.scr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
/* the honeypot is for bots only: off-screen rather than display:none, which
   some bots skip — untabbable, never announced */
.thv-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
/* consent notice under every mailing-list signup */
.thv-consent{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted);}
.thv-consent a{color:var(--blue);text-decoration:underline;}
.thv-consent--dark{color:rgba(255,255,255,.6);}
.thv-consent--dark a{color:rgba(255,255,255,.85);}

/* form card — the white card a designed form sits in, and the labelled field
   inside it. Named .apply__* after its first use (card 15, design
   companies.jsx ApplyForm); card 22 renders the identical card on /contact/,
   which is why this block moved up here from companies.css rather than being
   copied. companies.css keeps only the .apply section band around it. */
.apply__card{max-width:640px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--r-surface);padding:clamp(28px,4vw,48px);}
.apply__card h2{font-size:clamp(24px,2.6vw,32px);font-weight:600;text-align:center;}
.apply__sub{text-align:center;color:var(--muted);font-size:16px;margin-top:10px;font-weight:300;}
.apply__form{margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.apply__form .btn{grid-column:1/-1;}
.field{display:flex;flex-direction:column;gap:7px;}
.field.full{grid-column:1/-1;}
.field label{font-size:13.5px;font-weight:600;color:var(--navy);}
.field input,.field select,.field textarea{height:50px;border:1.5px solid var(--line);border-radius:var(--r-control);padding:0 16px;font-size:15px;color:var(--ink);outline:none;background:#fff;transition:border-color .2s;font-family:inherit;}
.field select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23191E4B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/16px 16px;}
.field textarea{height:auto;padding:14px 16px;resize:vertical;min-height:110px;}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(20,110,160,.16);}
/* topic picker: four selectable cards over real radio inputs */
.apply__topics{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.apply__topics legend{grid-column:1/-1;font-size:13.5px;font-weight:600;color:var(--navy);padding:0;margin-bottom:2px;}
.topic{position:relative;display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;border:1.5px solid var(--line);border-radius:var(--r-card);background:#fff;color:var(--navy);font-size:15px;font-weight:600;line-height:1.25;cursor:pointer;transition:border-color .2s,background .2s;}
.topic input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;}
.topic__ic{flex:none;width:38px;height:38px;border-radius:var(--r-control);background:var(--pale-2);color:var(--blue);display:grid;place-items:center;transition:background .2s,color .2s;}
.topic:hover{border-color:var(--blue);}
.topic:has(input:checked){border-color:var(--navy);background:var(--pale-2);box-shadow:inset 0 0 0 1px var(--navy);}
.topic:has(input:checked) .topic__ic{background:var(--navy);color:#fff;}
.topic:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px;}
.apply__group{grid-column:1/-1;margin:6px 0 -4px;padding-top:18px;border-top:1px solid var(--line);font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--blue);}
.apply__ok{text-align:center;padding:30px 10px;}
/* tabindex="-1" only so the success state can be announced after submitting;
   it is not keyboard-reachable, so the UA focus ring is noise here */
.apply__ok:focus:not(:focus-visible){outline:none;}
.apply__ok .ic{width:70px;height:70px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;margin:0 auto 18px;}
.apply__ok h3{font-size:24px;font-weight:600;}
.apply__ok p{color:var(--muted);margin-top:8px;font-weight:300;}
/* the design's own breakpoint for this card, moved with it */
@media (max-width:860px){
  .apply__form{grid-template-columns:1fr;}
}
@media (max-width:420px){
  .apply__topics{grid-template-columns:1fr;}
}

/* qty stepper — dark-context default (design .tix .qty), light modifier for
   pale/white contexts (design .citem .qty) */
.qty{display:flex;align-items:center;border:1px solid rgba(255,255,255,.3);border-radius:18px;overflow:hidden;}
.qty button{width:44px;height:44px;display:grid;place-items:center;color:#fff;transition:background .2s;}
.qty button:hover{background:rgba(255,255,255,.12);}
.qty span{min-width:32px;text-align:center;font-weight:600;font-size:16px;}
.qty--light{border-color:var(--line);}
.qty--light button{color:var(--blue);height:44px;width:44px;}
.qty--light button:hover{background:var(--pale-2);}
.qty--light span{color:var(--ink);}

/* page banner */
.pbanner{position:relative;overflow:hidden;background:var(--navy);color:#fff;}
.pbanner::before{content:"";position:absolute;inset:0;background-size:cover;background-position:center;opacity:.5;}
.pbanner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,29,78,.7),rgba(11,83,144,.8));}
/* padding-block, not the shorthand: .pbanner__inner is always combined with
   .shell, and the design's `padding:48px 0 44px` silently zeroed .shell's
   40px inset (both single-class, this rule later), so the banner title sat
   flush to the viewport edge while the content below it was inset. */
.pbanner__inner{position:relative;z-index:2;padding-block:40px;}
.crumbs{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:500;margin-bottom:18px;opacity:.92;}
.crumbs a:hover{text-decoration:underline;} .crumbs__sep{opacity:.5;}
.crumbs a,.crumbs span{white-space:nowrap;}
.pbanner__title{font-size:var(--fs-h1);font-weight:600;line-height:1.02;letter-spacing:-.015em;}
.pbanner__sub{margin-top:14px;max-width:560px;font-size:17.5px;line-height:1.55;font-weight:300;opacity:.92;}
.pbanner__stats{display:flex;gap:30px;margin-top:26px;flex-wrap:wrap;}
.pbanner__stat b{font-size:26px;font-weight:600;display:block;} .pbanner__stat span{font-size:13.5px;opacity:.8;}

/* reveal on scroll */
/* the fade-up is for the festival tickets only; everywhere else content is simply there */
.reveal{opacity:1;transform:none;}
.tfeat.reveal,.tup.reveal,.tix .reveal{opacity:0;transform:translateY(26px);transition:opacity .8s var(--ease),transform .8s var(--ease);}
.tfeat.reveal.in,.tup.reveal.in,.tix .reveal.in{opacity:1;transform:none;}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .reveal{opacity:1;transform:none;transition:none;}
}

/* ---------- Villager price: the member price next to the normal one (inc/villager-price.php) */
.vprice{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;font-size:13px;line-height:1.3;color:var(--blue);}
.vprice__l{font-weight:600;letter-spacing:.01em;}
.vprice__from{font-weight:500;color:var(--muted);}
.vprice__v{font-weight:600;color:var(--blue);font-size:1.08em;}
.vprice--own .vprice__l{color:var(--green);}
.vprice--own .vprice__v{color:var(--green);}
.vprice__join{font-size:12px;font-weight:500;color:var(--muted);text-decoration:underline;text-underline-offset:2px;}
.vprice__join:hover{color:var(--blue);}
.prod__pricebox{display:grid;gap:2px;flex:1 1 84px;min-width:0;}
.prod__pricebox .vprice{display:grid;gap:0;}
.prod__pricebox .vprice__v{white-space:nowrap;}
.csug__main .vprice{margin-top:2px;font-size:12.5px;}
.btile__body .vprice{margin-top:3px;font-size:12.5px;color:#fff;}
.btile__body .vprice__v,.btile__body .vprice__l,.btile__body .vprice--own .vprice__l,.btile__body .vprice--own .vprice__v{color:#fff;}
.pdp__villager .vprice{font-size:16px;}
.pdp__villager .vprice__join{position:relative;font-size:14px;}
.pdp__villager .vprice__join::after{content:"";position:absolute;inset:-14px -6px;} /* 44px hit area, layout unchanged */
.pstick__txt .vprice{font-size:12.5px;}
