/* ====================================================
   GÖKDOĞAN ASANSÖR — Global Design System
   TokatWebTasarim CMS v5.3.02 — Özel Yazılım
   Yapımcı: TokatWebTasarim.com
   © 2024-2026 TokatWebTasarim.com
   Hazır CMS/şablon değildir, sıfırdan özel kodlanmıştır.
   Premium Kurumsal Mühendislik Web Sitesi
   ==================================================== */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --color-primary: #002147;
  --color-primary-light: #003366;
  --color-primary-dark: #001733;
  --color-accent: #C8A96E;
  --color-accent-light: #D4BC8E;
  --color-accent-dark: #B8944E;
  --color-cream: #FAF9F6;
  --color-white: #FFFFFF;
  --color-gray-100: #F7F7F5;
  --color-gray-200: #E8E8E4;
  --color-gray-300: #D1D1CD;
  --color-gray-400: #A3A3A0;
  --color-gray-500: #737370;
  --color-gray-600: #525250;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  --color-text: #1A1A1A;
  --color-text-light: #525250;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 33, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 33, 71, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 33, 71, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 33, 71, 0.12);
  --shadow-gold: 0 4px 20px rgba(200, 169, 110, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

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

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

/* ---- Button System ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

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

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

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

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

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

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--color-white);
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.9375rem;
}

/* ---- Card System ---- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 2rem;
}

.card-premium {
  border-bottom: 3px solid var(--color-accent);
}

/* ---- Section System ---- */
.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-gray {
  background-color: var(--color-gray-100);
}

/* ---- Gold Divider ---- */
.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
}

/* ---- Scroll Reveal Animation ---- */
/* Varsayılan: içerik görünür. JS aktifse animasyon uygulanır */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* JS aktifse reveal gizlenir, IntersectionObserver ile gösterilir */
html.js-loaded .reveal {
  opacity: 0;
  transform: translateY(30px);
}

html.js-loaded .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background-color: rgba(0, 33, 71, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.625rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
}

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

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

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

/* ---- Mega Menu ---- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  min-width: 480px;
  border-top: 3px solid var(--color-accent);
  pointer-events: none;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  color: var(--color-text);
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mega-menu a:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
  padding-left: 1rem;
}

.mega-menu-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1.125rem;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 33, 71, 0.93) 0%,
    rgba(0, 33, 71, 0.80) 50%,
    rgba(0, 33, 71, 0.70) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  color: var(--color-white);
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  padding: 0.75rem 0;
  opacity: 0.85;
  transition: all var(--transition-base);
}

.mobile-menu a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 60;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  /* Mega menu mobilde gizli - hamburger menu kullanılıyor */
  .mega-menu {
    display: none !important;
  }
}

/* ---- Stats Counter ---- */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

/* ---- Testimonial ---- */
.testimonial-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

/* ---- Page Header (Alt Sayfalar) ---- */
.page-header {
  padding-top: 9rem;
  padding-bottom: 4rem;
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.page-header.has-bg {
  background-color: transparent;
}

.page-header .header-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-header .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,33,71,0.82) 0%, rgba(0,33,71,0.65) 100%);
  z-index: 1;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

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

.breadcrumb .sep {
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-cream);
}

/* ---- Form Styles ---- */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  background: var(--color-white);
  color: var(--color-text);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ---- Footer ---- */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.65);
}

.footer h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition-base);
}

.footer a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Gold Line Hover Effect ---- */
.gold-line {
  position: relative;
  display: inline-block;
}

.gold-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.gold-line:hover::after {
  width: 100%;
}

/* ---- Service Icon Box ---- */
.icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.card:hover .icon-box {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
}

/* ---- Subtle Pattern Overlay ---- */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 169, 110, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ---- Selection Color ---- */
::selection {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero {
    min-height: 100svh;
  }

  .page-header {
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }

  .page-header h1 {
    font-size: 2rem !important;
  }

  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- Print Styles ---- */
@media print {
  .navbar, .footer, .mobile-menu, .floating-buttons {
    display: none;
  }
  body {
    background: white;
  }
}

/* ---- Floating Buttons (WhatsApp & Phone) ---- */
.floating-buttons {
  position: fixed;
  z-index: 99;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  align-items: center;
}

.floating-buttons.fb-wa-top {
  flex-direction: column;
}

.fb-item {
  position: relative;
  width: 50px;
  height: 50px;
}

/* Pulse rings - WhatsApp only */
.whatsapp-btn .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1ab744;
  z-index: 1;
  pointer-events: none;
}

@-webkit-keyframes pulse {
  0% { -webkit-transform: scale(.1); transform: scale(.1); opacity: 0; }
  50% { opacity: .3; }
  100% { -webkit-transform: scale(2); transform: scale(2); opacity: 0; }
}

@keyframes pulse {
  0% { -webkit-transform: scale(.1); transform: scale(.1); opacity: 0; }
  50% { opacity: .3; }
  100% { -webkit-transform: scale(2); transform: scale(2); opacity: 0; }
}

.whatsapp-btn .pulse-ring:nth-child(1) {
  -webkit-animation: pulse 2s infinite;
  animation: pulse 2s infinite;
}

.whatsapp-btn .pulse-ring:nth-child(2) {
  -webkit-animation: pulse 2s infinite .3s;
  animation: pulse 2s infinite .3s;
}

.whatsapp-btn .pulse-ring:nth-child(3) {
  -webkit-animation: pulse 2s infinite .6s;
  animation: pulse 2s infinite .6s;
}

/* WhatsApp button */
.pulse-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  z-index: 2;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  transition: all 0.2s;
}

.pulse-btn.wa-color { background: #1ab744; }
.pulse-btn.wa-color:hover { background: #128C7E; transform: scale(1.1); }

/* Phone button - no pulse */
.static-btn {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  transition: all 0.2s;
}

.static-btn.phone-color { background: #0d6efd; }
.static-btn.phone-color:hover { background: #0b5ed7; transform: scale(1.1); }

@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    gap: 10px;
  }
  .floating-buttons.fb-left {
    left: 20px !important;
    right: auto !important;
  }
  .fb-item,
  .whatsapp-btn .pulse-ring,
  .pulse-btn,
  .static-btn {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
  .pulse-btn { font-size: 22px; }
  .static-btn { font-size: 18px; }
}

/* ---- Prose / CKEditor Content Styles ---- */
.prose h1 { font-size: 2.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: var(--color-primary); }
.prose h2 { font-size: 1.875rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--color-primary); }
.prose h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.prose h4 { font-size: 1.25rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.prose p { margin-bottom: 1rem; line-height: 1.75; color: #4b5563; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.25rem; line-height: 1.75; color: #4b5563; }
.prose strong { font-weight: 700; color: #1f2937; }
.prose a { color: var(--color-accent); text-decoration: underline; }
.prose a:hover { color: var(--color-accent-dark); }
.prose img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }
.prose th { background: #f9fafb; font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--color-accent); padding-left: 1rem; margin: 1.5rem 0; color: #6b7280; font-style: italic; }
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }
