/* ========================================
   Samsun Atakum Kombi - Ana Stil Dosyası
   Modern Tasarım v2.0
   ======================================== */

/* Google Fonts — yükleme <link> tag ile yapılır (header.php), @import zincir oluşturduğu için kaldırıldı */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(14, 165, 233, 0.25);
  --secondary: #f97316;
  --secondary-dark: #ea580c;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --phone: #0ea5e9;
  --gradient-primary: linear-gradient(135deg, #0ea5e9, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f97316, #ef4444);
  --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
  --gradient-hero: linear-gradient(165deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 4px 20px var(--primary-glow);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px;
  /* Bottom bar space */
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-desktop a {
    padding: 0.5rem 1rem;
    color: var(--dark-soft);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-desktop a:hover {
    background: var(--light);
    color: var(--primary);
  }

  .nav-desktop .dropdown {
    position: relative;
  }

  .nav-desktop .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
    z-index: 100;
  }

  .nav-desktop .dropdown:hover .dropdown-menu {
    display: block;
  }

  .nav-desktop .dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   HAMBURGER & MOBILE NAV
   ============================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
  z-index: 1200;
  /* Above mobile nav */
  position: relative;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

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

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

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

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}

.nav-mobile.active {
  display: flex;
  flex-direction: column;
  animation: mobileNavIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mobileNavIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button inside mobile nav */
.nav-mobile-close {
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--dark);
  transition: all 0.2s ease;
  z-index: 10;
}

.nav-mobile-close:hover {
  background: var(--primary);
  color: white;
}

.nav-mobile a {
  display: block;
  padding: 1rem 0;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* Mobile Dropdown Button */
.mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-dropdown-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.mobile-dropdown-btn .arrow.rotated {
  transform: rotate(180deg);
}

/* Sub-links (Hizmetler dropdown in mobile) */
.sub-links {
  display: none;
  overflow: visible;
  background: var(--lighter);
  border-radius: var(--radius-md);
  margin: 0.25rem 0;
  padding: 0;
  transition: all 0.3s ease;
}

.sub-links.show {
  display: block !important;
  padding: 0.5rem;
  max-height: none;
  overflow: visible;
  animation: dropdownOpen 0.3s ease;
}

@keyframes dropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-links a {
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--gray) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-radius: var(--radius-sm);
}

.sub-links a:last-child {
  border-bottom: none !important;
}

.sub-links a:hover {
  color: var(--primary) !important;
  background: white;
}

/* Mobile nav CTA buttons */
.nav-mobile-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.nav-mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  text-align: center;
}

.nav-mobile-cta .nav-btn-whatsapp {
  background: var(--whatsapp) !important;
  color: white !important;
}

.nav-mobile-cta .nav-btn-call {
  background: var(--gradient-primary) !important;
  color: white !important;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: var(--gradient-primary);
  color: white !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 15px var(--primary-glow);
  white-space: nowrap;
}

/* Mobilde header CTA gizle — sticky alt bar var */
.header-inner>.btn-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-inner>.btn-cta {
    display: inline-flex;
  }
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  border: 2px solid rgba(14, 165, 233, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   BOTTOM BAR - Modern Glassmorphism
   ============================================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0.5rem 0.5rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
}

.bottom-bar-inner {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bottom-bar .btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #20bd5a);
  color: white;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

.bottom-bar .btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.45);
}

.bottom-bar .btn-call {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 3px 12px var(--primary-glow);
}

.bottom-bar .btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(14, 165, 233, 0.45);
}

.bottom-bar .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.bottom-bar .btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
   CTA SECTION (Global - above footer)
   ============================================ */
.cta-section {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  padding: 3.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 1.75rem;
  }
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-btns .btn-cta {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-bottom-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-social a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}


/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.section {
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 2rem;
  }
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(14, 165, 233, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-desc {
  color: var(--gray);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumb-list a {
  color: var(--gray);
  text-decoration: none;
}

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

.breadcrumb-list .sep {
  color: var(--gray-light);
}

.breadcrumb-list .current {
  color: var(--primary);
  font-weight: 500;
}

/* ---- Page Hero ---- */
.page-hero {
  padding: 6rem 1rem 3rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

.page-hero p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature icon box */
.icon-box {
  width: 56px;
  height: 56px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Star rating */
.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* Blog article content */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
  color: #334155;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: #334155;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.article-content a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.article-content a:hover {
  border-bottom-color: var(--primary);
}

/* Related posts */
.related-service-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
}

.related-service-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.related-service-box a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}