/* Çeşme Lastikçi - Ana Stil
   CRAFTED DEGER DİGİTAL STUDİO */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --primary: #0f766e;
  --primary-dark: #0d9488;
  --accent: #0891b2;
  --navy: #0c4a6e;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --radius: 12px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #14b8a6;
  --primary-dark: #2dd4bf;
  --accent: #22d3ee;
  --navy: #0ea5e9;
  --border: #334155;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

/* Skip link - erişilebilirlik */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo-link:hover {
  color: var(--primary);
}
.logo-link:hover .logo-text {
  color: var(--primary);
}
.logo-svg {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }
}

/* Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.theme-toggle {
  background: var(--border);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--transition), transform 0.15s;
}
.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 1rem;
  }
  .nav-menu.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 50%, var(--accent) 100%);
  color: #fff;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::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.05'%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");
  opacity: 0.5;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.hero .subtitle {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Stats */
.stats {
  max-width: 1200px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.06);
}
.stat-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}
.stat-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Main content */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.main-content h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  color: var(--text);
}
.main-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--text);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--primary);
}
.main-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}
.main-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

/* Featured image */
.featured-image {
  width: 100%;
  aspect-ratio: 1200/630;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  border: none;
}
.cta-box p {
  margin: 0 0 1rem;
  opacity: 0.95;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

/* Semt links grid (homepage) */
.semt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}
.semt-grid a {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.semt-grid a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--primary);
}

/* Sticky bar - mobil */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  transition: transform 0.3s;
}
.sticky-bar.is-hidden {
  transform: translateY(100%);
}
.sticky-bar a,
.sticky-bar .sticky-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  transition: background var(--transition), transform 0.15s;
}
.sticky-bar .btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.sticky-bar a:hover,
.sticky-bar .sticky-tel:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: scale(1.02);
}
.sticky-bar .sticky-whatsapp {
  background: #25d366;
}
.sticky-bar .sticky-whatsapp:hover {
  background: #20bd5a;
}

@media (min-width: 769px) {
  .sticky-bar {
    display: none;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Lazy load placeholder */
img[data-src] {
  min-height: 200px;
  background: var(--border);
}
