/*
Theme Name: JoySpace
Theme URI: https://joyspace.dev
Author: JoySpace Development Company LLC
Author URI: https://joyspace.dev
Description: A modern, responsive one-page WordPress theme for JoySpace Development Company LLC.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joyspace
Tags: custom-logo, one-column, portfolio
*/

:root {
  color-scheme: dark;
  --font-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --ink: #f7f7f2;
  --muted: #9ca9b8;
  --night: #07111f;
  --night-2: #0a1728;
  --line: rgba(255, 255, 255, 0.13);
  --yellow: #ffd166;
  --aqua: #64e6d7;
  --coral: #ff7356;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 8%, rgba(100, 230, 215, 0.09), transparent 31rem),
    radial-gradient(circle at 4% 34%, rgba(255, 115, 86, 0.07), transparent 28rem),
    var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; height: auto; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 42px;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  border: 2px solid var(--ink);
  border-radius: 9px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--night);
  border-radius: 50%;
  background: var(--aqua);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a { transition: color 180ms ease; }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink) !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  align-items: center;
  gap: 48px;
  min-height: 660px;
  padding: 64px 0 88px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 19px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7.6vw, 6.9rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.accent { color: var(--yellow); }

.lede {
  max-width: 600px;
  margin-bottom: 32px;
  color: #c5cfda;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: #182130;
  box-shadow: 0 10px 36px rgba(255, 209, 102, 0.18);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(255, 209, 102, 0.27);
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

.orbit-wrap {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
}

.orbit {
  position: relative;
  width: min(35vw, 400px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(255,255,255,0.016),
    0 0 0 58px rgba(255,255,255,0.009),
    inset 0 0 80px rgba(100,230,215,0.025);
  animation: turn 22s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit::before {
  inset: 17%;
  border: 1px solid rgba(255,255,255,0.25);
  background:
    radial-gradient(circle at 33% 27%, rgba(255,255,255,0.42), transparent 8%),
    radial-gradient(circle at 32% 30%, #ffbf80 0, var(--coral) 42%, #cb4250 78%, #8d273e 100%);
  box-shadow:
    0 32px 92px rgba(255,81,76,0.26),
    inset -22px -26px 46px rgba(76,8,36,0.32),
    inset 15px 12px 34px rgba(255,255,255,0.09);
  animation: breathe 6s ease-in-out infinite;
}

.orbit::after {
  width: 18%;
  aspect-ratio: 1;
  top: 3%;
  left: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.68), transparent 12%),
    radial-gradient(circle at 38% 35%, #98fff2, var(--aqua) 48%, #249d9a 100%);
  box-shadow:
    0 0 18px rgba(100,230,215,0.72),
    0 0 48px rgba(100,230,215,0.42),
    0 0 82px rgba(100,230,215,0.16);
}

.orbit-ring {
  position: absolute;
  width: 82%;
  height: 36%;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: rotate(-14deg);
  box-shadow: 0 0 32px rgba(255,255,255,0.025);
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--yellow);
  transform: rotate(17deg);
}

.spark.s1 { top: 7%; right: 10%; }
.spark.s2 { bottom: 10%; left: 4%; width: 8px; height: 8px; background: var(--aqua); }
.spark.s3 { bottom: 4%; right: 18%; width: 6px; height: 6px; background: var(--coral); }

.scroll-note {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(0.975); } }

section { scroll-margin-top: 50px; }

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 40px;
  margin-bottom: 48px;
}

.section-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service {
  position: relative;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018) 68%),
    var(--night-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.service:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.29);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.095), rgba(255,255,255,0.022) 68%),
    var(--night-2);
}

.service-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 62px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.shape {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(100,230,215,0.7);
  border-radius: 50%;
}

.shape::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: var(--aqua);
  box-shadow: 0 0 18px rgba(100,230,215,0.35);
}

.service:nth-child(2) .shape { border-color: rgba(255,209,102,0.72); border-radius: 8px; transform: rotate(9deg); }
.service:nth-child(2) .shape::after { background: var(--yellow); }
.service:nth-child(3) .shape { border-color: rgba(255,115,86,0.72); border-radius: 9px 50% 50%; transform: rotate(-9deg); }
.service:nth-child(3) .shape::after { background: var(--coral); }
.service:nth-child(4) .shape { border-color: rgba(159,140,255,0.72); border-radius: 50% 50% 9px 50%; transform: rotate(15deg); }
.service:nth-child(4) .shape::after { background: #9f8cff; }

h3 {
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service p { margin-bottom: 0; color: var(--muted); }

.work-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 480px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.23);
  border-radius: 28px;
  overflow: hidden;
  color: #15202a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 22px 70px rgba(0,0,0,0.14);
}

.work-card:first-child {
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,0.55), transparent 18%),
    linear-gradient(145deg, #8ff1e6, var(--aqua) 52%, #3fc8c2);
}

.work-card:last-child {
  background:
    radial-gradient(circle at 84% 12%, rgba(255,255,255,0.56), transparent 22%),
    linear-gradient(145deg, #ffe7a0, var(--yellow) 58%, #efb944);
}

.work-card h3 {
  max-width: 390px;
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.work-card p { max-width: 410px; font-size: 1.05rem; }

.work-tag {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(7,17,31,0.26);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-art {
  position: absolute;
  right: -46px;
  bottom: -64px;
  width: min(300px, 56%);
  aspect-ratio: 1;
  border: 32px solid rgba(7,17,31,0.11);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(7,17,31,0.07), 0 0 0 1px rgba(255,255,255,0.14);
}

.work-card:last-child .card-art {
  right: -20px;
  width: min(230px, 64%);
  border-radius: 40px;
  transform: rotate(16deg);
}

.note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
  padding: 68px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--night-2);
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border: 70px solid rgba(255, 115, 86, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.contact h2 { position: relative; z-index: 1; }

.contact-side {
  position: relative;
  z-index: 1;
}

.contact-side p { color: var(--muted); }

.business-address {
  margin: 17px 0 22px;
  padding-left: 16px;
  border-left: 1px solid rgba(100,230,215,0.42);
  color: #c8d2dc;
  font-style: normal;
  line-height: 1.65;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease;
}

.contact-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.29);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  color: var(--muted);
  font-size: 0.86rem;
}

.availability { color: var(--aqua); }

.content-page { padding: 90px 0; min-height: 65vh; }
.content-page h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.post-card { padding: 30px 0; border-top: 1px solid var(--line); }
.post-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.entry-content { color: #c5cfda; max-width: 760px; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 850px) {
  .nav-links a:not(.pill) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .orbit-wrap { min-height: 380px; }
  .orbit { width: min(78vw, 390px); }
  .scroll-note { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 255px; }
  .service-no { margin-bottom: 50px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 400px; }
  .contact { grid-template-columns: 1fr; padding: 46px; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-nav { min-height: 74px; }
  .pill { padding: 0 15px; }
  h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero { min-height: auto; padding-bottom: 80px; }
  .orbit-wrap { min-height: 315px; }
  .section { padding: 72px 0; }
  .work-card { min-height: 380px; padding: 26px; }
  .contact { padding: 35px 24px; border-radius: 26px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orbit-wrap { transform: none !important; }
}
