/*
Theme Name: DYHI Classic
Theme URI: https://dyhi.com
Author: DYHI
Description: DYHI kurumsal web sitesi — klasik PHP teması.
Version: 1.0.0
Text Domain: dyhi-classic
*/

/* ============================================================
   DEĞİŞKENLER
   ============================================================ */
:root {
  --container-max: 1200px;
  --primary: #111;
  --background: #f9f9f9;
  --muted: #555;
  --divider: #ddd;
  --green: #2ecc71;
  --purple: #a855f7;
  --purple-light: #f3e8ff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
  background: var(--background);
  color: var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* WordPress admin bar için boşluk */
.admin-bar footer { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar footer { top: 46px; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav.top-nav {
  width: 100%;
  padding: 2rem 1.5rem 1rem;
}
nav.top-nav a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
nav.top-nav a.logo img {
  height: 2.5rem;
  width: auto;
}
@media (min-width: 768px) {
  nav.top-nav {
    padding: 2rem 2.5rem 1rem;
  }
  nav.top-nav a.logo img {
    height: 3rem;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
  section { padding: 3rem 2.5rem 4rem; }
}
@media (min-width: 1024px) {
  section { padding: 3rem 4rem 4rem; }
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 56rem;
}
.hero .sub {
  max-width: 32rem;
}
.hero .sub p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero .sub p { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--primary);
  color: var(--background);
}

/* ============================================================
   KARTLAR
   ============================================================ */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 4px 4px 0 0 rgba(0,0,0,1);
}
@media (min-width: 768px) {
  .card { padding: 2.5rem; }
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .card h3 { font-size: 1.875rem; }
}

.card .body {
  flex: 1;
  margin-bottom: 1.5rem;
}
.card .body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-line;
  margin: 0 0 0.75rem;
}
.card .body p:last-child {
  margin-bottom: 0;
}

.card .tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.card .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  transition: all 0.2s;
}
.card .btn-sm:hover {
  background: var(--primary);
  color: var(--background);
}

/* ============================================================
   BLOCKQUOTE / METHODOLOGY
   ============================================================ */
blockquote.method {
  border-left: 4px solid var(--purple);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  transition: background 0.2s;
}
blockquote.method:hover {
  background: var(--purple-light);
}
blockquote.method p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary);
  opacity: 0.85;
  margin: 0 0 1rem;
}
blockquote.method p:last-child {
  margin-bottom: 0;
}
blockquote.method ul {
  list-style: none;
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid rgba(168,85,247,0.15);
}
blockquote.method ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
blockquote.method ul li::before {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

/* ============================================================
   IMPACT LIST
   ============================================================ */
.impact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
}
.impact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.impact-list li::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ============================================================
   IMPACT CARDS
   ============================================================ */
.impact-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.impact-card:hover {
  box-shadow: 4px 4px 0 0 rgba(0,0,0,1);
}
@media (min-width: 768px) {
  .impact-card { padding: 2rem; }
}
.impact-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.impact-card .link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.impact-card .link:hover {
  color: var(--primary);
}
.impact-card .divider {
  border-top: 1px solid var(--divider);
  margin-bottom: 1.25rem;
}
.impact-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .cta-box { padding: 3.5rem 3rem; }
}
.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
@media (min-width: 768px) {
  .cta-box h3 { font-size: 1.875rem; }
}
.cta-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* ============================================================
   FOOTER (STICKY)
   ============================================================ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-top: 1px solid var(--primary);
  background: var(--background);
}
footer nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}
footer nav a {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}
footer nav a:hover {
  color: var(--primary);
}
footer nav a.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 600px) {
  footer { position: static; }
  body { padding-bottom: 0; }
}

/* ============================================================
   YARDIMCI SINIFLAR
   ============================================================ */
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ============================================================
   İÇ SAYFA İÇERİĞİ (page.php için)
   ============================================================ */
.page-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.page-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
@media (min-width: 768px) {
  .page-content h1 { font-size: 3.75rem; }
}
.page-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.page-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
}
.page-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  color: var(--muted);
}
.page-content li {
  margin-bottom: 0.5rem;
}
/* ============================================================
   MOBİL İYİLEŞTİRMELER
   ============================================================ */
@media (max-width: 768px) {

  /* Section padding'ini mobilde azalt */
  section {
    padding: 2rem 1.25rem !important;
  }

  /* Container padding */
  .container {
    padding: 0 !important;
  }

  /* Hero başlık */
  .hero h1 {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
  }

  .hero .sub p {
    font-size: 1rem !important;
  }

  /* Section başlıkları */
  .section-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }

  /* Kartlar */
  .card {
    padding: 1.5rem !important;
  }

  .card h3 {
    font-size: 1.25rem !important;
  }

  /* Blockquote - method */
  blockquote.method {
    padding: 0.875rem 1rem !important;
  }

  blockquote.method p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }

  blockquote.method ul li {
    font-size: 0.8125rem !important;
  }

  /* max-w-3xl ve max-w-2xl mobilde %100 olsun */
  .max-w-2xl,
  .max-w-3xl,
  .max-w-4xl {
    max-width: 100% !important;
  }

  /* Butonlar */
  .btn {
    font-size: 0.8125rem !important;
    padding: 0.625rem 1rem !important;
  }

  /* Grid - tek kolona düşsün */
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Impact list - mobilde alt alta */
  .impact-list {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}
/* ============================================================
   MOBİL — BLOCKQUOTE VE METİN GENİŞLİĞİ ZORLA
   ============================================================ */
