/* .com-specific interaction helpers. Shared Akademi and R09 styles own the design. */

.com-motion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}

.com-motion-card {
  min-width: 0;
  margin: 0;
}

.com-motion-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 20px;
  background: var(--ink);
  height: auto;
}

.com-motion-single {
  display: block;
}

.com-motion-single .com-motion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.com-motion-portrait video {
  aspect-ratio: auto;
  max-width: 380px;
  justify-self: center;
}

.com-motion-card figcaption {
  padding-top: 20px;
}

.com-motion-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -.025em;
}

.com-motion-card p {
  max-width: 55ch;
  color: var(--metin-2);
}

@media (max-width: 760px) {
  .hero-tam .hero-medya {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 106px;
  }

  .hero-tam .oynat-hero {
    top: calc(75vw + 50px);
  }

  .com-motion-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .com-motion-single .com-motion-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Responsive picture wrappers mirror the reference rules for direct img children. */
.hero-tam .hero-medya > picture,
.r09-ice-page .ice-hero-photo > picture,
.r09-ice-page .ice-detail-image > picture,
.ak-zemin > picture,
.ak-foto > picture,
.gh-gorsel > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-tam .hero-medya > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.duygu-kart summary > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.r09-service > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  overflow: hidden;
}

.r09-service > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.r09-service:hover > picture > img {
  transform: scale(1.035);
}

.r09-ice-page .ice-place > picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.r09-ice-page .ice-place > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.r09-ice-page .ice-place:hover > picture > img {
  transform: scale(1.035);
}

.kapanis > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.kapanis > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spacing only. Reference classes retain their heading, color and grid rules. */
.com-section {
  padding: 96px 0;
}

.r09-ice-page .com-editorial-reverse > .ice-editorial-copy {
  order: 2;
}

.r09-ice-page .com-editorial-reverse > .ice-detail-image {
  order: 1;
}

.com-content {
  min-width: 0;
  overflow-wrap: break-word;
}

.com-content p {
  max-width: 72ch;
  line-height: 1.75;
}

.com-content p + p {
  margin-top: 18px;
}

.com-content ul,
.com-prose ul,
.com-prose ol {
  padding-left: 22px;
  line-height: 1.8;
}

.com-content li,
.com-prose li {
  margin-block: 10px;
}

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

.com-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding-block: 10px;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.com-link:hover {
  text-decoration: none;
}

.com-link:focus-visible {
  outline: 3px solid var(--blue, #0b6f96);
  outline-offset: 5px;
}

.com-prose {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.com-prose p {
  margin: 0 0 22px;
}

.r09-ice-page .com-prose h2,
.r09-ice-page .com-prose h3 {
  font-size: 30px;
  line-height: 1.2;
  margin: 40px 0 20px;
}

.com-prose picture {
  display: block;
  margin-block: 30px;
}

.com-prose picture img {
  width: 100%;
  height: auto;
}

.com-prose .com-archive {
  padding-bottom: 24px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--mist-2, #e8eaed);
  color: var(--metin-2, #5f6368);
  font-size: 14px;
}

/* Gallery and native dialog behavior. */
.com-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.com-photo {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.com-photo picture {
  display: block;
}

.com-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.com-photo span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.com-photo:focus-visible {
  outline: 3px solid var(--blue, #0b6f96);
  outline-offset: 5px;
}

.com-lightbox {
  width: min(1200px, 94vw);
  max-width: 94vw;
  max-height: 94svh;
  padding: 0;
  border: 0;
  background: var(--ink, #080b0e);
  color: #fff;
  overflow: auto;
}

.com-lightbox::backdrop {
  background: rgba(0, 0, 0, .86);
}

.com-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78svh;
  object-fit: contain;
}

.com-lightbox-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
}

.com-lightbox-bottom > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.com-lightbox button {
  flex: none;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #777;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.com-lightbox button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Explicit light controls keep the inquiry form readable. */
.com-contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 75px;
  align-items: start;
}

.com-contact > * {
  min-width: 0;
}

.com-contact aside a {
  display: block;
  margin-block: 20px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.com-contact address {
  font-style: normal;
  line-height: 1.8;
}

.com-contact aside > .com-link {
  display: inline-flex;
  margin: 6px 0 24px;
  font-size: 14px;
}

.com-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
  color: var(--metin, #14181d);
}

.com-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
}

.com-field.wide,
.com-form .wide {
  grid-column: 1/-1;
}

.com-field label {
  color: var(--metin, #14181d);
  font-size: 14px;
  font-weight: 600;
}

.com-field input,
.com-field textarea,
.com-field select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 15px 16px;
  border: 1px solid #bbc0c4;
  border-radius: 6px;
  background: #fff;
  color: #14181d;
  color-scheme: light;
  font: inherit;
}

.com-field input::placeholder,
.com-field textarea::placeholder {
  color: #626970;
  opacity: 1;
}

.com-field select option {
  background: #fff;
  color: #14181d;
}

.com-field input:focus,
.com-field textarea:focus,
.com-field select:focus {
  border-color: var(--blue, #0b6f96);
  outline: 3px solid rgba(11, 111, 150, .2);
  outline-offset: 1px;
}

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

.com-form-note {
  margin: 0;
  color: #586168;
  font-size: 13px;
  line-height: 1.6;
}

.com-form-status {
  padding: 18px;
  background: #e9f3ee;
  color: #143c2c;
  line-height: 1.7;
}

.com-form-status[hidden] {
  display: none;
}

.com-form button.com-link {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* Click-to-load video frame. */
.com-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
}

.com-news > article {
  min-width: 0;
}

.com-video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink, #080b0e);
  overflow: hidden;
}

.com-video-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.com-video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.com-video-frame button {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.com-video-frame button span {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 24px;
  background: var(--ink, #080b0e);
}

.com-video-frame button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.com-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.com-mobile-actions {
  display: none;
}

.com-no-margin {
  margin: 0;
}

@media (max-width: 1000px) {
  .com-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .com-contact {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .hero-tam .hero-medya > picture > img {
    object-position: 50% 40%;
  }

  .com-section {
    padding: 72px 0;
  }

  .r09-ice-page .com-editorial-reverse > .ice-editorial-copy,
  .r09-ice-page .com-editorial-reverse > .ice-detail-image {
    order: 0;
  }

  .com-contact,
  .com-form {
    grid-template-columns: 1fr;
  }

  .com-contact {
    gap: 32px;
  }

  .com-form .wide,
  .com-field.wide {
    grid-column: auto;
  }

  .com-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .com-gallery .com-photo span {
    font-size: 12px;
  }

  .com-prose {
    font-size: 17px;
  }

  .com-mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 95;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 11, 14, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .com-mobile-actions a {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 13px 5px;
    border-radius: 30px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
  }

  .com-mobile-actions a:nth-child(1) {
    background: rgba(255, 255, 255, .12);
  }

  .com-mobile-actions a:nth-child(2) {
    background: #167a43;
  }

  .com-mobile-actions a:nth-child(3) {
    background: var(--blue, #0b6f96);
  }

  body:has(.com-mobile-actions) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .com-news,
  .com-gallery {
    grid-template-columns: 1fr;
  }

  .com-lightbox-bottom {
    flex-wrap: wrap;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r09-service > picture > img,
  .r09-ice-page .ice-place > picture > img {
    transition: none;
  }

  .r09-service:hover > picture > img,
  .r09-ice-page .ice-place:hover > picture > img {
    transform: none;
  }
}
