:root {
  --white: #ffffff;
  --accent: #14304f;
  --accent-hover: #0e2238;
  --accent-text: #1a3d63;
  --accent-soft: #edf2f8;
  --nav-bg: #1b3a5c;
  --text: #252525;
  --muted: #737373;
  --border: #ececec;
  --radius: 16px;
  --radius-small: 12px;
  --shadow: 0 1px 2px rgb(37 37 37 / 4%), 0 8px 24px rgb(37 37 37 / 5%);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(800px, 100% - 48px);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-small);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid #d9d9d9;
  background: var(--white);
  font-size: 0.9375rem;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.text-link {
  font-weight: 600;
  color: var(--accent-text);
}

.text-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Navbar */
.navbar-wrap {
  position: fixed;
  inset: 28px 0 auto;
  z-index: 20;
  width: min(1760px, 100% - 8px);
  margin-inline: auto;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 12px 8px 20px;
  background: var(--nav-bg);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.navbar :focus-visible {
  outline-color: var(--white);
}

.navbar .brand svg {
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand svg {
  color: var(--accent);
  flex: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  background: rgb(255 255 255 / 16%);
}

.nav-links a.is-active {
  color: var(--accent-text);
  background: var(--white);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.navbar.is-open .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.navbar.is-open .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(56px, 6.5vw, 128px);
  width: min(1500px, 100% - 48px);
  min-height: 100svh;
  padding-block: 112px 40px;
}

.hero-lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: var(--accent-soft);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hizmetler */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.service-card {
  padding: 28px;
}

.service-card p {
  margin-top: 10px;
  color: var(--muted);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: var(--radius);
}

.icon-tile-towing {
  background: #fef3e2;
}

.icon-tile-roadside {
  background: #e8f0fe;
}

.icon-tile-transport {
  background: #e3f6f3;
}

/* SSS */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  transition: border-color 0.25s ease;
}

.faq-item.is-open {
  border-color: var(--accent);
}

.faq-item h3 {
  font-size: 1.0625rem;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border-radius: var(--radius-small);
  font-weight: 600;
  text-align: left;
}

.faq-item svg {
  flex: none;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item.is-open svg {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.js .faq-panel {
  grid-template-rows: 0fr;
}

.js .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* Google yorumları */
#yorumlar {
  padding-top: 0;
}

.review-scroller {
  margin-top: 40px;
  padding-block: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.review-scroller::-webkit-scrollbar {
  display: none;
}

.review-track {
  display: flex;
  width: max-content;
}

.review-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  width: min(340px, 80vw);
  min-height: 210px;
  padding: 24px;
}

.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 16px;
  color: var(--muted);
}

.review-summary strong {
  color: var(--text);
  font-size: 1.25rem;
}

.review-summary .text-link {
  margin-left: 8px;
}

.review-stars {
  color: #f5a623;
  letter-spacing: 2px;
}

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

.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.review-card .review-stars {
  margin-top: 14px;
}

.review-text {
  flex: 1;
  margin-top: 8px;
}

.review-author {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.review-author span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}


/* İletişim barı */
.contact-bar {
  background: var(--accent-soft);
  padding-block: clamp(48px, 7vw, 72px);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.contact-inner p {
  margin-top: 12px;
  color: #5c5c5c;
}

.contact-inner .btn {
  flex: none;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  /* Altta sabit iletişim butonları footer bağlantılarının üstüne binmesin */
  padding-block: 36px 160px;
}

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

.footer-links button,
.inline-link {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-links button:hover {
  color: var(--text);
}

.inline-link {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}

/* Sabit arama butonu */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.whatsapp-float {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 20px 10px 16px;
  border-radius: 26px;
  background: #075e54;
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease;
}

.whatsapp-float:hover {
  background: #054a42;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

.call-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 22px 12px 18px;
  border-radius: 30px;
  background: #15803d;
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 0 16px rgb(34 197 94 / 70%);
  transition: background-color 0.2s ease;
  animation: call-pulse 2s ease-out infinite;
}

.call-button:hover {
  background: #166534;
}

.floating-actions.above-banner {
  bottom: 112px;
}

.cookie-banner[hidden] {
  display: none;
}

/* 404 sayfası */
.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
  min-height: 100svh;
  padding-block: 40px;
}

/* Hattın aktif olduğunu gösteren yeşil ışık */
@keyframes call-pulse {
  from {
    box-shadow: 0 0 16px rgb(34 197 94 / 70%), 0 0 0 0 rgb(34 197 94 / 70%);
  }

  to {
    box-shadow: 0 0 16px rgb(34 197 94 / 70%), 0 0 0 18px rgb(34 197 94 / 0%);
  }
}

/* Hukuki metinler */
.legal-dialog {
  width: min(680px, 100% - 32px);
  max-height: min(80vh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
}

.legal-dialog::backdrop {
  background: rgb(37 37 37 / 40%);
}

.legal-body {
  padding: clamp(24px, 5vw, 40px);
}

.legal-body h2 {
  font-size: 1.75rem;
}

.legal-updated {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal-body section {
  margin-top: 24px;
}

.legal-body h3 {
  font-size: 1.0625rem;
}

.legal-body section p {
  margin-top: 6px;
  color: var(--muted);
}

.legal-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  font-size: 0.8125rem;
  font-weight: 600;
}

.legal-table td {
  color: var(--muted);
}

.legal-table td:first-child {
  width: 42%;
  color: var(--text);
}

.legal-list {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 4px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.preference-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.preference-row h3 {
  font-size: 1.0625rem;
}

.preference-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.preference-always {
  flex: none;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.preference-switch {
  flex: none;
  appearance: none;
  position: relative;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 14px;
  background: #a3a3a3;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.preference-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s ease;
}

.preference-switch:checked {
  background: var(--accent);
}

.preference-switch:checked::after {
  transform: translateX(18px);
}

/* Çerez bandı */
.cookie-banner {
  position: fixed;
  inset: auto 0 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  padding: 16px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner :focus-visible {
  outline-color: var(--white);
}

.cookie-label {
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cookie-banner .inline-link {
  color: var(--white);
  font-size: inherit;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.cookie-actions .btn {
  min-height: 40px;
  padding: 8px 16px;
  border-color: var(--white);
  color: var(--text);
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    min-height: 0;
  }

  .hero-text {
    max-width: 640px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    margin-top: 8px;
    padding-bottom: 4px;
  }

  .navbar.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .call-button {
    justify-content: center;
    width: 60px;
    padding: 0;
  }

  .call-button span,
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    justify-content: center;
    width: 52px;
    padding: 0;
  }

  .floating-actions {
    right: 14px;
    bottom: 18px;
  }

  .floating-actions.above-banner {
    bottom: 216px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .contact-inner .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .navbar {
    padding-left: 12px;
  }

  .navbar .brand {
    gap: 8px;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .review-scroller {
    scrollbar-width: auto;
  }

  .call-button {
    animation: none;
  }
}
