/* ============================================================
   Apex Hukuk – Kurumsal Hukuk Bürosu
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1A2744;
  --navy-light: #243460;
  --gold:       #B8860B;
  --gold-light: #D4A017;
  --gold-pale:  #FDF6E3;
  --gray:       #64748B;
  --gray-light: #F8FAFC;
  --border:     #E2E8F0;
  --white:      #FFFFFF;
  --dark:       #0F172A;
  --font:       'DM Sans', system-ui, sans-serif;
  --font-d:     'DM Serif Display', Georgia, serif;
  --r:          8px;
  --r-lg:       16px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 1.3rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1rem; font-weight: 800; color: var(--navy); letter-spacing: 2px; }
.logo-sub  { font-size: 0.68rem; color: var(--gray); font-weight: 500; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav-link {
  text-decoration: none; color: var(--gray);
  font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: 6px; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: rgba(26,39,68,0.06); }
.nav-link.active { color: var(--navy); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 6px;
  font-family: var(--font); font-size: 0.9rem;
  font-weight: 700; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.22s;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,39,68,0.25); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,0.5); color: white; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1.5px solid var(--border);
  border-radius: 6px; cursor: pointer; padding: 7px;
}
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(26,39,68,0.75) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; padding: 80px 0; }
.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-light); background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.3);
  padding: 5px 14px; border-radius: 4px; margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1; color: white; margin-bottom: 18px;
}
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 20px 28px;
  width: fit-content;
}
.trust-item { text-align: center; padding: 0 24px; }
.trust-item strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold-light); }
.trust-item span { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.trust-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* ── PRACTICE AREAS ── */
.practice { padding: 88px 0; background: var(--gray-light); }

.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); background: var(--gold-pale);
  padding: 5px 14px; border-radius: 4px; margin-bottom: 12px;
}
.section-head h2 { font-family: var(--font-d); font-size: 2.4rem; color: var(--dark); line-height: 1.2; }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.practice-card {
  background: white; border-radius: var(--r-lg);
  padding: 28px 24px; border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: all 0.3s; display: block; position: relative;
}
.practice-card:hover { border-color: var(--navy); box-shadow: 0 8px 32px rgba(26,39,68,0.1); transform: translateY(-3px); }
.pc-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.practice-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.practice-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.pc-arrow { font-size: 1.1rem; color: var(--gold); font-weight: 700; transition: transform 0.2s; }
.practice-card:hover .pc-arrow { transform: translateX(4px); }

/* ── WHY US ── */
.why-us { padding: 88px 0; background: white; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.why-img { position: relative; }
.why-img img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--r-lg); }
.why-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--navy); color: white;
  border-radius: var(--r-lg); padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(26,39,68,0.3);
}
.why-badge strong { display: block; font-size: 1rem; font-weight: 800; color: var(--gold-light); margin-bottom: 4px; }
.why-badge span { font-size: 0.78rem; color: rgba(255,255,255,0.7); line-height: 1.4; }

.why-content h2 { font-family: var(--font-d); font-size: 2.2rem; color: var(--dark); line-height: 1.2; margin-bottom: 16px; }
.why-content > p { font-size: 1rem; color: var(--gray); line-height: 1.75; margin-bottom: 28px; }

.why-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.why-item { display: flex; align-items: flex-start; gap: 14px; }
.wi-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-pale); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0; margin-top: 2px;
}
.why-item strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.why-item p { font-size: 0.85rem; color: var(--gray); }

/* ── TESTIMONIALS ── */
.testimonials { padding: 88px 0; background: var(--navy); }
.section-head.light h2 { color: white; }
.eyebrow-light {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-light); background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.2);
  padding: 5px 14px; border-radius: 4px; margin-bottom: 12px;
}

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.testi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 28px;
  transition: background 0.3s;
}
.testi-card:hover { background: rgba(255,255,255,0.1); }
.testi-stars { color: var(--gold-light); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { font-size: 0.93rem; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.ta-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(184,134,11,0.2); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.88rem; color: white; font-weight: 700; }
.testi-author span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ── CTA ── */
.cta-section { background: var(--gold); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--font-d); font-size: 2rem; color: white; margin-bottom: 8px; }
.cta-inner p { font-size: 1rem; color: rgba(255,255,255,0.85); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-gold { background: white; color: var(--gold); }
.cta-actions .btn-gold:hover { background: var(--gold-pale); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 0 56px;
}
.page-hero .eyebrow { background: rgba(184,134,11,0.15); color: var(--gold-light); border: 1px solid rgba(184,134,11,0.2); margin-bottom: 14px; }
.page-hero h1 { font-family: var(--font-d); font-size: clamp(2.2rem, 4vw, 3.4rem); color: white; line-height: 1.15; margin-bottom: 14px; }
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 500px; line-height: 1.7; }

/* ── SERVICES DETAIL ── */
.services-detail { padding: 80px 0; }
.svc-detail-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-bottom: 80px;
}
.svc-detail-item.reverse { direction: rtl; }
.svc-detail-item.reverse > * { direction: ltr; }
.sdi-img img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--r-lg); }
.sdi-content .eyebrow { margin-bottom: 10px; }
.sdi-content h2 { font-family: var(--font-d); font-size: 2rem; color: var(--dark); margin-bottom: 14px; }
.sdi-content p { font-size: 0.97rem; color: var(--gray); line-height: 1.75; margin-bottom: 20px; }
.sdi-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.sdi-list li { font-size: 0.9rem; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.sdi-list li::before { content: '✓'; color: var(--gold); font-weight: 800; flex-shrink: 0; }

/* ── TEAM PAGE ── */
.team-page { padding: 72px 0; }
.team-grid-lg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card-lg {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; background: white; border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.3s;
}
.team-card-lg:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.tc-img img { width: 200px; height: 100%; object-fit: cover; display: block; }
.tc-info { padding: 24px 20px 24px 0; }
.tc-info h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.tc-title { font-size: 0.78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 10px; }
.tc-info p { font-size: 0.85rem; color: var(--gray); line-height: 1.65; margin-bottom: 14px; }
.tc-areas { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-areas span { font-size: 0.72rem; font-weight: 600; background: var(--gold-pale); color: var(--gold); padding: 3px 10px; border-radius: 4px; }

.join-section { background: var(--gray-light); padding: 64px 0; border-top: 1px solid var(--border); }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.join-inner h2 { font-family: var(--font-d); font-size: 2rem; color: var(--dark); margin-bottom: 8px; }
.join-inner p { font-size: 1rem; color: var(--gray); }

/* ── CONTACT PAGE ── */
.contact-page { padding: 60px 0 80px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: start; }

.contact-sidebar h3 { font-family: var(--font-d); font-size: 1.4rem; color: var(--dark); margin-bottom: 20px; }
.office-card { background: var(--gray-light); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--border); }
.office-card strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.office-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

.contact-form-wrap h2 { font-family: var(--font-d); font-size: 2rem; color: var(--dark); margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r); font-family: var(--font);
  font-size: 0.92rem; color: var(--dark); background: white;
  outline: none; resize: vertical; transition: border-color 0.2s; appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,39,68,0.08);
}
.form-note { font-size: 0.8rem; color: var(--gray); display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--gray-light); border-radius: var(--r); }
.form-success { text-align: center; padding: 48px 24px; }
.form-success span { font-size: 3rem; display: block; margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-d); font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.form-success p { color: var(--gray); }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; line-height: 1.65; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; gap: 40px; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4 { font-size: 0.78rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.footer-nav a { font-size: 0.88rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-img { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .svc-detail-item { grid-template-columns: 1fr; }
  .svc-detail-item.reverse { direction: ltr; }
  .team-grid-lg { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .btn-primary { display: none; }
  .hamburger { display: flex; }
  .practice-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: 16px; }
  .trust-sep { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .team-card-lg { grid-template-columns: 1fr; }
  .tc-img img { width: 100%; height: 200px; }
  .footer-nav { flex-direction: column; gap: 24px; }
  .cta-inner, .join-inner { flex-direction: column; text-align: center; }
}
