/* ============================================================
   MEDISAGO — Kurumsal Site CSS (özel yazılmıştır, framework yok)
   Renk paleti, tipografi ve bileşenler tek dosyada organize edilmiştir.
============================================================ */

:root {
  --primary: #0B8C92;
  --primary-hover: #0A5F6F;
  --secondary: #0A2946;
  --accent: #4FAEB7;
  --bg: #F7FAFC;
  --border: #E5EDF2;
  --text: #233548;
  --success: #20B46A;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(10, 41, 70, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 41, 70, 0.10);
  --container: 1200px;
  --transition: all .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--secondary); font-weight: 800; line-height: 1.25; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 20px; }
p { color: var(--text); }

.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-header p { color: #5c718a; margin-top: 12px; font-size: 16px; }

/* Fade-in animasyonu (scroll ile main.js tarafından tetiklenir) */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Butonlar ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,140,146,.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-secondary { background: var(--white); color: var(--secondary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; }
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 64px; width: auto; object-fit: contain; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--secondary);
  border-radius: 8px;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(11,140,146,.08); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--secondary); }
.header-phone svg { flex-shrink: 0; }

.mobile-toggle { display: none; background: none; border: none; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2.5px; background: var(--secondary); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ---- Dil Seçici ---- */
.lang-switcher { position: relative; }
.lang-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--secondary);
  transition: var(--transition);
}
.lang-switcher-toggle:hover { border-color: var(--primary); }
.lang-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
}
.lang-switcher-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 6px; background: none; border: none; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--text); }
.lang-option:hover { background: var(--bg); color: var(--primary); }

/* Google Translate widget'ının kendi arayüzünü tamamen gizle, sadece kendi dil seçicimiz görünsün */
.goog-te-banner-frame,
.goog-te-gadget,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
#google_translate_element,
.skiptranslate:not(#google_translate_element) { display: none !important; }
.goog-te-gadget-icon { display: none !important; }
body { top: 0 !important; position: static !important; }
body > .skiptranslate { display: none !important; }

/* ============================================================
   HERO / SLIDER
============================================================ */
.hero-slider { position: relative; overflow: hidden; background: var(--secondary); }
.hero-slide {
  display: none;
  position: relative;
  min-height: 700px;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,41,70,.75) 0%, rgba(10,41,70,.35) 45%, rgba(10,41,70,0) 75%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 640px; padding: 40px 24px; }
.hero-content h1 { color: var(--white); margin-bottom: 18px; }
.hero-content p { color: rgba(255,255,255,.88); font-size: 17px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; transition: var(--transition); cursor: pointer; }
.hero-dot.active { background: var(--white); width: 28px; border-radius: 6px; }

/* ============================================================
   Hakkımızda özet
============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-text .eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.about-text p { margin-top: 16px; color: #5c718a; }
.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--secondary); }
.about-list li::before { content: '✓'; width: 24px; height: 24px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* ============================================================
   İstatistikler
============================================================ */
.stats-section { background: var(--secondary); padding: 56px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-number { font-size: 40px; font-weight: 800; color: var(--white); }
.stat-item .stat-label { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px; font-weight: 600; }

/* ============================================================
   Kartlar (kategori / hizmet / blog ortak grid yapı)
============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.category-card, .service-card, .blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card:hover, .service-card:hover, .blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.category-card .card-image, .blog-card .card-image { aspect-ratio: 4/3; overflow: hidden; }
.category-card .card-image img, .blog-card .card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.category-card:hover img, .blog-card:hover img { transform: scale(1.06); }
.category-card .card-body, .service-card .card-body, .blog-card .card-body { padding: 22px; }
.category-card h3, .blog-card h3 { font-size: 18px; margin-bottom: 8px; }
.category-card p, .blog-card p { color: #5c718a; font-size: 14px; }

.service-card .card-body { text-align: center; padding: 36px 24px; }
.service-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: #5c718a; font-size: 14.5px; }

.blog-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: #8697a8; margin-bottom: 10px; font-weight: 600; }
.blog-meta .blog-category { color: var(--primary); background: rgba(11,140,146,.08); padding: 3px 10px; border-radius: 20px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 13.5px; margin-top: 12px; }

/* ============================================================
   Neden MEDISAGO
============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { text-align: center; padding: 20px; }
.why-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--primary); }
.why-icon svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 17px; margin-bottom: 8px; }
.why-item p { color: #5c718a; font-size: 14px; }

/* ============================================================
   İletişim CTA
============================================================ */
.cta-section {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
  margin: 0 24px;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Breadcrumb
============================================================ */
.page-hero { background: var(--secondary); padding: 56px 0 40px; color: var(--white); }
.page-hero h1 { color: var(--white); }
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-top: 12px; }
.breadcrumb li { color: rgba(255,255,255,.65); }
.breadcrumb li a { color: rgba(255,255,255,.85); font-weight: 600; }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: rgba(255,255,255,.4); }
.breadcrumb-current { color: var(--accent) !important; }

