/* ============================================================
   Akat Oto Lastik Tamir Servisi — style.css
   Mobile-first, saf CSS3
   ============================================================ */

/* --- Google Fonts (Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --red: #E63946;
  --red-dark: #C1121F;
  --black: #1D1D1D;
  --gray: #6C757D;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --green-wa: #25D366;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.22s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-svg {
  height: 38px;
  width: auto;
}

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

.logo-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
  font-style: italic;
}

.logo-text span {
  font-size: 0.68rem;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Desktop Nav */
.header-nav {
  display: none;
}

.header-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--red);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Burger */
#nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

#nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Menu */
#nav-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 12px 20px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

#nav-menu.open {
  display: block;
}

#nav-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  color: var(--black);
}

#nav-menu a:hover {
  color: var(--red);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.12s;
  white-space: nowrap;
  text-decoration: none;
}

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

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

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

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

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

.btn-lg {
  font-size: 1.1rem;
  padding: 15px 28px;
}

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

.btn-wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #111;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section {
  padding: 64px 20px;
}

.section-alt {
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

/* ============================================================
   HIZMETLER
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

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

/* ============================================================
   MOBİL SERVİS BÖLÜMÜ
   ============================================================ */
.mobile-section {
  background: var(--black);
  color: var(--white);
}

.mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.mobile-img-wrap {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.mobile-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.mobile-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.mobile-text p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.65;
}

.mobile-phone {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 18px;
  text-decoration: none;
}

.mobile-phone:hover {
  color: #ff6b76;
}

/* ============================================================
   NEDEN BİZ?
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  padding: 24px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.why-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #fff0f1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--black);
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray);
}

/* ============================================================
   HİZMET BÖLGESİ
   ============================================================ */
.area-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.area-tag {
  background: #fff0f1;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ffc9cc;
}

.map-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   İLETİŞİM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.contact-info h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: #fff0f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  margin-bottom: 2px;
}

.info-item-text span, .info-item-text a {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--black);
}

.info-item-text a:hover {
  color: var(--red);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-phone-big {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1;
}

.cta-phone-big:hover {
  color: var(--red-dark);
}

.cta-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: -12px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #111;
  color: rgba(255,255,255,0.75);
  padding: 40px 20px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-logo strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  font-style: italic;
  display: block;
}

.footer-logo span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
}

.footer-info p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-info a {
  color: rgba(255,255,255,0.75);
}
.footer-info a:hover {
  color: var(--red);
}

.footer-bottom {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom p + p {
  margin-top: 4px;
}

.footer-seo-keywords {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
}

/* ============================================================
   STICKY MOBILE CALL BUTTON
   ============================================================ */
#sticky-call {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
  text-decoration: none;
  transition: background var(--transition), transform 0.12s, box-shadow var(--transition);
  animation: pulse 2.4s infinite;
}

#sticky-call:hover {
  background: var(--red-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(230, 57, 70, 0.65);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5); }
  50%       { box-shadow: 0 4px 28px rgba(230, 57, 70, 0.75); }
}

/* ============================================================
   RESPONSIVE — Tablet / Desktop
   ============================================================ */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 900px) {
  /* Header nav göster */
  #nav-toggle { display: none; }
  #nav-menu { display: none !important; }
  .header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
  }

  /* Hero */
  #hero { min-height: 620px; }

  /* Services: 4 kolon masaüstünde */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Mobil servis: yan yana */
  .mobile-inner {
    flex-direction: row;
    gap: 56px;
    align-items: center;
  }
  .mobile-img-wrap {
    flex: 1;
  }
  .mobile-img-wrap img {
    height: 340px;
  }
  .mobile-text {
    flex: 1;
  }

  /* Hizmet bölgesi */
  .area-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }
  .area-text { flex: 1; }
  .map-wrap { flex: 1.2; }

  /* İletişim */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Footer */
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  /* Sticky call button masaüstünde gizle (header'da var) */
  #sticky-call {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    padding: 80px 20px 60px;
  }
}
