/*
Theme Name: Mugla Oto Cekici - Akan Oto Kurtarma
Theme URI: https://example.com
Author: Akan Oto Kurtarma
Description: Astro projesinden donusturulmus, WordPress Klasik Duzenleyici (Classic Editor) uyumlu Mugla Oto Cekici temasi.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: mugla-oto-cekici
*/

:root {
  /* Renk Paleti - WCAG AA Uyumlu Kontrast */
  --color-navy: #0b2447;
  --color-navy-dark: #071830;
  --color-navy-light: #153a6d;
  --color-sky: #0077b6;
  --color-sky-light: #e8f4fc;
  --color-orange: #c85300;
  --color-orange-hover: #a64400;
  --color-white: #ffffff;
  --color-bg-soft: #f4f7fb;
  --color-border: #dbe4ef;
  --color-text: #1e293b;
  --color-text-muted: #475569;

  /* Tipografi */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);

  /* Akışkan Geometri & Ölçüler */
  --container-max: 1200px;
  --page-gutter: clamp(16px, 3vw, 32px);
  --header-height: clamp(68px, 6vw, 80px);
  --section-space: clamp(44px, 5vw, 68px);

  /* Yarıçaplar & Gölgeler */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(11, 36, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 36, 71, 0.09);
  --shadow-lg: 0 16px 36px rgba(7, 24, 48, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Erişilebilir Klavye Focus Göstergesi (WCAG AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-sky);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-soft {
  background-color: var(--color-bg-soft);
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: clamp(10px, 1.5vw, 16px);
  font-weight: 800;
  line-height: 1.25;
}

.section-title-center {
  text-align: center;
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  font-size: clamp(0.96rem, 0.4vw + 0.9rem, 1.08rem);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(11px, 1.5vw, 14px) clamp(18px, 2.5vw, 26px);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: clamp(0.9rem, 0.2vw + 0.88rem, 1rem);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-orange:hover {
  background-color: var(--color-orange-hover);
}

.btn-outline-light {
  background-color: rgba(11, 36, 71, 0.65);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-navy:hover {
  background-color: var(--color-navy-light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(11, 36, 71, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
  min-height: var(--header-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: clamp(44px, 5vw, 56px);
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: clamp(0.88rem, 0.2vw + 0.86rem, 0.96rem);
  color: var(--color-navy);
  padding: 10px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--color-sky);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  z-index: 120;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.dropdown-menu.dropdown-wide {
  min-width: 340px;
  grid-template-columns: repeat(2, 1fr);
}

.dropdown-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 500;
}

.dropdown-link:hover {
  background-color: var(--color-sky-light);
  color: var(--color-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge-24 {
  display: none;
  font-size: 0.82rem;
  color: var(--color-navy);
  font-weight: 700;
  border-left: 1px solid var(--color-border);
  padding-left: 12px;
  line-height: 1.2;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  font-size: 1.35rem;
}

.mobile-drawer {
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 16px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 12px 8px;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-bg-soft);
  min-height: 44px;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
  .menu-toggle,
  .mobile-drawer {
    display: none !important;
  }
  .header-badge-24 {
    display: block;
  }
}

.hero {
  position: relative;
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  overflow: hidden;
  padding: clamp(36px, 5vw, 68px) 0 clamp(54px, 7vw, 92px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.48;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 24, 48, 0.94) 0%, rgba(11, 36, 71, 0.82) 55%, rgba(11, 36, 71, 0.62) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.5vw, 42px);
  align-items: center;
}

.hero-title {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  margin-top: 0;
  margin-bottom: clamp(12px, 1.8vw, 18px);
}

.hero-title span {
  color: #4cc2ff;
}

.hero-desc {
  font-size: clamp(0.96rem, 0.4vw + 0.9rem, 1.08rem);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(18px, 2.5vw, 26px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Yarı Şeffaf WhatsApp Teklif Formu */
.hero-form-card {
  background: rgba(11, 36, 71, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-lg);
}

.hero-form-card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--color-white);
}

.hero-form-card p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.95);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.92rem;
}

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

/* Hero Altı Bilgi Şeridi */
.info-strip-wrap {
  position: relative;
  z-index: 4;
  margin-top: clamp(-24px, -3vw, -32px);
}

.info-strip {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
}

.info-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(12px, 1.8vw, 16px) clamp(16px, 2vw, 24px);
  font-weight: 700;
  color: var(--color-navy);
  font-size: clamp(0.88rem, 0.3vw + 0.85rem, 0.96rem);
  border-bottom: 1px solid var(--color-border);
}

.info-strip-item:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .info-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .info-strip-item {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
  .info-strip-item:last-child {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.85fr;
  }
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.5vw, 42px);
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 480px;
  object-position: center;
}

.feature-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 14px);
  margin-top: 20px;
}

