/* =====================================================
   HUKUK CEBİNDE - Ana CSS
   ===================================================== */

/* --- CSS Variables --- */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --secondary: #c9a84c;
  --secondary-dark: #a88635;
  --dark: #0f1f33;
  --text: #2c3e50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fb;
  --white: #ffffff;
  --border: #e8ecf0;
  --shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  --shadow-hover: 0 8px 32px rgba(30, 58, 95, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Bootstrap Overrides --- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* --- Header --- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  z-index: 1000;
}
.top-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
}
.main-nav {
  padding: 0.5rem 0;
}
.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.brand-name span {
  color: var(--secondary);
}
.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: var(--bg-light);
}
.nav-cta {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9rem;
}
.dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
}
.dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.breadcrumb {
  font-size: 0.85rem;
}
.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-item.active { color: var(--text-muted); }

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 5rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}
.hero-trust { display: flex; gap: 1.5rem; }
.trust-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: white;
  backdrop-filter: blur(10px);
}

/* --- Section Common --- */
.section-header { max-width: 600px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* --- Service Cards --- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  color: var(--text) !important;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
}
.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.service-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.service-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Why Us --- */
.why-list { display: flex; flex-direction: column; gap: 1.5rem; }
.why-item { display: flex; align-items: flex-start; gap: 1rem; }
.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 58, 95, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* --- Process --- */
.process-step { padding: 1.5rem; }
.process-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.process-icon {
  font-size: 2.5rem;
  color: var(--primary);
  display: block;
  margin: 0 auto;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.blog-card-img-link, .blog-card-img-wrap { height: 200px; overflow: hidden; }
.blog-card-img { height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-category-badge {
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.blog-title { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.blog-title a { color: var(--dark); text-decoration: none; transition: var(--transition); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: 0.875rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  font-size: 0.95rem;
}
.accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.04);
  box-shadow: none;
}
.accordion-button::after {
  filter: none;
}
.faq-category-tag {
  font-size: 0.7rem;
  background: var(--secondary);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  display: block;
  width: fit-content;
  margin: 0.5rem 1rem -0.5rem;
}

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}
.cta-title { font-size: 1.8rem; font-weight: 800; color: white; }
.cta-subtitle { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 0;
}
.page-hero-title { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 0.25rem; }
.page-hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1rem; }

/* --- Service Hero --- */
.service-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}
.service-hero-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; color: white; }
.service-hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.service-hero-icon { font-size: 3rem; color: rgba(255,255,255,0.7); }
.service-contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-hover);
}
.service-content h2, .service-content h3 { color: var(--dark); font-weight: 700; margin-top: 1.5rem; }
.service-content ul { padding-left: 1.5rem; }
.service-content li { margin-bottom: 0.5rem; color: var(--text); }
.other-services-list { list-style: none; padding: 0; margin: 0; }
.other-services-list li { border-bottom: 1px solid var(--border); }
.other-services-list a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.other-services-list a:hover { color: var(--primary); padding-left: 0.5rem; }
.related-post-card {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.related-post-card:hover { border-color: var(--primary); background: var(--bg-light); }

/* --- Article --- */
.blog-hero-img { max-height: 450px; overflow: hidden; }
.blog-hero-img img { width: 100%; height: 450px; object-fit: cover; }
.article-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); }
.article-excerpt { color: var(--text-muted); font-size: 1.1rem; }
.article-meta span { font-size: 0.875rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.5rem 0 0.75rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content p { margin-bottom: 1.25rem; }
.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text);
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}
.article-cta-block {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cta-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-icon { font-size: 2rem; color: var(--primary); flex-shrink: 0; }

/* --- Sidebar --- */
.sidebar-sticky { position: sticky; top: 80px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 1rem; font-weight: 700; color: var(--dark); padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary); margin-bottom: 1rem; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { border-bottom: 1px solid var(--border); }
.category-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.category-list a:hover, .category-list a.active { color: var(--primary); font-weight: 600; }
.featured-post-thumb { width: 60px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-post-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.sidebar-cta h5 { color: white; }
.sidebar-cta p { color: rgba(255,255,255,0.85); }

/* --- Contact --- */
.contact-form-card, .contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item i { font-size: 1.3rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.map-container { height: 250px; }
.map-container iframe { width: 100%; height: 100%; }

/* --- Static Content --- */
.static-content h2, .static-content h3 { color: var(--dark); font-weight: 700; margin-top: 2rem; }
.static-content ul, .static-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.static-content li { margin-bottom: 0.4rem; }
.static-content p { margin-bottom: 1.25rem; }

/* --- Team --- */
.team-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); height: 100%; }
.team-photo img { width: 100px; height: 100px; object-fit: cover; border: 3px solid var(--primary); }
.team-photo-placeholder {
  width: 100px;
  height: 100px;
  background: var(--bg-light);
  border: 3px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* --- Landing --- */
.landing-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 4rem 0;
}
.landing-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: white;
}
.landing-feature { padding: 1rem; }

/* --- Footer --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); }
.footer-top { padding: 3rem 0 2rem; }
.footer-brand .brand-name { font-size: 1.4rem; font-weight: 800; color: white; }
.footer-brand .brand-name span { color: var(--secondary); }
.footer-heading { font-size: 0.9rem; font-weight: 700; color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-sticky-cta .btn {
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Blog filter bar --- */
.blog-filter-bar { margin-bottom: 1.5rem; }

/* --- Buttons extra --- */
.btn-xs {
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* --- Pagination --- */
.page-link { color: var(--primary); border-color: var(--border); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-link:hover { color: var(--primary-light); }

/* --- Forms --- */
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.15);
}
.form-control, .form-select { border-radius: var(--radius-sm); }

/* --- Mobile padding for sticky CTA --- */
@media (max-width: 991.98px) {
  body { padding-bottom: 60px; }
  .hero-section { padding: 3rem 0; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title { font-size: 1.5rem; }
  .hero-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
  .hero-trust { gap: 0.75rem; }
  .service-card { padding: 1.25rem; }
}
