/* navbar.css */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  gap: 1rem;
}

/* Dark mode — varsayılan */
body:not(.light-mode) .navbar {
  background: rgba(26, 18, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,92,62, 0.12);
}

/* Dark mode scrolled */
body:not(.light-mode) .navbar.scrolled {
  background: rgba(26, 18, 7, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,92,62, 0.2);
}

/* Light mode — varsayılan */
body.light-mode .navbar {
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,92,62, 0.15);
}

/* Light mode scrolled */
body.light-mode .navbar.scrolled {
  background: rgba(244, 241, 236, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,92,62, 0.25);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
  filter: hue-rotate(-8deg) saturate(1.1) brightness(0.95);
  border-radius: 6px;
}

/* Logo arka planı: canvas ile beyaz kaldırıldığından transparent */
.logo-icon {
  background: transparent !important;
  border-radius: 6px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: hue-rotate(-8deg) saturate(1.1) brightness(0.95);
}

.logo-text-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-logo-text-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
}


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

.logo-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-name span {
  color: #E5483B;
}

/* Dark mode: white "Map" */
body:not(.light-mode) .logo-name { color: #ffffff; }

/* Light mode: dark "Map", always cyan "Surve" */
body.light-mode .logo-name { color: #1A1207; }
body.light-mode .logo-name span { color: #E5483B; }

.logo-tagline {
  font-size: 0.6rem;       /* slightly bigger */
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

/* Dark mode nav links */
body:not(.light-mode) .nav-links a { color: rgba(255, 255, 255, 0.8); }
body:not(.light-mode) .nav-links a:hover { color: #ffffff; }

/* Light mode nav links */
body.light-mode .nav-links a { color: #1A1207; }
body.light-mode .nav-links a:hover { color: #7C5C3E; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ── Icon button group ── */
.nav-icon-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-icon-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
  color: inherit;
}

/* Language toggle label */
.lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Language dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #2A1E10;
  border: 1px solid rgba(124,92,62, 0.3);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: #2A1E10;
  border-left: 1px solid rgba(124,92,62, 0.3);
  border-top: 1px solid rgba(124,92,62, 0.3);
  transform: rotate(45deg);
}

.lang-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.lang-option:hover {
  background: rgba(124,92,62, 0.18);
  color: var(--text);
}

.lang-option.active {
  background: rgba(124,92,62, 0.2);
  color: #A87850;
  font-weight: 600;
}

.lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.85rem;
  color: #A87850;
}

.lang-option .flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-option .lang-name {
  flex: 1;
}

.lang-option .lang-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.7;
}

/* Help dropdown */
.help-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #2A1E10;
  border: 1px solid rgba(124,92,62, 0.35);
  border-radius: 14px;
  padding: 0.6rem;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124,92,62, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
}

.help-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #2A1E10;
  border-left: 1px solid rgba(124,92,62, 0.35);
  border-top: 1px solid rgba(124,92,62, 0.35);
  transform: rotate(45deg);
}

.help-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.help-dropdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #4B5563;
  padding: 0.4rem 0.9rem 0.55rem;
  margin: 0;
}

.help-dropdown-divider {
  height: 1px;
  background: rgba(124,92,62, 0.15);
  margin: 0.35rem 0.5rem 0.4rem;
}

.help-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.help-dropdown-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.help-dropdown-item--email::after {
  background: linear-gradient(135deg, rgba(124,92,62, 0.08), rgba(124,92,62, 0.04));
}

.help-dropdown-item--wa::after {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.04));
}

.help-dropdown-item:hover {
  transform: translateX(3px);
  box-shadow: inset 0 0 0 1px rgba(124,92,62, 0.15);
}

.help-dropdown-item--wa:hover {
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.2);
}

.help-dropdown-item:hover::after {
  opacity: 1;
}

.help-dropdown-item + .help-dropdown-item {
  margin-top: 3px;
}

.help-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(124,92,62, 0.14);
  color: #A87850;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.help-dropdown-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.help-dropdown-item:hover .help-dropdown-icon {
  background: rgba(124,92,62, 0.24);
  color: #c4b5fd;
  transform: scale(1.08);
}

