/* ==========================================================================
   RSTECH – Mağazacılık Danışmanlığı (magazacilik/tr, magazacilik/en)
   Ashley kabuğu (style.css) üzerinde tek sayfa bölümleri. Kapıyla ortak dil:
   kırmızı çizgili eyebrow, kalın+ince başlık, pill etiketler, kırmızı daire ok.
   Yalnızca bu iki sayfa yükler; style.css'e dokunulmaz.
   ========================================================================== */

:root {
    --rt-red: #cb0000;
    --rt-red-dark: #a80000;
    --rt-red-soft: #ff6b68;            /* koyu zeminde okunur kırmızı */
    --rt-ink: #1e1e1e;
    --rt-ink-2: #4d4d4d;               /* açık zeminde 7:1 üzeri gövde metni */
    --rt-paper: #f2f2f2;
    --rt-white: #ffffff;
    --rt-line: rgba(0, 0, 0, 0.1);
    --rt-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --------------------------------------------------------------------------
   Ortak parçalar (kapının görsel dili)
   -------------------------------------------------------------------------- */
.mil-rt-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rt-red);
}

.mil-rt-eyebrow::before {
    content: "";
    flex: none;
    width: 2.5rem;
    height: 2px;
    background: currentColor;
}

.mil-rt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.mil-rt-tags li {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rt-ink);
    white-space: nowrap;
}

.mil-rt-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--rt-ink);
    text-decoration: none;
    transition: transform 160ms var(--rt-ease-out);
}

.mil-rt-cta-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--rt-red);
    color: var(--rt-white);
    transition: transform 200ms var(--rt-ease-out);
}

.mil-rt-cta-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 200ms var(--rt-ease-out);
}

.mil-rt-cta:active { transform: scale(0.97); }

.mil-rt-cta:focus-visible {
    outline: 2px solid var(--rt-red);
    outline-offset: 6px;
    border-radius: 2px;
}

.mil-rt-textlink {
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rt-ink-2);
    text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease;
}

.mil-rt-textlink:hover,
.mil-rt-textlink:focus-visible {
    color: var(--rt-red);
    border-color: currentColor;
    outline: none;
}

/* Şablonun rgba(0,0,0,.5) gövde rengi açık zeminde AA'yı geçmiyor; bu bölümlerde koyulaştır */
.mil-rt-hero p,
.mil-rt-services p,
.mil-rt-refs p,
.mil-rt-contact p { color: var(--rt-ink-2); }

/* --------------------------------------------------------------------------
   Hero: kapının açık kapısı devam ediyor (beyaz diyagonal yüzey + kırmızı dikiş + 02)
   -------------------------------------------------------------------------- */
.mil-rt-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(150px, 20vh, 210px);
    background: var(--rt-paper);
    color: var(--rt-ink);
}

.mil-rt-hero .container {
    position: relative;
    z-index: 1;
}

.mil-rt-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mil-rt-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--rt-white);
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 48% 100%);
}

/* Dikiş yukarıdan aşağı çizilir; preloader kalktığında biter */
.mil-rt-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--rt-red);
    clip-path: polygon(62% 0, calc(62% + 5px) 0, calc(48% + 5px) 100%, 48% 100%);
    transform-origin: top;
}

/* main.js preloader'ı kapatınca .mil-hidden ekler; dikiş o anda çizilir (:has desteği yoksa sabit kalır) */
.mil-wrapper:has(.mil-preloader.mil-hidden) .mil-rt-hero-bg::after {
    animation: rt-seam 900ms var(--rt-ease-out) both;
}

@keyframes rt-seam {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.mil-rt-num {
    position: absolute;
    right: -0.04em;
    bottom: -0.16em;
    font-size: clamp(11rem, 26vw, 26rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--rt-ink);
    opacity: 0.06;
    user-select: none;
}

.mil-rt-hero-content {
    max-width: 42rem;
    padding-bottom: clamp(3rem, 8vh, 5rem);
}

.mil-rt-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.6rem, 5.4vw + 0.5rem, 5.25rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--rt-ink);
    text-wrap: balance;
}

/* İkinci satır blok: şablon 768px altında <br> gizlediği için iki satırlı kilit bozulmasın */
.mil-rt-title .mil-thin {
    display: block;
    font-weight: 300;
}

.mil-rt-lead {
    max-width: 31rem;
    margin: 0 0 1.5rem;
    font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem);
    line-height: 1.6;
}

.mil-rt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

/* Raf etiketi gibi üç gerçek */
.mil-rt-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin: 0;
    padding: 2rem 0 clamp(3rem, 8vh, 5rem);
    border-top: 1px solid var(--rt-line);
    list-style: none;
}

.mil-rt-facts li {
    position: relative;
    padding-top: 1.25rem;
}

.mil-rt-facts li::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--rt-red);
}

.mil-rt-facts strong {
    display: block;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 500;
    line-height: 1;
    color: var(--rt-ink);
}

.mil-rt-facts span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-ink-2);
}

/* --------------------------------------------------------------------------
   Hizmetler: raf etiketi kartları (üstte kısa kırmızı çizgi, hover'da uzar)
   -------------------------------------------------------------------------- */
.mil-rt-services { background: var(--rt-white); }

.mil-rt-card {
    position: relative;
    height: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--rt-line);
}

.mil-rt-card::before,
.mil-rt-card::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    height: 2px;
    background: var(--rt-red);
}

.mil-rt-card::before { width: 2.5rem; }

