/* ==========================================================================
   Namaste Norge - base.css (child theme 1.2.0)
   1. Fonts - self-hosted, no Google Fonts
   2. Colours and design tokens - from mockup v8
   3. Page base - background, text, headings
   4. Shared pieces used by the section snippets (pg-*, buttons, back-to-top, side-scroller)
   Section styles (header, footer, home, menu ...) get their own files.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* v35: roiq.no fonts - Bricolage Grotesque (headings) + Schibsted Grotesk (text), both SIL OFL 1.1, self-hosted (no Google servers = no GDPR issue). Text font 6% bigger via size-adjust. */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/BricolageGrotesque-var.woff2) format("woff2")}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:400 900;font-display:swap;size-adjust:106%;src:url(../fonts/SchibstedGrotesk-var.woff2) format("woff2")}
/* the logo line नमस्तेनॉर्गे · نمستے نورگے - tiny subsets with only these letters (Hind SemiBold, Noto Nastaliq Urdu SemiBold; OFL) */
@font-face{font-family:"NNDeva";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/NNDeva2-600.woff2) format("woff2")}
@font-face{font-family:"NNUrdu";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/NNUrdu3-600.woff2) format("woff2")}

/* 2. Colours and design tokens -------------------------------------------- */
:root{
  --bg:#FFFFFF;--band:#FFFFFF;--bar:#FFFFFF;--card:#FFFFFF;--card-2:#FFFFFF;
  --ink:#0D0D0D;--ink-2:#181818;--muted:#5A5A5A;--faint:#6C6C6C;
  --line:#DCDCDC;--line-2:#C8C8C8;
  --primary:#181818;--primary-hover:#131313;--on-primary:#FFFFFF;
  --deep:#0C0C0C;--on-deep:#FFFFFF;
  --accent:#949494;--accent-hover:#A5A5A5;--accent-tint:#FFFFFF;--accent-ink:#282828;
  --gold:#8B8B8B;--gold-ink:#636363;--gold-bright:#BBBBBB;
  --ok:#1E6B4A;--ok-tint:#E1EFE5;--live:#1F9D5A;--veg:#1E7A45;--meat:#8E2A1E;
  --ill-bg:#0F0F0F;--ill-pat:#AAAAAA;--shadow:rgba(15,15,15,.30);
  --f-display:"Bricolage Grotesque",Georgia,"Times New Roman",serif;
  --f-ui:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
  --hatch:none;
  --jaali:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27/%3E");
  --arch:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' preserveAspectRatio='none'%3E%3Cpath d='M0 240V94C0 54 32 27 74 15C87 11 95 6 100 0C105 6 113 11 126 15C168 27 200 54 200 94V240Z'/%3E%3C/svg%3E");
  --arch-line:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' preserveAspectRatio='none'%3E%3Cpath d='M0 240V94C0 54 32 27 74 15C87 11 95 6 100 0C105 6 113 11 126 15C168 27 200 54 200 94V240Z' fill='none' stroke='%23FFFFFF' stroke-width='3' transform='translate(100 120) scale(.955) translate(-100 -120)'/%3E%3C/svg%3E");
  color-scheme:light;
}

/* 3. Page base -------------------------------------------------------------
   body.nn-site is added by functions.php, so these beat Divi's defaults. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* font-weight 400: Divi sets body text to 500 (medium), which made every text look semi-bold (Norsk, 13 Oct) */
