/*
Theme Name: MemryX
Theme URI: https://memryx.com/
Author: Codeberry
Description: MemryX theme — header and footer chrome ported from the MemryX landing-page design concept. Ships the fixed nav with mega dropdowns, the mobile drawer, and the site footer. Body content is left to WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memryx
Tags: dark, custom-menu, responsive-layout, one-column
*/

/* ═══════════════════════════════════════════════════════════
   TOKENS + BASE
   Ported verbatim from memryx-landing-page.html
   ═══════════════════════════════════════════════════════════ */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
:root{
  --midnight:#12284b; --midnight-2:#0d1e3a; --turquoise:#1fb1d5; --med-turq:#4dc2c4;
  --sky:#71cdde; --gold:#ffcb05;
  --g10:#52656c; --g9:#717d84; --g7:#939ba1; --g4:#babec2; --g1:#e8eaeb;
  --white:#fff; --paper:#f7f9fa; --paper-2:#eef4f6;
  --ink:#0b0b0d; --ink-2:#08080a; --panel:rgba(255,255,255,.035); --line:rgba(255,255,255,.09); --dim:rgba(255,255,255,.58);
  --display:'Open Sans',system-ui,sans-serif; --body:'Open Sans',system-ui,sans-serif;
  --maxw:1200px; --gut:48px; --pad:24px;
  --nav-h:80px;
}
html{ scroll-behavior:smooth; }
body{ position:relative; font-family:var(--body); font-size:16px; color:#fff; background:var(--ink); -webkit-font-smoothing:antialiased; line-height:1.6; overflow-x:hidden; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:none; margin:0 auto; padding:0 var(--gut); }
@media(max-width:720px){ .wrap{ padding:0 24px; } }
@media(max-width:1000px){ .news{ width:100%; margin-left:0; padding:0 0 44px; } }

.eyebrow{ font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.26em; text-transform:uppercase; color:var(--turquoise); }
h1,h2,h3,h4{ letter-spacing:-.04em; }

[data-rv]{ opacity:0; transform:translateY(30px); transition:opacity 1.05s cubic-bezier(.16,1,.3,1), transform 1.05s cubic-bezier(.16,1,.3,1); }
[data-rv].in{ opacity:1; transform:none; }
@media(prefers-reduced-motion:reduce){ [data-rv]{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* Screen-reader text — WordPress accessibility requirement */
.screen-reader-text{ border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; word-wrap:normal!important; }
.skip-link:focus{ clip:auto!important; clip-path:none; height:auto; width:auto; display:block; top:8px; left:8px; z-index:200; padding:14px 22px; background:var(--turquoise); color:var(--ink); font-weight:600; border-radius:8px; }

/* ═══ GRUNGE GRAIN ═══ */
.grain{ position:absolute; inset:0; z-index:5; pointer-events:none;
  background-image:url(assets/noise.png); background-repeat:repeat; background-position:left top; background-size:96px 96px;
  opacity:.28; }

/* ═══ GRID GUIDES ═══ */
.grid-lines{ position:fixed; top:0; bottom:0; left:0; right:0; z-index:6; pointer-events:none;
  max-width:none; padding:0; display:flex; justify-content:space-between; }
.grid-lines span{ position:relative; display:block; width:1px; height:100%; background:rgba(128,132,140,.12); overflow:hidden; }
.grid-lines i{ position:absolute; left:0; top:0; width:100%; height:26vh; transform:translate3d(0,var(--y,-30vh),0); will-change:transform;
  background:linear-gradient(to bottom, rgba(31,177,213,0) 0%, rgba(31,177,213,.32) 42%, rgba(113,205,222,.62) 62%, rgba(31,177,213,.2) 78%, rgba(31,177,213,0) 100%); }
@media(prefers-reduced-motion:reduce){ .grid-lines i{ display:none; } }
@media(max-width:1000px){ .grid-lines span:nth-child(even){ display:none; } }
@media(max-width:600px){ .grid-lines span:not(:first-child):not(:last-child){ display:none; } }

/* ═══ NAV ═══ */
header.nav{ position:fixed; top:0; left:0; right:0; z-index:120; background:rgba(11,11,13,0); backdrop-filter:blur(4px);
  transition:background .3s ease, backdrop-filter .3s ease, transform .4s cubic-bezier(.16,1,.3,1); }
header.nav::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:rgba(255,255,255,.15); }
header.nav.scrolled{ background:rgba(11,11,13,.9); backdrop-filter:blur(14px); }
header.nav.hide{ transform:translateY(-100%); }
header.nav.menu-open{ background:rgba(11,11,13,.97); backdrop-filter:blur(16px); }
header.nav.menu-open::after{ background:rgba(255,255,255,.22); }
.nav .bar{ max-width:none; height:var(--nav-h); padding:0 var(--gut); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:28px; }
.nav .bar > .logo{ justify-self:start; }
.nav-right{ display:flex; align-items:center; justify-self:end; gap:20px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo .mark{ width:40px; height:40px; }
.logo .wm{ font-family:var(--display); font-weight:800; font-size:26px; color:#fff; letter-spacing:-.02em; }
.logo .wm b{ color:var(--turquoise); }

.nav-links{ display:flex; align-items:center; justify-self:center; height:var(--nav-h); }
.nav-item{ position:static; height:100%; display:flex; align-items:center; }
.navlink,.navtrig{ display:inline-flex; align-items:center; gap:7px; height:100%; padding:0 18px; font-family:var(--body); font-size:16px; font-weight:500;
  color:rgba(255,255,255,.82); background:none; border:none; cursor:pointer; letter-spacing:.01em; transition:color .2s; }
.navlink:hover,.navtrig:hover,.nav-item.open .navtrig{ color:var(--turquoise); }
.navtrig .caret{ width:12px; height:12px; transition:transform .25s ease; }
.nav-item.open .navtrig .caret{ transform:rotate(180deg); }
.nav-right .navlink{ padding:0; }
.nav .cta{ display:inline-flex; align-items:center; height:44px; padding:0 22px; font-family:var(--body); font-size:16px; font-weight:500; line-height:1;
  color:#fff; background:rgba(0,0,0,0); border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(4.5px); -webkit-backdrop-filter:blur(4.5px);
  border-radius:9px; transition:background .22s ease, border-color .22s ease; }
.nav .cta:hover{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.55); }
.nav-sep{ width:1px; height:26px; background:rgba(255,255,255,.15); }

/* ── mega dropdown ── */
.mega{ position:absolute; left:0; right:0; top:var(--nav-h); background:rgba(11,11,13,.98); backdrop-filter:blur(18px);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line); box-shadow:0 24px 48px -28px rgba(0,0,0,.8);
  opacity:0; visibility:hidden; transform:translateY(-10px); pointer-events:none;
  transition:opacity .22s ease, transform .22s cubic-bezier(.16,1,.3,1), visibility .22s; }
.nav-item.open .mega{ opacity:1; visibility:visible; transform:none; pointer-events:auto; }
.mega-in{ max-width:none; padding:0 var(--gut); display:grid; grid-template-columns:1fr 1fr 1fr 1fr 320px; }
.mcol{ padding:32px 26px 34px; border-left:1px solid var(--line); }
.mcol:first-child{ padding-left:0; border-left:none; }
.mega .eyebrow{ font-size:10px; font-weight:700; letter-spacing:.22em; color:rgba(255,255,255,.42); margin-bottom:14px; }
.mcol a{ display:block; padding:10px 0; border-bottom:1px solid var(--line); transition:padding-left .22s ease; }
.mcol a:last-child{ border-bottom:none; }
.mcol a:hover{ padding-left:8px; }
.mcol h4{ font-family:var(--display); font-size:14px; font-weight:600; color:#fff; letter-spacing:0; transition:color .2s; }
.mcol a:hover h4{ color:var(--turquoise); }
.mcol p{ font-size:12.5px; color:var(--dim); line-height:1.5; margin-top:3px; }
.mfeat{ margin:0; padding:32px 0 34px 26px; border-left:1px solid var(--line); }
.mfeat .in{ height:100%; border:1px solid var(--line); background:var(--panel); padding:0; overflow:hidden; }
.mfeat .in > .pad{ padding:18px 22px 22px; }
.mfeat .shot{ display:block; width:100%; height:132px; overflow:hidden; border-bottom:1px solid var(--line); background:var(--ink-2); }
.mfeat .shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.mfeat h4{ font-family:var(--display); font-size:14px; font-weight:600; color:#fff; }
.mfeat p{ font-size:12.5px; color:var(--dim); margin-top:8px; line-height:1.55; }
.mfeat .lnk{ display:inline-block; margin-top:14px; font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--turquoise); }
@media(max-width:1180px){ .mega-in{ grid-template-columns:repeat(4,1fr); } .mfeat{ display:none; } }

.burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.burger span{ width:22px; height:2px; background:#fff; border-radius:2px; transition:.3s; }
.mobile-menu{ display:none; }
@media(max-width:1000px){
  .nav .bar{ padding:0 24px; display:flex; justify-content:space-between; }
  .nav-links,.nav-right .navlink,.nav .cta{ display:none; }
  .burger{ display:flex; }
  .mobile-menu{ display:block; position:fixed; top:0; right:0; bottom:0; width:min(86vw,360px); background:var(--ink-2); z-index:130; transform:translateX(100%); transition:transform .4s cubic-bezier(.16,1,.3,1); padding:88px 26px 30px; box-shadow:-20px 0 50px -20px rgba(0,0,0,.7); overflow-y:auto; }
  .mobile-menu.open{ transform:none; }
  .mobile-menu a{ display:block; font-size:17px; color:#fff; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.08); }
  .mobile-menu a.contact{ margin-top:22px; background:var(--turquoise); color:var(--ink); text-align:center; border-radius:8px; border:none; font-family:var(--display); font-size:13px; letter-spacing:.06em; }
  .macc{ border-bottom:1px solid rgba(255,255,255,.08); }
  .macc > button,
  .macc > .macc-trig{ width:100%; display:flex; align-items:center; justify-content:space-between; background:none; border:none; border-bottom:none; color:#fff; font-family:var(--body); font-size:17px; padding:14px 0; cursor:pointer; text-align:left; }
  .macc > button .caret,
  .macc > .macc-trig .caret{ width:11px; height:11px; transition:transform .25s; flex:0 0 auto; }
  .macc.open > button .caret,
  .macc.open > .macc-trig .caret{ transform:rotate(180deg); }
  .macc .msub{ max-height:0; overflow:hidden; transition:max-height .35s cubic-bezier(.16,1,.3,1); }
  .macc.open .msub{ max-height:420px; }
  .macc .msub a{ font-size:14px; color:var(--g4); padding:11px 0 11px 14px; border-bottom:none; border-left:1px solid rgba(31,177,213,.35); margin-left:2px; }
  .mm-close{ position:absolute; top:24px; right:24px; background:none; border:none; color:#fff; font-size:28px; cursor:pointer; }
  .scrim{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:125; opacity:0; pointer-events:none; transition:opacity .3s; }
  .scrim.open{ opacity:1; pointer-events:all; }
}

/* ═══ FOOTER ═══ */
footer.foot{ background:var(--ink-2); color:var(--dim); padding:70px 0 34px; border-top:1px solid var(--line); position:relative; z-index:10; }
.news{ display:flex; flex-direction:column; align-items:flex-start; gap:20px;
  width:50vw; margin-left:calc(25vw - var(--gut)); padding:0 var(--pad) 44px; border-bottom:1px solid rgba(255,255,255,.1); }
.news h3{ font-family:var(--display); font-weight:500; font-size:20px; color:#fff; }
.news p{ font-size:16px; color:var(--dim); margin-top:6px; }
.news .form{ display:flex; gap:10px; flex-wrap:wrap; }
.news input{ font-family:var(--body); font-size:14px; padding:13px 16px; border-radius:8px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.04); color:#fff; width:260px; }
.news input::placeholder{ color:rgba(255,255,255,.4); }
.news button{ font-family:var(--display); font-size:12px; letter-spacing:.05em; padding:13px 22px; border-radius:8px; background:var(--turquoise); color:var(--ink); border:none; cursor:pointer; font-weight:600; }
.fcols{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:30px; padding:44px 0; }
@media(max-width:820px){ .fcols{ grid-template-columns:1fr 1fr; gap:28px; } }
.fcol h4{ font-family:var(--display); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#fff; margin-bottom:16px; }
.fcol a{ display:block; font-size:13.5px; color:var(--dim); padding:5px 0; transition:color .2s; }
.fcol a:hover{ color:var(--turquoise); }
.fcol.brand .wm{ font-family:var(--display); font-weight:800; font-size:22px; color:#fff; }
.fcol.brand .wm b{ color:var(--turquoise); }
.fcol.brand p{ font-size:13px; color:var(--dim); margin-top:14px; line-height:1.6; max-width:30ch; }
.social{ display:flex; gap:10px; margin-top:18px; }
.social a{ width:36px; height:36px; border-radius:9px; border:1px solid rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-family:var(--display); font-size:11px; color:#fff; }
.social a:hover{ background:var(--turquoise); color:var(--ink); border-color:var(--turquoise); }
.copy{ padding-top:28px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:12px; color:rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════════════════════
   CONTENT AREA
   NOT ported from the landing page — the brief was header and
   footer only. This is the minimum needed so WordPress content
   is legible on the dark ground and clears the fixed nav.
   ═══════════════════════════════════════════════════════════ */
.site-main{ position:relative; z-index:10; min-height:60vh;
  padding-top:calc(var(--nav-h) + clamp(48px,7vw,96px)); padding-bottom:clamp(48px,7vw,96px); }
.content-col{ width:min(70ch,100%); }

/* Elementor sections are designed edge to edge, so their content area sits
   outside .wrap entirely rather than being un-padded after the fact. */
.entry-content--bleed{ margin-top:28px; }
.entry-content--bleed > * + *{ margin-top:0; }
.entry-content--bleed a{ text-decoration:none; }

.entry-title{ font-family:var(--display); font-weight:600; font-size:clamp(28px,4vw,44px); line-height:1.12; color:#fff; }
.entry-title a:hover{ color:var(--turquoise); }
.entry-meta{ font-size:13px; color:rgba(255,255,255,.45); margin-top:12px; }
.entry-content{ margin-top:28px; color:var(--dim); font-size:16.5px; line-height:1.75; }
.entry-content > * + *{ margin-top:1.1em; }
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4{ color:#fff; font-family:var(--display); font-weight:600; margin-top:1.6em; line-height:1.2; }
.entry-content h2{ font-size:clamp(22px,2.6vw,30px); }
.entry-content h3{ font-size:clamp(18px,2vw,23px); }
.entry-content a{ color:var(--turquoise); text-decoration:underline; text-underline-offset:3px; }
.entry-content a:hover{ color:var(--sky); }
.entry-content strong{ color:#fff; }
.entry-content ul,.entry-content ol{ padding-left:1.4em; }
.entry-content li + li{ margin-top:.45em; }
.entry-content blockquote{ border-left:2px solid var(--turquoise); padding-left:20px; color:rgba(255,255,255,.72); font-style:italic; }
.entry-content code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.9em; background:rgba(255,255,255,.07); padding:2px 6px; border-radius:4px; color:var(--sky); }
.entry-content pre{ background:var(--ink-2); border:1px solid var(--line); border-radius:10px; padding:18px 20px; overflow-x:auto; }
.entry-content pre code{ background:none; padding:0; color:var(--g1); }
.entry-content img,.entry-content iframe{ max-width:100%; height:auto; border-radius:10px; }
.entry-content table{ width:100%; border-collapse:collapse; display:block; overflow-x:auto; }
.entry-content th,.entry-content td{ border:1px solid var(--line); padding:10px 14px; text-align:left; font-size:14.5px; }
.entry-content th{ color:#fff; background:rgba(255,255,255,.04); }

.post-list article{ padding:34px 0; border-bottom:1px solid var(--line); }
.post-list article:first-child{ padding-top:0; }

.pagination{ display:flex; gap:10px; flex-wrap:wrap; margin-top:44px; }
.pagination .page-numbers{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:8px; font-size:14px; color:var(--dim); }
.pagination .page-numbers:hover,.pagination .page-numbers.current{ color:var(--ink); background:var(--turquoise); border-color:var(--turquoise); }

.search-form{ display:flex; gap:10px; margin-top:24px; flex-wrap:wrap; }
.search-form input[type=search]{ font-family:var(--body); font-size:14px; padding:13px 16px; border-radius:8px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.04); color:#fff; min-width:240px; }
.search-form button{ font-family:var(--display); font-size:12px; letter-spacing:.05em; padding:13px 22px; border-radius:8px; background:var(--turquoise); color:var(--ink); border:none; cursor:pointer; font-weight:600; }

/* WordPress core alignment + caption classes */
.alignleft{ float:left; margin:0 1.5em 1em 0; }
.alignright{ float:right; margin:0 0 1em 1.5em; }
.aligncenter{ display:block; margin-left:auto; margin-right:auto; }
.alignwide{ width:min(1100px,92vw); margin-left:auto; margin-right:auto; }
.alignfull{ width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); }
.wp-caption-text,figcaption{ font-size:13px; color:rgba(255,255,255,.45); margin-top:8px; }
.sticky,.gallery-caption,.bypostauthor{ }

/* ── Comments (also not from the landing page — WordPress defaults were
      rendering as unstyled white boxes on the dark ground) ── */
.comments-area{ margin-top:56px; padding-top:40px; border-top:1px solid var(--line); }
.comments-title,.comment-reply-title{ font-family:var(--display); font-weight:600; font-size:clamp(19px,2.2vw,24px); color:#fff; margin-bottom:24px; }
.comment-list{ list-style:none; padding:0; margin:0 0 44px; }
.comment-list ol.children{ list-style:none; margin:20px 0 0 26px; padding-left:20px; border-left:1px solid var(--line); }
.comment-list li.comment{ padding:20px 0; border-bottom:1px solid var(--line); }
.comment-list li.comment:last-child{ border-bottom:none; }
.comment-author{ display:flex; align-items:center; gap:10px; font-size:14px; color:#fff; font-weight:600; }
.comment-author .avatar{ border-radius:50%; width:34px; height:34px; }
.comment-author .says{ display:none; }
.comment-metadata{ font-size:12px; color:rgba(255,255,255,.4); margin-top:6px; }
.comment-metadata a{ color:inherit; }
.comment-content{ margin-top:12px; color:var(--dim); font-size:15.5px; line-height:1.7; }
.comment-content > * + *{ margin-top:.9em; }
.reply{ margin-top:12px; }
.reply a{ font-size:12px; font-weight:600; letter-spacing:.04em; color:var(--turquoise); }
.comment-respond{ margin-top:8px; }
.comment-form{ display:grid; gap:16px; max-width:640px; }
.comment-form p{ display:flex; flex-direction:column; gap:7px; margin:0; }
.comment-form label{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.55); font-family:var(--display); font-weight:600; }
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{
  font-family:var(--body); font-size:15px; padding:13px 16px; border-radius:8px;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.04); color:#fff; width:100%; }
.comment-form textarea{ min-height:150px; resize:vertical; }
.comment-form input:focus,.comment-form textarea:focus{ outline:none; border-color:var(--turquoise); background:rgba(255,255,255,.06); }
.comment-form .comment-form-cookies-consent{ flex-direction:row; align-items:center; gap:10px; }
.comment-form .comment-form-cookies-consent label{ text-transform:none; letter-spacing:0; font-size:13.5px; color:var(--dim); font-weight:400; }
.comment-form .form-submit{ margin:0; }
.comment-form input[type=submit]{ font-family:var(--display); font-size:12px; letter-spacing:.05em; font-weight:600;
  padding:14px 26px; border-radius:8px; background:var(--turquoise); color:var(--ink); border:none; cursor:pointer; width:auto; }
.comment-form input[type=submit]:hover{ background:var(--sky); }
.comment-notes,.comment-form .logged-in-as{ font-size:13px; color:rgba(255,255,255,.45); }
.comment-notes a,.logged-in-as a{ color:var(--turquoise); }
.no-comments{ color:var(--dim); }
