/* ============================================================
   DRAWEEE × Champions4Good-inspired overlay
   Applies fluid typography, vibrant color blocking, generous
   spacing rhythm, playful decorative motifs, and energetic
   interactions on top of the Adobe Portfolio baseline.
   Load order: LAST (after main.css and cdn.myportfolio CSS).
============================================================ */

:root {
  /* Audi F1-inspired palette — clean, restrained, single accent */
  --c4g-ink:        #1a1a1a;   /* near-black */
  --c4g-ink-soft:   #5a5a5a;
  --c4g-paper:      #f0f0f0;   /* Audi F1 light gray */
  --c4g-paper-alt:  #e8e8e8;
  --c4g-mint:       #ff4400;   /* Audi F1 red-orange */
  --c4g-mint-ink:   #ffffff;
  --c4g-orange:     #ff4400;
  --c4g-purple:     #ff4400;
  --c4g-yellow:     #ff4400;
  --c4g-pink:       #ff4400;
  --c4g-border:     rgba(0,0,0,.06);

  /* Fluid type scale — refined, Audi F1 proportion */
  --fs-xxl: clamp(3.5rem, 10vw, 9rem);
  --fs-xl:  clamp(2.5rem, 7vw, 6rem);
  --fs-l:   clamp(1.75rem, 3.5vw, 3rem);
  --fs-m:   clamp(1.1rem, 1.6vw, 1.5rem);
  --fs-body:clamp(.95rem, 1.1vw, 1.05rem);
  --fs-sm:  clamp(.82rem, .95vw, .95rem);

  /* Rhythm */
  --gap-section: clamp(4rem, 8vw, 10rem);
  --radius-lg:   24px;
  --radius-md:   14px;
  --ease:        cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
html, body {
  background: var(--c4g-paper) !important;
  color: var(--c4g-ink) !important;
  -webkit-font-smoothing: antialiased;
}

/* Text selection — orange primary with white text */
::selection       { background: var(--c4g-mint); color: #fff; text-shadow: none; }
::-moz-selection  { background: var(--c4g-mint); color: #fff; text-shadow: none; }

body.transition-enabled .site-wrap,
.site-container,
.site-content {
  background: transparent !important;
}

/* Push footer to bottom edge when content is short */
main {
  min-height: calc(100vh - 80px); /* 80px = body padding-top for fixed nav */
  display: flex !important;
  flex-direction: column !important;
}
main > .page-container { flex: 1 1 auto; }
main > .site-footer,
main > footer { margin-top: auto !important; }

/* ---------- Header / nav ---------- */
html, body { overflow-x: hidden; }
body { padding-top: 80px; }
.site-header.js-site-header {
  background: transparent !important;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 4vw, 3rem) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255,255,255,.85) !important;
  border-bottom: 1px solid var(--c4g-border);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), background .3s ease, backdrop-filter .3s ease;
  will-change: transform;
}
.site-header.js-site-header.nav-hidden {
  transform: translateY(-100%);
}
.header-placeholder { display: none !important; }

.site-header .logo-text a,
.site-header .logo a {
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--c4g-ink) !important;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem) !important;
}

.site-header .nav-container a,
.responsive-nav .nav-container a {
  color: var(--c4g-ink) !important;
  font-weight: 500 !important;
  font-size: var(--fs-sm) !important;
  letter-spacing: .02em;
  position: relative;
  padding: .25rem .15rem;
  transition: color .25s var(--ease);
}
.site-header .nav-container a::after,
.responsive-nav .nav-container a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--c4g-mint);
  transition: right .35s var(--ease);
}
.site-header .nav-container a:hover::after,
.site-header .nav-container a.active::after,
.responsive-nav .nav-container a:hover::after,
.responsive-nav .nav-container a.active::after { right: 0; }

.site-header .social ul li a .icon,
.responsive-nav .social ul li a .icon {
  fill: var(--c4g-ink) !important;
  transition: transform .25s var(--ease), fill .25s var(--ease);
}
.site-header .social ul li a:hover .icon,
.responsive-nav .social ul li a:hover .icon { transform: translateY(-2px) rotate(-6deg); fill: var(--c4g-orange) !important; }

/* ---------- Masthead: huge, bold, playful ---------- */
.masthead {
  padding: 0 !important;
  background: transparent !important;
  position: relative;
  overflow: hidden;
}
.masthead::before,
.masthead::after { content: none !important; }

.masthead-contents { max-width: 1400px; margin: 0 auto; }
.masthead-text { text-align: left !important; position: relative; z-index: 2; }

.masthead-text h1,
.masthead-text .main-text,
.masthead h1 {
  font-size: var(--fs-xxl) !important;
  line-height: .92 !important;
  letter-spacing: -.025em !important;
  font-weight: 600 !important;
  color: var(--c4g-ink) !important;
  margin: 0 0 clamp(1rem, 2vw, 2rem) !important;
  padding-top: 20px !important;
  text-wrap: balance;
}

