/* =========================
   WORKSHOPLAR PAGE
   workshoplar.css
   layout.css ortak header/footer yapısını yönetir
========================= */

/* =========================
   RESET + TOKENS
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Main brand colors */
  --ws-primary: #80c343;
  --ws-primary-dark: #5f982c;
  --ws-primary-light: #9bd35f;
  --ws-primary-soft: #f2fae8;

  /* Supporting colors */
  --ws-green-50: #fbfff6;
  --ws-card-bg: #fcfff8;

  /* Text */
  --ws-text: #1f2430;
  --ws-text-muted: #5f6875;

  /* Waves */
  --ws-upcoming-wave: #f2fae8;
  --ws-upcoming-wave-soft: #f2fae8;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  line-height: 1;
  color: var(--ws-text);
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(128, 195, 67, 0.08),
      transparent 20%
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(155, 211, 95, 0.1),
      transparent 18%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--ws-green-50) 100%);
}

img,
picture,
video,
svg {
  max-width: 100%;
  display: block;
}

/* =========================
   ACTIVE NAV
========================= */
.layout-nav__link[href="workshoplar.html"],
.layout-nav__link[aria-current="page"] {
  color: var(--ws-primary);
}

.layout-nav__link[href="workshoplar.html"]::after {
  background: linear-gradient(
    90deg,
    var(--ws-primary),
    var(--ws-primary-light)
  );
}

/* =========================
   CONTAINER + WAVE
========================= */
.ws-container {
  max-width: var(--container, 120rem);
  margin: 0 auto;
  padding: 0 var(--gutter, 3.2rem);
}

.ws-wave {
  width: 100%;
  height: 16rem;
  line-height: 0;
  pointer-events: none;
}

.ws-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================
   TYPOGRAPHY
========================= */
.ws-h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(3.2rem, 3.6vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--ws-text);
}

.ws-h2--light {
  color: #ffffff;
}

.ws-p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.78;
  color: var(--ws-text-muted);
}

.ws-lead {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.72;
  color: var(--ws-text-muted);
  max-width: 75ch;
}

.ws-lead--light {
  color: rgba(255, 255, 255, 0.92);
}

/* =========================
   BUTTONS
========================= */
.ws-btn:link,
.ws-btn:visited,
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.3rem 2.4rem;
  border-radius: 999px;
  font-size: 1.7rem;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ws-btn--primary:link,
.ws-btn--primary:visited {
  background: linear-gradient(
    135deg,
    var(--ws-primary),
    var(--ws-primary-light)
  );
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(128, 195, 67, 0.24);
}

.ws-btn--primary:hover,
.ws-btn--primary:active {
  background: linear-gradient(
    135deg,
    var(--ws-primary-dark),
    var(--ws-primary)
  );
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(128, 195, 67, 0.32);
}

.ws-btn--outline:link,
.ws-btn--outline:visited {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.ws-btn--outline:hover,
.ws-btn--outline:active {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.ws-btn--solid {
  background: #ffffff;
  color: var(--ws-primary-dark);
  border-color: rgba(128, 195, 67, 0.18);
  box-shadow: 0 14px 28px rgba(3, 4, 4, 0.1);
}

.ws-btn--solid:hover {
  color: var(--ws-primary);
  border-color: rgba(128, 195, 67, 0.28);
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */
.ws-hero {
  position: relative;
  min-height: calc(88vh - var(--header-h, 8.8rem));
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  background: #111111;
}

.ws-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ws-hero__video,
.ws-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none !important;
}

.ws-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(128, 195, 67, 0.22),
      transparent 18%
    ),
    radial-gradient(
      circle at 14% 78%,
      rgba(155, 211, 95, 0.22),
      transparent 20%
    ),
    linear-gradient(
      115deg,
      rgba(3, 4, 4, 0.74) 0%,
      rgba(73, 87, 166, 0.48) 46%,
      rgba(128, 195, 67, 0.36) 100%
    );
}

.ws-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 86rem;
  margin: 0 auto;
  padding: 9rem 0 11.2rem;
  text-align: center;
}

