/* ==========================================================================
   Du Plessis Creative — static stylesheet
   Hand-purged equivalent of the Tailwind classes actually used on this page.
   Replaces the Tailwind CDN runtime compiler (cdn.tailwindcss.com) which
   shipped the full JIT engine to the browser on every load.
   ========================================================================== */

:root {
  --bg: #18151F;
  --bg2: #1E1A28;
  --card: #231F30;
  --card2: #2A2538;
  --cream: #F0E6CC;
  --muted: #9E8FA8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  padding-top: 0;
  padding-left: 280px;
}

/* Slim floating navbar — small footprint, out of the way, same glass/amber
   language as the rest of the page. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 50;
  padding: 16px;
}

.navbar__bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
  padding: 12px 10px;
  background: rgba(24, 21, 31, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(8, 8, 12, 0.28);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.navbar__bar:hover {
  box-shadow: 0 14px 36px rgba(8, 8, 12, 0.36);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
  margin-bottom: 16px;
}

.navbar__logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fcd34d 0%, #f7b32b 100%);
  color: #18151f;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(252, 211, 77, 0.18);
}

.navbar__brand-name {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--cream);
}

.navbar__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}

.navbar__link {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  text-align: left;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--cream);
  background: rgba(255,255,255,0.05);
  outline: none;
}

.navbar__link.active {
  color: #18151f;
  background: linear-gradient(135deg, #fcd34d 0%, #f7b32b 100%);
}

.navbar__toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.navbar__toggle:hover,
.navbar__toggle:focus-visible {
  background: rgba(252,211,77,0.12);
  outline: none;
}

.navbar__toggle span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__menu {
  display: none;
}

@media (max-width: 640px) {
  body {
    padding-top: 76px;
    padding-left: 0;
  }

  .navbar {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    width: auto;
    bottom: auto;
    padding: 0;
  }

  .navbar__bar {
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 10px 0 12px;
    border-radius: 999px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__brand-name {
    font-size: 0.85rem;
  }

  .navbar__menu {
    max-width: none;
    margin: 8px auto 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: rgba(24, 21, 31, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(8, 8, 12, 0.28);

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .navbar--open .navbar__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 260px;
  }

  .navbar--open .navbar__toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar--open .navbar__toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar--open .navbar__toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navbar__menu-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .navbar__menu-link:hover,
  .navbar__menu-link:focus-visible {
    background: rgba(255,255,255,0.05);
    color: var(--cream);
    outline: none;
  }

  .navbar__menu-link.active {
    color: #18151f;
    background: linear-gradient(135deg, #fcd34d 0%, #f7b32b 100%);
  }
}

  .navbar--open .navbar__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 260px;
  }

  .navbar--open .navbar__toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar--open .navbar__toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar--open .navbar__toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navbar__menu-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .navbar__menu-link:hover,
  .navbar__menu-link:focus-visible {
    background: rgba(255,255,255,0.05);
    color: var(--cream);
    outline: none;
  }

  .navbar__menu-link.active {
    color: #18151f;
    background: linear-gradient(135deg, #fcd34d 0%, #f7b32b 100%);
  }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.logo-container {
  width: clamp(110px, 18vw, 256px);
  height: clamp(110px, 18vw, 256px);
  aspect-ratio: 1;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.9);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(252, 211, 77, 0.35),
    0 0 14px rgba(252, 211, 77, 0.42),
    0 0 30px rgba(251, 191, 36, 0.28);
}

.logo-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(24, 21, 31, 0.7);
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(20, 15, 27, 0.9);
  padding: 0.35rem;
}

a { text-decoration: none; color: inherit; }

/* Layout helpers */
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.h-52 { height: 13rem; }
.h-64 { height: 16rem; }
.w-64 { width: 16rem; }
.h-\[600px\] { height: 600px; }
.w-\[600px\] { width: 600px; }
.h-\[500px\] { height: 500px; }
.w-\[500px\] { width: 500px; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.min-h-screen { min-height: 100vh; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.h-full { height: 100%; }

.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.10); }
.border-white\/20 { border-color: rgba(255,255,255,0.20); }
.border-amber-300\/20 { border-color: rgba(252,211,77,0.20); }
.border-indigo-600\/20 { border-color: rgba(79,70,229,0.20); }