body.nn-site{background:var(--bg);color:var(--ink);font-family:var(--f-ui);font-size:16px;font-weight:400;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.nn-site #page-container,body.nn-site #main-content{background-color:var(--bg)}
.nn-site h1,.nn-site h2,.nn-site h3,.nn-site h4{font-family:var(--f-display)}
.nn-site img{max-width:100%}
[hidden]{display:none!important}
.nn-site :focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* 4. Shared pieces ---------------------------------------------------------- */
/* illustration plumbing (dish drawings from the header + dish module) */
.ill-bg{fill:var(--ill-bg)}.ill-pat{opacity:.2}.pat-ink{fill:var(--ill-pat)}
.ill-frame{fill:none;stroke:var(--gold-bright);stroke-width:1.4;opacity:.95}

/* ---------- shared page pieces (prefixed pg- so they never meet the ported pages' own classes) ---------- */
.pg-wrap{max-width:1240px;margin:0 auto;padding-inline:22px}
@media (max-width:560px){.pg-wrap{padding-inline:16px}}
.pg-main{padding-block:28px 72px;display:flex;flex-direction:column;gap:56px}
.pg-hero{display:flex;flex-direction:column;gap:6px;padding-top:4px}
.pg-crumbs{font-size:14px;color:var(--muted)}
.pg-crumbs a{color:var(--muted)}
.pg-crumbs a:hover{color:var(--primary)}
.pg-h1{font-family:var(--f-display);font-weight:700;font-size:clamp(36px,5vw,54px);line-height:1.05;letter-spacing:-.01em;color:var(--primary);margin:2px 0 0;text-wrap:balance}
.pg-lead{margin:2px 0 0;font-size:17px;color:var(--muted);max-width:60ch}

.pg-sec{display:flex;flex-direction:column;gap:16px}
.pg-sec-h{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:6px 18px}
.pg-sec-h h2{display:flex;align-items:center;gap:12px;margin:0;font-family:var(--f-display);font-weight:700;font-size:clamp(28px,3.4vw,38px);line-height:1.08;color:var(--ink);text-wrap:balance}
.pg-sec-h h2 svg{width:26px;height:26px;color:var(--gold);flex-shrink:0}
.pg-sec-h p{margin:0;color:var(--muted);font-size:15.5px;max-width:52ch}
.pg-kick{font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-ink)}

