/* ============================================================
   Prof. Dr. Akın Akakın — Ana Stil Dosyası
   Bootstrap 5.3 üzerine custom override
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* PRIMARY — Koyu Mavi */
  --color-primary: #2b375d;
  --color-primary-rgb: 43, 55, 93;
  --color-primary-light: #3a4a7a;
  --color-primary-dark: #1e2844;

  /* TEXT — Koyu Gri */
  --color-text: #4c4e51;
  --color-text-rgb: 76, 78, 81;
  --color-text-light: #6b6d70;
  --color-text-muted: #8a8c8f;

  /* LIGHT GRAY */
  --color-light-gray: #d1d5e3;
  --color-light-gray-rgb: 209, 213, 227;
  --color-bg-light: #eef0f5;
  --color-bg-lighter: #f5f6f9;

  /* YARDIMCI */
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-accent: #4a6fa5;
  --color-success: #2d8a4e;
  --color-error: #c0392b;
  --color-warning: #e67e22;
  --color-whatsapp: #25D366;

  /* FONT */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Bootstrap Override ────────────────────────────────────── */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Tipografi ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--color-primary); font-family: var(--font-primary); }
h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 2.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }

.lead { font-size: 1.125rem; color: var(--color-text); }
.text-muted-custom { color: var(--color-text-muted) !important; }

a { color: var(--color-accent); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--color-primary); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-main {
  background-color: var(--color-primary) !important;
  padding: .75rem 0;
  transition: all .3s ease;
  z-index: 1050;
}
.navbar-main.scrolled {
  padding: .5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.navbar-main .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white) !important;
  letter-spacing: 0.01em;
}
.navbar-main .navbar-brand span {
  display: block;
  font-size: .75rem;
  font-weight: 300;
  opacity: .85;
  letter-spacing: 0.05em;
}
.navbar-main .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: .5rem 1rem !important;
  transition: color .3s ease;
  position: relative;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #fff !important;
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-main .btn-nav-cta {
  background-color: rgba(255,255,255,.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: all .3s ease;
}
.navbar-main .btn-nav-cta:hover {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
}
.navbar-toggler {
  border-color: rgba(255,255,255,.3) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Top bar */
.top-bar {
  background-color: var(--color-primary-dark);
  padding: .35rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.top-bar a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .3s;
}
.top-bar a:hover { color: #fff; }
.top-bar .bi { font-size: .85rem; }

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 0;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero/hero-bg.webp') center/cover no-repeat;
  opacity: .15;
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.hero-section .hero-subtitle {
  color: rgba(255,255,255,.9);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: .75rem;
}
.hero-section .hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-section .hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-section .hero-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 500;
}
.hero-section .hero-badge .bi {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
}
.hero-image-wrapper {
  position: relative;
}
.hero-image-wrapper img {
  max-height: 500px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
}
.hero-image-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid rgba(255,255,255,.15);
  border-radius: 50%;
  z-index: -1;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid var(--color-white);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--color-white);
}
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background-color: transparent;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* Dark background buttons */
.btn-site-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-site-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
}
.btn-site-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background-color: transparent;
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-site-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9375rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #fff;
}

/* ── Section Layouts ───────────────────────────────────────── */
.section-padding { padding: 5rem 0; }
.section-light { background-color: var(--color-bg-light); }
.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--color-white); }
.section-dark .text-muted-custom { color: rgba(255,255,255,.7) !important; }
.section-title {
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
}
.section-subtitle-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Treatment Cards ───────────────────────────────────────── */
.treatment-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(var(--color-primary-rgb), .12);
}
.treatment-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  font-size: 1.5rem;
}
.treatment-card .card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.treatment-card .card-text {
  font-size: .9375rem;
  color: var(--color-text);
  line-height: 1.7;
  flex-grow: 1;
}
.treatment-card .card-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: .875rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .3s ease;
}
.treatment-card:hover .card-link { gap: .65rem; }

/* ── About Section ─────────────────────────────────────────── */
.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.about-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: var(--color-primary);
  padding: 3.5rem 0;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.02em;
}

/* ── Features Section ──────────────────────────────────────── */
.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
}
.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-primary);
  font-size: 1.75rem;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.feature-text {
  font-size: .9375rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonial-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  height: 100%;
}
.testimonial-card .stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-card .author {
  font-size: .85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb-section {
  background-color: var(--color-bg-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-light-gray);
}
.breadcrumb-section .breadcrumb {
  margin-bottom: 0;
  font-size: .85rem;
}
.breadcrumb-section .breadcrumb-item a { color: var(--color-accent); }
.breadcrumb-section .breadcrumb-item.active { color: var(--color-text-muted); }

/* ── Page Hero (Inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* ── Accordion (SSS) ───────────────────────────────────────── */
.accordion-custom .accordion-button {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: transparent;
  box-shadow: none;
}
.accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--color-bg-lighter);
  color: var(--color-primary);
}
.accordion-custom .accordion-button:focus {
  box-shadow: none;
  border-color: var(--color-light-gray);
}
.accordion-custom .accordion-body {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer-main {
  background-color: var(--color-primary);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer-main h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main ul li { margin-bottom: .5rem; }
.footer-main ul li a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  transition: color .3s;
}
.footer-main ul li a:hover { color: #fff; }
.footer-main .bi { margin-right: .35rem; }
.footer-bottom {
  background-color: var(--color-primary-dark);
  padding: 1rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ── Sticky WhatsApp ───────────────────────────────────────── */
.whatsapp-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}
.whatsapp-sticky svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ── Form Styles ───────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--color-primary-rgb), .15);
}
.form-label {
  font-weight: 500;
  color: var(--color-text);
  font-size: .9rem;
  margin-bottom: .35rem;
}

/* ── Hospitals ─────────────────────────────────────────────── */
.hospital-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow .3s ease;
  height: 100%;
}
.hospital-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.hospital-card .hospital-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.hospital-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.hospital-card p { font-size: .85rem; color: var(--color-text-light); margin: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section { min-height: auto; padding: 5rem 0 3rem; text-align: center; }
  .hero-section h1 { font-size: 2.25rem; }
  .hero-section .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-section .hero-badges { justify-content: center; }
  .hero-image-wrapper { margin-top: 2.5rem; }
  .hero-image-wrapper img { max-height: 350px; }
  .hero-image-decoration { display: none; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }
  body { font-size: 15px; }
  .section-padding { padding: 3.5rem 0; }
  .hero-section h1 { font-size: 1.875rem; }
  .stat-number { font-size: 2rem; }
  .navbar-main .nav-link { padding: .65rem 0 !important; }
  .navbar-main .nav-link::after { display: none; }
}

@media (max-width: 575.98px) {
  .hero-section { padding: 4rem 0 2.5rem; }
  .hero-section h1 { font-size: 1.625rem; }
  .hero-section .hero-subtitle { font-size: 1.05rem; }
  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }
}

/* ── Utility Classes ───────────────────────────────────────── */
.text-primary-custom { color: var(--color-primary) !important; }
.bg-primary-custom { background-color: var(--color-primary) !important; }
.bg-light-custom { background-color: var(--color-bg-light) !important; }
.rounded-custom { border-radius: 12px !important; }
.shadow-custom { box-shadow: 0 8px 32px rgba(0,0,0,.08) !important; }