.bg-bg { background-color: var(--bg); }
.bg-card { background-color: var(--card); }
.bg-card\/70 { background-color: rgba(35,31,48,0.70); }
.bg-amber-300 { background-color: #FCD34D; }
.bg-amber-300\/10 { background-color: rgba(252,211,77,0.10); }
.bg-indigo-600\/20 { background-color: rgba(79,70,229,0.20); }
.bg-purple-600\/20 { background-color: rgba(147,51,234,0.20); }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-from), var(--tw-via), var(--tw-to)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-from), var(--tw-to)); }
.from-amber-300 { --tw-from: #FCD34D; }
.via-yellow-200 { --tw-via: #FEF08A; }
.to-amber-400 { --tw-to: #FBBF24; }
.from-bg { --tw-from: var(--bg); }
.to-bg2 { --tw-to: var(--bg2); }
.from-bg2 { --tw-from: var(--bg2); }
.to-bg { --tw-to: var(--bg); }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color); }
.ring-amber-300\/20 { --tw-ring-color: rgba(252,211,77,0.20); }

.blur-3xl { filter: blur(64px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.leading-none { line-height: 1; }
.leading-8 { line-height: 2rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.4rem\] { letter-spacing: 0.4rem; }

.text-amber-300 { color: #FCD34D; }
.text-black { color: #000; }
.text-cream { color: var(--cream); }
.text-muted { color: var(--muted); }

.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-2 { top: 0.5rem; }
.top-6 { top: 1.5rem; }
.left-6 { left: 1.5rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-top-32 { top: -8rem; }
.-left-32 { left: -8rem; }
.-bottom-32 { bottom: -8rem; }
.-right-32 { right: -8rem; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.duration-400 { transition-duration: 400ms; }

/* Interactive states */
a.text-muted:hover, .hover\:text-amber-300:hover { color: #FCD34D; }
.hover\:bg-cream:hover { background-color: var(--cream); }
.hover\:bg-indigo-800:hover { background-color: #3730A3; }
.hover\:bg-card2:hover { background-color: var(--card2); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:shadow-glow:hover { box-shadow: 0 15px 50px rgba(251,191,36,0.12); }

/* Sizes: 208px card image = h-52 already defined above */

/* Responsive */
@media (min-width: 768px) {
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Clean left-side navigation, compact and non-intrusive */
nav {
  width: min(220px, calc(100vw - 2.5rem));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

nav > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

nav .font-bold {
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

nav a.text-sm {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
}

/* Anchor targets shouldn't land underneath the fixed nav */
#about, #services, #contact { scroll-margin-top: 5.5rem; }

/* ==========================================================================
   Mobile optimization (≤ 640px)
   The desktop nav is a centered floating pill sized for a wide screen — on a
   375px phone "Du Plessis Creative · About · Services · Contact" doesn't fit
   and the pill overflows the viewport. It's rebuilt here as a full-width bar.
   Section padding, the hero logo, and heading sizes are also scaled down —
   112px of vertical padding per section and a 256px logo both eat far too
   much of a small screen.
   ========================================================================== */
@media (max-width: 640px) {
  /* Nav: floating pill -> full-width bar */
  nav {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100%;
    border-radius: 0 0 1.25rem 1.25rem;
    border-width: 0 0 1px 0;
    padding: 0.65rem 1.1rem !important;
    box-shadow: none;
  }
  nav > div {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 0.5rem !important;
    flex-wrap: nowrap;
  }
  nav .font-bold { font-size: 0.8rem; white-space: nowrap; }
  nav a.text-sm {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  /* Give the page room under the now-fixed-height top bar */
  body { padding-top: 3.1rem; }
  header.min-h-screen { min-height: calc(100vh - 3.1rem); padding-top: 1rem; padding-bottom: 2.5rem; }

  /* Hero */
  .h-64, .w-64 { height: 6.5rem; width: 6.5rem; }
  .mb-10 { margin-bottom: 1.5rem; }
  .text-xs.tracking-\[0\.4rem\] { letter-spacing: 0.2rem; }
  h1.text-5xl { font-size: 2.5rem; line-height: 1.08; }
  .mt-6.text-lg { font-size: 1rem; margin-top: 1rem; }
  .mt-8 { margin-top: 1.5rem; }
  .mt-10 { margin-top: 1.75rem; }

  /* Buttons: full-width, slightly less padding */
  .mt-10.flex.flex-wrap { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .mt-10.flex.flex-wrap > a { padding: 0.9rem 1.5rem; }

  /* Chips row */
  .mt-8.flex.flex-wrap { gap: 0.5rem; }
  .mt-8.flex.flex-wrap > span { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

  /* Section rhythm: 112px top+bottom was built for desktop */
  .py-28 { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .mb-16 { margin-bottom: 2.25rem; }
  .mb-12 { margin-bottom: 1.75rem; }
  h2.text-5xl { font-size: 2.15rem; }
  .mt-6.leading-8 { font-size: 0.98rem; line-height: 1.6; margin-top: 1rem; }

  /* Service & contact cards */
  .grid.gap-6 { gap: 1rem; }
  .p-6 { padding: 1.25rem; }
  .p-8 { padding: 1.5rem; }
  .h-52 { height: 11rem; }
  .card-image { aspect-ratio: 4 / 3; }

  /* Decorative blur circles: shrink so they don't dominate a small viewport,
     and cut the blur radius itself — filter cost scales with radius, not
     element size, so shrinking the circle alone (done above) doesn't reduce
     the actual GPU cost. */
  .h-\[600px\], .w-\[600px\] { height: 300px; width: 300px; }
  .h-\[500px\], .w-\[500px\] { height: 260px; width: 260px; }
  .blur-3xl { filter: blur(28px); }

  /* backdrop-filter on a position:fixed element is recomputed every scroll
     frame — a common source of mobile scroll jank. Lighten it, and swap in
     a slightly more opaque background so the nav doesn't look washed out
     with less blur behind it. */
  .backdrop-blur-xl { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  nav.top-2.bg-card\/70 { background-color: rgba(35,31,48,0.88); }

  footer.py-8 { padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: 0.85rem; }
}

/* Social icon links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover,
.social-link:focus-visible {
  color: #18151F;
  background: #FCD34D;
  border-color: #FCD34D;
  transform: translateY(-3px);
}
.social-link:focus-visible { outline: 2px solid #FCD34D; outline-offset: 2px; }

@media (max-width: 640px) {
  .social-link { width: 42px; height: 42px; }
  .social-link svg { width: 19px; height: 19px; }
}
@media (max-width: 360px) {
  nav .font-bold { font-size: 0.72rem; }
  nav a.text-sm { font-size: 0.56rem; letter-spacing: 0.04em; }
  h1.text-5xl { font-size: 2.1rem; }
}