/* ==========================================================================
   TUM KABEL & MONTAGE - Master Stylesheet
   100% Mobil Uyumlu, Sade, Hızlı & Modern Tasarım
   ========================================================================== */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================= Topbar (Desktop) ================= */
.topbar {
  background: var(--primary);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-phone {
  color: var(--accent);
  font-weight: 700;
}

.topbar-phone:hover {
  text-decoration: underline;
}

/* ================= Header & Navigation ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: color 0.2s;
  padding: 0.4rem 0;
}

.nav-link:hover {
  color: var(--accent-hover);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Switcher */
.lang-box {
  display: flex;
  background: var(--bg-alt);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  touch-action: manipulation;
}

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

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

.btn-dark {
  background: var(--primary);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--primary-light);
}

.btn-call {
  background: #10b981;
  color: #ffffff;
}

.btn-call:hover {
  background: #059669;
}

/* Mobile Hamburger Button */
.mobile-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* ================= Hero Section ================= */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent-hover);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.trust-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ================= Services Section ================= */
.section {
  padding: 4.5rem 0;
}

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

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent-hover);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= About Section ================= */
.about-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-points {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.about-point svg {
  color: #10b981;
  flex-shrink: 0;
}

.about-card {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

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

.about-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

/* ================= Contact Section ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

/* Inputs: font-size 16px to prevent iOS auto zoom */
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-main);
  background: var(--bg-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

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

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

.form-success-msg {
  display: none;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.info-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.info-text h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.info-text p, .info-text a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
}

.info-text a:hover {
  color: var(--accent-hover);
}

/* ================= Footer ================= */
.footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

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

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

.footer-links button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-links button:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* ================= Modals (Impressum & Datenschutz) ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.modal-body h3, .modal-body h4 {
  margin: 1.25rem 0 0.5rem;
  color: var(--primary);
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ================= Floating Desktop WhatsApp ================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ================= Mobile Sticky Quick Action Bar ================= */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem;
  z-index: 150;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mobile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  touch-action: manipulation;
}

.btn-mobile-call {
  background: var(--primary);
  color: #ffffff;
}

.btn-mobile-wa {
  background: #25d366;
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Smartphone)
   ========================================================================== */

/* Tablet (max 900px) */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-box {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Smartphone (max 640px) */
@media (max-width: 640px) {
  /* Prevent content overlap with sticky bottom bar */
  body {
    padding-bottom: 72px;
  }

  /* Show mobile quick action bar */
  .mobile-bottom-bar {
    display: block;
  }

  /* Hide desktop floating button on mobile to prevent clutter */
  .whatsapp-float {
    display: none;
  }

  /* Topbar hidden on mobile */
  .topbar {
    display: none;
  }

  .header-flex {
    height: 64px;
  }

  .logo {
    font-size: 1.05rem;
    gap: 0.5rem;
  }

  .logo-badge {
    width: 34px;
    height: 34px;
  }

  .header-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Slide Down Menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    gap: 0.25rem;
    z-index: 190;
  }

  .nav-menu.open {
    display: flex;
    animation: menuSlide 0.2s ease forwards;
  }

  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  /* Hero Section */
  .hero {
    padding: 2.75rem 0 2rem;
  }

  .hero-tag {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-btns .btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .trust-item {
    font-size: 0.9rem;
  }

  /* Services */
  .section {
    padding: 3.25rem 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }

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

  .service-card {
    padding: 1.5rem;
  }

  /* About */
  .about-box {
    padding: 1.5rem;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  /* Form */
  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .info-card {
    padding: 1.5rem 1.25rem;
  }

  /* Footer */
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* Extra small devices (max 380px) */
@media (max-width: 380px) {
  .logo-text {
    font-size: 0.95rem;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.78rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}