.feature-pill {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  font-size: clamp(0.78rem, 0.2vw + 0.75rem, 0.86rem);
  font-weight: 700;
  color: var(--color-navy);
}

/* Hizmet Kartları */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2vw, 24px) clamp(16px, 1.8vw, 20px);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-sky);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--color-sky-light);
  color: var(--color-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: clamp(0.98rem, 0.2vw + 0.95rem, 1.08rem);
  color: var(--color-navy);
}

.service-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.service-arrow {
  color: var(--color-sky);
  font-weight: 700;
  font-size: 0.9rem;
}

.extra-services-bar {
  margin-top: 28px;
  text-align: center;
}

.extra-service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.chip-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chip-link:hover {
  border-color: var(--color-sky);
  background: var(--color-sky-light);
}

/* Koyu Bölge Bandı */
.districts-banner {
  background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy-light));
  color: var(--color-white);
  padding: clamp(40px, 5vw, 60px) 0;
}

.districts-banner .section-title {
  color: var(--color-white);
}

.district-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.district-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.district-pill:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

/* Neden Biz Liste */
.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--color-navy);
}

.check-mark {
  color: var(--color-sky);
  font-weight: 800;
}

/* Sahadan Kareler */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Google Yorumları Yuvası */
.reviews-placeholder {
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  color: var(--color-text-muted);
}

/* SSS Akordeon */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Turuncu Alt CTA */
.cta-banner {
  background: linear-gradient(90deg, var(--color-orange), #e66a00);
  color: var(--color-white);
  padding: clamp(20px, 3vw, 30px) 0;
}

.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-orange-hover);
}

/* Footer */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(38px, 5vw, 54px) 0 92px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-title {
  color: var(--color-white);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.footer-links a:hover {
  color: #ff9d42;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Mobil Sabit Alt İletişim Çubuğu */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(11, 36, 71, 0.12);
}

.sticky-btn-call {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.sticky-btn-wa {
  background: #15803d;
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* İç Sayfa & Breadcrumb */
.page-hero {
  background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-white);
  padding: clamp(32px, 4vw, 48px) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.content-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }
  .cta-banner-inner {
    flex-direction: row;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1.3fr 0.9fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .mobile-sticky-bar {
    display: none !important;
  }
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .site-footer {
    padding-bottom: 40px;
  }
}


.wp-content h2 {
  color: var(--color-navy);
  font-size: 1.28rem;
  margin: 26px 0 10px;
  font-weight: 800;
}
.wp-content h2:first-child { margin-top: 0; }
.wp-content h3 {
  color: var(--color-navy);
  font-size: 1.06rem;
  margin: 16px 0 8px;
  font-weight: 700;
}
.wp-content p {
  color: var(--color-text-muted);
  margin: 0 0 12px;
  line-height: 1.75;
}
.wp-content ul,
.wp-content ol {
  margin: 10px 0 16px 20px;
  color: var(--color-navy);
  display: grid;
  gap: 8px;
}
.wp-content ul { list-style: disc; }
.wp-content ol { list-style: decimal; }
.wp-content li { font-weight: 500; line-height: 1.6; }
.wp-content a { color: var(--color-sky); font-weight: 700; text-decoration: underline; }
.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.94rem;
}
.wp-content th,
.wp-content td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
}
.wp-content th {
  background: var(--color-bg-soft);
  color: var(--color-navy);
  font-weight: 700;
}
.wp-content img {
  border-radius: var(--radius-md);
  margin: 14px 0;
}
.wp-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--color-orange);
  background: var(--color-bg-soft);
  color: var(--color-navy);
}
.wp-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wp-pagination .page-numbers {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
}
.wp-pagination .page-numbers.current {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
