/* ==========================================================================
   GAYE ASANSÖR - MODERN DESIGN SYSTEM & CORE STYLES (2026 Edition)
   ========================================================================== */



:root {
  /* Brand Colors */
  --primary: #b70814;
  --primary-hover: #d32f2f;
  --primary-dark: #8b0000;
  --primary-light: #fff0f1;
  --primary-gradient: linear-gradient(135deg, #b70814 0%, #e52d27 100%);
  --secondary: #1a1e29;
  --secondary-hover: #262c3d;
  
  /* Neutral Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  
  /* Text Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Accent Colors */
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  
  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-dark: #334155;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 8px 25px rgba(183, 8, 20, 0.25);
  
  /* Layout Constants */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

ul {
  list-style: none;
}

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

.container-narrow {
  max-width: 960px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.25rem; }

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(183, 8, 20, 0.35);
  color: var(--text-white);
}

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

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  color: var(--text-white);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

/* Header & Topbar */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.top-bar {
  background: var(--secondary);
  color: var(--text-light);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info-item svg {
  width: 15px;
  height: 15px;
  fill: var(--primary);
}

.top-emergency {
  background: var(--primary);
  color: var(--text-white);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(183, 8, 20, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(183, 8, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 8, 20, 0); }
}

.header .container,
.top-bar .container {
  max-width: 1400px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  min-height: 90px;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

/* Margin separation before CTA buttons */
.nav-menu li:nth-last-child(2) {
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-light);
}

.nav-link {
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:not(.btn):hover, 
.nav-link:not(.btn).active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Action Buttons Styling */
.nav-link.btn {
  border-radius: var(--radius-full);
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

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

.nav-link.btn-outline:hover,
.nav-link.btn-outline.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-primary);
}

.nav-link.btn-primary,
.nav-link.btn-primary.active,
.nav-link.btn-primary:hover {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

/* Dropdown Navigation */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
  border: 1px solid var(--border-light);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.dropdown-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Section Formatting */
.section {
  padding: 5rem 0;
}

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

.section-bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-bg-dark .section-title {
  color: var(--text-white);
}

.section-bg-dark .section-desc {
  color: var(--text-light);
}

/* Grid Layout Utilities */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

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

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

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn-whatsapp {
  background: #25D366;
}

.float-btn-phone {
  background: var(--primary);
}

.float-tooltip {
  position: absolute;
  right: 65px;
  background: var(--secondary);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-dark);
}

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

.footer-brand > img {
  height: 38px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-cert-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.footer-cert-badges img {
  height: 34px !important;
  width: auto !important;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  filter: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM (Comprehensive 2026 Mobile Rules)
   ========================================================================== */

@media (max-width: 1024px) {
  .top-bar .container {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 1rem 0;
    min-height: 70px;
    position: relative;
  }

  .brand-logo img {
    height: 32px;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--primary);
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu li:nth-last-child(2) {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .nav-item-dropdown .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0.5rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-top: 0.25rem;
  }

  .nav-item-dropdown.active .dropdown-menu {
    display: block !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.25rem;
  }

  .top-bar {
    font-size: 0.775rem;
    padding: 0.4rem 0;
  }

  .top-bar .top-bar-item:not(:first-child) {
    display: none;
  }

  .top-bar-emergency {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .hero-slider {
    min-height: auto !important;
    padding: 3.5rem 0 4.5rem 0 !important;
    margin-bottom: 2.5rem !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .features-grid, 
  .grid-2-col, 
  .grid-3-col, 
  .grid-4-col,
  div[style*="grid-template-columns"],
  section[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  img, svg, iframe, video {
    max-width: 100% !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .products-grid .product-card {
    border-radius: var(--radius-md);
  }

  .products-grid .product-img-wrapper {
    height: 150px !important;
  }

  .products-grid .product-info {
    padding: 0.75rem 0.5rem !important;
    text-align: center;
  }

  .products-grid .product-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
  }

  .products-grid .product-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.45rem !important;
    top: 6px !important;
    left: 6px !important;
  }

  .tab-navigation {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem !important;
    margin-bottom: 2rem !important;
    gap: 0.5rem !important;
  }

  .tab-btn {
    white-space: nowrap !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .floating-actions {
    bottom: 15px !important;
    right: 12px !important;
    gap: 0.6rem !important;
  }

  .float-btn {
    width: 48px !important;
    height: 48px !important;
  }

  .float-tooltip {
    display: none !important;
  }

  /* Mobile Responsive Reference Card Transformation (No Horizontal Scroll!) */
  .table-responsive {
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .custom-table, 
  .custom-table thead, 
  .custom-table tbody, 
  .custom-table th, 
  .custom-table td, 
  .custom-table tr { 
    display: block !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .custom-table {
    min-width: 0 !important;
    background: transparent !important;
  }

  .custom-table thead tr { 
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }

  .custom-table tr {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    padding: 1.15rem 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--border-light) !important;
  }

  .custom-table td {
    border: none !important;
    padding: 0.4rem 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.9rem !important;
    text-align: right !important;
  }

  .custom-table td:nth-child(1) {
    display: none !important; /* Hide row number on mobile */
  }

  .custom-table td:nth-child(2) {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
    border-bottom: 1.5px solid var(--border-light) !important;
    padding-bottom: 0.65rem !important;
    margin-bottom: 0.5rem !important;
    text-align: left !important;
    justify-content: flex-start !important;
    display: block !important;
  }

  .custom-table td:nth-child(3)::before {
    content: "Müşteri / Yetkili";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
  }

  .custom-table td:nth-child(4)::before {
    content: "Şehir / Bölge";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
  }

  .custom-table td:nth-child(5)::before {
    content: "Asansör Sayısı";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  .certificate-modal-content {
    width: 95% !important;
    padding: 1.25rem !important;
  }

  .modal-nav-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }

  .modal-prev {
    left: 8px !important;
  }

  .modal-next {
    right: 8px !important;
  }
}

/* Stats Bar & Info Card Responsive Components */
.stats-bar {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stats-bar > div {
  flex: 1;
  min-width: 120px;
}

.info-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .grid-2-col,
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  div[style*="padding: 3rem"],
  div[style*="padding: 3rem;"] {
    padding: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .btn {
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem;
  }

  .stats-bar {
    gap: 1.25rem !important;
    justify-content: space-around;
  }
  
  .info-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .stats-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    text-align: center !important;
    background: var(--bg-alt);
    padding: 1rem 0.5rem;
    border-radius: var(--radius-md);
  }
  .stats-bar h3 {
    font-size: 1.6rem !important;
  }
  .stats-bar p {
    font-size: 0.75rem !important;
  }
}

/* 2-Column Branch Office Cards (Desktop & Mobile) */
.office-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .office-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .office-grid-2 > div {
    padding: 1.15rem 0.85rem !important;
  }
  .office-grid-2 h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
  }
  .office-grid-2 p {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
  }
  .office-grid-2 div {
    font-size: 0.8rem !important;
  }
}

