/* ============================================
   İcra Kaldır - Main Stylesheet
   ============================================ */

:root {
  /* Primary Colors */
  --primary-color: #1a3a52;
  --accent-color: #d4af37;
  --text-dark: #333333;
  --text-light: #999999;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  
  /* Status Colors */
  --success: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  
  /* Spacing */
  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;
  
  /* Border Radius */
  --border-radius: 8px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ============================================
   Reset and Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--md);
}

h1 {
  font-size: 48px;
  color: var(--primary-color);
}

h2 {
  font-size: 36px;
  color: var(--primary-color);
}

h3 {
  font-size: 28px;
  color: var(--primary-color);
}

h4 {
  font-size: 24px;
  color: var(--primary-color);
}

h5 {
  font-size: 20px;
  color: var(--primary-color);
}

h6 {
  font-size: 18px;
  color: var(--primary-color);
}

p {
  margin-bottom: var(--md);
  color: var(--text-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* ============================================
   Header and Navigation
   ============================================ */

header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--xl);
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent-color);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 101;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: var(--md);
  color: var(--text-dark);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
  color: var(--accent-color);
}

/* ============================================
   Mobile Navigation Toggle Button
   ============================================ */

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-line {
  width: 28px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-toggle-btn.is-active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle-btn.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.is-active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Mobile Navigation Overlay
   ============================================ */

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 58, 82, 0.98);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  display: flex;
  opacity: 1;
}

.nav-overlay-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--xl);
  position: relative;
}

.nav-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 48px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-links {
  list-style: none;
  text-align: center;
  margin-bottom: var(--xl);
}

.nav-overlay-links li {
  margin-bottom: var(--md);
}

.nav-overlay-link {
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: var(--md);
  position: relative;
}

.nav-overlay-link:hover {
  color: var(--accent-color);
  transform: translateX(10px);
}

/* Hizmet linklerine işaret ekle */
.nav-overlay-links li:nth-child(4) .nav-overlay-link::before,
.nav-overlay-links li:nth-child(5) .nav-overlay-link::before,
.nav-overlay-links li:nth-child(6) .nav-overlay-link::before,
.nav-overlay-links li:nth-child(7) .nav-overlay-link::before {
  content: '› ';
  color: var(--accent-color);
  font-size: 28px;
  margin-right: 8px;
  font-weight: 700;
}

.nav-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: var(--md);
  width: 100%;
  max-width: 300px;
}

.nav-overlay-btn {
  padding: var(--md) var(--lg);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.nav-overlay-btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.nav-overlay-btn-whatsapp:hover {
  background-color: #1fa857;
  transform: scale(1.05);
}

.nav-overlay-btn-call {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.nav-overlay-btn-call:hover {
  background-color: #c9a227;
  transform: scale(1.05);
}



/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.65), rgba(26, 58, 82, 0.65)),
              url('../img/icra-hukuk.jpg') center/cover !important;
  background-attachment: fixed;
  background-blend-mode: overlay;
  color: var(--white);
  padding: 100px var(--lg);
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: 56px;
  margin-bottom: var(--md);
}

.hero p {
  color: var(--white);
  font-size: 20px;
  margin-bottom: var(--xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--md) var(--xl);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #c9a227;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0f2438;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #1fa857;
}

.btn-call {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-call:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-small {
  padding: var(--sm) var(--md);
  font-size: 14px;
}

/* ============================================
   Container and Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--lg);
}

.section {
  padding: var(--xxl) var(--lg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--xxl);
}

.section-title h2 {
  margin-bottom: var(--md);
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Grid System
   ============================================ */

.grid {
  display: grid;
  gap: var(--lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
  background-color: var(--white);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--bg-light);
}

.service-card-content {
  padding: var(--lg);
}

.service-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--md);
}

.service-card-description {
  color: var(--text-light);
  margin-bottom: var(--lg);
  font-size: 14px;
  line-height: 1.6;
}

.service-card-cta {
  display: flex;
  gap: var(--md);
  flex-wrap: wrap;
}

.service-card-cta a,
.service-card-cta button {
  flex: 1;
  min-width: 100px;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: var(--lg);
}

label {
  display: block;
  margin-bottom: var(--sm);
  font-weight: 600;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: var(--md);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--error);
  font-size: 14px;
  margin-top: var(--sm);
  display: none;
}

.form-error.show {
  display: block;
}

input.error,
textarea.error {
  border-color: var(--error);
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: var(--lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--lg);
  display: none;
}

.form-success.show {
  display: block;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--xxl) var(--lg);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xl);
  margin-bottom: var(--xl);
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: var(--md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ============================================
   Floating WhatsApp Icon
   ============================================ */

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  z-index: 50;
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: #1fa857;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
  padding: var(--lg);
  background-color: var(--bg-light);
  margin-bottom: var(--xl);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: var(--md);
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-list li {
  color: var(--text-light);
}

.breadcrumb-list a {
  color: var(--primary-color);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: var(--md);
  color: var(--text-light);
}

/* ============================================
   Utilities
   ============================================ */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-md {
  margin-top: var(--md);
}

.mt-lg {
  margin-top: var(--lg);
}

.mt-xl {
  margin-top: var(--xl);
}

.mb-md {
  margin-bottom: var(--md);
}

.mb-lg {
  margin-bottom: var(--lg);
}

.mb-xl {
  margin-bottom: var(--xl);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
