/* ------------------------------------------------
 * GasteWorks overrides for the Rayo template.
 * Loaded after main.css: only colours, logo, wordmark
 * and image slots are changed here; the theme files
 * themselves are untouched.
 * ------------------------------------------------ */

/* 01. Brand colours (red / black / white) */
:root {
  /* light scheme */
  --base--light: #FFFFFF;
  --base-rgb--light: 255, 255, 255;
  --base-tint--light: #F4F4F4;
  --base-shade--light: #E4E4E4;
  --base-opp--light: #141414;
  --accent--light: #D70000;
  --accent-rgb--light: 215, 0, 0;
  --additional--light: #FFFFFF;
  --additional-rgb--light: 255, 255, 255;
  --st-muted--light: #E4E4E4;
  --t-muted-extra--light: #B5B5B5;
  /* dark scheme */
  --base--dark: #141414;
  --base-rgb--dark: 20, 20, 20;
  --base-opp--dark: #FAFAFA;
  --accent--dark: #D70000;
  --accent-rgb--dark: 215, 0, 0;
  --additional--dark: #D70000;
  --additional-rgb--dark: 215, 0, 0;
}

/* text that sits on the red accent stays white in both schemes */
.bg-accent .opposite,
.bg-accent p.t-opposite,
.bg-accent .mxd-services-stack__number.t-opp-brigth,
.bg-accent .btn-outline.opposite,
.bg-accent .mxd-counter__number.opposite,
.bg-accent .mxd-counter__descr.opposite,
.footer-nav__counter,
.footer-nav__counter span {
  color: #FFFFFF;
}
.bg-accent .btn-outline.opposite {
  border-color: #FFFFFF;
}
::selection {
  color: #FFFFFF;
}

/* 02. Logo (official GasteWorks logo, dark + light versions) */
.gw-on-dark { display: none !important; }
[color-scheme=dark] .gw-on-light { display: none !important; }
[color-scheme=dark] .gw-on-dark { display: block !important; }
.gw-logo { display: inline-flex; align-items: center; }
.gw-logo__img {
  display: block;
  height: 4.6rem;
  width: auto;
}
@media only screen and (min-width: 768px) {
  .gw-logo__img { height: 5.8rem; }
}
@media only screen and (min-width: 1600px) {
  .gw-logo__img { height: 6.6rem; }
}

/* 03. Footer wordmark (keeps the theme's slide-in animation) */
.gw-wordmark {
  position: relative;
  width: 100%;
  z-index: -1;
}
.gw-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

/* 04. Platform cards (text instead of third-party logos) */
.mxd-partners-cards__logo {
  width: auto;
  text-align: center;
}
.gw-partner {
  display: block;
  font: normal var(--fw-medium) 2.6rem/1.2 var(--_font-accent);
  color: var(--t-bright);
  opacity: 0.6;
  transition: opacity var(--_animspeed-slow) ease;
}
.no-touch .mxd-partners-cards__inner:hover .gw-partner {
  opacity: 1;
}

/* 05. Image slots that the theme fills from CSS */
.blog-preview-image-1 { background-image: url(../img/gasteworks/card-1.webp); }
.blog-preview-image-2 { background-image: url(../img/gasteworks/card-2.webp); }
.blog-preview-image-3 { background-image: url(../img/gasteworks/card-3.webp); }
.mxd-promo__bg { background-image: url(../img/gasteworks/promo-bg.webp); }
[color-scheme=dark] .mxd-promo__bg { background-image: url(../img/gasteworks/promo-bg-light.webp); }

/* 06. Footer: offices card (replaces the newsletter form) */
.gw-offices__list p {
  display: flex;
  align-items: center;
  gap: 1rem;
  font: normal var(--fw-regular) 2.2rem/1.5 var(--_font-accent);
  color: var(--t-bright);
}
.gw-offices__list i {
  color: var(--accent);
}

/* 07. Hero: rotating 3D G (frame sequence driven by scroll) */
.gw-spin {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.gw-spin__fallback,
.gw-spin__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gw-spin.is-ready .gw-spin__fallback {
  visibility: hidden;
}
/* 3D stage: tilted / scaled by GSAP ScrollTrigger (see gasteworks.js) */
.gw-spin {
  perspective: 1200px;
}
.gw-spin__stage,
.gw-spin__tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.gw-spin__shadow {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -2%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}
[color-scheme=dark] .gw-spin__shadow {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

/* 08. Hero cards: where each card leads (same face as the "iyi fikir iş yapar" marquee) */
.mxd-hero-02-image__inner {
  position: relative;
}
.gw-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 4rem 1.6rem 1.4rem;
  border-radius: inherit;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0));
  color: #FFFFFF;
  pointer-events: none;
  text-align: left;
}
.gw-card-label__title {
  font: normal 500 2.2rem/1 var(--_font-accent);
  letter-spacing: -0.02em;
}
.gw-card-label__dest {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: normal 500 1.3rem/1.2 var(--_font-accent);
  color: rgba(255, 255, 255, 0.75);
}
.gw-card-label__dest i {
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform var(--_animspeed-medium, 0.3s) ease;
}
.no-touch a:hover .gw-card-label__dest i {
  transform: translate(2px, 2px);
}
@media only screen and (min-width: 1200px) {
  .gw-card-label { padding: 6rem 2.2rem 2rem; gap: 0.6rem; }
  .gw-card-label__title { font-size: 2.8rem; }
  .gw-card-label__dest { font-size: 1.5rem; }
}

/* 09. Capabilities list: no hover effects (rows stay at full opacity) */
.mxd-cpb-list > .mxd-cpb-list__item,
.mxd-cpb-list:hover > .mxd-cpb-list__item:not(:hover) {
  opacity: 1;
  transition: none;
}
