/* ============ Açılış animasyonu (preloader) ============ */
.site-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  transition: opacity .6s ease, visibility .6s ease;
}
.site-preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.site-preloader-logo { width: 68px; height: 68px; object-fit: contain; filter: brightness(0) invert(1); animation: ha-preloader-pulse 1.5s ease-in-out infinite; }
.site-preloader-bar { width: 150px; height: 2px; background: rgba(250,248,243,.18); display: block; overflow: hidden; border-radius: 2px; }
.site-preloader-bar > span { display: block; width: 40%; height: 100%; background: var(--gold); animation: ha-preloader-bar 1.15s ease-in-out infinite; }
@keyframes ha-preloader-pulse { 0%, 100% { transform: scale(1); opacity: .82; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ha-preloader-bar { 0% { transform: translateX(-100%); } 50% { transform: translateX(140%); } 100% { transform: translateX(140%); } }
body.preloader-done .site-preloader { opacity: 0; visibility: hidden; pointer-events: none; }
body:not(.preloader-done) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .site-preloader-logo, .site-preloader-bar > span { animation: none; }
  .site-preloader { transition: opacity .2s ease, visibility .2s ease; }
}

/* ============ Modül alt başlık / kısa not (yönetim panelinden) ============ */
.mod-subtitle { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 10px; max-width: 560px; }
.mod-note { color: var(--muted); font-size: 13px; margin: -8px 0 20px; max-width: 640px; }
.mod-banner { display: block; width: 100%; max-height: 240px; object-fit: cover; margin: 20px 0; border-radius: 2px; }
.journal-visual-img { position: relative; z-index: 2; width: 340px; height: 430px; background-size: cover; background-position: center; box-shadow: 20px 26px 45px rgba(0,0,0,.28); }


.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-image { background-size: cover; background-position: center; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,34,29,.94) 0%, rgba(21,34,29,.68) 42%, rgba(21,34,29,.12) 76%); }
.hero-dots { display: flex; gap: 10px; margin-top: 34px; }
.hero-dot { width: 30px; height: 3px; background: rgba(255,255,255,.35); border: 0; cursor: pointer; padding: 0; transition: background .3s; }
.hero-dot.is-active { background: var(--gold); }
[data-hero-title], [data-hero-subtitle] { transition: opacity .4s ease; }

/* ============ Kürsü kartı yeni buton stili ============ */
.chair-marquee-card { text-decoration: none; color: inherit; cursor: pointer; }
.chair-marquee-card .tag { display: inline-block; margin-top: 4px; }
.chair-marquee-card .chair-lead { color: var(--muted); font-size: 12px; margin-top: 4px; }
.chair-marquee-card .card-link {
  width: auto; height: auto; border-radius: 4px; border: none;
  display: inline-flex; align-items: center; justify-content: flex-start;
  margin-top: 16px; margin-left: 0; align-self: flex-start;
  padding: 8px 14px; background: var(--cream); color: var(--rust);
  font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; transition: background .25s ease, transform .25s ease;
}
.chair-marquee-card:hover .card-link { background: var(--rust); color: #fff; transform: translateX(2px); }


.marquee-wrap { overflow: hidden; position: relative; margin: 0 -1px; -webkit-mask-image: linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent); mask-image: linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent); }
.marquee-track { display: flex; width: max-content; gap: 22px; animation: ha-marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track > * { flex: 0 0 auto; }
#seriler .marquee-track { animation-duration: 70s; }
@keyframes ha-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.chair-marquee-card { width: 340px; min-height: 460px; border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; background: var(--paper); transition: transform .3s ease, box-shadow .3s ease; }
.chair-marquee-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(23,35,31,.14); }
.chair-marquee-card .chair-photo { height: 210px; margin: 20px 0; }
.chair-marquee-card .card-number { color: var(--rust); font: 700 11px var(--sans); }
.chair-marquee-card h3 { font: 500 24px var(--serif); margin: 6px 0; }
.chair-marquee-card p { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; }

