/* =========================================================
   Jesstudios — Creative Studio & Classes
   Dark cinematic theme · semantic design tokens
   ========================================================= */

:root {
  /* palette */
  --bg: #08080c;
  --bg-soft: #0d0d15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f8;
  --muted: #a6a6b3;
  --muted-2: #74747f;

  --primary: #ff2e88;   /* magenta */
  --accent: #ff7a18;    /* orange  */
  --primary-soft: rgba(255, 46, 136, 0.14);

  /* gradients */
  --gradient-primary: linear-gradient(135deg, #ff2e88 0%, #ff7a18 100%);
  --gradient-text: linear-gradient(120deg, #ff5fa2 0%, #ff8a3d 55%, #ffd166 100%);
  --gradient-hero: linear-gradient(180deg, rgba(8, 8, 12, 0.45) 0%, rgba(8, 8, 12, 0.74) 55%, rgba(8, 8, 12, 1) 100%);

  /* shadows */
  --shadow-glow: 0 0 60px rgba(255, 46, 136, 0.3);
  --shadow-card: 0 26px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.6);

  /* shape + layout */
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

section {
  scroll-margin-top: var(--nav-h);
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(255, 122, 24, 0.28);
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.08);
  margin-bottom: 18px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(255, 46, 136, 0.06), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(255, 122, 24, 0.05), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2,
.about h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 70px rgba(255, 46, 136, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px 24px 24px;
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-drawer.open {
  display: flex;
  animation: drawerIn 0.28s ease;
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-drawer a {
  padding: 12px 4px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

body.nav-locked {
  overflow: hidden;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(40% 40% at 12% 70%, rgba(255, 46, 136, 0.28), transparent 70%),
    radial-gradient(40% 40% at 88% 25%, rgba(255, 122, 24, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero .lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: #d9d9e0;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollDot 1.6s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 46, 136, 0.4);
  box-shadow: var(--shadow-card);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--muted);
}

/* ---------- classes ---------- */
.classes-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.classes-info h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}

.classes-info>p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.course-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.course-list li:hover {
  border-color: rgba(255, 122, 24, 0.35);
  background: var(--surface-2);
}

.course-list .tag {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid rgba(255, 122, 24, 0.25);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-list h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.course-list p {
  color: var(--muted);
  font-size: 0.9rem;
}

.classes-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.classes-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- form card (shared) ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--gradient-primary);
}

.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.field .opt {
  color: var(--muted-2);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 46, 136, 0.6);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 46, 136, 0.12);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: rgba(255, 95, 95, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 95, 95, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a6a6b3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field select option {
  background: #14141c;
  color: var(--text);
}

.field .error {
  color: #ff8b8b;
  font-size: 0.78rem;
  min-height: 0;
}

/* ---------- portfolio ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tile {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover img {
  transform: scale(1.07);
}

.tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

/* ---------- about ---------- */
.about {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 18px;
}

.about p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.stats>div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 460px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ci-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-list a:hover {
  color: var(--primary);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.84rem;
}

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #38d27a;
  box-shadow: 0 0 12px rgba(56, 210, 122, 0.7);
}

.toast-item.error::before {
  background: #ff5f5f;
  box-shadow: 0 0 12px rgba(255, 95, 95, 0.7);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
  animation: lbIn 0.25s ease;
}

@keyframes lbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .classes-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 80px 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .toast-wrap {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

/* ---------- reduced motion ---------- */
@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;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
