/*
 * Brand Update V20
 * Official transparent logo and restrained editorial photography.
 */

.brand {
  width: 190px;
  height: 78px;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 66px;
  object-fit: contain;
  filter:
    brightness(1.24)
    saturate(1.2)
    contrast(1.12)
    drop-shadow(0 5px 18px rgba(0, 0, 0, .2));
}

.footer-brand {
  width: 220px;
  height: auto;
}

.footer-brand .brand-logo {
  max-height: none;
}

.hero-editorial {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-editorial-frame {
  position: absolute;
  width: clamp(150px, 15vw, 280px);
  height: clamp(290px, 48vh, 540px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 129, 46, .28);
  box-shadow: 0 30px 80px rgba(9, 24, 38, .22);
  opacity: .2;
  filter: sepia(.16) saturate(.72) contrast(1.06);
}

.hero-editorial-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(238, 207, 140, .28);
}

.hero-editorial-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kortanEditorialDrift 18s ease-in-out infinite alternate;
}

.hero-editorial-frame-left {
  left: -3vw;
  bottom: -7%;
  transform: rotate(-2deg);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent);
  mask-image: linear-gradient(90deg, #000 45%, transparent);
}

.hero-editorial-frame-left img {
  object-position: 47% center;
}

.hero-editorial-frame-right {
  right: -2vw;
  bottom: -5%;
  transform: rotate(2deg);
  -webkit-mask-image: linear-gradient(270deg, #000 42%, transparent);
  mask-image: linear-gradient(270deg, #000 42%, transparent);
}

.hero-editorial-frame-right img {
  object-position: center 70%;
  animation-delay: -6s;
}

@keyframes kortanEditorialDrift {
  from { transform: scale(1.08) translate3d(0, -1.5%, 0); }
  to { transform: scale(1.15) translate3d(0, 1.5%, 0); }
}

.atelier-story {
  position: relative;
  min-height: 820px;
  padding: clamp(90px, 10vw, 150px) 6vw;
  display: grid;
  grid-template-columns: minmax(270px, .52fr) minmax(0, 1.48fr);
  gap: clamp(38px, 5vw, 86px);
  align-items: center;
  overflow: hidden;
  color: #f4ead8;
  background:
    radial-gradient(circle at 68% 40%, rgba(152, 99, 35, .13), transparent 32%),
    linear-gradient(135deg, #061526, #091d31 58%, #061321);
}

.atelier-story::before {
  content: "K";
  position: absolute;
  left: -2vw;
  bottom: -19vw;
  color: rgba(202, 157, 82, .035);
  font: 400 min(62vw, 850px)/1 "Cinzel", serif;
  pointer-events: none;
}

.atelier-heading {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.atelier-heading > span {
  color: #d4a653;
  font: 600 .66rem/1.4 "Manrope", sans-serif;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.atelier-heading h2 {
  margin: 26px 0 28px;
  color: #f7efdf;
  font: 400 clamp(3.4rem, 5vw, 6.2rem)/.88 "Cormorant Garamond", serif;
  letter-spacing: -.04em;
}

.atelier-heading h2 em {
  display: inline-block;
  color: #d5a452;
  font-weight: 400;
}

.atelier-heading p {
  max-width: 430px;
  color: rgba(244, 234, 216, .64);
  font: 400 .92rem/1.85 "Manrope", sans-serif;
}

.atelier-showroom {
  min-width: 0;
  margin-right: -6vw;
  padding: 28px 6vw 42px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.atelier-showroom:active {
  cursor: grabbing;
}

.atelier-showroom::-webkit-scrollbar {
  display: none;
}

.atelier-showroom-track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.7vw, 28px);
  width: max-content;
  min-height: clamp(510px, 47vw, 690px);
}

.atelier-panel {
  position: relative;
  flex: 0 0 clamp(280px, 23vw, 390px);
  height: clamp(430px, 42vw, 610px);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(214, 174, 100, .38);
  background: #050d15;
  box-shadow: 0 35px 85px rgba(0, 0, 0, .38);
  transform: translateZ(0);
}

.atelier-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(2, 9, 15, .84)),
    linear-gradient(90deg, rgba(213, 164, 82, .08), transparent 28%);
  pointer-events: none;
}

.atelier-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.04);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .9s ease;
}