/* Color-pop accent on the headline (first word) via pseudo */
.masthead-text h1 {
  background: linear-gradient(180deg, var(--c4g-ink) 62%, var(--c4g-mint) 62%, var(--c4g-mint) 68%, var(--c4g-ink) 68%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.masthead-text p,
.masthead-text .main-text + div p {
  font-size: var(--fs-m) !important;
  line-height: 1.4 !important;
  color: var(--c4g-ink-soft) !important;
  max-width: 48ch;
  font-weight: 400 !important;
}

/* Decorative sticker slots — will be filled by optional HTML injection */
.c4g-stickers {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
}
.c4g-sticker {
  position: absolute;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  padding: .6em .9em;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform-origin: center;
  animation: c4g-float 6s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: .35em;
}
.c4g-sticker .squiggle-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke-width: 2.25;
}
.c4g-sticker--mint   { background: var(--c4g-mint);   color: #fff; }
.c4g-sticker--orange { background: var(--c4g-ink);    color: #fff; }
.c4g-sticker--purple { background: #fff;              color: var(--c4g-ink); border: 1.5px solid var(--c4g-border); }
.c4g-sticker--yellow { background: var(--c4g-paper-alt); color: var(--c4g-ink); }
.c4g-sticker--pink   { background: var(--c4g-pink);   color: #fff; }

.c4g-sticker.s1 { top: 14%;  right: 8%;  transform: rotate(8deg);  animation-delay: 0s; }
.c4g-sticker.s2 { top: 58%;  right: 18%; transform: rotate(-6deg); animation-delay: 1.2s; }
.c4g-sticker.s3 { bottom: 12%; right: 3%; transform: rotate(12deg); animation-delay: 2.4s; }
.c4g-sticker.s4 { top: 22%;  left: 52%;  transform: rotate(-10deg); animation-delay: 3.6s; }

@keyframes c4g-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

@media (max-width: 720px) {
  .c4g-sticker.s2, .c4g-sticker.s4 { display: none; }
  .c4g-sticker { font-size: 1rem; }
}

/* ---------- Gallery grid (project covers) ---------- */
main { background: transparent !important; }

.project-covers {
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(2rem, 4vw, 3.5rem) !important;
}

/* Stacked single-column card layout: image full-width on top, details below */
.project-cover { min-width: 0 !important; width: auto !important; display: block !important; }
.project-cover .cover-image-wrap {
  width: 100% !important;
  float: none !important;
  height: auto !important;
  display: block !important;
  position: relative !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.project-cover .cover-image,
.project-cover .cover-image .cover {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  background: none !important;
}
.project-cover .cover-image::after,
.project-cover .cover-image::before { display: none !important; }
.project-cover .cover-image-wrap::before { display: none !important; }
.project-cover .cover__img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  object-fit: initial !important;
}
.project-cover .details-wrap {
  width: 100% !important;
  float: none !important;
  position: static !important;
  height: auto !important;
  left: auto !important;
}

@media (min-width: 768px) {
  .project-covers {
    max-width: 1200px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* "You may also like" — responsive 1→2→3→4 columns */
.other-projects {
  padding: 36px 0 !important;
}
.other-projects .project-covers {
  max-width: 1400px !important;
  gap: 24px !important;
}
@media (min-width: 540px) {
  .other-projects .project-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 900px) {
  .other-projects .project-covers {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1200px) {
  .other-projects .project-covers {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 540px) {
  .project-covers {
    padding: 0 1rem !important;
    gap: 1.5rem !important;
  }
}

/* Individual project pages — same 24px padding + auto-tint on the main illustration */
#project-modules .project-module-image {
  max-width: 960px !important;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem) !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  background: #fff;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: none;
  transition: background .4s var(--ease);
}
#project-modules .project-module-image .js-lightbox { display: block !important; }
#project-modules .project-module-image img.e2e-site-project-module-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding-bottom: 0 !important;
}
#project-modules .project-module-image .module-caption-container {
  padding-top: clamp(.375rem, .75vw, .625rem) !important;
}
#project-modules .project-module-image .module-caption p,
#project-modules .project-module-image .module-caption p span {
  color: var(--c4g-ink-soft) !important;
  font-size: .9rem !important;
}

.project-cover {
  background: #fff !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  box-shadow: 0 1px 0 rgba(11,29,36,.04), 0 12px 30px -18px rgba(11,29,36,.25) !important;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease) !important;
  position: relative;
  border: none !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}
.project-cover:hover {
  transform: translateY(-8px) rotate(-.4deg) !important;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.2) !important;
}

.project-cover .cover-image-wrap { background: #fff !important; }
.project-cover .cover-image,
.project-cover .cover { background: transparent !important; }
.project-cover .cover__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .8s var(--ease);
}
.project-cover:hover .cover__img { transform: scale(1.035); }

.project-cover .details-wrap {
  padding: 0.75rem 1rem !important;
  background: #fff !important;
  border-top: none !important;
}
.project-cover .details { background: transparent !important; }
.project-cover .title {
  font-size: var(--fs-m) !important;
  font-weight: 600 !important;
  color: var(--c4g-ink) !important;
  line-height: 1.2 !important;
  letter-spacing: -.01em;
}
.project-cover .date {
  display: block;
  margin-top: .5rem;
  font-size: .78rem !important;
  font-weight: 500 !important;
  color: var(--c4g-ink-soft) !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .7;
}
.project-cover .custom1 {
  display: block;
  margin-top: .75rem;
  font-size: .78rem !important;
  color: var(--c4g-ink-soft) !important;
  opacity: .7;
}

/* ---------- Footer ---------- */
footer, .site-footer, .adobe-portfolio-footer {
  background: var(--c4g-paper-alt) !important;
  color: var(--c4g-ink) !important;
  padding: 0 clamp(1.25rem, 4vw, 3rem) !important;
  margin-top: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border-top: 1px solid var(--c4g-border);
}
footer a, .site-footer a { color: var(--c4g-ink) !important; }
.site-footer .social ul li a .icon,
.pf-footer-social ul li a .icon {
  fill: var(--c4g-ink) !important;
  transition: transform .25s var(--ease), fill .25s var(--ease);
}
.site-footer .social ul li a:hover .icon,
.pf-footer-social ul li a:hover .icon {
  transform: translateY(-2px) rotate(-6deg);
  fill: var(--c4g-mint) !important;
}

/* ---------- Contact page tweaks ---------- */
.page-container {
  padding-top: 48px;
  padding-bottom: 48px;
}
.contact-form, .contact form, form.contact-form {
  max-width: 720px;
  margin: 0 auto;
}
input[type="text"], input[type="email"], textarea {
  border: 1px solid var(--c4g-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 1.1rem !important;
  background: #fff !important;
  color: var(--c4g-ink) !important;
  font-size: var(--fs-body) !important;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none !important;
  border-color: var(--c4g-ink) !important;
  box-shadow: 0 0 0 3px rgba(255,51,0,.25) !important;
}

button, .btn, input[type="submit"], .button--primary, .submit-button,
.modules .form .submit-button {
  background: var(--c4g-mint) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: .9rem 2rem !important;
  font-weight: 700 !important;
  font-size: var(--fs-sm) !important;
  letter-spacing: .02em !important;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  height: auto !important;
  transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}
.submit-button .submit-text,
.modules .form .submit-button .submit-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
button:hover, .btn:hover, input[type="submit"]:hover, .submit-button:hover {
  transform: translateY(-1px);
  opacity: .88;
}
button:active, .btn:active, .submit-button:active {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Project detail pages (genesis N) ---------- */
.project-wrap, .project-content, .project {
  background: var(--c4g-paper) !important;
}
.project-title, .project h1 {
  font-size: var(--fs-xl) !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
  line-height: .92 !important;
  color: var(--c4g-ink) !important;
}
.page-content.js-page-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.project header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ---------- Responsive (hamburger) nav overlay — mobile only ---------- */
/* Scoped to mobile widths only. On desktop, the theme hides the overlay
   and these rules must not apply or they'll add 100dvh of dead space
   into the document flow. */
@media (max-width: 900px) {
  .js-responsive-nav .responsive-nav,
  .responsive-nav {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .responsive-nav .responsive-nav__contents {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0 !important;
    padding: clamp(3.5rem, 8vw, 5rem) 1.5rem clamp(1.25rem, 3vw, 2rem) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .responsive-nav .nav-container {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(1.5rem, 4vw, 2.5rem) !important;
  }
  .responsive-nav .nav-container .gallery-title,
  .responsive-nav .nav-container .link-title,
  .responsive-nav .nav-container .page-title {
    display: flex !important;
    justify-content: center !important;
  }
  .responsive-nav .nav-container .gallery-title a,
  .responsive-nav .nav-container .link-title a,
  .responsive-nav .nav-container .page-title a {
    display: inline-block !important;
    font-size: clamp(2rem, 7vw, 2.75rem) !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    letter-spacing: -.01em !important;
    padding: .25rem .15rem !important;
    position: relative !important;
  }
  .responsive-nav .nav-container a::after {
    height: 3px !important;
    bottom: -4px !important;
  }
  .responsive-nav .social.pf-nav-social {
    margin-top: auto !important;
    padding-top: clamp(2rem, 5vw, 3rem) !important;
    flex: 0 0 auto;
  }
  .responsive-nav .social.pf-nav-social ul {
    display: flex !important;
    justify-content: center !important;
    gap: clamp(1rem, 4vw, 1.8rem) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
}

/* ---------- Scrollbar polish ---------- */
html { scrollbar-color: var(--c4g-mint) var(--c4g-paper-alt); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Header wordmark removed ──────────────────────────────────────────
   The "DRAWEEE" wordmark in the header centre is retired. Uses
   `visibility: hidden` rather than `display: none` so the centre column
   keeps its width and the left nav / right social icons stay put instead
   of sliding inward. `pointer-events: none` stops the now-invisible link
   from remaining clickable, and `visibility: hidden` also drops it from
   the accessibility tree so screen readers no longer announce it.
   To restore: delete this block. */
.logo-wrap .logo-text a {
  visibility: hidden !important;
  pointer-events: none !important;
}