.series-marquee-card.series-card { width: 330px; }

/* ============ Etiket başlıklarından rakamları kaldır (sadece kategori adı görünsün) ============ */
.series-copy > span.tag-label { color: var(--rust); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

/* ============ Etkinlikler bölümü - sağda görsel ============ */
.events-band .container.events-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.events-visual { position: relative; height: 100%; min-height: 420px; border-radius: 2px; overflow: hidden; background: url("images/covers/hero-archive.jpg") center/cover; filter: sepia(.12) saturate(.9); }
.events-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,35,31,0) 40%, rgba(23,35,31,.55)); }
.events-visual-caption { position: absolute; left: 22px; right: 22px; bottom: 22px; color: #fff; font: 500 15px var(--serif); z-index: 1; }
.events-visual-caption span { display: block; font: 700 9px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
@media (max-width: 960px) { .events-band .container.events-layout { grid-template-columns: 1fr; } .events-visual { min-height: 260px; } }

/* ============ Bize katıl - anasayfa gömülü form ============ */
.join-inline-form { display: grid; gap: 14px; background: var(--cream); padding: 30px; border: 1px solid var(--line); }
.join-inline-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join-inline-form label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.join-inline-form input, .join-inline-form textarea { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font-family: var(--sans); font-size: 14px; color: var(--ink); }
.join-inline-form input:focus, .join-inline-form textarea:focus { outline: 0; border-color: var(--rust); }
.join-inline-form button { justify-self: start; margin-top: 6px; }

/* ============ Sabit sosyal ikonlar - gerçek SVG + marka renkleri ============ */
.floating-socials a { display: flex; align-items: center; justify-content: center; }
.floating-socials a svg { width: 20px; height: 20px; flex: 0 0 auto; display: block; }
.floating-socials .social-phone { background: #17233b; }
.floating-socials .social-whatsapp { background: #25d366; }
.floating-socials .social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.floating-socials a:hover { filter: brightness(1.06); transform: translateY(-2px); transition: .2s; }

/* ============ Genel: kaydırınca beliren bölümler ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; }
.reveal-stagger.is-visible > * { animation: ha-fade-up .6s ease both; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: .24s; }
@keyframes ha-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============ Kart hover canlanması (genel) ============ */
.chair-card, .project-record, .service-record, .education-card, .content-card, .catalog-product, .news-card, .product, .faq-item {
  transition: transform .3s ease, box-shadow .3s ease;
}
.chair-card:hover, .project-record:hover, .service-record:hover, .education-card:hover, .content-card:hover, .catalog-product:hover, .news-card:hover, .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(23,35,31,.12);
}
.hero-actions .button, .join-callout .button, .nav-actions .button { transition: transform .25s ease, box-shadow .25s ease; }
.hero-actions .button:hover, .join-callout .button:hover, .nav-actions .button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,35,31,.18); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============ Mağaza/ürün kartlarında ferah boşluk (sıkışık görünüm düzeltmesi) ============ */
.product-grid { gap: 36px; align-items: stretch; }
.product { display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; outline: none; }
.product-image { margin-bottom: 22px; flex: 0 0 auto; }
.product > div { padding: 0 2px; display: flex; flex-direction: column; flex: 1; }
.product h3 { line-height: 1.35; margin-bottom: 10px; }
.product p { line-height: 1.6; margin-bottom: 14px; flex: 1; }
.product strong { display: block; font-size: 16px; margin-top: auto; }

.catalog-grid { gap: 36px; align-items: stretch; }
.catalog-product { display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; }
.catalog-photo { margin-bottom: 18px; }
.catalog-product h2 { line-height: 1.3; margin: 10px 0 8px; }
.catalog-product p { line-height: 1.6; margin-bottom: 14px; flex: 1; }
.catalog-product > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }

/* ============ Tüm kart linklerinde tıklama/dokunma artığını kaldır ============ */
.chair-marquee-card, .series-marquee-card, .news-card, .service-record, .project-record,
.education-card, .content-card, .catalog-product, a.product {
  -webkit-tap-highlight-color: transparent;
}

/* ============ Harici görsele bağımlı olmayan SVG kart görselleri ============ */
.product-image svg, .catalog-photo svg, .pd-main svg, .service-img svg, .hero-slide-image svg {
  width: 100%; height: 100%; display: block;
}
.product-image, .catalog-photo, .pd-main, .service-img { background-color: #1c2b24; }
.pd-thumbs i svg { width: 80px; height: 70px; display: block; }

/* ============ Hizmet kartı - zenginleştirilmiş tasarım ============ */
.service-record {
  border: 1px solid var(--line);
  padding: 0 0 22px;
  background: var(--paper);
  overflow: hidden;
}
.service-record .service-img { margin: 0 0 22px; overflow: hidden; transition: transform .5s ease; }
.service-record:hover .service-img { transform: scale(1.06); }
.service-record > span { display: inline-block; margin: 0 22px; padding: 4px 10px; background: var(--cream); color: var(--rust); font-weight: 700; }
.service-record h2 { margin: 14px 22px 8px !important; }
.service-record p { margin: 0 22px 16px !important; }
.service-record b { margin: auto 22px 0 !important; padding-top: 0 !important; display: inline-flex; align-items: center; gap: 6px; color: var(--rust); }
.service-record:hover { border-color: var(--rust); box-shadow: 0 20px 40px rgba(23,35,31,.12); }

/* ============ Ürün kartı - küçük ayrıntı iyileştirmesi ============ */
.product-image, .catalog-photo { position: relative; }
.product:hover .product-image svg, .catalog-product:hover .catalog-photo svg { transform: scale(1.06); }
.product-image svg, .catalog-photo svg { transition: transform .5s ease; }

/* ============ Koleksiyon/ürün kartlarını hizmet kartlarıyla aynı tarza getir ============ */
.product, .catalog-product {
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.product:hover, .catalog-product:hover { border-color: var(--rust); box-shadow: 0 20px 40px rgba(23,35,31,.12); transform: translateY(-5px); }
.product-image, .catalog-photo { margin: 0 !important; overflow: hidden; transition: transform .5s ease; }
.product:hover .product-image, .catalog-product:hover .catalog-photo { transform: scale(1.06); }
.product > div, .catalog-product > a:last-of-type, .catalog-product p { padding-left: 22px; padding-right: 22px; }
.product > div { padding-top: 18px; padding-bottom: 22px; }
.product h3 { font: 500 21px var(--serif); }
.catalog-product h2 { font: 500 21px var(--serif); padding: 0 22px; }
.catalog-product p { padding-bottom: 6px; }
.catalog-product > div:last-child { padding: 0 22px 22px; }

.pd-main { }
.pd-thumbs i { }

/* ============================================================
   KESİN VE TEK GEÇERLİ KART GÖRSEL KURALLARI
   (Yukarıdaki tüm eski/çakışan kurallardan sonra gelir ve
   !important ile kesin olarak uygulanır - başka hiçbir kural
   bunları ezemez.)
   ============================================================ */
.product-image, .catalog-photo {
  width: 390px !important;
  height: 525px !important;
  min-height: 525px !important;
  max-width: 100%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
  display: block !important;
}
.product-grid { grid-template-columns: repeat(auto-fit, 390px) !important; justify-content: center; }
.catalog-grid { grid-template-columns: repeat(auto-fit, 390px) !important; justify-content: center; }
.product, .catalog-product { width: 390px; }
.pd-main {
  height: 560px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}
.pd-thumbs i {
  width: 80px !important;
  height: 70px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}
.service-img {
  height: 290px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}
@media (max-width: 1100px) {
  .product-image, .catalog-photo { width: 100% !important; height: 420px !important; min-height: 420px !important; }
  .product, .catalog-product { width: 100%; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; }
}
@media (max-width: 760px) {
  .product-image, .catalog-photo { width: 100% !important; height: 340px !important; min-height: 340px !important; }
  .pd-main { height: 420px !important; }
}

.product-map, .pd-main.product-map, .pd-thumbs i.product-map { background-image: url("images/covers/map.jpg") !important; }
.product-book, .pd-main.product-book, .pd-thumbs i.product-book { background-image: url("images/covers/book.jpg") !important; }
.product-object, .pd-main.product-object, .pd-thumbs i.product-object { background-image: url("images/covers/object.jpg") !important; }
.product-journal, .pd-main.product-journal, .pd-thumbs i.product-journal { background-image: url("images/covers/journal.jpg") !important; }
.product-notebook, .pd-main.product-notebook, .pd-thumbs i.product-notebook { background-image: url("images/covers/notebook.jpg") !important; }
.product-print, .pd-main.product-print, .pd-thumbs i.product-print { background-image: url("images/covers/print.jpg") !important; }

.hs-one { background-image: url("images/covers/research.jpg") !important; }
.hs-two { background-image: url("images/covers/documentary.jpg") !important; }
.hs-three { background-image: url("images/covers/consulting.jpg") !important; }
.hs-four { background-image: url("images/covers/editorial.jpg") !important; }
.hs-five { background-image: url("images/covers/education.jpg") !important; }
.hs-six { background-image: url("images/covers/translation.jpg") !important; }

/* ============ Footer - iletişim bilgileri + sosyal ikonlar ============ */
.footer-contact-col { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-col > a { display: flex; align-items: flex-start; gap: 10px; color: rgba(250,248,243,.75); font-size: 13px; line-height: 1.5; text-decoration: none; }
.footer-contact-col > a svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--gold); }
.footer-contact-col > a:hover { color: #fff; }
.footer-social-row { display: flex; gap: 12px; margin-top: 8px; }
.footer-social-row a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(250,248,243,.25); display: flex; align-items: center; justify-content: center; color: rgba(250,248,243,.8); transition: .25s; }
.footer-social-row a svg { width: 16px; height: 16px; }
.footer-social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ============ Kurumsal detay sayfası - standart şablon (dar header + galeri) ============ */
.corp-page-hero {
  width: 100%; max-width: 1920px; height: 200px; margin: 0 auto;
  background: linear-gradient(90deg, rgba(15,29,24,.92), rgba(15,29,24,.55)), var(--ink-2);
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.corp-page-hero .container { width: 100%; }
.corp-page-hero h1 { color: var(--paper); font: 500 clamp(30px,4vw,48px)/1.1 var(--serif); margin: 0; }
.corp-page-body { padding-top: 50px; }
.corp-page-lead { font: 500 20px/1.6 var(--serif); color: var(--ink); max-width: 760px; margin-bottom: 20px; }
.corp-page-desc { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 760px; margin-bottom: 30px; }
.corp-page-image { display: block; width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 30px; border-radius: 2px; }
.corp-page-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.corp-page-gallery-item { height: 220px; background-size: cover; background-position: center; border-radius: 2px; }

/* ============ İletişim sayfası - harita ============ */
.contact-map-section { padding-top: 10px; }
.contact-map-embed { width: 100%; height: 460px; border-radius: 2px; overflow: hidden; margin-top: 20px; }

/* ============ Sayfa oluşturucu blokları (frontend) ============ */
.corp-block-heading { font: 500 28px var(--serif); margin: 30px 0 14px; }
.corp-block-quote { border-left: 3px solid var(--rust); padding: 6px 0 6px 20px; font: 500 20px/1.5 var(--serif); color: var(--ink); margin: 24px 0; }
.corp-block-divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.corp-block-cta { display: inline-block; margin: 16px 0; }

/* ============ Admin - blok editörü ============ */
.block-row { display: grid; grid-template-columns: 140px 1fr 200px; gap: 10px; align-items: start; margin-bottom: 10px; padding: 10px; border: 1px solid #eee2cf; border-radius: 6px; }
.block-row select, .block-row textarea, .block-row input[type="file"] { font-family: 'DM Sans', sans-serif; font-size: 12px; padding: 8px; border: 1px solid #dcd6c8; border-radius: 4px; }
