/* ==========================================================================
   Antalya Oto Beyin — Stil Dosyası
   ========================================================================== */

:root {
  --color-anthracite: #1c2126;
  --color-anthracite-2: #262c32;
  --color-anthracite-3: #2f363d;
  --color-white: #ffffff;
  --color-off-white: #f5f6f7;
  --color-border: #e3e5e8;
  --color-text: #1c2126;
  --color-text-muted: #5b6168;
  --color-text-on-dark: #f2f3f4;
  --color-text-on-dark-muted: #a6acb3;

  --color-red: #d21f2f;
  --color-red-dark: #a5161f;
  --color-red-light: #f6dede;

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 25, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 22, 25, 0.12);

  --header-height: 76px;
  --mobile-bar-height: 64px;

  --container-width: 1160px;
}

/* --------------------------------------------------------------------- */
/* Reset / temel */
/* --------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-red);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Odak durumları — erişilebilirlik için belirgin tutulur */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------- */
/* Üst menü */
/* --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.partner-banner {
  display: block;
  line-height: 0;
  background: var(--color-anthracite);
  transition: opacity 0.15s ease;
}

.partner-banner:hover {
  opacity: 0.92;
}

.partner-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-anthracite);
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-anthracite);
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.logo-text strong {
  color: var(--color-red);
  font-weight: 800;
}

.logo-text.light {
  color: var(--color-white);
}

.logo-text.light strong {
  color: var(--color-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-anthracite);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  position: absolute;
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.nav-cta .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------- */
/* Butonlar */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn-primary:hover {
  background: var(--color-red-dark);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-anthracite);
}

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

.btn-outline-light {
  border-color: var(--color-anthracite);
  color: var(--color-anthracite);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--color-anthracite);
  color: var(--color-white);
}

.btn-block {
  width: 100%;
}

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

/* --------------------------------------------------------------------- */
/* Genel bölüm düzeni */
/* --------------------------------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-off-white);
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

/* --------------------------------------------------------------------- */
/* Hero */
/* --------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--color-anthracite) 0%, #14171b 100%);
  color: var(--color-text-on-dark);
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-white);
}

.hero .eyebrow {
  color: #ff5a63;
}

.hero-lead {
  color: var(--color-text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 14px;
}

.hero-note {
  color: var(--color-text-on-dark-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------- */
/* Hizmet kartları */
/* --------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-red-light);
  color: var(--color-red);
  margin-bottom: 18px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

/* --------------------------------------------------------------------- */
/* Süreç */
/* --------------------------------------------------------------------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-left: 4px;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-anthracite);
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------- */
/* Hakkımızda */
/* --------------------------------------------------------------------- */

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-content p {
  color: var(--color-text-muted);
}

.about-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}

/* --------------------------------------------------------------------- */
/* Galeri */
/* --------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
}

.gallery-item figcaption {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------- */
/* SSS */
/* --------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  background: var(--color-white);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-red);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer p {
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------- */
/* İletişim */
/* --------------------------------------------------------------------- */

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.contact-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--color-red);
}

/* --------------------------------------------------------------------- */
/* Alt bilgi */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--color-anthracite);
  color: var(--color-text-on-dark-muted);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--color-anthracite-3);
  padding: 20px 0;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit a {
  color: var(--color-text-on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------- */
/* Hizmet bölgesi */
/* --------------------------------------------------------------------- */

.district-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.district-list li {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-anthracite);
}

/* --------------------------------------------------------------------- */
/* Mobil sabit iletişim çubuğu */
/* --------------------------------------------------------------------- */

.mobile-contact-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  height: var(--mobile-bar-height);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(20, 22, 25, 0.1);
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-bar-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-bar-btn.call {
  background: var(--color-red);
  color: var(--color-white);
}

.mobile-bar-btn.whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-anthracite);
}

/* ==========================================================================
   Duyarlı tasarım (responsive)
   ========================================================================== */

/* Tablet ve altı */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    max-width: 420px;
    margin: 0 auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
    max-width: 480px;
  }
}

/* Mobil */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-bottom: var(--mobile-bar-height);
  }

  .mobile-contact-bar {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 20px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav ul li {
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav ul a {
    display: block;
    padding: 16px 4px;
    font-size: 1.05rem;
  }

  .nav-cta.mobile-visible {
    display: block;
    margin-top: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .about-media img {
    max-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .contact-inner .hero-actions .btn {
    flex: 1 1 auto;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
}