.ws-hero__title {
  margin: 0 0 1.4rem;
  font-size: clamp(4.2rem, 5.2vw, 6.8rem);
  line-height: 1.03;
  letter-spacing: -0.7px;
  color: #ffffff;
}

.ws-hero__lead {
  margin: 0 auto 2.8rem;
  font-size: 2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.ws-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.ws-hero .ws-wave--bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
}

.ws-hero .ws-wave--bottom path {
  fill: var(--ws-upcoming-wave) !important;
}

/* =========================
   RENTAL SECTION
========================= */
.ws-rental {
  position: relative;
  padding: 9rem 0 10rem;
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(128, 195, 67, 0.1),
      transparent 20%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(155, 211, 95, 0.12),
      transparent 18%
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(253, 184, 24, 0.08),
      transparent 20%
    ),
    linear-gradient(180deg, #f2fae8 0%, #fbfff6 100%);
}

.ws-rental__head {
  max-width: 92rem;
  margin: 0 auto 5.2rem;
  text-align: center;
}

.ws-rental__head .ws-lead {
  margin-left: auto;
  margin-right: auto;
}

.ws-rental__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 1.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ws-primary-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(128, 195, 67, 0.18);
  box-shadow: 0 10px 24px rgba(128, 195, 67, 0.08);
}

.ws-rental__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 3.2rem;
}

.ws-rental__card {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: 2.8rem;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(128, 195, 67, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--ws-card-bg) 100%);
  border: 1px solid rgba(128, 195, 67, 0.14);
  box-shadow: 0 16px 38px rgba(128, 195, 67, 0.1);
}

.ws-rental__card--main {
  width: 100%;
  max-width: 96rem;
  padding: 4.8rem 5.2rem;
  text-align: center;
  border-radius: 3.2rem;
}

.ws-rental__card--main .ws-p {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.ws-rental__card--main .ws-p + .ws-p {
  margin-top: 1.8rem;
}

.ws-rental__photos {
  width: 100%;
  max-width: 104rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.ws-rental__photo {
  margin: 0;
  height: 28rem;
  overflow: hidden;
  border-radius: 2.8rem;
  background: #ffffff;
  border: 0.6rem solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(128, 195, 67, 0.14);
}

.ws-rental__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none !important;
  transition: transform 0.35s ease;
}

.ws-rental__photo:hover img {
  transform: scale(1.04);
}

/* =========================
   SUBSCRIBE / CTA
========================= */
.ws-subscribe {
  position: relative;
  overflow: hidden;
  padding: 14rem 0 12rem;
  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(128, 195, 67, 0.18),
      transparent 22%
    ),
    linear-gradient(135deg, #5f982c 0%, #80c343 46%, #9bd35f 100%);
}

.ws-subscribe > *:not(.ws-wave) {
  position: relative;
  z-index: 2;
}

.ws-subscribe__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.4rem;
  align-items: center;
}

.ws-subscribe__text {
  min-width: 0;
}

.ws-subscribe__media {
  border-radius: 2.8rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 40px rgba(3, 4, 4, 0.14);
}

.ws-subscribe__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   FORM CTA
========================= */
.ws-form {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  max-width: 62rem;
}

.ws-form .ws-btn {
  width: fit-content;
}

.ws-subscribe .ws-btn--solid {
  background: #ffffff;
  color: var(--ws-primary-dark);
  box-shadow: 0 14px 28px rgba(3, 4, 4, 0.12);
}

.ws-subscribe .ws-btn--solid:hover {
  background: var(--ws-primary-soft);
  color: var(--ws-primary-dark);
}

/* =========================
   SUBSCRIBE WAVES
========================= */
.ws-wave--subscribe-top,
.ws-wave--subscribe-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 10rem;
  z-index: 1;
  pointer-events: none;
}

.ws-wave--subscribe-top {
  top: -1px;
}

.ws-wave--subscribe-bottom {
  bottom: -1px;
}

.ws-wave--subscribe-top svg,
.ws-wave--subscribe-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ws-wave--subscribe-top path {
  fill: var(--ws-upcoming-wave-soft) !important;
}

