/*
Theme Name: Tesisat Developer Pro
Theme URI: https://example.com
Author: Developer
Author URI: https://example.com
Description: RAQİPLERDEN 10 KAT GÜÇLÜ - Premium v2.0 Redesign. SEO odaklı, ultra-modern sıhhi tesisat teması. Deep Blue & Electric Blue estetiği, Glassmorphism ve yüksek dönüşümlü Landing Page yapısı.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: tesisat-developer
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========== PREMIUM DESIGN TOKENS - LIGHT THEME ========== */
:root {
  /* Colors */
  --primary: #38BDF8;
  /* Electric Blue */
  --primary-dark: #0EA5E9;
  --primary-glow: rgba(56, 189, 248, 0.2);
  --secondary: #FB923C;
  /* Vibrant Orange */
  --secondary-dark: #F97316;
  --dark-bg: #F8FAFC;
  /* Light bg */
  --dark-surface: #FFFFFF;
  /* White surface */
  --dark-card: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-main: #1E293B;
  --text-muted: #64748B;
  --bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  --premium-gradient: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);

  /* Spacing & Radii */
  --radius-pill: 9999px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container-max: 1280px;

  /* Transitions */
  --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.4s var(--ease-premium);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ========== LAYOUT ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding-top: 120px;
  padding-bottom: 2rem;
}

.section-padding {
  padding: 100px 0;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

/* ========== PREMIUM COMPONENTS ========== */

/* Floating Island Header */
.header-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  transition: var(--transition);
}

.site-header {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: 1100px;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--premium-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--secondary-dark);
}

.btn-premium.btn-glass {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: var(--primary) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-premium.btn-glass:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb Styling - Kept for reference but hidden */
.breadcrumb {
  display: none !important;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .sep {
  margin: 0 0.75rem;
  opacity: 0.5;
}

/* Premium Navigation */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: var(--transition);
}

.nav-menu a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Hero Section */
.hero-premium {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.03), transparent),
    var(--bg-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #0EA5E9, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

/* Glass Cards */
.glass-card {
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px -10px rgba(56, 189, 248, 0.15);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.glass-card:hover::before {
  transform: translateX(100%);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Slider Styles */
.testimonials-swiper {
  padding: 20px 10px 50px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.testimonials-swiper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

.swiper-slide {
  height: auto;
}

.h-full {
  height: 100%;
}

.swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/* FAQ Accordion Premium */
.faq-premium .faq-item {
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-trigger {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-content {
  display: block;
}

.faq-item.active .faq-trigger {
  color: var(--primary);
}

/* Footer Luxury */
.footer-luxury {
  background: #F1F5F9;
  padding: 100px 0 40px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s var(--ease-premium);
}

.animate-ready {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 100px;
    padding-bottom: 1.5rem;
  }

  .site-header {
    padding: 0.5rem 1rem;
  }

  .nav-menu {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-premium {
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hidden-mobile {
    display: none !important;
  }
}

/* Special High-End UI Tweaks */
::selection {
  background: var(--primary);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Floating CTA Box */
.cta-box-premium {
  background: var(--premium-gradient);
  padding: 4rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 15px 40px -10px rgba(56, 189, 248, 0.25);
  color: white;
}

/* ========== SERVICE PAGE DESIGN ========== */

/* Service Hero Section */
.service-hero {
  position: relative;
  padding: 120px 0 60px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(6, 182, 212, 0.03));
  text-align: center;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Outfit', sans-serif;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1E293B;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Service Grid Layout */
section.service-section .service-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.service-featured-image {
  margin-bottom: 2rem;
}

.service-featured-image .image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(30, 41, 59, 0.1);
}

.service-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 350px;
  object-fit: cover;
}

/* Quick Info Card */
.quick-info-card {
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.quick-info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 1.25rem;
}

.quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-list li {
  font-size: 0.9rem;
  color: #1E293B;
  line-height: 1.6;
}

.quick-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

/* CTA Card Sidebar */
.cta-card-sidebar {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(6, 182, 212, 0.08));
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.cta-card-sidebar h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.75rem;
}

.cta-card-sidebar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

/* Service Content */
.service-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

.post-article {
  background: white;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1E293B;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-content-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.service-content-body h2,
.service-content-body h3,
.service-content-body h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #1E293B;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.service-content-body h2 {
  font-size: 1.8rem;
}

.service-content-body h3 {
  font-size: 1.4rem;
}

.service-content-body h4 {
  font-size: 1.1rem;
}

.service-content-body ul,
.service-content-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.service-content-body li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Contact Information Cards */
.service-content-body > div[style*="border-top"] {
  margin-top: 2rem;
  padding: 1.5rem 0;
  overflow-x: hidden;
}

.service-content-body > div[style*="border-top"] a,
.service-content-body > div[style*="border-top"] > div > a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-content-body > div[style*="border-top"] > div > div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Benefits Grid */
.service-benefits {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 16px;
  padding: 3rem 2.5rem;
}

.service-benefits h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 2rem;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: white;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Service Process */
.service-process {
  background: white;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 16px;
  padding: 3rem 2.5rem;
}

.service-process h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 2.5rem;
  text-align: center;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.step {
  text-align: center;
  min-width: 160px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 0.75rem;
}

.step h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

/* Final CTA Section */
.service-final-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(6, 182, 212, 0.05));
}

.cta-box {
  background: white;
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 0.75rem;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
}

/* Animations */
.animate-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Special Layout for Hizmetlerimiz Page (Post ID 147) */
body.postid-147 section.service-section .service-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem;
}

body.postid-147 .service-sidebar {
  display: none !important;
}

body.postid-147 .service-content {
  grid-column: 1 / -1;
}

body.postid-147 .entry-content .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section.service-section .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-steps {
    gap: 0;
  }

  .step-arrow {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .post-article {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  section.service-section .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-sidebar {
    order: 2;
  }

  .service-content {
    order: 1;
  }

  .service-benefits,
  .service-process {
    padding: 2rem 1.5rem;
  }

  .process-steps {
    flex-direction: column;
    gap: 0;
  }

  .step-arrow {
    margin: 0.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .service-hero {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .section {
    padding-top: 80px;
    padding-bottom: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}