/* ============================================================
   RRINOVA — SHARED SITE STYLES (site.css)
   This file controls the chrome that appears on EVERY page:
   brand colours, fonts, the top navigation, the mobile menu,
   buttons, scroll animations and the footer.
   Edit THIS file once to change any of those site-wide.
   Page-specific layout lives in the per-page CSS files
   (article.css, project.css, home.css, services.css, …).
   ============================================================ */

@font-face{font-family:"Noto Naskh";src:url(../fonts/NotoNaskhArabic-Regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Noto Naskh";src:url(../fonts/NotoNaskhArabic-Bold.ttf) format("truetype");font-weight:700;font-display:swap}

:root{
  --green:#2C8067;--green-2:#369a7b;--green-deep:#226550;--green-darker:#184a3b;
  --leaf:#4cb491;--mint-soft:#e4f3ec;
  --yellow:#FFD24A;--yellow-deep:#EAB12B;
  --btn-yellow:#F2C94C;--btn-yellow-deep:#E0B43C; /* softer, muted amber for buttons */
  --paper:#fbfdfb;--cream:#f1f8f3;--ink:#14201b;--muted:#54635c;--line:#e2ece6;
  --mint-2:#e9f6f0;--radius:20px;
  --accent:#2C8067; /* default; each page may override this one line */
  --font-brand:"Noto Naskh","Space Grotesk",Georgia,serif;
  --font-display:"Space Grotesk",system-ui,sans-serif;
  --font-body:"Poppins",system-ui,sans-serif;
  --ease:cubic-bezier(.2,.7,.3,1);
}

*{margin:0;padding:0;box-sizing:border-box}
/* Pin & scale the root size so a WordPress theme can't shrink every rem,
   and so the design reads at a comfortable size on large monitors. */
html{scroll-behavior:smooth;font-size:112.5%!important;overflow-x:hidden}
body{font-family:var(--font-body)!important;color:var(--ink);background:#ffffff;font-size:1rem;line-height:1.6;overflow-x:hidden;max-width:100vw}
.wrap{width:min(1320px,92%);margin:0 auto}
a{text-decoration:none;color:inherit}
img{max-width:100%}
/* never render the old cursive — keep all titles in the body font */
.serif{font-family:inherit;font-style:normal;font-weight:inherit;color:inherit}

/* ---- NAV ---- */
.nav{position:fixed;top:0;left:0;right:0;z-index:40;background:rgba(251,253,251,.82);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-brand);font-weight:700;font-size:1.3rem;color:var(--green-darker);letter-spacing:.02em}
.brand img{height:52px;width:auto}
header.nav .brand img{height:52px!important;width:auto!important;max-width:none!important}
.nav-links{display:flex;gap:28px;font-weight:500;font-size:.95rem;color:var(--green-darker)}
.nav-links a:hover,.nav-links a.active{color:var(--green)}
.nav-links a.active{font-weight:600}
.nav-actions{display:flex;align-items:center;gap:12px}
.nav-join{background:var(--btn-yellow);color:var(--green-darker);padding:10px 18px;border-radius:999px;font-weight:700;font-size:.9rem;display:inline-flex;align-items:center;gap:7px;box-shadow:0 10px 22px -14px rgba(180,135,30,.55);transition:transform .25s}
.nav-join svg{width:15px;height:15px}
.nav-join:hover{transform:translateY(-2px)}
.nav-cta{background:var(--green);color:#fff;padding:10px 20px;border-radius:999px;font-weight:600;font-size:.9rem;box-shadow:0 12px 26px -14px rgba(34,101,80,.9)}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px}
.burger span{width:24px;height:2px;background:var(--green-darker);border-radius:2px}
.drawer{position:fixed;inset:0 0 0 auto;width:min(80%,300px);background:#fff;z-index:60;transform:translateX(100%);transition:transform .35s var(--ease);box-shadow:-20px 0 50px -30px rgba(0,0,0,.4);padding:80px 30px;display:flex;flex-direction:column;gap:20px}
.drawer.open{transform:none}
.drawer a{font-weight:600;color:var(--green-darker);font-size:1.1rem}
.drawer .close{position:absolute;top:22px;right:24px;font-size:2rem;background:none;border:0;cursor:pointer;color:var(--green-darker)}

/* default sizing for any inline Lucide icon */
svg{flex-shrink:0}

/* ---- SCROLL PROGRESS BAR ---- */
.progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--green),var(--yellow));z-index:50;transition:width .1s}

/* ---- REVEAL ON SCROLL ---- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* ---- FOOTER ---- */
.foot{background:var(--green-darker);color:#cfe6da;padding:60px 0 28px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px}
.foot-brand .logo-chip{display:inline-flex;background:#fff;border-radius:18px;padding:14px 18px;box-shadow:0 16px 34px -18px rgba(0,0,0,.45);margin-bottom:18px}
.foot-brand .logo-chip img{height:54px;width:auto;object-fit:contain;display:block}
.foot-brand p{font-size:.92rem;line-height:1.7;max-width:38ch;color:#a9cdbc}
.soc{margin-top:16px;display:flex;gap:10px}
.soc a{width:40px;height:40px;border-radius:11px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:grid;place-items:center;color:#cfe6da;transition:transform .25s var(--ease),background .25s,color .25s,border-color .25s}
.soc a:hover{background:var(--yellow);border-color:var(--yellow);color:var(--green-darker);transform:translateY(-3px)}
.soc svg{width:18px;height:18px;fill:currentColor;display:block}
.foot h4{color:#fff;font-size:1rem;margin-bottom:16px}
.foot-grid>div a,.foot-contact div{display:block;font-size:.92rem;color:#a9cdbc;margin-bottom:10px}
.foot-grid>div a:hover{color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:22px;display:flex;justify-content:space-between;font-size:.84rem;color:#8fb6a4;flex-wrap:wrap;gap:10px}
.foot-legal{display:flex;flex-wrap:wrap;gap:18px}
.foot-legal a{color:#8fb6a4}
.foot-legal a:hover{color:#fff}

/* ---- COOKIE CONSENT BANNER (injected by site.js) ---- */
.cookiebar{position:fixed;left:0;right:0;bottom:0;z-index:60;padding:0 16px 16px;pointer-events:none;opacity:0;transform:translateY(18px);transition:opacity .35s var(--ease,ease),transform .35s var(--ease,ease)}
.cookiebar.show{opacity:1;transform:none}
.cookiebar-in{pointer-events:auto;max-width:1080px;margin:0 auto;display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 22px;box-shadow:0 34px 70px -30px rgba(18,46,35,.5)}
.cookiebar-txt{flex:1;min-width:240px}
.cookiebar-txt strong{display:block;font-family:var(--font-display);color:var(--green-darker);font-size:1rem;margin-bottom:4px}
.cookiebar-txt span{font-size:.88rem;line-height:1.55;color:var(--muted)}
.cookiebar-txt a{color:var(--green);font-weight:600;text-decoration:underline}
.cookiebar-btns{display:flex;gap:10px;flex-shrink:0}
.cookiebar-btns button{font-family:inherit;font-weight:700;font-size:.9rem;padding:11px 22px;border-radius:999px;cursor:pointer;border:1px solid var(--line);transition:transform .2s,box-shadow .2s}
.cookiebar-btns button:hover{transform:translateY(-2px)}
.ck-decline{background:#fff;color:var(--green-darker)}
.ck-accept{background:var(--btn-yellow);color:var(--green-darker);border-color:var(--btn-yellow);box-shadow:0 10px 22px -14px rgba(180,135,30,.55)}
@media(max-width:560px){.cookiebar-in{flex-direction:column;align-items:stretch}.cookiebar-btns{justify-content:flex-end}}

/* ============================================================
   LIVELY SECTION BACKGROUNDS — reusable utility classes.
   Add to any section to break up flat white, on-palette:
     .band-mint  soft mint tint band
     .band-dark  dark-green "spotlight" band (white text)
     .has-glow   soft, subtle green+yellow corner glows
   .has-glow auto-lifts the section's content above the glow.
   ============================================================ */
.band-mint{background:var(--cream)}
.band-dark{background:linear-gradient(135deg,var(--green-darker),var(--green-deep));color:#fff}
.band-dark h1,.band-dark h2,.band-dark h3,.band-dark h4{color:#fff}
.band-dark p{color:rgba(255,255,255,.85)}
.band-dark a:hover{color:var(--yellow)}
.has-glow{position:relative;overflow:hidden}
.has-glow>*{position:relative;z-index:1}
.has-glow::before,.has-glow::after{content:"";position:absolute;border-radius:50%;filter:blur(18px);z-index:0;pointer-events:none}
.has-glow::before{width:300px;height:300px;background:radial-gradient(circle,rgba(76,180,145,.14),transparent 68%);top:-120px;right:-70px}
.has-glow::after{width:280px;height:280px;background:radial-gradient(circle,rgba(255,210,74,.13),transparent 68%);bottom:-130px;left:-80px}
.band-dark.has-glow::before{background:radial-gradient(circle,rgba(255,210,74,.16),transparent 68%)}
.band-dark.has-glow::after{background:radial-gradient(circle,rgba(124,198,232,.14),transparent 68%)}

/* count-up figures: the trailing unit (e.g. "+") keeps the brand yellow,
   and number+unit stay on one line. Pair with data-countup on the number. */
.countup{display:inline-flex;align-items:baseline;white-space:nowrap}
.countup .u{color:var(--yellow-deep)}
.band-dark .countup .u{color:var(--yellow)}

/* ---- BREADCRUMBS (inner pages) ---- */
/* Base style lives here so every inner page gets it; the per-page CSS files
   (article/project/legal) keep their own copies for backwards compatibility. */
.crumb{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--muted);font-weight:500;margin-bottom:18px;flex-wrap:wrap}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--green)}
.crumb span{color:var(--ink)}
.crumb svg{width:13px;height:13px;opacity:.6}

/* ---- BACK TO TOP BUTTON (injected by site.js) ---- */
.totop{position:fixed;right:22px;bottom:22px;z-index:55;width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 14px 30px -12px rgba(34,101,80,.8);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s var(--ease),transform .3s var(--ease),background .2s}
.totop.show{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--green-darker);transform:translateY(-3px)}
.totop svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:560px){.totop{right:16px;bottom:16px;width:42px;height:42px}}

/* ---- SHARED RESPONSIVE ---- */
@media(max-width:820px){
  .nav-links,.nav-cta{display:none}
  .burger{display:flex}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){.foot-grid{grid-template-columns:1fr}.wrap{width:90%}}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}}

/* ============================================================
   NEWS BITES SLIDER (.pnews / .nb-*) — dynamic project updates
   Each "bite" is a small WordPress Post (featured image = photo,
   title = heading, excerpt = caption) in a category like
   "boldvoice-news". The slider auto-pulls that category through
   the WordPress REST API (logic lives in site.js). Cards are
   clickable (open the post) with a hover lift + image zoom.
   ============================================================ */
.pnews{padding:46px 0}
.pnews-head{margin-bottom:22px}
.pnews-eyebrow{display:inline-flex;align-items:center;gap:9px;font-family:var(--font-display);font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent,var(--green))}
.pnews-eyebrow::before{content:"";width:24px;height:2px;background:var(--accent,var(--green));border-radius:2px}
.pnews-head h2{font-size:clamp(1.5rem,3vw,2.05rem);color:var(--green-darker);font-weight:700;line-height:1.16;margin-top:12px}
.nb-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:6px 2px 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.nb-track::-webkit-scrollbar{display:none}
.nb-card{flex:0 0 290px;scroll-snap-align:start;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 26px 54px -42px rgba(18,46,35,.5);transition:transform .3s var(--ease),box-shadow .3s;display:flex;flex-direction:column;color:inherit}
.nb-card:hover{transform:translateY(-6px);box-shadow:0 32px 64px -32px rgba(18,46,35,.55)}
.nb-img{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--cream)}
.nb-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s var(--ease)}
.nb-card:hover .nb-img img{transform:scale(1.06)}
.nb-body{padding:15px 18px 18px;display:flex;flex-direction:column;gap:7px;flex:1}
.nb-title{font-family:var(--font-display);font-weight:700;font-size:1.02rem;color:var(--green-darker);line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nb-cap{font-size:.9rem;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* text-only bite (no photo) — give it a little breathing room + brand accent edge */
.nb-card--noimg{border-top:4px solid var(--accent,var(--green))}
.nb-card--noimg .nb-body{padding-top:20px}
.nb-more{margin-top:auto;padding-top:4px;font-size:.85rem;font-weight:600;color:var(--accent,var(--green));display:inline-flex;align-items:center;gap:6px}
.nb-nav{display:flex;gap:10px;justify-content:flex-end;margin-top:8px}
.nb-nav button{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--green-darker);font-size:1.3rem;line-height:1;cursor:pointer;display:grid;place-items:center;transition:background .2s,color .2s,transform .2s}
.nb-nav button:hover{background:var(--green);color:#fff;transform:translateY(-2px)}
.nb-empty{color:var(--muted);font-size:.95rem;padding:8px 2px}
@media(max-width:560px){.nb-card{flex-basis:78%}}

/* ============================================================
   ACCESSIBILITY — global keyboard focus, skip link, and the
   floating accessibility widget (built in site.js). Choices the
   visitor makes are stored and re-applied as classes on the html tag.
   ============================================================ */
*{-webkit-text-size-adjust:100%;text-size-adjust:100%}
:focus-visible{outline:3px solid var(--yellow-deep);outline-offset:2px;border-radius:3px}
/* skip-to-content link (visible only when focused) */
.skiplink{position:fixed;top:-60px;left:12px;z-index:120;background:var(--green-darker);color:#fff;padding:11px 18px;border-radius:0 0 12px 12px;font-weight:600;font-size:.92rem;transition:top .2s var(--ease)}
.skiplink:focus{top:0}

/* ---- visitor accessibility preferences (toggled by the widget) ---- */
html.a11y-bigtext{font-size:130%!important}
html.a11y-contrast{--ink:#000;--muted:#1c1c1c;--green:#0a5740;--green-2:#0a5740;--green-deep:#073b2b;--green-darker:#052619;--leaf:#0a5740;--line:#555;--cream:#fff;--mint-2:#fff;--mint-soft:#fff;--yellow-deep:#9a6b00}
html.a11y-contrast body{background:#fff}
html.a11y-contrast p,html.a11y-contrast li,html.a11y-contrast span,html.a11y-contrast h1,html.a11y-contrast h2,html.a11y-contrast h3,html.a11y-contrast h4{color:#0a0a0a}
html.a11y-contrast .band-dark p,html.a11y-contrast .foot p,html.a11y-contrast .foot a,html.a11y-contrast .band-dark h2{color:#fff}
html.a11y-links a:not(.btn):not(.nav-cta):not(.nav-join):not(.brand){text-decoration:underline!important;text-underline-offset:3px;font-weight:600}
html.a11y-readable,html.a11y-readable body,html.a11y-readable h1,html.a11y-readable h2,html.a11y-readable h3,html.a11y-readable h4,html.a11y-readable h5,html.a11y-readable h6,html.a11y-readable p,html.a11y-readable a,html.a11y-readable span,html.a11y-readable li,html.a11y-readable b,html.a11y-readable strong,html.a11y-readable em,html.a11y-readable button,html.a11y-readable input,html.a11y-readable textarea,html.a11y-readable label{font-family:Verdana,Tahoma,"Segoe UI",Arial,sans-serif!important;font-style:normal!important;letter-spacing:.012em}
html.a11y-readable p,html.a11y-readable li{line-height:1.8}
html.a11y-nomotion *,html.a11y-nomotion *::before,html.a11y-nomotion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
html.a11y-bigcursor,html.a11y-bigcursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 8-7 2-2 7z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2,auto!important}

/* ---- the floating launcher button + panel ---- */
.a11y-btn{position:fixed;left:22px;bottom:22px;z-index:90;width:50px;height:50px;border-radius:50%;border:0;cursor:pointer;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 14px 30px -10px rgba(34,101,80,.85);transition:transform .25s var(--ease),background .2s}
.a11y-btn:hover{background:var(--green-darker);transform:translateY(-3px)}
.a11y-btn svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.a11y-panel{position:fixed;left:22px;bottom:84px;z-index:91;width:290px;max-width:calc(100vw - 32px);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 70px -28px rgba(18,46,35,.55);padding:16px;opacity:0;visibility:hidden;transform:translateY(12px) scale(.97);transform-origin:bottom left;transition:opacity .25s var(--ease),transform .25s var(--ease),visibility .25s}
.a11y-panel.open{opacity:1;visibility:visible;transform:none}
.a11y-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.a11y-panel-head h3{font-family:var(--font-display);font-size:1.02rem;color:var(--green-darker);font-weight:700;margin:0}
.a11y-close{background:none;border:0;cursor:pointer;font-size:1.5rem;line-height:1;color:var(--muted);padding:2px 6px;border-radius:8px}
.a11y-close:hover{color:var(--green-darker)}
.a11y-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:11px 14px;margin-bottom:8px;cursor:pointer;font-family:var(--font-body);font-size:.95rem;font-weight:600;color:var(--ink);text-align:left}
.a11y-opt:hover{border-color:var(--green)}
.a11y-sw{flex:0 0 auto;width:40px;height:23px;border-radius:999px;background:#cfd8d3;position:relative;transition:background .2s}
.a11y-sw::after{content:"";position:absolute;top:2.5px;left:2.5px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s var(--ease)}
.a11y-opt[aria-pressed="true"] .a11y-sw{background:var(--green)}
.a11y-opt[aria-pressed="true"] .a11y-sw::after{transform:translateX(17px)}
.a11y-reset{width:100%;margin-top:4px;background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit;font-size:.88rem;padding:6px}
.a11y-reset:hover{color:var(--green-darker)}
@media(max-width:560px){.a11y-btn{left:16px;bottom:16px;width:46px;height:46px}.a11y-panel{left:16px;bottom:74px}}
