/* ============================================================
   PLATFORM MARDIN — shared stylesheet
   Token system: color, type, layout, components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  /* -- color tokens -- */
  --bg-dark:      #29110a;
  --bg-orange:    #d85a1a;
  --bg-orange-lt: #f2923f;
  --ink:          #1c130c;
  --ink-soft:     #3c2c20;
  --cream:        #fbf1e4;
  --cream-dim:    #eee1cd;
  --gold:         #f0a91e;
  --gold-dark:    #b97710;
  --panel:        #17110b;
  --line:         rgba(251,241,228,0.18);

  /* -- type tokens -- */
  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;

  /* -- layout tokens -- */
  --wrap: 1160px;
  --radius-tv: 14px;
  --radius-btn: 999px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family:var(--font-body);
  color:var(--cream);
  background:var(--panel);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

h1,h2,h3{
  font-family:var(--font-display);
  line-height:1.05;
  letter-spacing:-0.01em;
  color:var(--cream);
}

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 32px;
}

/* focus visibility */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

/* ============================================================
   IN-HERO CENTERED MENU (replaces a top navbar)
   ============================================================ */
.brand-mark{
  text-align:center;
  padding-top:6px;
  margin-bottom:22px;
}
.brand-mark a{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  color:var(--ink);
  opacity:0.85;
}
.brand-mark .dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--ink);
  display:inline-block;
}

.pill-menu{
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
  margin:0 auto 30px;
}
.pill-menu a{
  padding:12px 26px;
  border-radius:var(--radius-btn);
  font-weight:600;
  font-size:0.94rem;
  background:rgba(28,19,12,0.12);
  color:var(--ink);
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.pill-menu a:hover{
  background:var(--ink);
  color:var(--cream);
  transform:translateY(-2px);
}
.pill-menu a.active{
  background:var(--ink);
  color:var(--cream);
}

@media (max-width:520px){
  .pill-menu a{ padding:10px 18px; font-size:0.88rem; }
}

/* ============================================================
   HERO — tam ekran (viewport'a tam oturacak şekilde)
   ============================================================ */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(251,241,228,0.08) 1.4px, transparent 1.4px) 0 0/22px 22px,
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-orange) 58%, var(--bg-orange-lt) 100%);
  padding:72px 0 56px;
  min-height:100vh;
  min-height:100dvh; /* mobil tarayıcı adres çubuğu farkını hesaba katan daha doğru birim (desteklenmeyen tarayıcılarda 100vh'a düşer) */
  display:flex;
  align-items:center;
}

.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
  width:100%;
}

/* Slider'dan gelen (varsa) görsel: hiçbir kenarı kırpılmadan (object-fit:contain)
   hero'nun arkasına tam ekran yerleştirilir. Görselin sığmadığı boşluklar,
   .hero'nun kendi marka gradyanıyla (üstteki background) otomatik doldurulur,
   böylece boşluk hiçbir zaman boş/çıplak görünmez. */
.hero-media{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(41,17,10,.55) 0%, rgba(216,90,26,.35) 58%, rgba(242,146,63,.25) 100%);
}

.tv-stack{
  position:relative;
  height:300px;
  margin:0 auto 8px;
  max-width:640px;
}

.tv{
  position:absolute;
  border-radius:var(--radius-tv);
  background:linear-gradient(160deg,#2a2a2a,#101010);
  box-shadow:0 18px 34px rgba(0,0,0,0.35), inset 0 0 0 3px rgba(255,255,255,0.06);
  padding:10px;
}
.tv-screen{
  width:100%; height:100%;
  border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display);
  font-weight:700;
  text-align:center;
  overflow:hidden;
  position:relative;
}
.tv-knob{
  position:absolute; right:10px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #555, #111);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,0.08);
}