.help-dropdown-icon--wa {
  background: rgba(37, 211, 102, 0.12);
  color: #4ade80;
}

.help-dropdown-item:hover .help-dropdown-icon--wa {
  background: rgba(37, 211, 102, 0.22);
  color: #86efac;
}

.help-dropdown-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.help-dropdown-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.2;
  white-space: nowrap;
}

.help-dropdown-sub {
  font-size: 0.72rem;
  color: #6B7280;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CTA button ── */
.nav-cta {
  background: var(--purple);
  color: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta {
  color: #ffffff !important;
}

.nav-cta, .nav-cta span, .nav-cta * {
  color: #ffffff !important;
}

.nav-cta:hover {
  background: #C73C30;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124,92,62, 0.4);
}

/* ── Mobile preview mode ── */
body.mobile-preview main,
body.mobile-preview .hero,
body.mobile-preview .services,
body.mobile-preview section {
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 0 1px rgba(124,92,62, 0.4),
              0 0 40px rgba(124,92,62, 0.1);
  border-radius: 2px;
}

.nav-icon-btn.preview-active {
  color: var(--cyan);
  background: rgba(229,72,59, 0.1);
}

/* ── Light mode navbar overrides ── */

body.light-mode .help-dropdown,
body.light-mode .lang-dropdown {
  background: #ffffff;
  border-color: rgba(124,92,62, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(124,92,62, 0.08);
}

body.light-mode .help-dropdown-label {
  color: #9CA3AF;
}

body.light-mode .help-dropdown-divider {
  background: rgba(124,92,62, 0.1);
}

body.light-mode .help-dropdown-title {
  color: #1A1207;
}

body.light-mode .help-dropdown-sub {
  color: #9CA3AF;
}

body.light-mode .help-dropdown-item:hover {
  box-shadow: inset 0 0 0 1px rgba(124,92,62, 0.2);
}

body.light-mode .help-dropdown-icon {
  background: rgba(124,92,62, 0.1);
}

body.light-mode .help-dropdown-icon--wa {
  background: rgba(37, 211, 102, 0.1);
}

body.light-mode .help-dropdown::before,
body.light-mode .lang-dropdown::before {
  background: #ffffff;
}

body.light-mode .lang-option {
  color: #4A3828;
}

body.light-mode .hamburger span {
  background: var(--text-primary);
}

body.light-mode .nav-links {
  background: rgba(244, 241, 236, 0.98);
  border-left: 1px solid rgba(124,92,62, 0.15);
}

/* ── Icon buttons: light mode ── */
body.light-mode .nav-icon-btn {
  color: #4A3828;
}
body.light-mode .nav-icon-btn svg {
  stroke: currentColor;
  color: #4A3828;
}
body.light-mode .nav-icon-btn:hover {
  color: #7C5C3E;
  background: rgba(124,92,62, 0.08);
}
body.light-mode .nav-icon-btn:hover svg {
  color: #7C5C3E;
}

/* ── Icon buttons: dark mode ── */
body:not(.light-mode) .nav-icon-btn {
  color: #e5e7eb;
}
body:not(.light-mode) .nav-icon-btn svg {
  stroke: currentColor;
  color: #e5e7eb;
}
body:not(.light-mode) .nav-icon-btn:hover {
  color: #ffffff;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .logo-tagline { display: none; }
  .logo-name { font-size: 1.1rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 280px;
    background: rgba(26, 18, 7, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    margin: 0;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(124,92,62, 0.2);
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: 1.1rem; }

  .nav-cta { display: none; }

  .nav-icon-group { gap: 0.1rem; }

  .nav-icon-btn { width: 32px; height: 32px; }
}

@media (max-width: 400px) {
  .navbar { padding: 0.85rem 1rem; }
  .logo-tagline { display: none; }
  .help-dropdown {
    right: -8px;
    min-width: 200px;
  }
  .help-dropdown::before {
    right: 22px;
  }
}