.ws-wave--subscribe-bottom path {
  fill: #ffffff !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  html {
    font-size: 56.25%;
  }

  .ws-hero__content {
    text-align: center;
    margin: 0 auto;
  }

  .ws-hero__actions {
    justify-content: center;
  }

  .ws-rental {
    padding: 8rem 0 9rem;
  }

  .ws-rental__card--main {
    padding: 4rem 3.2rem;
  }

  .ws-rental__photos {
    grid-template-columns: 1fr;
    max-width: 64rem;
  }

  .ws-rental__photo {
    height: 30rem;
  }

  .ws-subscribe__inner {
    grid-template-columns: 1fr;
  }

  .ws-form {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 50%;
  }

  .ws-wave {
    height: 12rem;
  }

  .ws-rental {
    padding: 7rem 0 8rem;
  }

  .ws-rental__card--main {
    padding: 3.2rem 2.4rem;
    border-radius: 2.4rem;
  }

  .ws-rental__photo {
    height: 24rem;
    border-radius: 2.2rem;
  }

  .ws-subscribe {
    padding-top: 11rem;
    padding-bottom: 10rem;
  }

  .ws-subscribe__media {
    border-radius: 2.2rem;
  }

  .ws-form {
    width: 100%;
  }

  .ws-form .ws-btn {
    width: 100%;
  }
}

@media (max-width: 34em) {
  .ws-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .ws-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ws-hero .ws-btn {
    width: 100%;
  }

  .ws-rental__card,
  .ws-rental__photo {
    background: linear-gradient(180deg, #ffffff 0%, var(--ws-card-bg) 100%);
  }
}

/* =========================
   WORKSHOP RESERVATION FORM
========================= */
.ws-res-form {
  width: min(100%, 62rem);
  display: grid;
  gap: 1.6rem;
  margin-top: 2.8rem;
}

.ws-res-form__row {
  display: grid;
  gap: 0.8rem;
}

.ws-res-form__row label {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
}

.ws-res-form__row input,
.ws-res-form__row textarea {
  width: 100%;
  min-height: 5.2rem;
  padding: 1.3rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.96);
  font-family: inherit;
  font-size: 1.6rem;
  color: var(--ws-text);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ws-res-form__row textarea {
  resize: vertical;
  min-height: 11rem;
}

.ws-res-form__row input:focus,
.ws-res-form__row textarea:focus {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.ws-res-check {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--ws-text-muted);
  cursor: pointer;
}

.ws-res-check input {
  width: 1.9rem;
  height: 1.9rem;
  margin-top: 0.25rem;
  accent-color: var(--ws-primary);
  flex: 0 0 auto;
}

.ws-res-check__link:link,
.ws-res-check__link:visited {
  color: var(--ws-primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.ws-res-check__link:hover,
.ws-res-check__link:active {
  color: var(--ws-primary);
}

.ws-res-submit {
  width: fit-content;
  min-width: 27rem;
  border: 0;
  justify-self: start;
}

.ws-res-form__status {
  margin: 0;
  padding: 1.4rem 1.6rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 800;
}

.ws-res-form__status:empty {
  display: none;
}

.ws-res-form__status.is-loading {
  color: var(--ws-primary-dark);
}

.ws-res-form__status.is-success {
  color: var(--ws-primary-dark);
}

.ws-res-form__status.is-error {
  color: #d94d1b;
}

@media (max-width: 700px) {
  .ws-res-form {
    width: 100%;
  }

  .ws-res-submit {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

/* =========================
   WORKSHOP FORM MOBILE IMAGE FIX
   Form gönderimi sonrası görsel alanının uzamasını engeller
========================= */
@media (max-width: 900px) {
  .ws-subscribe__inner {
    align-items: start;
    gap: 3.2rem;
  }

  .ws-subscribe__media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    align-self: start;
  }

  .ws-subscribe__media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 600px) {
  .ws-subscribe__media {
    aspect-ratio: 4 / 5;
    border-radius: 2.2rem;
  }
}