@media (max-width: 768px) {

  /* Tüm max-w sınıfları mobilde 100% olsun */
  .max-w-2xl,
  .max-w-3xl,
  .max-w-4xl {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Blockquote tam genişlik */
  blockquote.method,
  blockquote.method * {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Blockquote padding */
  blockquote.method {
    padding: 1rem 1.25rem 1rem 1rem !important;
    margin: 0 !important;
  }

  /* Blockquote paragrafları */
  blockquote.method p {
    font-size: 0.9375rem !important;
    line-height: 1.65 !important;
    margin: 0 0 1rem !important;
  }

  /* Blockquote listesi */
  blockquote.method ul {
    margin: 1rem 0 0 !important;
    padding: 1rem 0 0 !important;
  }

  /* Liste öğeleri - dikey flex kalsın ama genişlik tam */
  blockquote.method ul li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
  }

  /* Liste başındaki nokta */
  blockquote.method ul li::before {
    flex-shrink: 0 !important;
    margin-top: 0.5rem !important;
  }

  /* Section padding */
  section {
    padding: 2rem 1.25rem !important;
  }

  /* Container padding */
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Section başlıkları */
  .section-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  /* Hero */
  .hero h1 {
    font-size: 1.75rem !important;
  }

  /* Kartlar */
  .card {
    padding: 1.5rem !important;
  }

  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}
/* ============================================================
   WORDPRESS MENÜ DÜZELTMELERİ (footer.php için)
   ============================================================ */

/* Footer menü konteyneri */
.dyhi-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-top: 1px solid #111;
  background: #f9f9f9;
}

/* Menü container - ul */
footer nav ul,
.dyhi-footer-nav ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 1rem 1.5rem !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
}

/* Menü öğeleri - li */
footer nav ul li,
.dyhi-footer-nav ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

/* Madde işaretini kaldır */
footer nav ul li::before,
.dyhi-footer-nav ul li::before {
  display: none !important;
  content: none !important;
}

/* Menü linkleri - a */
footer nav ul li a,
.dyhi-footer-nav ul li a {
  display: inline-block !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: #555 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 0 !important;
  transition: color 0.2s !important;
}

footer nav ul li a:hover,
footer nav ul li a:focus {
  color: #111 !important;
}

/* Aktif sayfa */
footer nav ul li.current-menu-item > a,
footer nav ul li.current_page_item > a {
  color: #111 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Alt menüler varsa (şimdilik gösterme) */
footer nav ul li ul {
  display: none !important;
}

/* Mobilde statik */
@media (max-width: 600px) {
  footer nav ul,
  .dyhi-footer-nav ul {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }
}
/* ============================================================
   FOOTER MENÜ (WordPress wp_nav_menu uyumlu)
   ============================================================ */

/* Footer sarmalayıcı */
.dyhi-footer-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-top: 1px solid var(--primary, #111);
  background: var(--background, #f9f9f9);
}

/* Menü container (nav) */
.dyhi-footer-nav {
  display: block;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

/* Menü listesi (ul) */
.dyhi-footer-menu,
.dyhi-footer-nav ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 1rem 1.5rem !important;
  margin: 0 !important;
}

/* Menü öğeleri (li) */
.dyhi-footer-menu li,
.dyhi-footer-nav ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.dyhi-footer-menu li::before,
.dyhi-footer-nav ul li::before {
  content: none !important;
  display: none !important;
}

/* Menü linkleri */
.dyhi-footer-menu li a,
.dyhi-footer-nav ul li a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted, #555);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.dyhi-footer-menu li a:hover,
.dyhi-footer-nav ul li a:hover {
  color: var(--primary, #111);
}

/* Aktif öğe */
.dyhi-footer-menu li.current-menu-item a,
.dyhi-footer-menu li.current_page_item a {
  color: var(--primary, #111);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Alt menüleri gizle */
.dyhi-footer-menu li ul,
.dyhi-footer-nav ul li ul {
  display: none !important;
}

/* Body boşluğu (footer fixed olduğu için) */
body {
  padding-bottom: 4rem;
}

/* Mobil */
@media (max-width: 600px) {
  .dyhi-footer-wrap {
    position: static;
  }
  body {
    padding-bottom: 0;
  }
  .dyhi-footer-menu,
  .dyhi-footer-nav ul {
    justify-content: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
}
/* ============================================================
   FOOTER MENÜ — YATAY DÜZEN
   ============================================================ */

/* Footer sarmalayıcı */
.dyhi-footer-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-top: 1px solid var(--primary, #111);
  background: var(--background, #f9f9f9);
}

/* Menü container */
.dyhi-footer-nav {
  display: block;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

/* Menü listesi - YATAY */
.dyhi-footer-menu,
.dyhi-footer-nav ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1.75rem !important;
  list-style: none !important;
  padding: 1rem 1.5rem !important;
  margin: 0 !important;
}

/* Menü öğeleri - madde işareti yok */
.dyhi-footer-menu li,
.dyhi-footer-nav ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

.dyhi-footer-menu li::before,
.dyhi-footer-nav ul li::before {
  content: none !important;
  display: none !important;
}

/* Menü linkleri */
.dyhi-footer-menu li a,
.dyhi-footer-nav ul li a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted, #555);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.dyhi-footer-menu li a:hover,
.dyhi-footer-nav ul li a:hover {
  color: var(--primary, #111);
}

/* Aktif öğe */
.dyhi-footer-menu li.current-menu-item a,
.dyhi-footer-menu li.current_page_item a {
  color: var(--primary, #111);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Alt menüleri gizle */
.dyhi-footer-menu li ul,
.dyhi-footer-nav ul li ul {
  display: none !important;
}

/* Body boşluğu */
body {
  padding-bottom: 4rem;
}

/* Mobil */
@media (max-width: 600px) {
  .dyhi-footer-wrap {
    position: static;
  }
  body {
    padding-bottom: 0;
  }
  .dyhi-footer-menu,
  .dyhi-footer-nav ul {
    justify-content: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
}