/* css/style.css - YKT Oto Elektronik */

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

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6fa;
  color: #222;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* Top Bar */
.top-bar {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
}

.top-left span,
.top-right a {
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-right a:hover {
  color: #facc15;
}

/* Header / Nav */
header {
  background: #1f2937;
  color: #f9fafb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #facc15;
}

.logo span {
  color: #e5e7eb;
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.nav-links > li > a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: #facc15;
  color: #111827;
}

/* Dropdown */
.nav-item-has-children {
  position: relative;
}

.nav-item-has-children > a::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 4px;
}

.dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background: #111827;
  padding: 8px 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-item-has-children:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.dropdown li a:hover {
  background: #facc15;
  color: #111827;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #f9fafb;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #facc15 0, #facc15 6px, transparent 70px),
              radial-gradient(circle at top right, #0ea5e9 0, #0ea5e9 6px, transparent 80px),
              linear-gradient(135deg, #020617, #0f172a);
  color: #f9fafb;
  padding: 70px 16px 60px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero-badge span {
  background: #facc15;
  color: #111827;
  border-radius: 999px;
  padding: 2px 6px;
  font-weight: 700;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.hero h1 span {
  color: #facc15;
}

.hero-subtitle {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

.hero-list {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-list li::before {
  content: "✔";
  font-size: 0.8rem;
  color: #22c55e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(250, 204, 21, 0.5);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.8);
}

.hero-contact {
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-contact strong {
  color: #e5e7eb;
}

/* Hero right */
.hero-box {
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.12), transparent 60%),
              #020617;
  border-radius: 24px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

.hero-box h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-box p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 12px;
}

.hero-metrics {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.metric {
  flex: 1;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.metric span {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.metric strong {
  font-size: 1rem;
  color: #facc15;
}

.hero-note {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Sections */
.section {
  padding: 50px 16px;
}

.section-alt {
  background: #e5e7eb;
}

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

.section-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #111827;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 24px;
}

/* Grid utilities */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #111827;
}

.card p {
  font-size: 0.9rem;
  color: #4b5563;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  margin-bottom: 6px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  margin-top: 8px;
  color: #2563eb;
}

.card-link:hover {
  text-decoration: underline;
}

/* Testimonials */
.testimonials {
  margin-top: 10px;
}

.testimonial {
  background: #111827;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  border: 1px solid #1f2937;
}

.testimonial strong {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #facc15;
}

/* Bilgiler (blog list) */
.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.info-item p {
  font-size: 0.85rem;
  color: #4b5563;
}

/* Hizmet bölgeleri */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.85rem;
}

/* Footer */
footer {
  background: #020617;
  color: #e5e7eb;
}

.footer-top {
  padding: 30px 16px 20px;
  border-top: 1px solid #111827;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 24px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-col ul li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #111827;
  text-align: center;
  font-size: 0.8rem;
  padding: 10px 16px 14px;
}

/* Layout & utility */
.main-wrapper {
  min-height: calc(100vh - 200px);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 20px;
}

.contact-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.contact-card h3 {
  margin-bottom: 10px;
}

.contact-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.contact-item span {
  font-weight: 600;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #2563eb;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Back to top / WhatsApp button */
.floating-buttons {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #22c55e;
  color: #f9fafb;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.65);
}

.float-btn.secondary {
  background: #111827;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.7);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 60px;
  }
  .grid-3,
  .grid-4,
  .grid-2,
  .info-list,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #020617;
    flex-direction: column;
    padding: 10px 16px 14px;
    border-top: 1px solid #111827;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
