/*
Theme Name: Soxology Dynamic
Theme URI: https://example.com/soxology
Author: Doğancan Coşar & ChatGPT
Description: SOXOLOGY kurumsal üretici sitesi için dinamik WordPress özel tema. Slider, koleksiyonlar, sertifikalar, menüler ve footer alanları admin panelden yönetilebilir.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: soxology
*/

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

.img-zoom-hover:hover img { transform: scale(1.08); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.admin-bar header.sticky { top: 32px; }
@media (max-width: 782px) {
  .admin-bar header.sticky { top: 46px; }
}

.sox-topbar-menu,
.sox-primary-menu,
.sox-language-menu,
.sox-footer-menu,
.sox-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sox-topbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sox-primary-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgb(82 82 82);
}

.sox-primary-menu a,
.sox-topbar-menu a,
.sox-language-menu a,
.sox-footer-menu a,
.sox-mobile-menu a {
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.sox-primary-menu a:hover { color: rgb(10 10 10); }
.sox-topbar-menu a:hover { color: rgb(10 10 10); }
.sox-language-menu a:hover { color: rgb(10 10 10); }

.sox-mobile-menu a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgb(23 23 23);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sox-mobile-menu a:hover { background: rgb(23 23 23); }

.sox-footer-menu li { margin-bottom: 1rem; }
.sox-footer-menu a { color: rgb(163 163 163); font-size: 13px; font-weight: 500; }
.sox-footer-menu a:hover { color: #fff; }

.sox-hero-slide { opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.sox-hero-slide.is-active { opacity: 1; pointer-events: auto; }

.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* MESTIA / özel logo düzeltmesi */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 210px;
  line-height: 1;
}

.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 42px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .custom-logo-link {
    max-width: 155px;
  }

  .custom-logo {
    max-width: 155px;
    max-height: 36px;
  }
}


/* Üst bar dil menüsü */
.sox-language-menu {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgb(82 82 82);
}

.sox-language-menu a {
  color: inherit;
}


/* Header ana menü ortalama düzeltmesi */
@media (min-width: 768px) {
  .sox-header-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
  }

  .sox-logo-slot {
    min-width: 0;
  }

  header nav {
    justify-self: center;
  }

  .sox-primary-menu {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .sox-header-inner {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
}


/* Banner altı tek parça sertifika görseli */
.sox-cert-banner {
  background: #fff;
}

.sox-cert-banner-link {
  display: block;
  max-width: 980px;
  margin: 0 auto;
}

.sox-cert-banner-image {
  display: block;
  width: 100%;
  max-width: 980px;
  max-height: 96px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.sox-cert-logo-row {
  opacity: 1;
}

.sox-cert-logo {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 72px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .sox-cert-banner-image {
    max-height: 72px;
  }

  .sox-cert-logo {
    max-width: 130px;
    max-height: 58px;
  }
}


/* Mobil sağ dil menüsü */
.sox-mobile-language {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sox-mobile-language .sox-language-menu {
  gap: .5rem;
  font-size: 11px;
  letter-spacing: .08em;
}

/* İletişim sayfası */
.sox-contact-page {
  background: #fff;
}

.sox-contact-card {
  border: 1px solid rgb(229 229 229);
  background: #fff;
}

.sox-contact-map iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(15%);
}

.sox-contact-form input,
.sox-contact-form textarea,
.sox-contact-form select {
  width: 100%;
  border: 1px solid rgb(212 212 212);
  padding: .85rem 1rem;
  font-size: 14px;
  outline: none;
}

.sox-contact-form input:focus,
.sox-contact-form textarea:focus,
.sox-contact-form select:focus {
  border-color: rgb(23 23 23);
}

.sox-contact-form input[type="submit"],
.sox-contact-form button[type="submit"] {
  width: auto;
  background: rgb(23 23 23);
  color: #fff;
  border-color: rgb(23 23 23);
  padding: .9rem 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}

@media (max-width: 767px) {
  .sox-contact-map iframe {
    min-height: 320px;
  }
}


/* TR / EN dil sistemi */
.sox-language-menu .current-lang a {
  color: rgb(10 10 10);
  font-weight: 900;
}

.sox-mobile-language {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sox-mobile-language .sox-language-menu {
  display: flex;
  gap: .5rem;
  font-size: 11px;
  letter-spacing: .08em;
}

.sox-cert-banner-image,
.sox-cert-logo {
  opacity: 1 !important;
  filter: none !important;
}


/* Full TR/EN page system */
.sox-standard-page .sox-page-content {
  color: #404040;
  font-size: 16px;
  line-height: 1.85;
}

.sox-standard-page .sox-page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sox-standard-page .sox-page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  color: #111;
  font-size: 22px;
  font-weight: 800;
}

.sox-standard-page .sox-page-content p {
  margin: 0 0 1.15rem;
}

.sox-standard-page .sox-page-content ul,
.sox-standard-page .sox-page-content ol {
  margin: 1rem 0 1.4rem 1.2rem;
}

.sox-standard-page .sox-page-content li {
  margin-bottom: .45rem;
}


/* Contact module binding */
.sox-contact-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.04);
}

.sox-contact-map iframe {
  display: block;
  width: 100% !important;
  min-height: 420px;
  border: 0;
}

@media (max-width: 767px) {
  .sox-contact-map iframe {
    min-height: 320px;
  }
}


/* MESTIA built-in contact form */
.mestia-contact-form {
  display: block;
}

.mestia-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.mestia-form-field-full {
  grid-column: 1 / -1;
}

.mestia-form-field label {
  display: block;
  margin-bottom: 8px;
  color: #171717;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sox-required {
  color: #9f1239;
  margin-left: 3px;
}

.mestia-form-field input,
.mestia-form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #171717;
  padding: 14px 15px;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mestia-form-field input:focus,
.mestia-form-field textarea:focus {
  border-color: #171717;
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

.mestia-form-field textarea {
  resize: vertical;
  min-height: 145px;
}

.mestia-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #525252;
  font-size: 13px;
  line-height: 1.6;
}

.mestia-form-check input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.mestia-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border: 0;
  background: #111;
  color: #fff;
  padding: 15px 24px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.mestia-form-submit:hover {
  background: #333;
  transform: translateY(-1px);
}

.mestia-form-notice {
  margin-bottom: 22px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid transparent;
}

.mestia-form-notice-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.mestia-form-notice-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.sox-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .mestia-form-grid {
    grid-template-columns: 1fr;
  }
}


/* MESTIA KVKK / Privacy checkbox düzeltmesi */
.mestia-contact-form .mestia-form-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 11px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  background: #fafafa !important;
  color: #5f5f5f !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-sizing: border-box !important;
}

.mestia-contact-form .mestia-form-check input[type="checkbox"] {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex: 0 0 16px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(0,0,0,.35) !important;
  box-shadow: none !important;
  accent-color: #111 !important;
}

.mestia-contact-form .mestia-form-check span {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

.mestia-contact-form .mestia-form-check a {
  color: #111 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

@media (max-width: 767px) {
  .mestia-contact-form .mestia-form-check {
    padding: 12px 13px !important;
    font-size: 11.5px !important;
  }
}