.tv--a{ width:230px; height:150px; left:2%; top:6%; transform:rotate(-9deg); z-index:3; }
.tv--a .tv-screen{ background:linear-gradient(160deg,#7a1f1f,#2d0b0b); font-size:1.05rem; color:var(--cream); }
.tv--a .tv-knob{ width:16px; height:16px; top:16px; }
.tv--a .tv-knob:nth-child(3){ top:38px; }

.tv--b{ width:270px; height:180px; left:32%; top:0; transform:rotate(6deg); z-index:2; }
.tv--b .tv-screen{ background:linear-gradient(160deg,#c9781f,#5c2c05); font-size:1.3rem; color:var(--cream); }
.tv--b .tv-knob{ width:18px; height:18px; top:18px; }
.tv--b .tv-knob:nth-child(3){ top:44px; }

.tv--c{ width:260px; height:190px; right:0; top:20%; transform:rotate(-4deg); z-index:1; }
.tv--c .tv-screen{ background:linear-gradient(160deg,#2c5f8a,#0c1f30); font-size:2.1rem; color:var(--gold); }
.tv--c .tv-knob{ width:16px; height:16px; top:18px; }
.tv--c .tv-knob:nth-child(3){ top:44px; }

.hero-text{ text-align:center; }
.hero-eyebrow{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.1rem;
  color:var(--ink);
  opacity:0.75;
  margin-bottom:10px;
}
.hero-title{
  font-size:clamp(2.1rem, 5vw, 3.4rem);
  color:var(--ink);
  max-width:14ch;
  margin:0 auto 18px;
}
.hero-sub{
  max-width:46ch;
  margin:0 auto 30px;
  color:var(--ink-soft);
  font-size:1.05rem;
}

.hero-buttons{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  margin-bottom:34px;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px;
  border-radius:var(--radius-btn);
  font-weight:600;
  font-size:0.98rem;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-primary{
  background:var(--ink);
  color:var(--cream);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,0.25); }
.btn-outline{
  background:transparent;
  color:var(--ink);
  box-shadow:inset 0 0 0 2px var(--ink);
}
.btn-outline:hover{ background:rgba(28,19,12,0.08); transform:translateY(-2px); }

.social-row{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  margin-bottom:28px;
}
.social-row a{
  width:42px; height:42px; border-radius:50%;
  background:var(--ink);
  color:var(--cream);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
.social-row a:hover{ background:var(--gold-dark); transform:translateY(-2px); }
.social-row svg{ width:18px; height:18px; }

.contact-strip{
  display:flex; gap:28px; justify-content:center; flex-wrap:wrap;
  font-size:0.92rem; font-weight:500; color:var(--ink);
}
.contact-strip .item{ display:flex; align-items:center; gap:10px; }
.contact-strip .ico{
  width:34px; height:34px; border-radius:50%;
  background:var(--gold);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-strip .ico svg{ width:16px; height:16px; color:var(--ink); }

@media (min-width:760px){
  .hero-inner{ grid-template-columns:1fr; }
}

/* ============================================================
   SECTIONS (shared across pages)
   ============================================================ */
.section{ padding:88px 0; }
.section--tight{ padding:64px 0; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-kicker{
  font-family:var(--font-display);
  color:var(--gold);
  font-weight:600;
  font-size:0.95rem;
  margin-bottom:10px;
}
.section-title{ font-size:clamp(1.7rem,3.4vw,2.4rem); }
.section-desc{ color:var(--cream-dim); margin-top:14px; font-size:1.02rem; max-width:56ch; }

.section--light{
  background:var(--cream);
  color:var(--ink);
}
.section--light .section-title,
.section--light h2, .section--light h3{ color:var(--ink); }
.section--light .section-desc{ color:var(--ink-soft); }

/* card grid */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
}
.card h3{ font-size:1.15rem; margin-bottom:10px; }
.card p{ color:var(--cream-dim); font-size:0.95rem; }
.card .num{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--gold);
  font-size:1.6rem;
  margin-bottom:14px;
  display:block;
}

.section--light .card{
  background:#fff;
  border-color:rgba(28,19,12,0.08);
  box-shadow:0 10px 24px rgba(28,19,12,0.06);
}
.section--light .card p{ color:var(--ink-soft); }

/* stat band */
.stat-band{
  background:var(--ink);
  color:var(--cream);
  padding:56px 0;
}
.stat-band .wrap{
  display:flex; flex-wrap:wrap; gap:40px; justify-content:space-between;
}
.stat{ min-width:150px; }
.stat .n{
  font-family:var(--font-display);
  font-size:clamp(2.2rem,4vw,3rem);
  color:var(--gold);
  font-weight:700;
}
.stat .l{ color:var(--cream-dim); font-size:0.9rem; margin-top:6px; }

/* CTA band */
.cta-band{
  background:linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-orange) 100%);
  padding:64px 0;
  text-align:center;
}
.cta-band h2{ color:var(--ink); font-size:clamp(1.5rem,3vw,2.1rem); margin-bottom:16px; }
.cta-band p{ color:var(--ink-soft); max-width:48ch; margin:0 auto 26px; }

/* form */
.form{ display:grid; gap:16px; max-width:520px; }
.form label{ font-size:0.85rem; font-weight:600; color:var(--cream-dim); margin-bottom:6px; display:block; }
.form input, .form select, .form textarea{
  width:100%;
  background:var(--panel);
  border:1px solid var(--line);
  color:var(--cream);
  padding:12px 14px;
  border-radius:8px;
  font-family:var(--font-body);
  font-size:0.95rem;
}
.form input::placeholder, .form textarea::placeholder{ color:rgba(251,241,228,0.4); }
.form textarea{ resize:vertical; min-height:110px; }

/* footer */
.footer{
  background:var(--panel);
  border-top:1px solid var(--line);
  padding:48px 0 28px;
}
.footer .wrap{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:28px;
  margin-bottom:28px;
}
.footer-brand{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; }
.footer-cols{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-col h4{ font-size:0.85rem; color:var(--gold); margin-bottom:12px; font-weight:600; }
.footer-col a, .footer-col p{ display:block; color:var(--cream-dim); font-size:0.92rem; margin-bottom:8px; }
.footer-col a:hover{ color:var(--cream); }
.footer-bottom{
  border-top:1px solid var(--line);
  padding-top:20px;
  font-size:0.82rem;
  color:var(--cream-dim);
  text-align:center;
}

/* ============================================================
   PARTNER / İŞ BİRLİĞİ LOGO GRID (İş Birliklerimiz sayfası)
   CSS Grid auto-fill + object-fit:contain: farklı en-boy oranlı
   logolar taşmadan, üst üste binmeden, tutarlı bir hizada gösterilir;
   masaüstünden mobile kadar ek medya sorgusu gerekmeden ölçeklenir.
   ============================================================ */
.partner-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:20px;
}
.partner-logo{
  background:#fff;
  border-radius:12px;
  padding:18px;
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
a.partner-logo:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
}
.partner-logo img{
  max-width:100%;
  max-height:64px;
  width:auto;
  height:auto;
  object-fit:contain;
}

@media (max-width:520px){
  .partner-grid{ grid-template-columns:repeat(auto-fill,minmax(115px,1fr)); gap:14px; }
  .partner-logo{ min-height:76px; padding:12px; }
  .partner-logo img{ max-height:48px; }
}

/* ============================================================
   ANA SAYFA HERO SLIDER (Views/Home/Index.cshtml)
   Mevcut .hero yerleşimi korunur; yalnızca arka plan görselleri ve
   slayt metinleri (başlık / alt başlık / açıklama / buton) döner.
   Marka, menü, sosyal ikonlar ve iletişim şeridi sabit kalır.
   ============================================================ */
.hero--slider{
  width:100%;
  padding:clamp(40px, 7vh, 72px) 0 clamp(32px, 6vh, 56px);
}

/* Arka plan görsel katmanları — tüm hero alanını kaplar (kırpma, odak üst-orta) */
.hero-media-stack{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero--slider .hero-media{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .9s ease;
}
.hero--slider .hero-media.is-active{ opacity:1; }
.hero--slider .hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 30%;
}
/* Referans tasarım: görsel tam ekran, üzerinde koyu katman (metin okunabilirliği) */
.hero--slider .hero-media::after{
  background:linear-gradient(180deg, rgba(12,7,4,.58) 0%, rgba(12,7,4,.46) 45%, rgba(12,7,4,.62) 100%);
}

/* Görselli hero'da metin ve kontroller açık renk */
.hero--has-media .brand-mark a{ color:var(--cream); opacity:.95; }
.hero--has-media .brand-mark .dot{ background:var(--gold); }
.hero--has-media .pill-menu a{ background:rgba(251,241,228,0.14); color:var(--cream); }
.hero--has-media .pill-menu a:hover,
.hero--has-media .pill-menu a.active{ background:var(--cream); color:var(--ink); }
.hero--has-media .hero-title{ color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.35); }
.hero--has-media .hero-sub{ color:var(--cream); }
.hero--has-media .hero-desc{ color:var(--cream-dim); }
.hero.hero--has-media .btn-primary,
.hero.hero--has-media .btn-primary:hover,
.hero.hero--has-media .btn-primary:focus,
.hero.hero--has-media .btn-primary:active{ background:var(--gold); color:var(--ink); }
.hero--has-media .social-row a{
  background:rgba(255,255,255,0.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.35);
  color:#fff;
}
.hero--has-media .social-row a:hover{ background:var(--gold-dark); box-shadow:none; }
.hero--has-media .contact-strip{ color:var(--cream); }
.hero--has-media .hero-arrow{ background:rgba(255,255,255,0.14); color:var(--cream); }
.hero--has-media .hero-arrow:hover{ background:var(--cream); color:var(--ink); }
.hero--has-media .hero-dot{ background:rgba(255,255,255,0.40); }
.hero--has-media .hero-dot.is-active{ background:var(--gold); }

/* Slayt metinleri: hepsi aynı grid hücresinde, en uzun slayt yüksekliği korunur */
.hero-slides{
  display:grid;
  margin-bottom:30px;
}
.hero-slide{
  grid-area:1 / 1;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.hero-slide.is-active{
  opacity:1;
  visibility:visible;
  transform:none;
  transition:opacity .6s ease .15s, transform .6s ease .15s, visibility 0s;
}
.hero-slide > :last-child{ margin-bottom:0; }
.hero--slider .hero-title{ max-width:22ch; }
.hero-slide .hero-sub{ margin-bottom:18px; }
/* Açıklama: admin panelinden gelen HTML (p, strong, a, ul/ol...) biçimli basılır */
.hero-desc{
  width:100%;
  max-width:60ch;
  margin:0 auto 26px;
  color:var(--ink-soft);
  font-size:clamp(0.92rem, 0.88rem + 0.25vw, 1.02rem);
  line-height:1.65;
  text-align:center;
  overflow-wrap:anywhere;     /* uzun link / kelimelerde taşmayı önler */
  word-break:normal;
  hyphens:auto;
}
.hero-desc > *{ margin:0 0 .6em; }
.hero-desc > :last-child{ margin-bottom:0; }
.hero-desc strong, .hero-desc b{ font-weight:600; color:inherit; }
.hero-desc em, .hero-desc i{ font-style:italic; }
.hero-desc a{ color:inherit; text-decoration:underline; text-underline-offset:3px; }
.hero-desc a:hover{ color:var(--gold); }
.hero-desc ul, .hero-desc ol{
  display:inline-block;        /* liste bloğu ortada, maddeler sola hizalı */
  text-align:left;
  padding-left:1.25em;
  margin-left:auto; margin-right:auto;
}
.hero-desc li{ margin-bottom:.25em; }
.hero-desc mark{ background:var(--gold); color:var(--ink); padding:0 .2em; border-radius:3px; }
.hero-slide .hero-buttons{ margin-bottom:0; }

/* Bootstrap .btn ile çakışmayı gider (mavi hover / kenarlık) */
.hero .btn{ border:0; line-height:1.2; }
.hero .btn-primary,
.hero .btn-primary:hover,
.hero .btn-primary:focus,
.hero .btn-primary:active{
  background:var(--ink);
  color:var(--cream);
}

/* Kontroller */
.hero-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:0 auto 28px;
}
.hero-arrow{
  width:40px; height:40px;
  border:0; padding:0; border-radius:50%;
  background:rgba(28,19,12,0.14);
  color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.hero-arrow:hover{ background:var(--ink); color:var(--cream); transform:translateY(-2px); }
.hero-arrow svg{ width:18px; height:18px; }
.hero-dots{ display:flex; gap:8px; align-items:center; }
.hero-dot{
  width:10px; height:10px;
  border:0; padding:0; border-radius:999px;
  background:rgba(28,19,12,0.30);
  cursor:pointer;
  transition:width .25s ease, background .25s ease;
}
.hero-dot.is-active{ width:28px; background:var(--ink); }

/* Tablet */
@media (max-width:991px){
  .hero--slider .hero-media img{ object-position:50% 25%; }
}
/* Mobil */
@media (max-width:575px){
  .hero--slider{ padding:32px 0 32px; }
  .hero--slider .wrap{ padding:0 18px; }
  .hero-slides{ margin-bottom:22px; }
  .hero-desc{ font-size:0.93rem; }
  .hero-controls{ margin-bottom:22px; }
  .hero-arrow{ width:36px; height:36px; }
}
/* Alçak ekranlar (yatay telefon / küçük laptop) */
@media (max-height:640px) and (orientation:landscape){
  .hero--slider{ padding:24px 0; }
  .hero--slider .hero-title{ font-size:clamp(1.6rem, 4vw, 2.4rem); margin-bottom:10px; }
  .hero--slider .brand-mark{ margin-bottom:12px; }
  .hero--slider .pill-menu{ margin-bottom:16px; }
}


/* ============================================================
   İLETİŞİM ŞERİDİ — buton görünümlü öğeler (sarı ikon + metin)
   ============================================================ */
.contact-strip{
  gap:12px 14px;
  align-items:center;
}
.contact-strip .item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  padding:6px 18px 6px 6px;           /* sarı ikon dairesi butonun sol ucunda */
  border-radius:var(--radius-btn);
  background:rgba(28,19,12,0.10);
  box-shadow:inset 0 0 0 1px rgba(28,19,12,0.14);
  color:inherit;
  line-height:1.25;
  transition: background .15s ease, transform .15s ease;
}
.contact-strip .item:hover,
.contact-strip .item:focus-visible{
  background:rgba(28,19,12,0.20);
  transform:translateY(-2px);
}
.contact-strip .item:active{ transform:translateY(0); }
.contact-strip .item > :not(.ico){ min-width:0; }
.contact-strip .item{ overflow-wrap:anywhere; }

/* Görselli (koyu katmanlı) hero'da açık tonlu buton */
.hero--has-media .contact-strip .item{
  background:rgba(255,255,255,0.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.22);
}
.hero--has-media .contact-strip .item:hover,
.hero--has-media .contact-strip .item:focus-visible{
  background:rgba(255,255,255,0.18);
}

@media (max-width:575px){
  .contact-strip{
    display:grid;
    grid-template-columns:1fr;
    justify-items:center;
    gap:10px;
  }
  .contact-strip .item{ font-size:0.9rem; padding-right:16px; }
  .contact-strip .ico{ width:30px; height:30px; }
}


/* ============================================================
   ALT SAYFA HERO (Hakkımızda, İş Birliklerimiz) — ana sayfa
   .hero--slider.hero--has-media tasarımının aynısı; altındaki
   içeriğin görünmesi için biraz daha kısa yükseklik.
   ============================================================ */
.hero--page{
  min-height:78vh;
  min-height:78dvh;
}
.hero--page .hero-text{ max-width:760px; margin:0 auto; }
.hero--page .social-row{ margin-bottom:0; }
@media (max-width:575px){
  .hero--page{ min-height:auto; padding:32px 0 40px; }
}
