/* ===== Doğan Jant Lastik — Mobil Öncelikli Tasarım ===== */

:root {
  --red: #c8102e;
  --red-dark: #a00d24;
  --red-light: #e8324a;
  --green: #25d366;
  --green-dark: #1da851;
  --blue: #1565c0;
  --dark: #1a1a1a;
  --gray: #555;
  --gray-light: #f4f4f6;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --top-bar-h: 38px;
  --header-h: 64px;
  --sticky-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  width: 100%;
  max-width: 100%;
  padding-bottom: calc(var(--sticky-h) + var(--safe-bottom));
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

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

.hero__bg img {
  max-width: none;
}

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

address {
  font-style: normal;
}

/* ===== Üst şerit ===== */
.top-bar {
  background: var(--red);
  text-align: center;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.top-bar__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: var(--top-bar-h);
  z-index: 150;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__icon {
  color: var(--red);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo__icon svg {
  width: 100%;
  height: 100%;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.04em;
}

.logo__text em {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  font-style: normal;
  color: var(--dark);
  letter-spacing: 0.12em;
}

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

.header__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: transform 0.2s, background 0.2s;
}

.header__wa svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header__wa:active {
  transform: scale(0.93);
  background: var(--green-dark);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Mobil menü ===== */
.mobile-nav {
  position: fixed;
  top: calc(var(--top-bar-h) + var(--header-h));
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 140;
  max-height: calc(100dvh - var(--top-bar-h) - var(--header-h) - var(--sticky-h));
  overflow-y: auto;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
  pointer-events: none;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  padding: 8px 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
  border-bottom: 1px solid #eee;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:active {
  background: var(--gray-light);
  color: var(--red);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--top-bar-h) - var(--header-h));
  min-height: calc(100svh - var(--top-bar-h) - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #b0b0b0;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #b0b0b0;
  contain: strict;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  transform: scale(1.28) translateZ(0);
  transform-origin: 50% 72%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 24px 16px calc(20px + var(--sticky-h) + var(--safe-bottom));
  width: 100%;
  animation: fadeUp 0.7s ease-out;
}

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

.hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.hero__title span {
  color: #ffd700;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 340px;
}

.hero__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero__cta .btn {
  padding: 13px 10px;
  font-size: clamp(0.78rem, 3.4vw, 1rem);
  min-width: 0;
}

.hero__cta .btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Butonlar ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: var(--shadow);
  text-align: center;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn--call {
  background: var(--red);
}

.btn--call:hover,
.btn--call:active {
  background: var(--red-dark);
}

.btn--wa {
  background: var(--green);
}

.btn--wa:hover,
.btn--wa:active {
  background: var(--green-dark);
}

.btn--sm {
  padding: 12px 20px;
  font-size: 0.95rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 320px;
}

/* ===== Bilgi kartları ===== */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 16px;
  background: var(--gray-light);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
}

.info-card h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1.2;
}

.info-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ===== Hizmetler ===== */
.services {
  padding: 40px 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-item {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.service-item:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(200, 16, 46, 0.15);
}

.service-item__icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.service-item p {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ===== Mobil hizmet bölümü ===== */
.mobil-section {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, var(--red-light) 100%);
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}

.mobil-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.mobil-section__inner {
  position: relative;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.mobil-section__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.mobil-section__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.mobil-section__cta .btn--call {
  background: var(--white);
  color: var(--red);
}

.mobil-section__cta .btn--call:active {
  background: #f0f0f0;
}

/* ===== Şube ===== */
.branch {
  padding: 40px 16px;
  background: var(--gray-light);
}

.branch__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
}

.branch__map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}

.branch__info {
  padding: 20px;
}

.branch__info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}

.branch__info address {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.branch__hours {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}

.branch__directions {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.03em;
}

/* ===== İletişim CTA ===== */
.contact-cta {
  background: var(--dark);
  padding: 48px 20px;
  text-align: center;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ===== Footer ===== */
.footer {
  background: #111;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 28px 16px calc(20px + var(--safe-bottom));
  font-size: 0.85rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer__copy {
  margin-top: 12px;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ===== Sabit alt bar ===== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--sticky-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 300;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.sticky-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s;
}

.sticky-bar__item:active {
  filter: brightness(0.9);
}

.sticky-bar__item svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.sticky-bar__item--wa {
  background: var(--green);
}

.sticky-bar__item--call {
  background: var(--blue);
}

.sticky-bar__item--map {
  background: #424242;
}

/* ===== Küçük ekran düzeltmeleri ===== */
@media (max-width: 480px) {
  .info-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 14px;
  }

  .info-card {
    padding: 16px 14px;
  }

  .info-card h2 {
    font-size: 1rem;
  }

  .info-card p {
    font-size: 0.88rem;
  }

  .services {
    padding: 32px 14px;
  }

  .services__grid {
    gap: 10px;
  }

  .service-item {
    padding: 16px 12px;
  }

  .service-item h3 {
    font-size: 0.88rem;
  }

  .service-item p {
    font-size: 0.75rem;
  }

  .mobil-section {
    padding: 36px 16px;
  }

  .mobil-section__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .mobil-section__cta .btn {
    width: 100%;
  }

  .branch {
    padding: 32px 14px;
  }

  .contact-cta {
    padding: 36px 16px;
  }

  .logo__text strong {
    font-size: 1.15rem;
  }

  .logo__text em {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .hero__cta {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 1.65rem;
  }

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

/* ===== Tablet+ ===== */
@media (min-width: 600px) {
  .hero {
    min-height: calc(100dvh - var(--top-bar-h) - var(--header-h));
    align-items: center;
  }

  .hero__bg img {
    transform: scale(1.15) translateZ(0);
    object-position: 50% 68%;
    transform-origin: 50% 68%;
  }

  .hero__content {
    padding: 48px 40px 40px;
    max-width: 640px;
  }

  .hero__cta {
    max-width: 480px;
  }

  .info-cards {
    padding: 28px 32px;
    gap: 20px;
  }

  .info-card {
    padding: 24px 20px;
  }

  .info-card h2 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.9rem;
  }

  .services {
    padding: 56px 32px;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
  }

  .contact-cta__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .btn--lg {
    width: auto;
  }
}

@media (min-width: 900px) {
  .header {
    padding: 14px 40px;
    top: var(--top-bar-h);
  }

  .hero__title {
    font-size: 3rem;
  }

  .info-cards {
    max-width: 960px;
    margin: 0 auto;
  }

  .branch__map iframe {
    height: 260px;
  }
}
