/* css/style.css */

/* --- CSS Variables --- */
:root {
  /* Brand Colors extracted from Logo */
  --primary: #044f8a;       /* Deep Blue - NEXA TEMİZLİK text */
  --primary-hover: #033a66;
  --secondary: #228b22;     /* Vibrant Green - Ribbon and X */
  --secondary-hover: #1b6b1b;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  
  /* Neutral Colors */
  --dark: #1f2937;
  --gray-dark: #4b5563;
  --gray: #9ca3af;
  --gray-light: #e5e7eb;
  --bg-light: #f9fafb;
  --white: #ffffff;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

body {
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-padding {
  padding: 6rem 0;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-m { max-width: 800px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

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

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: var(--transition);
}
.btn-whatsapp-small:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

/* Logo Styling matching real image */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  font-size: 2.5rem;
  color: var(--primary);
  transform: rotate(-15deg);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-nexa {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.logo-x {
  color: var(--secondary);
}
.logo-temizlik {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 20s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }

@keyframes fade {
  0%   { opacity: 0; transform: scale(1.05); }
  10%  { opacity: 1; transform: scale(1); }
  25%  { opacity: 1; transform: scale(1); }
  35%  { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(4, 79, 138, 0.9) 0%, rgba(4, 79, 138, 0.6) 50%, rgba(4, 79, 138, 0.1) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  margin-top: 80px; /* Offset header */
}

.hero-content {
  max-width: 650px;
  color: var(--white);
}

/* The Green Ribbon Lookalile */
.badge-ribbon {
  display: inline-block;
  background-color: var(--secondary);
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
}
.badge-ribbon::before, .badge-ribbon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: var(--secondary-hover) transparent transparent transparent;
}
.badge-ribbon::before { left: 0; border-color: var(--secondary-hover) transparent transparent var(--secondary-hover); border-bottom: 10px solid transparent; }
.badge-ribbon::after { right: 0; border-color: var(--secondary-hover) var(--secondary-hover) transparent transparent; border-bottom: 10px solid transparent; }


.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  color: #4BA3E3; /* Light blue accent */
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

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

/* --- Features Overlay Bar --- */
.features-bar {
  background-color: var(--white);
  padding: 2rem 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(34, 139, 34, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.feature-text h4 {
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.feature-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* --- Services Section --- */
.section-title {
  margin-bottom: 4rem;
}

.subtitle {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.title-separator {
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0 auto 1.5rem auto;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  top: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-icon-float {
  position: absolute;
  bottom: -25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  border: 4px solid var(--white);
}

.service-content {
  padding: 2.5rem 1.5rem 1.5rem;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--primary);
  color: var(--white);
  background-image: linear-gradient(135deg, var(--primary) 0%, #032b4f 100%);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-info {
  flex: 1;
  min-width: 300px;
}

.cta-info h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark);
  color: var(--gray);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-logo .logo-x {
  color: #4ade80; /* lighter green for dark bg */
}

.footer-about p {
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.designer-credit {
  color: var(--primary);
  font-weight: 500;
}

/* --- Keşif Talebi Form --- */
.kesif-section {
  background-color: var(--white);
}

.kesif-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border-top: 4px solid var(--secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group-full {
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--primary);
  margin-right: 0.25rem;
  width: 18px;
  text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(4, 79, 138, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-actions {
  text-align: center;
  margin-top: 1rem;
}

.form-actions .btn {
  min-width: 250px;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.form-note i {
  color: var(--secondary);
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success i {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--primary);
  font-size: 1.5rem;
}

.form-success p {
  font-size: 1.1rem;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner {
  text-align: center;
}
.preloader-inner .logo-nexa {
  font-size: 2.5rem;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.preloader-bar {
  width: 120px;
  height: 4px;
  background: var(--gray-light);
  border-radius: 2px;
  margin: 1rem auto 0;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--secondary);
  border-radius: 2px;
  animation: preloaderSlide 1s ease-in-out infinite;
}
@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* --- Kampanya Bandı --- */
.campaign-bar {
  background: linear-gradient(90deg, var(--secondary), #1b6b1b);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1001;
  letter-spacing: 0.3px;
}
.campaign-bar a {
  color: #fef08a;
  text-decoration: underline;
  margin-left: 0.5rem;
}
.campaign-bar .campaign-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}
.campaign-bar .campaign-close:hover { color: var(--white); }
.campaign-bar.hidden { display: none; }

/* Header offset when campaign bar is visible */
body.has-campaign .header {
  top: 38px;
}
body.has-campaign .hero {
  margin-top: 38px;
}
body.has-campaign .inner-hero {
  padding-top: 218px;
}

/* --- WhatsApp Chat Widget --- */
.wa-chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 998;
}
.wa-chat-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
  position: relative;
}
.wa-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.wa-chat-btn .wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--white);
}
.wa-chat-box {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}
.wa-chat-box.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-chat-header {
  background: linear-gradient(135deg, #075e54, #128c7e);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wa-chat-avatar {
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-chat-avatar .logo-nexa {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 800;
}
.wa-chat-header-info h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0;
}
.wa-chat-header-info span {
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
}
.wa-chat-header-info .online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--whatsapp);
  border-radius: 50%;
  margin-right: 4px;
  animation: onlinePulse 2s infinite;
}
@keyframes onlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.wa-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}
.wa-chat-close:hover { color: var(--white); }
.wa-chat-body {
  background: #e5ddd5;
  background-image: 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='%23c8c3ba' fill-opacity='0.15'%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");
  padding: 1.25rem;
  min-height: 120px;
}
.wa-chat-bubble {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.5;
  position: relative;
  max-width: 85%;
}
.wa-chat-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--white) transparent transparent;
}
.wa-chat-bubble-time {
  font-size: 0.7rem;
  color: var(--gray);
  text-align: right;
  margin-top: 4px;
}
.wa-chat-footer {
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  display: flex;
  gap: 0.5rem;
}
.wa-chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
}
.wa-chat-input:focus { border-color: var(--whatsapp); }
.wa-chat-send {
  width: 40px;
  height: 40px;
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.wa-chat-send:hover { background: var(--whatsapp-hover); }

/* --- Social Proof Notification --- */
.social-proof {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 997;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  max-width: 340px;
  border-left: 4px solid var(--secondary);
}
.social-proof.show {
  transform: translateX(0);
}
.social-proof-icon {
  width: 40px;
  height: 40px;
  background: rgba(34, 139, 34, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.social-proof-text {
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.4;
}
.social-proof-text strong {
  color: var(--primary);
}
.social-proof-time {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 2px;
}
.social-proof-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px;
}

/* --- Exit Intent Popup --- */
.exit-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.exit-overlay.show {
  display: flex;
}
.exit-popup {
  background: var(--white);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: exitPopIn 0.4s ease;
}
@keyframes exitPopIn {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.exit-popup-header {
  background: linear-gradient(135deg, var(--primary), #032b4f);
  padding: 2rem;
  text-align: center;
  position: relative;
}
.exit-popup-header i {
  font-size: 3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}
.exit-popup-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.exit-popup-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin: 0;
}
.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.exit-popup-close:hover { background: rgba(255,255,255,0.3); }
.exit-popup-body {
  padding: 2rem;
  text-align: center;
}
.exit-popup-body p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--gray-dark);
}
.exit-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exit-popup-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}
.exit-popup-skip {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  text-decoration: underline;
}

/* --- Hizmet Bölgeleri Haritası --- */
.map-section {
  background: var(--white);
}
.map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.map-visual {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  border: 2px solid var(--gray-light);
}
.map-visual svg {
  width: 100%;
  height: auto;
}
.map-info h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.map-info p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.map-districts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.map-district-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-light);
  border: 1px solid var(--gray-light);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gray-dark);
  transition: var(--transition);
}
.map-district-tag i { color: var(--secondary); font-size: 0.7rem; }
.map-district-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.map-district-tag:hover i { color: var(--white); }

/* --- KVKK Cookie Banner --- */
.kvkk-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  color: var(--gray-light);
  padding: 1.25rem 0;
  z-index: 1001;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.kvkk-banner.show {
  transform: translateY(0);
}
.kvkk-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.kvkk-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  min-width: 250px;
}
.kvkk-text a {
  color: var(--whatsapp);
  text-decoration: underline;
}
.kvkk-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.kvkk-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.kvkk-btn-accept {
  background: var(--secondary);
  color: var(--white);
}
.kvkk-btn-accept:hover {
  background: var(--secondary-hover);
}
.kvkk-btn-reject {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--gray);
}
.kvkk-btn-reject:hover {
  border-color: var(--white);
  color: var(--white);
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: var(--bg-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-info strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
}
.testimonial-info span {
  font-size: 0.8rem;
  color: var(--gray);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* --- SSS / FAQ Section --- */
.faq-section {
  background: var(--white);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  gap: 1rem;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question i {
  font-size: 0.85rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* --- Inner Page Styles (shared) --- */
.inner-hero {
  background-color: var(--primary);
  padding: 180px 0 100px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.inner-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(4, 79, 138, 0.95), rgba(34, 139, 34, 0.4));
  z-index: 1;
}
.inner-hero-content {
  position: relative;
  z-index: 2;
}
.inner-hero h1 {
  font-size: 3rem;
  color: var(--white);
}
.inner-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Service Detail Page --- */
.service-detail-section {
  padding: 5rem 0;
}
.service-detail-content {
  max-width: 900px;
  margin: 0 auto;
}
.service-detail-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.service-detail-content h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-detail-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.service-features-list {
  list-style: none;
  margin: 2rem 0;
}
.service-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}
.service-features-list li i {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.service-detail-cta {
  background: linear-gradient(135deg, var(--primary), #032b4f);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 3rem;
}
.service-detail-cta h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.service-detail-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.service-detail-cta .btn {
  margin: 0 0.5rem;
}

/* --- Blog Page --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-card-date {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-card-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.blog-card-body p {
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}
.blog-read-more {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}
.blog-read-more:hover {
  color: var(--secondary-hover);
}

/* Blog Detail */
.blog-detail-section {
  padding: 5rem 0;
}
.blog-detail-content {
  max-width: 800px;
  margin: 0 auto;
}
.blog-detail-content h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}
.blog-detail-content h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}
.blog-detail-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.blog-detail-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.blog-detail-content ul li {
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* --- Gallery Page --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(4, 79, 138, 0.85));
  padding: 1.5rem 1rem 1rem;
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}
.gallery-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.gallery-overlay span {
  font-size: 0.8rem;
  opacity: 0.8;
}
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--gray-dark);
  transition: var(--transition);
}
.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* Nav Keşif highlight */
.nav-kesif {
  color: var(--secondary) !important;
  font-weight: 700 !important;
}

