/* =========================
   JOYDAY HOME PAGE
   index.html özel stilleri
   layout.css header/footer/global altyapıyı yönetir
========================= */

/* =========================
   PAGE TOKENS
========================= */
:root {
  --home-orange: var(--joy-orange, #f15a25);
  --home-orange-dark: var(--joy-orange-dark, #d94d1b);
  --home-orange-soft: var(--joy-orange-soft, #fff1ea);

  --home-yellow: var(--joy-yellow, #fdb818);
  --home-yellow-soft: var(--joy-yellow-soft, #fff6db);

  --home-green: var(--joy-green, #80c343);
  --home-green-soft: #f4fbec;

  --home-pink: var(--joy-pink, #c01d79);
  --home-pink-soft: var(--joy-pink-soft, #fde8f3);

  --home-blue: var(--joy-blue, #325eab);
  --home-indigo: var(--joy-indigo, #4957a6);
  --home-indigo-soft: var(--joy-indigo-soft, #edf0fb);

  --home-text: var(--text, #1f2430);
  --home-text-muted: var(--text-muted, #626b78);
  --home-border: var(--border, #eee1d6);

  --home-radius-lg: 2.8rem;
  --home-shadow-soft: 0 18px 42px rgba(3, 4, 4, 0.08);
  --home-shadow-card: 0 16px 38px rgba(3, 4, 4, 0.06);
}

/* =========================
   BASE / ACCESSIBILITY
=

body.jd-page--home {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(128, 195, 67, 0.1), transparent 18%),
    radial-gradient(
      circle at 88% 14%,
      rgba(253, 184, 24, 0.12),
      transparent 18%
    ),
    radial-gradient(
      circle at 14% 78%,
      rgba(192, 29, 121, 0.08),
      transparent 18%
    ),
    radial-gradient(
      circle at 86% 84%,
      rgba(50, 94, 171, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.jd-page {
  color: var(--home-text);
}

.jd-main {
  background: #fffaf6;
}

.jd-skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 99999;
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  background: #ffffff;
  color: var(--home-text);
  box-shadow: var(--home-shadow-soft);
  text-decoration: none;
}

.jd-skip-link:focus {
  left: 1rem;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid rgba(241, 90, 37, 0.35);
  outline-offset: 3px;
  border-radius: 1.2rem;
}

/* =========================
   REUSABLES
========================= */
.jd-container {
  max-width: var(--container, 120rem);
  margin: 0 auto;
  padding: 0 var(--gutter, 3.2rem);
}

.jd-grid {
  display: grid;
  gap: 6.4rem;
}

.jd-grid--2-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jd-subheading {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  margin-bottom: 1.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--home-orange-soft), #fff7e7);
  border: 1px solid rgba(241, 90, 37, 0.14);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--home-indigo);
}

.jd-heading-primary {
  margin: 0 0 1.1rem;
  font-size: clamp(3.4rem, 4.2vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.8px;
  color: var(--home-text);
}

.jd-heading-secondary {
  margin: 0 0 3.2rem;
  font-size: clamp(3.6rem, 4vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--home-text);
}

.jd-heading-tertiary {
  margin: 0 0 1.6rem;
  font-size: clamp(2.8rem, 2.6vw, 3.6rem);
  line-height: 1.18;
  color: var(--home-text);
}

.jd-paragraph {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.75;
  color: var(--home-text-muted);
}

/* =========================
   BUTTONS
========================= */
.jd-btn:link,
.jd-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem 2.6rem;
  border-radius: 999px;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.jd-btn--primary:link,
.jd-btn--primary:visited {
  background: linear-gradient(135deg, var(--home-orange), #ff7e47);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(241, 90, 37, 0.25);
}

.jd-btn--primary:hover,
.jd-btn--primary:active {
  background: linear-gradient(
    135deg,
    var(--home-orange-dark),
    var(--home-orange)
  );
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(241, 90, 37, 0.32);
}

.jd-btn--outline:link,
.jd-btn--outline:visited {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.jd-btn--outline:hover,
.jd-btn--outline:active {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* =========================
   WAVES
========================= */
.jd-wave {
  width: 100%;
  height: 10rem;
  line-height: 0;
  pointer-events: none;
}

.jd-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================
   HERO
========================= */
.jd-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h, 8.8rem));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--joy-dark, #030404);
}

.jd-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.jd-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
}

.jd-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(253, 184, 24, 0.26),
      transparent 18%
    ),
    radial-gradient(
      circle at 16% 78%,
      rgba(192, 29, 121, 0.24),
      transparent 20%
    ),
    radial-gradient(
      circle at 78% 82%,
      rgba(128, 195, 67, 0.18),
      transparent 20%
    ),
    radial-gradient(circle at 20% 18%, rgba(50, 94, 171, 0.2), transparent 18%),
    linear-gradient(
      115deg,
      rgba(3, 4, 4, 0.7) 0%,
      rgba(73, 87, 166, 0.56) 44%,
      rgba(241, 90, 37, 0.36) 100%
    );
}

.jd-hero__content {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 8rem 0 0 clamp(2.4rem, 4vw, 5.6rem);
  padding: 3.2rem 3.6rem;
  border-radius: 2.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 54px rgba(3, 4, 4, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.jd-hero__content .jd-heading-primary {
  color: #ffffff;
  text-shadow: 0 16px 36px rgba(3, 4, 4, 0.24);
}

.jd-hero__description {
  max-width: 48ch;
  margin: 0 0 2.4rem;
  font-size: 1.65rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.jd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.jd-hero .jd-btn:link,
.jd-hero .jd-btn:visited {
  padding: 1.25rem 2.35rem;
  font-size: 1.55rem;
}

.jd-hero .jd-wave--bottom {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
}

/* =========================
   SERVICES
========================= */
.jd-services {
  position: relative;
  background:
    radial-gradient(
      circle at top left,
      rgba(128, 195, 67, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.jd-services .jd-wave--top {
  position: absolute;
  top: -1px;
  left: 0;
}

.jd-services .jd-wave--bottom {
  position: absolute;
  left: 0;
  bottom: -1px;
}

.jd-services__head {
  padding-top: 8.4rem;
  padding-bottom: 3.8rem;
}

.jd-services__grid {
  align-items: center;
  row-gap: 5.2rem;
  column-gap: 5.6rem;
  padding-bottom: 8.8rem;
}

.jd-service {
  position: relative;
}

.jd-service--text {
  align-self: center;
  padding: 3.2rem 3.4rem;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--card-soft, #fffaf6) 100%
  );
  box-shadow: var(--home-shadow-card);
  overflow: hidden;
}

.jd-service--text::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 0.6rem solid var(--card-accent, var(--home-orange));
  pointer-events: none;
}

.jd-service--text .jd-heading-tertiary {
  color: var(--card-accent, var(--home-orange));
}

.jd-services__grid > :nth-child(1) {
  --card-accent: var(--home-orange);
  --card-soft: var(--home-orange-soft);
}

.jd-services__grid > :nth-child(4) {
  --card-accent: var(--home-pink);
  --card-soft: var(--home-pink-soft);
}

.jd-services__grid > :nth-child(5) {
  --card-accent: var(--home-green);
  --card-soft: var(--home-green-soft);
}

.jd-services__grid > :nth-child(8) {
  --card-accent: var(--home-indigo);
  --card-soft: var(--home-indigo-soft);
}

.jd-service--media {
  align-self: center;
}

.jd-service__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--home-radius-lg);
  border: 0.7rem solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--home-shadow-soft);
  filter: none !important;
  image-rendering: auto;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* =========================
   FAQ
========================= */
.jd-experience,
.jd-experience--faq {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(253, 184, 24, 0.12),
      transparent 18%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(192, 29, 121, 0.1),
      transparent 18%
    ),
    radial-gradient(
      circle at 14% 82%,
      rgba(128, 195, 67, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, var(--bg-cream, #fff6ef) 0%, #fff8f3 100%);
}

.jd-experience--faq .jd-wave--top {
  position: absolute;
  top: -1px;
  left: 0;
}

.jd-experience--faq .jd-wave--bottom {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 8rem;
}

.jd-experience__content {
  position: relative;
  z-index: 2;
  padding-top: 7.6rem;
  padding-bottom: 7.6rem;
}

.jd-experience__content > .jd-heading-secondary {
  margin-bottom: 4rem;
}

.jd-experience__content .jd-heading-secondary::after {
  content: "";
  display: block;
  width: 7.2rem;
  height: 0.5rem;
  margin-top: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--home-orange),
    var(--home-yellow),
    var(--home-green),
    var(--home-blue),
    var(--home-pink)
  );
}

.jd-faq {
  max-width: 110rem;
  margin: 4.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

.jd-faq__col {
  display: grid;
  align-content: start;
  gap: 1.8rem;
}

.jd-faq__item {
  overflow: hidden;
  border-radius: 2.2rem;
  border: 1px solid rgba(73, 87, 166, 0.1);
  box-shadow: 0 12px 30px rgba(73, 87, 166, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.jd-faq__item:nth-child(5n + 1) {
  background: linear-gradient(180deg, #ffffff 0%, var(--home-orange-soft) 100%);
}

.jd-faq__item:nth-child(5n + 2) {
  background: linear-gradient(180deg, #ffffff 0%, var(--home-yellow-soft) 100%);
}

.jd-faq__item:nth-child(5n + 3) {
  background: linear-gradient(180deg, #ffffff 0%, var(--home-green-soft) 100%);
}

.jd-faq__item:nth-child(5n + 4) {
  background: linear-gradient(180deg, #ffffff 0%, var(--home-indigo-soft) 100%);
}



.jd-faq__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(73, 87, 166, 0.08);
}

.jd-faq__item[open] {
  border-color: rgba(241, 90, 37, 0.28);
  box-shadow: 0 16px 36px rgba(241, 90, 37, 0.12);
}

.jd-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 2.4rem;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--home-indigo);
}

.jd-faq__q::-webkit-details-marker {
  display: none;
}

.jd-faq__item[open] .jd-faq__q {
  color: var(--home-pink);
}

.jd-faq__chev {
  flex: 0 0 auto;
  margin-left: auto;
  width: 1.2rem;
  height: 1.2rem;
  border-right: 3px solid var(--home-orange);
  border-bottom: 3px solid var(--home-orange);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.jd-faq__item[open] .jd-faq__chev {
  transform: rotate(-135deg);
}

.jd-faq__a {
  padding: 0 2.4rem 2.4rem;
  font-size: 1.65rem;
  line-height: 1.75;
  color: var(--home-text-muted);
}

.jd-faq__item:not([open]) .jd-faq__a {
  display: none;
}



/* =========================
   RESPONSIVE
========================= */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
}

@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .jd-hero__content {
    max-width: calc(100% - 4.8rem);
    margin: 6rem 2.4rem 0;
    padding: 2.8rem 3rem;
  }

  .jd-hero__content .jd-heading-primary {
    font-size: clamp(3.2rem, 7vw, 4.4rem);
  }

  .jd-hero__description {
    font-size: 1.6rem;
  }

  .jd-hero .jd-btn:link,
  .jd-hero .jd-btn:visited {
    padding: 1.2rem 2.1rem;
    font-size: 1.5rem;
  }

  .jd-grid--2-cols {
    grid-template-columns: 1fr;
  }

  .jd-services__grid {
    row-gap: 3.8rem;
  }

  .jd-faq {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
}

@media (max-width: 44em) {
  .jd-experience__content {
    text-align: center;
  }

  .jd-experience__content .jd-heading-secondary::after {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 34em) {
  .jd-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .jd-wave {
    height: 8rem;
  }

  .jd-hero__content {
    max-width: calc(100% - 3.2rem);
    margin: 5rem 1.6rem 0;
    padding: 2.4rem 2.2rem;
    border-radius: 2.2rem;
  }

  .jd-hero__content .jd-heading-primary {
    font-size: 3.2rem;
  }

  .jd-hero__description {
    font-size: 1.5rem;
    line-height: 1.55;
  }

  .jd-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jd-hero .jd-btn:link,
  .jd-hero .jd-btn:visited {
    width: 100%;
  }

  .jd-heading-secondary {
    font-size: 3.4rem;
  }

  .jd-service--text {
    padding: 3rem 2.4rem;
  }

  .jd-faq__q {
    font-size: 1.7rem;
  }
}
/* =========================
   HOME SERVICES MOBILE FIX
   index.html services section mobil sıralama
========================= */
@media (max-width: 700px) {
  .jd-services__head {
    padding-top: 6.4rem;
    padding-bottom: 2.4rem;
    text-align: center;
  }

  .jd-services__head .jd-subheading {
    margin-left: auto;
    margin-right: auto;
  }

  .jd-services__head .jd-heading-secondary {
    margin-bottom: 1.6rem;
    font-size: clamp(3rem, 9vw, 4rem);
  }

  .jd-services__grid {
    grid-template-columns: 1fr;
    row-gap: 2.6rem;
    padding-bottom: 7.2rem;
  }

  /* Mobilde doğru akış:
     Action text > Action image
     Drama text > Drama image
     Workshop text > Workshop image
     Özel text > Özel image
  */
  .jd-services__grid > :nth-child(1) {
    order: 1;
  }

  .jd-services__grid > :nth-child(2) {
    order: 2;
  }

  .jd-services__grid > :nth-child(4) {
    order: 3;
  }

  .jd-services__grid > :nth-child(3) {
    order: 4;
  }

  .jd-services__grid > :nth-child(5) {
    order: 5;
  }

  .jd-services__grid > :nth-child(6) {
    order: 6;
  }

  .jd-services__grid > :nth-child(8) {
    order: 7;
  }

  .jd-services__grid > :nth-child(7) {
    order: 8;
  }

  .jd-service--text {
    padding: 2.6rem 2.8rem;
    border-radius: 2.4rem;
  }

  .jd-service--text .jd-heading-tertiary {
    margin-bottom: 1.2rem;
    font-size: 2.6rem;
  }

  .jd-paragraph {
    font-size: 1.6rem;
    line-height: 1.72;
  }

  .jd-service--media {
    margin-bottom: 1.8rem;
  }

  .jd-service__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: 38rem;
    object-fit: cover;
    border-radius: 2.4rem;
    border-width: 0.55rem;
  }
}

@media (max-width: 430px) {
  .jd-services__grid {
    row-gap: 2.2rem;
  }

  .jd-service--text {
    padding: 2.4rem 2.6rem;
  }

  .jd-service--text .jd-heading-tertiary {
    font-size: 2.4rem;
  }

  .jd-service__img {
    max-height: 34rem;
  }
}