/* Kapıdağ – Erdek ATV & Outdoor | Profesyonel Tanıtım Sitesi */
/* NC Motor referans: koyu zemin, canlı vurgu, outdoor teması */

:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #21262d;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fbbf24;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

/* ─── Header & Nav ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.6rem;
  min-width: 0;
}

.logo img {
  max-height: 48px !important;
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo .logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.logo .logo-fallback {
  display: none; /* onerror ile gösterilir */
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.nav-main a {
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

/* Mobile menu toggle (burger) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 1002;
  position: relative;
}

/* Sidebar overlay (mobilde menü açıkken arka plan) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; flex-shrink: 0; margin-left: auto; }

  /* Mobilde header tek satır: logo solda, hamburger en sağda */
  .site-header .container {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .site-header .logo {
    min-width: 0;
    max-width: calc(100% - 3rem); /* Hamburger için yer bırak */
    align-items: center;
  }
  .site-header .logo img {
    max-height: 40px !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
  }
  .site-header .logo-title {
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: nowrap; /* Logo ile yan yana kalsın */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12em;
  }

  /* Header sidebar açıkken overlay'in üstünde olsun (linkler tıklanabilsin) */
  body.nav-open .site-header {
    z-index: 1002;
  }

  /* Sidebar: sağdan açılır */
  .site-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding: 4rem 0 2rem;
    -webkit-overflow-scrolling: touch;
  }

  .site-header nav.open {
    transform: translateX(0);
  }

  .nav-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1.5rem;
    list-style: none;
  }

  .nav-main a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #111;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #111;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Hero Slider ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .placeholder-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1f26 0%, #0d1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.95) 0%, rgba(13,17,23,0.5) 50%, transparent 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ─── Sections ─── */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.intro-block {
  max-width: 800px;
  margin: 0 auto;
}

.intro-block .section-intro {
  margin-bottom: 1rem;
  text-align: left;
  max-width: none;
}

.intro-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.features-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.features-list li {
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-list li strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Page header (inner pages) ─── */
.page-hero {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery slider (for modal or top section) */
.gallery-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-slider .slide {
  display: none;
  aspect-ratio: 16/9;
  background: var(--bg-card);
}

.gallery-slider .slide.active {
  display: block;
}

.gallery-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slider .slide .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.contact-info h3,
.contact-form h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact-info p,
.contact-info a {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-top: 1rem;
}

.map-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.map-wrap h3 {
  color: var(--accent);
  font-size: 1.1rem;
  padding: 0.75rem 1rem 0;
  margin: 0;
}

.map-wrap iframe {
  display: block;
}

.map-caption {
  padding: 0.5rem 1rem 0.75rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer nav {
  margin-bottom: 1rem;
}

.site-footer nav a {
  color: var(--text-muted);
  margin: 0 0.75rem;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer .footer-social {
  margin-bottom: 0.5rem;
}

.site-footer .footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer .footer-social a:hover {
  color: var(--accent);
}

.site-footer .footer-social .icon-instagram {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .footer-madeby {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.site-footer .footer-madeby a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.site-footer .footer-madeby a:hover {
  color: var(--text-muted);
  opacity: 0.9;
}

.site-footer .footer-madeby img {
  height: 28px;
  width: auto;
  vertical-align: middle;
}

/* ─── Hemen Ara, Instagram & WhatsApp fixed buttons ─── */
.phone-float {
  position: fixed;
  bottom: 9rem;
  right: 1.5rem;
  z-index: 999;
}

.phone-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #fff;
}

.phone-float svg {
  width: 28px;
  height: 28px;
}

.instagram-float {
  position: fixed;
  bottom: 5.25rem;
  right: 1.5rem;
  z-index: 999;
}

.instagram-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.instagram-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
  color: #fff;
}

.instagram-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

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

/* ─── Utility ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Service detail blocks */
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.service-block h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-block ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-muted);
}

.service-block .cta-wrap {
  margin-top: 1rem;
}

.service-block .price-info {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 0.95rem;
}

.service-block .price-list {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
  color: var(--text-muted);
}

.service-block .price-list li {
  margin-bottom: 0.35rem;
}

.card-price {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent) !important;
}

.card-price a {
  color: var(--accent-light);
}
