/* 47 Studio — rebuild stylesheet.
   Layout matches the live Adobe Portfolio site: a left sidebar
   (logo + stacked nav) beside a centred content column.
   All colours that vary per page are set inline from content.json
   (page background). Font family slug comes from the Typekit kit
   loaded in the page head. */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: gpmw, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Overall layout: a centred container ~1260px wide holding a ~250px
   sidebar zone and the content column (~1010px at full width).
   On narrower screens the container is simply full-width. */
.site-wrap {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

/* Sidebar header: logo at the container's left edge, nav stacked
   underneath it. Top padding puts the logo at ~y85 and, with the
   logo's height and bottom margin, the first nav item at ~y175. */
.site-header {
  flex: 0 0 250px;
  padding: 84px 24px 56px 0;
}

.logo { display: block; margin-bottom: 44px; }
.logo img { display: block; width: 60px; max-width: 60px; height: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #888888;
  text-decoration: none;
  font-size: 17px;
}

.site-nav a:hover,
.site-nav a.active { color: #eeeeee; }

/* Content column: takes the rest of the container after the sidebar.
   Top padding (~80px) puts headings at ~y85–110, as on live. */
.content-col {
  flex: 1 1 auto;
  padding: 80px 0 64px;
}

.page-content { text-align: center; }

/* Page body */
.page-title {
  color: #eeeeee;
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 8px 0 76px;
}

/* Paragraphs are constrained to ~750px, centred in the column,
   as on the live site. */
.text-block {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 68px;
}

.link-block { margin: 0 0 76px; font-size: 18px; text-align: center; }
.link-block a { color: #888888; text-decoration: underline; }
.link-block a:hover { color: #eeeeee; }

/* Social link: centred filled circular button (~58px). The fill is a
   muted blue-grey approximating the live site's button. */
.social-block { margin: 4px 0 76px; text-align: center; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #5b6b8c;
  color: #f2f4f8;
}

.social-link:hover { color: #ffffff; }

/* Images */
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 12px 0 68px;
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 12px 0 68px;
}

.full-image { margin: 0 0 68px; }

/* YouTube standard embed, centred, ~560px wide. */
.yt-embed {
  max-width: 560px;
  margin: 0 auto 76px;
}

.yt-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Contact form: ~500px column centred in the content column;
   labels and the submit button stay left-aligned inside it. */
.contact-form {
  max-width: 500px;
  margin: 8px auto 0;
  text-align: left;
}

.contact-form .form-field { margin-bottom: 18px; }

.contact-form label {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 16px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 3px;
  background: #ffffff;
  color: #303086;
  font: inherit;
  font-size: 16px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(48, 48, 134, 0.4); }

.contact-form .field-error { color: #ffd7d7; margin: 6px 0 0; font-size: 14px; }
.contact-form .form-error { color: #ffd7d7; margin-top: 16px; }

.contact-form button {
  font: inherit;
  padding: 10px 28px;
  border: 0;
  border-radius: 3px;
  background: #ffffff;
  color: #303086;
  cursor: pointer;
}

.contact-form .form-confirmation { color: #ffffff; margin-top: 16px; }

/* Footer */
.site-footer {
  margin-top: 56px;
  text-align: center;
  color: #eeeeee;
  font-size: 14px;
}

/* Cookie banner: black bar (Atkins's call, 2026-11-25 — replaces the
   live site's tan bar), light text, white pill Accept, plain-text
   Decline. Show/hide and consent storage live in render.mjs and are
   unchanged — this is styling only. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  color: #f2f2f2;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  z-index: 50;
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }

.cookie-banner .cookie-accept {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 999px;
  margin-left: 16px;
}

.cookie-banner .cookie-decline {
  color: #f2f2f2;
  text-decoration: underline;
  margin-left: 16px;
}

/* Mobile menu — mirrors atkinsk.com's pattern: above the mobile
   breakpoint the hamburger is hidden and the sidebar nav shows as
   usual; at ≤860px (see the media query below) the sidebar nav gives
   way to a three-line hamburger in the top bar. Tapping it opens a
   full-screen overlay in the CURRENT PAGE's background colour (set
   inline from content.json in render.mjs, so the menu blends with
   the page) with the same three links stacked and centred — active
   link #eeeeee, inactive #888888, exactly as in the desktop sidebar.
   The close (×) button sits top-right, in the hamburger's own spot.
   Choosing a link, the ×, or Escape closes it, and page scroll is
   locked while it is open. Open/close animate with opacity /
   transform only (~280ms); setMenu in the page script drives it. */
.hamburger-btn {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 0 10px 14px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn i {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger-btn:hover i:nth-child(1) { transform: translateY(-1px); }
.hamburger-btn:hover i:nth-child(3) { transform: translateY(1px); }
.hamburger-btn:active { opacity: .75; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,.61,.36,1);
}

.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; transform: none; }

.mobile-nav .mnav-link {
  color: #888888;
  font-size: 24px;
  line-height: 1.2;
  text-decoration: none;
  padding: .4rem 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.22,.61,.36,1);
}

.mobile-nav .mnav-link.active { color: #eeeeee; }

.mobile-nav.is-open .mnav-link {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0s);
}

.mobile-nav .mnav-link:hover { color: #eeeeee; }
.mobile-nav .mnav-link:active { transform: scale(.97); }

/* Close button: top-right, in the hamburger's own spot (the mobile
   top bar's right edge, where the button sits in the header). It
   turns a quarter-turn and fades in as the menu opens. */
.mobile-nav-close {
  position: absolute;
  top: 10px;
  right: 14px;
  appearance: none;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  padding: .4rem .6rem;
  cursor: pointer;
  opacity: 0;
  transform: rotate(-90deg) scale(.8);
  transition: opacity .3s ease .05s, transform .3s cubic-bezier(.22,.61,.36,1) .05s;
}

.mobile-nav.is-open .mobile-nav-close { opacity: 1; transform: none; }
.mobile-nav-close:hover { opacity: .75; }
.mobile-nav-close:active { transform: scale(.92); }

body.nav-open { overflow: hidden; }

/* Skeleton / shimmer image loading — the same technique as
   atkinsk.com: the page script wraps each content image in a
   .skel-wrap slot; while the image loads, the slot shows a shimmer
   instead of a blank gap, and once the image is ready it fades in
   over ~450ms (no spinner). Colours are adapted to 47 Studio's page
   backgrounds (#CA4C26 and #303086): the slot is translucent black
   over the page background — i.e. a slightly deeper shade of
   whichever page it sits on — with a soft translucent-white sweep
   passing across it, so one rule works on both backgrounds. The
   renderers emit width/height attributes, so the slot reserves the
   image's own aspect box and nothing shifts when the image lands.
   Under prefers-reduced-motion the sweep and the fade are off and
   the image simply appears over the static slot. */
.skel-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.22);
  transition: background-color .3s ease;
}

.skel-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,0) 75%);
  transform: translateX(-100%);
  animation: skelSweep 1.5s ease-in-out infinite;
  pointer-events: none;
}

.skel-wrap.media-done { background-color: transparent; }
.skel-wrap.media-done::after { display: none; }

.skel-wrap > img {
  opacity: 0;
  transition: opacity .45s ease;
}

.skel-wrap.media-done > img { opacity: 1; }

@keyframes skelSweep { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .skel-wrap::after { animation: none; display: none; }
  .skel-wrap > img { transition: none; }
  .mobile-nav, .mobile-nav .mnav-link, .mobile-nav-close, .hamburger-btn i { transition: none; }
  .mobile-nav, .mobile-nav .mnav-link, .mobile-nav-close { opacity: 1; transform: none; }
}

/* Narrow screens: the sidebar becomes a top bar (logo left,
   hamburger right) and the stacked nav gives way to the full-screen
   overlay menu above; content takes the full width (text stays
   centred). */
@media (max-width: 860px) {
  .site-wrap { flex-direction: column; }

  .site-header {
    flex: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding: 20px 24px;
  }

  .logo { margin-bottom: 0; }

  .site-nav { display: none; }
  .hamburger-btn { display: inline-flex; }

  .content-col {
    flex: none;
    width: 100%;
    padding: 24px 20px 48px;
  }
}

@media (max-width: 640px) {
  .image-grid, .image-row { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
}
