/* =========================================================
   Wipower — tasarım sistemi
   Tema: gece sürüşü / kokpit göstergesi / ambiyans şeridi
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Renkler */
  --void: #0a0c10;
  --surface: #14171d;
  --surface-2: #1c2028;
  --surface-border: #2a2f3a;
  --text-primary: #f2f4f7;
  --text-muted: #8d96a3;
  --accent-cyan: #22d3ee;
  --accent-amber: #ff9142;
  --whatsapp: #25d366;
  --danger: #ff5c5c;
  --strip: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));

  /* Tipografi */
  --font-display: 'Saira Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--strip);
}

.strip-rule {
  height: 3px;
  border: none;
  border-radius: 3px;
  background: var(--strip);
  width: 64px;
  margin: 18px 0 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--strip);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a:focus-visible { color: var(--text-primary); }

/* ---------- Ürünler açılır menüsü ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px; /* görsel boşluk; hover alanını KIRMAZ çünkü menü kutusunun kendisi burada başlar */
  z-index: 60;
}

.nav-dropdown-menu-inner {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.nav-subitem { position: relative; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--text-primary); }

.nav-sub-arrow {
  color: var(--text-muted);
  font-size: 15px;
}

.nav-flyout {
  display: none;
  position: absolute;
  top: -8px;
  left: 100%;
  padding-left: 8px; /* görsel boşluk; hover alanını kırmaz */
  z-index: 61;
}

.nav-flyout-inner {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 8px;
  min-width: 190px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.nav-flyout a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-flyout a:hover { background: var(--surface-2); color: var(--text-primary); }

@media (min-width: 961px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
  .nav-subitem:hover .nav-flyout,
  .nav-subitem:focus-within .nav-flyout { display: block; }
}

/* ---------- Arama kutusu ---------- */
.nav-search { position: relative; }

.nav-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.nav-search-toggle:hover { color: var(--text-primary); }
.nav-search-toggle svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-search-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  z-index: 70;
}

.nav-search-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px; /* trigger ile panel arasındaki boşluğu hover/tıklama için köprüler */
}

.nav-search-panel input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
}
.nav-search-panel input:focus { outline: none; border-color: var(--accent-cyan); }

.nav-search-results {
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.nav-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-search-result:hover { background: var(--surface-2); }

.nav-search-result-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--surface-2);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.nav-search-result-text { min-width: 0; }
.nav-search-result-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-search-result-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.nav-search-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 4px;
}

.nav-action-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--text-primary);
  color: var(--void);
}
.btn-primary:hover { box-shadow: 0 0 0 3px rgba(242,244,247,0.15); }

.btn-outline {
  border-color: var(--surface-border);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #08240f;
}
.btn-whatsapp:hover { box-shadow: 0 0 0 3px rgba(37,211,102,0.25); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--surface-border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(34,211,238,0.16), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(255,145,66,0.14), transparent 70%);
  pointer-events: none;
}

.hero .hero-centered {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow { justify-content: center; }
.hero .eyebrow::before { display: none; }

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  margin-top: 20px;
}

.hero h1 span { color: var(--accent-cyan); }

.hero p.lede {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Section shells ---------- */
section { padding: 96px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
}

.section-alt { background: var(--surface); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }

/* ---------- Services (priority ordered) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 28px 26px;
  position: relative;
  border-top: 3px solid transparent;
  border-image: var(--strip) 1;
}

.service-card h3 {
  font-size: 22px;
  margin-top: 0;
  text-transform: none;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 10px;
}

/* ---------- Products ---------- */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.catalog-block { margin-bottom: 48px; scroll-margin-top: 92px; }
.catalog-block:last-child { margin-bottom: 0; }

.catalog-heading {
  font-size: 20px;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
  position: relative;
}

.catalog-heading::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: var(--strip);
}

/* ---------- Marka filtresi (katalog içi) ---------- */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 20px;
}

.brand-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.brand-pill:hover { border-color: var(--accent-cyan); color: var(--text-primary); }

.brand-pill.is-active {
  background: var(--strip);
  border-color: transparent;
  color: var(--void);
  font-weight: 600;
}

.product-card.is-hidden { display: none; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px;
}

.product-card.is-highlighted {
  animation: productHighlight 2.2s ease;
}

@keyframes productHighlight {
  0% { box-shadow: 0 0 0 3px var(--accent-cyan); }
  70% { box-shadow: 0 0 0 3px var(--accent-cyan); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}

.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.product-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.product-body h3 {
  text-transform: none;
  font-size: 19px;
  line-height: 1.25;
}

.product-price {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.empty-note {
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--surface-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

/* ---------- Booking form ---------- */
.booking-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.booking-info h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; }
.booking-info p { color: var(--text-muted); margin-top: 16px; max-width: 42ch; }

.info-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.info-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--strip); flex-shrink: 0; }

.booking-form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 34px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.field label .req { color: var(--accent-amber); }

.field input, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
}

.field input::placeholder, .field textarea::placeholder { color: #5c6472; }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.18);
}

.field textarea { resize: vertical; min-height: 90px; }

.hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Slot picker ---------- */
.slot-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-hint, .slot-empty, .slot-loading {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.slot-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 7px;
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.slot-btn:hover:not(:disabled) { border-color: var(--accent-cyan); }

.slot-btn.selected {
  background: var(--strip);
  border-color: transparent;
  color: var(--void);
  font-weight: 600;
}

.slot-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 22px;
}
.alert-error { background: rgba(255,92,92,0.1); border: 1px solid rgba(255,92,92,0.4); color: #ffb3b3; }
.alert-success { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.4); color: #9fe9bb; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 56px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  text-transform: none;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-grid p, .footer-grid a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--text-primary); }

.footer-call-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #08240f;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--void);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-action-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 4px 0 0;
    gap: 10px;
  }

  /* Mobilde açılır menü yerine katalog listesi her zaman açık görünür */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    padding-top: 4px;
    z-index: auto;
  }
  .nav-dropdown-menu-inner {
    display: flex;
    flex-direction: column;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .nav-dropdown-menu a { padding: 7px 0; color: var(--text-muted); font-size: 13px; }
  .nav-sub-arrow { display: none; }

  /* Alt kategoriler mobilde her zaman açık, iç içe girintili liste olarak görünür */
  .nav-flyout {
    display: block !important;
    position: static;
    padding-left: 0;
  }
  .nav-flyout-inner {
    border: none;
    background: none;
    box-shadow: none;
    padding: 0 0 6px 16px;
    min-width: 0;
  }
  .nav-flyout a { padding: 6px 0; font-size: 12.5px; }

  .nav-search { width: 100%; order: -1; }
  .nav-search-toggle { width: 100%; padding: 4px 0; }
  .nav-search-panel { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
  .nav-search-panel::before { display: none; }

  .nav-action-links .btn { width: 100%; }
}

@media (max-width: 680px) {
  .brand-logo { height: 32px; max-width: 130px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 70px 0 60px; }
}
