/* Nicki Le Roux portfolio — shared styles for all 4 Elementor HTML-widget pages */

.nlr-page{ --bg:#EDEDED; --fg:#000000; --muted:rgba(0,0,0,.55); --line:rgba(0,0,0,.14); --card:#ffffff; --accent:#7C8E8E; }
.nlr-page{ min-height:100vh; background:var(--bg); color:var(--fg); font-family:'Montserrat',sans-serif; transition:background .4s,color .4s; }
.nlr-page a{ color:inherit; text-decoration:none; }
.nlr-page a:hover{ color:#7C8E8E; }
.nlr-page ::selection{ background:#7C8E8E; color:#fff; }
.nlr-page *{ box-sizing:border-box; }

/* dark variant (Contact page ships dark by default; toggled everywhere via JS) */
.nlr-page.nlr-dark{ --bg:#294045; --fg:#ffffff; --muted:rgba(255,255,255,.6); --line:rgba(255,255,255,.16); --card:#375457; }
.nlr-page.nlr-dark a:hover{ color:#9FB0AD; }

@keyframes nlrFadeUp{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:none; } }
@keyframes nlrRiseIn{ from{ transform:translateY(115%); } to{ transform:none; } }
@keyframes nlrBob1{ 0%,100%{ transform:translate(0,0) rotate(0deg); } 50%{ transform:translate(6px,-10px) rotate(4deg); } }
@keyframes nlrBob2{ 0%,100%{ transform:translate(0,0) rotate(0deg); } 50%{ transform:translate(-8px,8px) rotate(-5deg); } }
@keyframes nlrBob3{ 0%,100%{ transform:translate(0,0) rotate(0deg); } 50%{ transform:translate(9px,7px) rotate(3deg); } }

/* hover utilities (replace the design-tool-only `style-hover` attribute) */
.nlr-page .hov-fg:hover{ color:#7C8E8E; }
.nlr-page .hov-border:hover{ border-color:#7C8E8E; color:#7C8E8E; }
.nlr-page .hov-email:hover{ background:#8fa19f; }
.nlr-page .hov-underline:hover{ color:#7C8E8E; text-decoration:underline; }

/* Work page: collections book flip + project row hover + horizontal scroller */
.nlr-page .wrow .wlogo{ opacity:.25; transition:opacity .35s; }
.nlr-page .wrow:hover .wlogo{ opacity:1; }
.nlr-page .wrow .wname{ background-image:linear-gradient(#7C8E8E,#7C8E8E); background-repeat:no-repeat; background-size:0% 2px; background-position:0 100%; transition:background-size .35s; }
.nlr-page .wrow:hover .wname{ background-size:100% 2px; color:#7C8E8E; }
.nlr-page .hscroll::-webkit-scrollbar{ display:none; }
.nlr-page .hscroll{ scrollbar-width:none; -ms-overflow-style:none; }
.nlr-page .book{ perspective:1800px; }
.nlr-page .book .bookcover{ transform-origin:left center; transition:transform 1.05s cubic-bezier(.77,0,.175,1); }
.nlr-page .book:hover .bookcover, .nlr-page .book.open .bookcover{ transform:rotateY(-125deg); }
.nlr-page .book .bookpages{ transition:box-shadow 1.05s cubic-bezier(.77,0,.175,1); }
.nlr-page .book:hover .bookpages, .nlr-page .book.open .bookpages{ box-shadow:0 24px 50px -18px rgba(0,0,0,.35); }

/* keep the fixed nav clear of the WP admin bar (logged-in views only; the
   nav's inline top:0 needs the !important to lose) */
body.admin-bar .nlr-page nav{ top:32px !important; }
@media screen and (max-width:782px){ body.admin-bar .nlr-page nav{ top:46px !important; } }

/* black-artwork logos flip to white in dark mode so they stay visible on the dark card */
.nlr-page.nlr-dark .logo-inv{ filter:invert(1); }

/* static placeholder used where no final logo/image asset exists (replaces <image-slot>) */
.nlr-page .nlr-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:var(--line); color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; text-align:center; padding:6px; }

/* ---------------------------------------------------------------------
   Mobile layer. The original design carries desktop-sized inline styles,
   so these overrides need !important to win.
   ------------------------------------------------------------------ */
@media (max-width: 760px){
  /* nav pill: tighter so all four items fit on a phone */
  .nlr-page nav{ padding:14px 10px !important; }
  .nlr-page nav a, .nlr-page nav button{ padding:9px 13px !important; font-size:11px !important; letter-spacing:.1em !important; }

  /* narrower gutters everywhere */
  .nlr-page header{ padding-left:20px !important; padding-right:20px !important; }
  .nlr-page footer{ padding:28px 20px !important; }
  .nlr-page .nlr-wrap{ padding-left:20px !important; padding-right:20px !important; }
  .nlr-page .hscroll{ padding-left:20px !important; padding-right:20px !important; }

  /* CV page: photo above text, year above role */
  .nlr-page .about-grid{ display:block !important; }
  .nlr-page .about-grid > div:first-child{ max-width:340px; margin:0 auto 48px; }
  .nlr-page .cvrow{ grid-template-columns:1fr !important; gap:4px !important; }

  /* Work page project list: nothing dropped — the tag reflows onto a second
     line under the project name, logo tile slims down on the right */
  .nlr-page .wrow{
    grid-template-columns:32px 1fr 76px !important;
    grid-template-areas:"num name logo" "num tag logo" !important;
    gap:4px 14px !important;
  }
  .nlr-page .wrow > span:nth-of-type(1){ grid-area:num; }
  .nlr-page .wrow .wname{ grid-area:name; white-space:normal; }
  .nlr-page .wrow > span:nth-of-type(3){ grid-area:tag; white-space:normal; }
  .nlr-page .wrow .wlogo{ grid-area:logo; align-self:center; }

  /* Work showcase collage: phone-native mosaic (2x2 + full-width bottom)
     instead of the skinny 24-column desktop slivers */
  .nlr-page [data-bento-wrap] > div > div:first-of-type{
    grid-template-columns:repeat(2,1fr) !important;
    grid-template-rows:1fr 1fr .8fr !important;
    gap:8px !important;
  }
  .nlr-page [data-bento]:nth-of-type(1){ grid-area:1 / 1 / 2 / 2 !important; }
  .nlr-page [data-bento]:nth-of-type(2){ grid-area:1 / 2 / 2 / 3 !important; }
  .nlr-page [data-bento]:nth-of-type(3){ grid-area:2 / 1 / 3 / 2 !important; }
  .nlr-page [data-bento]:nth-of-type(4){ grid-area:2 / 2 / 3 / 3 !important; }
  .nlr-page [data-bento]:nth-of-type(5){ grid-area:3 / 1 / 4 / 3 !important; }
  .nlr-page [data-bento-cap]{ padding:30px 14px 12px !important; }
  .nlr-page [data-bento-cap] > div:first-child{ font-size:15px !important; }

  /* Project pages: image pairs/trios and document pairs stack */
  .nlr-page .flow-grid{ grid-template-columns:1fr !important; }
  .nlr-page .pdf-grid{ grid-template-columns:1fr !important; }

  /* Contact: icons stay, but smaller and tucked into safe corners (the
     desktop right-side position pushed past the screen edge on phones) */
  .nlr-page [data-repel-icon]{ width:64px !important; height:64px !important; }
  .nlr-page [data-repel-icon] > div{ border-radius:22px !important; }
  .nlr-page [data-repel-icon]:first-of-type{ top:11% !important; left:6% !important; }
  .nlr-page [data-repel-icon]:last-of-type{ top:auto !important; bottom:5% !important; left:auto !important; right:6% !important; }
}