.pg-btn{font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border-radius:999px;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;border:0;cursor:pointer;transition:background .2s,box-shadow .2s,color .2s}
.pg-btn svg{width:18px;height:18px}
.pg-btn-ghost{background:transparent;color:var(--primary);box-shadow:inset 0 0 0 1.5px var(--primary)}
.pg-btn-ghost:hover{background:var(--primary);color:var(--on-primary)}
.pg-btn-sun{background:linear-gradient(180deg,#A4A4A4,#909090);color:#0B0B0B;box-shadow:inset 0 -1px 0 rgba(0,0,0,.12),0 8px 18px -8px rgba(122,122,122,.6)}
.pg-btn-sun:hover{box-shadow:inset 0 -1px 0 rgba(0,0,0,.12),0 12px 24px -8px rgba(122,122,122,.75)}
.pg-btn-dark{background:var(--primary);color:var(--on-primary)}
.pg-btn-dark:hover{background:var(--primary-hover)}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ---------- back to top: a little chili that flies up ---------- */
.totop{position:fixed;right:16px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:120;width:56px;height:56px;border-radius:50%;border:0;padding:0;
  background:var(--bar);box-shadow:0 12px 26px -12px var(--shadow),0 0 0 1px var(--line-2);cursor:pointer;display:grid;place-items:center;
  opacity:0;transform:translateY(14px) scale(.8);pointer-events:none;transition:opacity .25s,transform .35s cubic-bezier(.3,1.5,.5,1)}
.totop[data-on]{opacity:1;transform:none;pointer-events:auto}
.menu-page .totop{bottom:calc(108px + env(safe-area-inset-bottom,0px))}
.totop-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.totop-ring circle{fill:none;stroke-width:3}
.totop-ring .r0{stroke:var(--line)}
.totop-ring .r1{stroke:var(--gold);stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round;transition:stroke-dashoffset .15s linear}
.totop-chili{position:relative;width:32px;height:32px;display:block;transition:transform .3s}
.totop-chili svg{width:100%;height:100%;display:block}
.totop-chili .puff{position:absolute;left:50%;top:86%;width:10px;height:14px;margin-left:-5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;
  background:radial-gradient(circle at 50% 30%,#E0E0E0,#A5A5A5 60%,rgba(141,141,141,0) 75%);opacity:0;transform:scaleY(.4);transform-origin:50% 0}
.totop:hover .totop-chili{animation:wiggle .6s ease-in-out}
@keyframes wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}
.totop.launch .totop-chili{animation:launch .85s cubic-bezier(.4,0,.2,1)}
.totop.launch .puff{animation:puff .85s ease-out}
@keyframes launch{0%{transform:translateY(0)}20%{transform:translateY(3px) scale(1.05,.92)}60%{transform:translateY(-26px)}61%{transform:translateY(22px);opacity:0}62%{opacity:0}100%{transform:translateY(0);opacity:1}}
@keyframes puff{0%,10%{opacity:0;transform:scaleY(.4)}25%{opacity:1;transform:scaleY(1.2)}58%{opacity:.9;transform:scaleY(1.6)}62%,100%{opacity:0}}
.totop-tip{position:absolute;right:calc(100% + 10px);top:50%;transform:translate(6px,-50%);white-space:nowrap;background:var(--deep);color:var(--on-deep);font-weight:700;font-size:13.5px;
  padding:6px 11px;border-radius:99px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.totop:hover .totop-tip,.totop:focus-visible .totop-tip{opacity:1;transform:translate(0,-50%)}
@media (prefers-reduced-motion:reduce){.totop,.totop-chili{transition:none}.totop:hover .totop-chili,.totop.launch .totop-chili,.totop.launch .puff{animation:none}}

/* side-scroller with arrows (checkout "Complete the meal", order page "Forgot something?") */
.hs{position:relative;min-width:0}
.hs-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:4px;padding:2px 2px 10px;scrollbar-width:none;overscroll-behavior-x:contain}
.hs-track::-webkit-scrollbar{display:none}
.hs-track > *{scroll-snap-align:start;flex:0 0 auto}
.hs::before,.hs::after{content:"";position:absolute;top:0;bottom:10px;width:44px;z-index:1;pointer-events:none;opacity:0;transition:opacity .2s}
.hs::before{left:0;background:linear-gradient(90deg,var(--hs-bg,var(--bg)) 15%,transparent)}
.hs::after{right:0;background:linear-gradient(270deg,var(--hs-bg,var(--bg)) 15%,transparent)}
.hs[data-l]::before,.hs[data-r]::after{opacity:1}
.hs-arr{position:absolute;top:50%;z-index:2;width:40px;height:40px;margin-top:-25px;border-radius:50%;border:1px solid var(--line-2);background:var(--card);color:var(--primary);
  display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 8px 18px -10px var(--shadow);opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s,transform .2s,background .2s}
.hs-arr svg{width:20px;height:20px}
.hs-arr[data-hs-dir="-1"]{left:2px}
.hs-arr[data-hs-dir="1"]{right:2px}
.hs[data-l] .hs-arr[data-hs-dir="-1"],.hs[data-r] .hs-arr[data-hs-dir="1"]{opacity:1;visibility:visible;transition:opacity .2s,transform .2s,background .2s}
.hs-arr:hover{transform:scale(1.07);background:var(--accent-tint)}
.hs[data-r] .hs-arr[data-hs-dir="1"] svg{animation:hsNudge 1.4s ease-in-out 2 .6s}
@keyframes hsNudge{0%,100%{transform:translateX(0)}50%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){.hs[data-r] .hs-arr[data-hs-dir="1"] svg{animation:none}}

/* 5. Header and footer (Namaste Core) inside Divi's Theme Builder ------------
   The components draw themselves; here we only clear Divi's boxes around them
   and keep the header at the top while the page scrolls. */
nn-header,nn-footer{display:block}
nn-header:not([data-ready]){height:145px;overflow:hidden;background:var(--bar)}
@media (max-width:1080px){nn-header:not([data-ready]){height:131px}}
.nn-noscript{display:flex;flex-wrap:wrap;gap:6px 14px;padding:14px 22px;background:var(--bar);font-weight:600}
.nn-noscript a{color:var(--primary)}
body.nn-site #page-container{overflow-x:clip;overflow-y:visible}
.nn-site .et-l--header,.nn-site .et-l--footer{display:flow-root}
.nn-site .et-l--header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:100}
@media (max-width:600px){.nn-site .et-l--header{top:0}}
.nn-site .et-l--header .et_pb_section,.nn-site .et-l--footer .et_pb_section{padding:0!important;margin:0!important;background:none!important;min-height:0!important}
.nn-site .et-l--header .et_pb_row,.nn-site .et-l--footer .et_pb_row{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;min-height:0!important}
.nn-site .et-l--header .et_pb_column,.nn-site .et-l--footer .et_pb_column{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.nn-site .et-l--header .et_pb_module,.nn-site .et-l--footer .et_pb_module{margin:0!important;padding:0!important}
/* TranslatePress: our NO / EN switch lives in the header, so hide its floating box */
.trp-floating-switcher,#trp-floater-ls{display:none!important}

/* 6. Page sections: our snippets inside Divi Code modules (any page) ---------
   Divi's own boxes around a snippet are cleared, and Divi's text defaults are undone inside it. */
.nn-site .et_pb_section:has(.nn-sec){padding:0!important;margin:0!important;background:none!important;min-height:0!important}
.nn-site .et_pb_row:has(.nn-sec){width:100%!important;max-width:none!important;padding:0!important;margin:0!important;min-height:0!important}
.nn-site .et_pb_column:has(.nn-sec){float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.nn-site .et_pb_module:has(.nn-sec){margin:0!important;padding:0!important}
.nn-sec{max-width:1240px;margin-inline:auto;padding:36px 22px;font-size:16px;line-height:1.5;color:var(--ink)}
@media (max-width:560px){.nn-sec{padding:28px 16px}}
.nn-site .nn-sec :is(h1,h2,h3,h4,h5,h6){padding-bottom:0}
.nn-site .nn-sec p{padding-bottom:0}
.nn-site .nn-sec ul,.nn-site .nn-sec ol{list-style:none;padding:0;line-height:inherit}
:where(.nn-sec) a{color:inherit}
:where(.nn-sec) blockquote{border:0;padding:0;margin:0}

/* ==========================================================================
   v35 (Norsk, 14 Nov 2026): black & white look. White backgrounds, black text and
   buttons, no textures, flat cards. Colour only where it means something (photos,
   menu category colours, open/closed, veg, errors). tools/mono.py greys the old colours.
   ========================================================================== */
:root{--shadow:rgba(0,0,0,.14);--primary:#111111;--primary-hover:#333333;--on-primary:#FFFFFF;--deep:#111111;--on-deep:#FFFFFF;
  --accent:#111111;--accent-hover:#333333;--accent-tint:#F2F2F2;--accent-ink:#111111;--gold:#111111;--gold-ink:#555555;--gold-bright:#D9D9D9;
  --bg:#FFFFFF;--band:#FFFFFF;--bar:#FFFFFF;--card:#FFFFFF;--card-2:#F7F7F7;--line:#E6E6E6;--line-2:#D2D2D2;--ink:#111111;--ink-2:#2B2B2B;--muted:#5A5A5A;--faint:#6B6B6B}
.nn-site h1,.nn-site h2,.nn-site h3,.nn-site h4{letter-spacing:-.02em}
.pg-h1{color:var(--ink);font-weight:700;letter-spacing:-.03em}
.pg-sec-h h2{letter-spacing:-.025em}
.pg-kick{color:var(--muted)}
.pg-btn-sun,.pg-btn-dark{background:#111111;color:#FFFFFF;box-shadow:none}
.pg-btn-sun:hover,.pg-btn-dark:hover{background:#333333;box-shadow:none}
.pg-btn-ghost{color:#111111;box-shadow:inset 0 0 0 1.5px #111111}
.pg-btn-ghost:hover{background:#111111;color:#FFFFFF}
/* dark panels (catering, group travel, tours): white button, no inner gold frame, no heavy shadow */
body.nn-site .ev-cat .pg-btn-sun,body.nn-site .tr-band .pg-btn-sun,body.nn-site .hm-tours .pg-btn-sun{background:#FFFFFF;color:#111111}
body.nn-site .ev-cat .pg-btn-sun:hover,body.nn-site .tr-band .pg-btn-sun:hover,body.nn-site .hm-tours .pg-btn-sun:hover{background:#E6E6E6}
body.nn-site .ev-cat,body.nn-site .tr-band{background:#111111;box-shadow:none}
body.nn-site .ev-cat::after,body.nn-site .tr-band::after{display:none}
/* v35 (Norsk, 14 Nov 2026): the arch (mehrab) on the page tops is filled with a real photo (cover) instead of a dish cut-out on black.
   Only one full photo for now (the table spread); each page shows another part of it. Swap assets/img/arch-photo.webp when new photos come. */
body.nn-site .tr-arch,body.nn-site .mnh-arch{background:#111111 url(../img/arch-photo.webp) 50% 50%/cover no-repeat}
body.nn-site .tr-arch::before,body.nn-site .mnh-arch::before,body.nn-site .tr-arch img,body.nn-site .mnh-arch img,body.nn-site .tr-fl,body.nn-site .mnh-fl{display:none}
body.nn-site .mnh-arch:has(img[src*="butter"]){background-position:40% 50%}
body.nn-site .tr-arch:has(img[src*="miks-grill"]){background-position:52% 40%}
body.nn-site .tr-arch:has(img[src*="biryani"]){background-position:84% 50%}
body.nn-site .tr-arch:has(img[src*="karri"]){background-position:4% 50%}