/* Footer için farklı renk breadcrumb yok; sayfa içi listeleme sayfalarında açık tema breadcrumb */
.page-hero.light { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.page-hero.light h1 { color: var(--secondary); }
.page-hero.light .breadcrumb li { color: #8697a8; }
.page-hero.light .breadcrumb li a { color: var(--secondary); }

/* ============================================================
   Filtre / Liste sayfaları (ürün, hizmet, blog)
============================================================ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-chip { padding: 9px 18px; border-radius: 50px; border: 1px solid var(--border); font-weight: 600; font-size: 13.5px; color: var(--secondary); background: var(--white); transition: var(--transition); }
.filter-chip:hover, .filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); font-weight: 700; font-size: 13.5px; color: var(--secondary); transition: var(--transition); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ============================================================
   Ürün / Hizmet / Blog Detay
============================================================ */
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.detail-gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1/1; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.detail-gallery-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: var(--transition); }
.detail-gallery-thumbs img:hover, .detail-gallery-thumbs img.active { border-color: var(--primary); }

.detail-info .category-tag { display: inline-block; background: rgba(11,140,146,.1); color: var(--primary); font-weight: 700; font-size: 12.5px; padding: 5px 14px; border-radius: 50px; margin-bottom: 14px; }
.detail-info h1 { margin-bottom: 16px; }
.detail-info .short-desc { color: #5c718a; font-size: 16px; margin-bottom: 26px; }
.detail-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 12px 0; font-size: 14.5px; }
.specs-table td:first-child { font-weight: 700; color: var(--secondary); width: 40%; }
.specs-table td:last-child { color: #5c718a; }

.content-block { margin-top: 40px; line-height: 1.85; color: var(--text); }
.content-block h2, .content-block h3 { margin: 28px 0 14px; }
.content-block p { margin-bottom: 16px; }
.content-block img { border-radius: var(--radius-sm); margin: 20px 0; }

.blog-detail-header { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.blog-detail-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/7; }
.blog-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-detail-body { max-width: 760px; margin: 0 auto; }

/* ============================================================
   İletişim sayfası
============================================================ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon-box { width: 48px; height: 48px; border-radius: 12px; background: rgba(11,140,146,.08); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: #5c718a; font-size: 14.5px; }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: 30px; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: var(--secondary); }
.contact-form .form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14.5px;
  transition: var(--transition);
  background: var(--bg);
}
.contact-form .form-control:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(11,140,146,.1); }
.contact-form textarea.form-control { min-height: 130px; resize: vertical; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #FDECEC; color: #D64545; border: 1px solid #F5C6C6; }
.alert-success { background: #E7F9EF; color: var(--success); border: 1px solid #BEEBD0; }

/* ============================================================
   Footer
============================================================ */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 44px; margin-bottom: 16px; filter:
        drop-shadow(0 0 5px #fff)
        drop-shadow(0 0 10px rgba(255,255,255,.9))
        drop-shadow(0 0 18px rgba(255,255,255,.7)); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }
.footer-credit { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); font-size: 13px; transition: var(--transition); }
.footer-credit svg { flex-shrink: 0; opacity: .7; transition: var(--transition); }
.footer-credit strong { color: rgba(255,255,255,.75); font-weight: 700; }
.footer-credit:hover { color: var(--accent); }
.footer-credit:hover strong { color: var(--accent); }
.footer-credit:hover svg { opacity: 1; transform: translateX(2px); }

/* WhatsApp yüzen buton */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(32,180,106,.4);
  z-index: 90;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   404 sayfası
============================================================ */
.error-page { text-align: center; padding: 120px 24px; }
.error-page .error-code { font-size: 100px; font-weight: 800; color: var(--primary); line-height: 1; }
.error-page h1 { margin: 16px 0; }
.error-page p { color: #5c718a; margin-bottom: 30px; }

/* ============================================================
   Empty state
============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: #8697a8; grid-column: 1/-1; }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .mobile-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .grid-3 { grid-template-columns: 1fr; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 10px;
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-4, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 30px 20px; }
  .hero-slide { min-height: 460px; }
  .cta-section { padding: 44px 24px; margin: 0 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