/* --- Mobile Menu Proper Styles --- */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  gap: 0;
  z-index: 999;
}

.nav-links.mobile-open li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.nav-links.mobile-open li:last-child {
  border-bottom: none;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .features-bar {
    margin: 2rem 1rem 0;
    max-width: none;
    padding: 2rem;
    border-radius: var(--radius-md);
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero h1 { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-padding { padding: 4rem 0; }
  .section-title h2 { font-size: 2rem; }
  .cta-info h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  /* Header & Nav */
  .header {
    padding: 0.75rem 0;
  }
  .nav-links {
    display: none;
  }
  .nav-actions .btn-outline {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
    order: 3;
  }
  .navbar {
    gap: 0.75rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .logo-nexa {
    font-size: 1.6rem;
  }
  .logo-temizlik {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    min-height: 500px;
    height: auto;
    padding: 120px 0 60px;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(4, 79, 138, 0.7) 0%, rgba(4, 79, 138, 0.92) 100%);
  }
  .hero-container {
    margin-top: 0;
  }
  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.3;
  }
  .hero h1 br {
    display: none;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }
  .badge-ribbon {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }

  /* Features Bar */
  .features-bar {
    margin: 1.5rem 0.75rem 0;
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }
  .feature-item {
    gap: 0.75rem;
  }
  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
  .feature-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
  }
  .feature-text p {
    font-size: 0.8rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-padding {
    padding: 3rem 0;
  }
  .section-title {
    margin-bottom: 2.5rem;
  }
  .section-title h2 {
    font-size: 1.75rem;
  }

  /* Keşif Formu */
  .kesif-form-wrapper {
    padding: 1.5rem;
    margin: 0 -0.5rem;
    border-radius: var(--radius-md);
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }
  .form-actions .btn {
    width: 100%;
    min-width: unset;
  }

  /* CTA */
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1.5rem;
  }
  .cta-info {
    min-width: unset;
  }
  .cta-info h2 {
    font-size: 1.5rem;
  }
  .cta-info p {
    font-size: 0.95rem;
  }
  .cta-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding-top: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .footer-bottom .flex-between {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
  }

  /* Inner Hero */
  .inner-hero {
    padding: 130px 0 60px;
  }
  .inner-hero h1 {
    font-size: 2rem;
  }
  .inner-hero p {
    font-size: 1rem;
  }

  /* Service Detail */
  .service-detail-img {
    height: 220px;
  }
  .service-detail-cta .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  /* KVKK */
  .kvkk-inner {
    flex-direction: column;
    text-align: center;
  }
  .kvkk-actions {
    width: 100%;
    justify-content: center;
  }

  /* WhatsApp Chat Widget */
  .wa-chat-widget {
    bottom: 15px;
    right: 15px;
  }
  .wa-chat-btn {
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
  .wa-chat-box {
    width: 300px;
    right: -10px;
  }

  /* Social Proof */
  .social-proof {
    left: 15px;
    right: 15px;
    bottom: 80px;
    max-width: none;
  }

  /* Exit Popup */
  .exit-popup {
    max-width: 95%;
  }
  .exit-popup-header {
    padding: 1.5rem;
  }
  .exit-popup-header i {
    font-size: 2.5rem;
  }
  .exit-popup-header h3 {
    font-size: 1.2rem;
  }

  /* Map Section */
  .map-container {
    grid-template-columns: 1fr;
  }

  /* Campaign Bar */
  .campaign-bar {
    font-size: 0.8rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .logo-nexa {
    font-size: 1.4rem;
  }
  .logo-temizlik {
    font-size: 0.85rem;
  }
}