.atelier-panel:hover img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.04);
}

.atelier-panel figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  left: clamp(18px, 2vw, 28px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 14px;
  color: rgba(250, 240, 219, .9);
  font: 500 .56rem/1.35 "Manrope", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.atelier-panel figcaption span {
  color: #d5a452;
}

.atelier-panel figcaption:not(:has(strong)) {
  padding-top: 11px;
  border-top: 1px solid rgba(244, 234, 216, .35);
}

.atelier-panel-wide {
  flex-basis: clamp(420px, 39vw, 650px);
  height: clamp(350px, 31vw, 485px);
}

.atelier-panel-square {
  flex-basis: clamp(330px, 30vw, 480px);
  height: clamp(390px, 34vw, 530px);
}

.atelier-panel-tall {
  flex-basis: clamp(280px, 23vw, 385px);
  height: clamp(510px, 50vw, 700px);
}

.atelier-panel-offset {
  transform: translateY(clamp(24px, 4vw, 60px));
}

.atelier-showroom-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  color: rgba(244, 234, 216, .65);
  font: 600 .56rem/1.5 "Manrope", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.atelier-showroom-meta > span {
  color: #d5a452;
  white-space: nowrap;
}

.atelier-showroom-meta > p {
  margin: 0;
  font: inherit;
}

.atelier-showroom-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.atelier-showroom-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(213, 164, 82, .42);
  background: rgba(6, 21, 38, .75);
  color: #f4ead8;
  font: 500 1rem/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.atelier-showroom-controls button:hover,
.atelier-showroom-controls button:focus-visible {
  border-color: rgba(213, 164, 82, .85);
  background: rgba(213, 164, 82, .16);
  outline: none;
}

@media (max-width: 980px) {
  .brand {
    width: 168px;
  }

  .atelier-story {
    grid-template-columns: 1fr;
  }

  .atelier-heading {
    max-width: 670px;
  }

  .atelier-showroom {
    margin-right: -6vw;
  }
}

@media (max-width: 760px) {
  .site-header .brand {
    width: 142px;
    height: 72px;
  }

  .brand-logo {
    max-height: 54px;
    filter:
      brightness(1.32)
      saturate(1.25)
      contrast(1.16)
      drop-shadow(0 4px 13px rgba(0, 0, 0, .24));
  }

  .hero-editorial-frame {
    display: none;
  }

  .atelier-story {
    min-height: auto;
    padding: 76px 6vw 66px;
    gap: 38px;
  }

  .atelier-heading h2 {
    margin: 20px 0 22px;
    font-size: clamp(3rem, 12.8vw, 4rem);
    line-height: .91;
  }

  .atelier-heading p {
    font-size: .84rem;
    line-height: 1.72;
  }

  .atelier-showroom-meta {
    gap: 10px;
    margin-top: 24px;
    font-size: .5rem;
  }

  .atelier-showroom-meta > p {
    max-width: 126px;
  }

  .atelier-showroom-controls {
    gap: 6px;
  }

  .atelier-showroom-controls button {
    width: 38px;
    height: 38px;
  }

  .atelier-showroom {
    width: calc(100% + 12vw);
    margin: 8px -6vw 0;
    padding: 18px 6vw 34px;
    scroll-padding-inline: 6vw;
  }

  .atelier-showroom-track {
    gap: 14px;
    min-height: 480px;
  }

  .atelier-panel,
  .atelier-panel-tall,
  .atelier-panel-square {
    flex-basis: min(76vw, 330px);
    height: min(118vw, 520px);
  }

  .atelier-panel-wide {
    flex-basis: min(88vw, 410px);
    height: min(76vw, 350px);
  }

  .atelier-panel-offset {
    transform: translateY(18px);
  }

  .atelier-panel figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    gap: 10px;
    font-size: .48rem;
    letter-spacing: .13em;
  }

  .footer-brand {
    width: 190px;
  }

  /* Keep the artwork below the copy instead of letting it collide with UI. */
  .hero-v2 {
    min-height: max(790px, 100svh) !important;
    padding: 102px 6vw 285px !important;
    background: #ecd49d !important;
  }

  .hero-v2::before {
    inset: 0 !important;
    background:
      linear-gradient(
        180deg,
        rgba(244, 224, 178, .98) 0%,
        rgba(239, 214, 158, .96) 51%,
        rgba(238, 211, 151, .55) 63%,
        rgba(8, 24, 37, .08) 100%
      ),
      url("assets/art/kortan-golden-artwork-clean-v4.png") center bottom / auto 61% no-repeat !important;
    filter: saturate(.88) contrast(1.03) !important;
    transform: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .hero-v2 .hero-vignette {
    background:
      radial-gradient(ellipse at 50% 30%, rgba(255, 245, 219, .62), transparent 61%),
      linear-gradient(180deg, transparent 64%, rgba(5, 18, 29, .16)) !important;
  }

  .hero-v2 .hero-copy {
    padding-top: 20px !important;
  }

  .hero-v2 h1 {
    font-size: clamp(3.18rem, 12.8vw, 4.15rem) !important;
  }

  footer {
    min-height: 150px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Yayla Türk official dealership collection */
.collection-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.collection-tab[data-collection="yaylaturk"].active {
  background:
    radial-gradient(circle at 88% 18%, rgba(231, 195, 118, .18), transparent 32%),
    linear-gradient(135deg, #4e171d, #852c31);
}

.catalog[data-collection="yaylaturk"] {
  background:
    radial-gradient(circle at 90% 10%, rgba(126, 38, 43, .1), transparent 28rem),
    #f1e9dc;
}

.catalog[data-collection="yaylaturk"] .filter.active,
.catalog[data-collection="yaylaturk"] .filter:hover {
  background: #76272c;
}

.catalog[data-collection="yaylaturk"] .product-info small,
.catalog[data-collection="yaylaturk"] .product-card > b {
  color: #8b3436;
}

.product-card-yaylaturk .product-image {
  position: relative;
  aspect-ratio: 1.06;
  padding: 10px;
  display: grid;
  place-items: center;
  background: #f8f3e9;
  border: 1px solid rgba(118, 39, 44, .14);
}

.product-card-yaylaturk .product-image::after {
  content: "RESMÎ BAYİ";
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(226, 194, 124, .55);
  background: rgba(62, 16, 21, .88);
  color: #f0d595;
  font: 700 .48rem/1 "Manrope", sans-serif;
  letter-spacing: .16em;
}

.product-card-yaylaturk .product-image img {
  display: block;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.02) contrast(1.025);
}

.product-card-yaylaturk:hover .product-image img {
  transform: scale(1.018);
}

.product-card-yaylaturk .product-image i {
  left: auto;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(118, 39, 44, .18);
  background: rgba(255, 251, 242, .94);
  color: #6d2529;
  box-shadow: 0 8px 22px rgba(42, 20, 18, .08);
}

.product-card-yaylaturk:hover .product-image::after {
  opacity: 1;
}

.product-card-yaylaturk .product-image::before {
  display: none;
}

.product-card-yaylaturk .product-info strong {
  font-size: 1.28rem;
}

.product-modal[data-brand="yaylaturk"] .modal-image {
  background: #eee6d9;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
}

.product-modal[data-brand="yaylaturk"] .modal-image img {
  display: block;
  object-fit: contain;
  object-position: center;
  width: min(100%, 520px);
  height: auto;
  max-height: calc(90vh - 112px);
  padding: 0;
}

.catalog[data-collection="yaylaturk"] + .services {
  border-top-color: rgba(118, 39, 44, .2);
}

@media (max-width: 760px) {
  .collection-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-tab {
    min-width: 0;
    padding: 16px 10px;
  }

  .collection-tab strong {
    font-size: 1.45rem;
  }

  .collection-tab small {
    font-size: .43rem;
    line-height: 1.45;
  }

  .product-card-yaylaturk .product-image::after {
    top: 7px;
    left: 7px;
    padding: 5px 6px;
    font-size: .38rem;
  }

  .product-modal[data-brand="yaylaturk"] .modal-image {
    min-height: 0;
    height: 42vh;
    padding: 18px;
  }

  .product-modal[data-brand="yaylaturk"] .modal-image img {
    width: 100%;
    height: 100%;
    max-height: none;
  }
}

@media (max-width: 430px) {
  .collection-tab span {
    display: none;
  }

  .collection-tab strong {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-editorial-frame img {
    animation: none;
  }
}