/* Hover'da tam genişliğe uzayan çizgi: width yerine transform (layout tetiklemez) */
.mil-rt-card::after {
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--rt-ease-out);
}

.mil-rt-card-num {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--rt-red);
}

.mil-rt-card h3 { margin-bottom: 0.9rem; }

.mil-rt-card p { margin-bottom: 1.25rem; }

.mil-rt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mil-rt-card-tags li {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--rt-line);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rt-ink);
}

/* --------------------------------------------------------------------------
   Nasıl çalışırız: koyu bant, dört adım
   -------------------------------------------------------------------------- */
.mil-rt-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mil-rt-step {
    position: relative;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mil-rt-step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rt-red-soft);
}

.mil-rt-step-num {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 2.75rem;
    font-weight: 200;
    line-height: 1;
    color: var(--rt-red-soft);
}

.mil-rt-step h3 { margin-bottom: 0.9rem; }

.mil-rt-step p { margin: 0; }

/* --------------------------------------------------------------------------
   Referanslar: mağaza plaketleri (yalnızca logo, şehir, format)
   -------------------------------------------------------------------------- */
.mil-rt-store {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 2rem 1.75rem;
    border-radius: 20px;
    background: var(--rt-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.mil-rt-store-logo {
    display: flex;
    align-items: center;
    height: 5.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rt-line);
}

.mil-rt-store-logo img {
    display: block;
    width: auto;
    max-width: 11rem;
    max-height: 3.75rem;
    height: auto;
}

.mil-rt-store h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.mil-rt-store-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: auto;
    font-size: 0.8125rem;
    color: var(--rt-ink-2);
}

.mil-rt-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--rt-paper);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-ink);
}

.mil-rt-chip-wholesale {
    background: var(--rt-red);
    color: var(--rt-white);
}

.mil-rt-refs-link { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   İletişim: doğrudan tel / e-posta, diğer alana geçiş
   -------------------------------------------------------------------------- */
.mil-rt-contact { background: var(--rt-white); }

.mil-rt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mil-rt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border: 1px solid var(--rt-red);
    border-radius: 999px;
    background: var(--rt-red);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rt-white);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms var(--rt-ease-out), background-color 200ms ease, border-color 200ms ease;
}

.mil-rt-btn-alt {
    border-color: rgba(0, 0, 0, 0.2);
    background: transparent;
    color: var(--rt-ink);
}

.mil-rt-btn:active { transform: scale(0.97); }

.mil-rt-btn:focus-visible {
    outline: 2px solid var(--rt-red);
    outline-offset: 3px;
}

.mil-rt-note {
    margin: 0;
    font-size: 0.9375rem;
}

.mil-rt-note a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    font-weight: 500;
    color: var(--rt-ink);
    text-decoration: none;
}

.mil-rt-note a:hover,
.mil-rt-note a:focus-visible {
    color: var(--rt-red);
    border-color: currentColor;
    outline: none;
}

.mil-rt-aside {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--rt-paper);
}

.mil-rt-aside h3 {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rt-red);
}

.mil-rt-aside p { color: var(--rt-ink); }

.mil-rt-area-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --------------------------------------------------------------------------
   Hover yalnızca ince işaretçide (dokunmatikte odak hover'ı tetikler)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
    .mil-rt-cta:hover .mil-rt-cta-icon { transform: scale(1.08); }
    .mil-rt-cta:hover .mil-rt-cta-icon svg { transform: translateX(3px); }
    .mil-rt-card:hover::after { transform: scaleX(1); }
    .mil-rt-btn:hover { background: var(--rt-red-dark); border-color: var(--rt-red-dark); }
    .mil-rt-btn-alt:hover { background: var(--rt-paper); border-color: rgba(0, 0, 0, 0.35); }
}

/* --------------------------------------------------------------------------
   Duyarlılık
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .mil-rt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Dar ekranda metin tam genişlik kullanır; dikiş sağ boşlukta kalsın */
    .mil-rt-hero-bg::before { clip-path: polygon(97% 0, 100% 0, 100% 100%, 92% 100%); }
    .mil-rt-hero-bg::after { clip-path: polygon(97% 0, calc(97% + 4px) 0, calc(92% + 4px) 100%, 92% 100%); }
}

@media screen and (max-width: 768px) {
    .mil-rt-hero { padding-top: 130px; }
    .mil-rt-num { font-size: 42vw; opacity: 0.05; }
    .mil-rt-facts { gap: 1.25rem 1rem; }
    .mil-rt-aside { padding: 2rem 1.5rem; }
}

@media screen and (max-width: 576px) {
    .mil-rt-steps { grid-template-columns: 1fr; }
    .mil-rt-actions { flex-direction: column; align-items: stretch; }
    .mil-rt-btn { justify-content: center; }
}

/* Hareket azaltma: konum/ölçek hareketi yok, yalnızca renk/opaklık */
@media (prefers-reduced-motion: reduce) {
    .mil-wrapper:has(.mil-preloader.mil-hidden) .mil-rt-hero-bg::after { animation: none; }
    .mil-rt-cta,
    .mil-rt-cta-icon,
    .mil-rt-cta-icon svg,
    .mil-rt-card::after,
    .mil-rt-btn { transition: none; }
    .mil-rt-cta:hover .mil-rt-cta-icon,
    .mil-rt-cta:hover .mil-rt-cta-icon svg,
    .mil-rt-cta:active,
    .mil-rt-btn:active { transform: none; }
}
