/* Renkler ve fontlar site-header.php içinde :root üzerine
   veritabanından (site_settings tablosu) enjekte edilir.
   Burada sadece var(--...) referansları kullanılır. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body), -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 { font-family: var(--font-heading), Georgia, serif; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.nav-link { color: #E8E2D6; transition: color .15s; font-size: 14.5px; font-weight: 500; }
.nav-link:hover { color: var(--accent); }
.nav-link-light { color: rgba(255,255,255,0.9); }
.nav-link-light:hover { color: var(--accent); }

.footer-link { color: #B9C0CC; font-size: 13.5px; }
.footer-link:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 2px; font-weight: 600; padding: 14px 30px; font-size: 14.5px; border: none; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-accent { border: 1px solid var(--accent); color: var(--accent); background: transparent; }

.card { transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 28px rgba(16,32,59,0.10); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
}
.site-header.solid { position: relative; background: var(--navy); }

.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 26px 40px; max-width: 1280px; margin: 0 auto; }

.header-topbar { position: relative; z-index: 3; }
.header-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px 40px 0; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); font-size: 12.5px; transition: color .15s; }
.topbar-link:hover { color: var(--accent); }
.site-header.solid .topbar-link { color: rgba(255,255,255,0.7); }
.logo img { height: 52px; width: auto; }
.logo-fallback { color: rgba(255,255,255,0.75); font-family: var(--font-heading), serif; font-size: 22px; font-weight: 700; }
nav.main-nav { display: flex; gap: 34px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%); height: clamp(320px, 56vw, 620px); }
.hero-compact { height: clamp(220px, 30vw, 360px); }
.hero-compact .hero-inner { padding: 90px 40px 24px; gap: 12px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-slide { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,28,0.55) 0%, rgba(6,13,28,0.25) 35%, rgba(6,13,28,0.65) 100%); z-index: 1; }
.hero-inner { box-sizing: border-box; position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 110px 40px 30px; height: 100%; justify-content: center; }
.hero-inner h1 { font-size: 44px; line-height: 1.25; color: #fff; font-weight: 600; }
.hero-inner p { font-size: 16px; line-height: 1.75; color: #D8DCE6; max-width: 620px; }
.hero-compact .hero-inner h1 { font-size: 28px; }
.hero-logo-mark { height: 52px; width: auto; opacity: 0.95; margin-bottom: 4px; }
.hero-compact .hero-logo-mark { height: 40px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dot { width: 22px; height: 3px; background: rgba(255,255,255,0.35); border: none; padding: 0; cursor: pointer; border-radius: 2px; }
.hero-dot.active { background: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 90px 40px; }
.section-light { background: var(--bg); }
.section-dark { background: var(--navy); }
.section-white { background: #fff; }
.section-title { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 56px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase; }

.stat-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding: 56px 40px 0; }
.stat-box { background: var(--navy); border-radius: 4px; padding: 30px 24px; text-align: center; }
.stat-box .num { font-family: var(--font-heading), serif; font-size: 40px; font-weight: 700; color: var(--accent); }
.stat-box .label { font-size: 13px; color: #C3CAD9; margin-top: 6px; letter-spacing: 0.03em; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }

.team-avatar-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.team-avatar { width: 150px; height: 150px; border-radius: 50%; background: var(--navy2); border: 2px solid #2C4772; object-fit: cover; }

.practice-card { position: relative; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: var(--navy2); display: flex; align-items: flex-end; }
.practice-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.practice-card .grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,18,36,0.85) 0%, rgba(10,18,36,0.15) 60%); }
.practice-card .label { position: relative; padding: 16px; color: #fff; font-size: 14.5px; font-weight: 600; }

.article-card { background: #fff; border: 1px solid #ECE7DC; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.article-card .cover { width: 100%; aspect-ratio: 4/3; background: #EFEAE0; object-fit: cover; }
.article-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Admin-authored rich content (article / practice-area body) ---------- */
.rich-content { font-size: 15.5px; line-height: 1.9; color: #3A4256; }
.rich-content h2 { font-size: 24px; color: var(--navy); font-weight: 600; margin: 32px 0 14px; font-family: var(--font-heading), Georgia, serif; }
.rich-content h3 { font-size: 19px; color: var(--navy); font-weight: 600; margin: 26px 0 12px; font-family: var(--font-heading), Georgia, serif; }
.rich-content h4, .rich-content h5 { font-size: 16px; color: var(--navy); font-weight: 600; margin: 20px 0 10px; }
.rich-content p { margin: 0 0 16px; }
.rich-content ul, .rich-content ol { margin: 0 0 16px; padding-left: 22px; }
.rich-content li { margin-bottom: 6px; }
.rich-content a { color: var(--accent); text-decoration: underline; }
.rich-content blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 4px 0 4px 18px; color: #5A6478; font-style: italic; }
.rich-content img { border-radius: 4px; margin: 16px 0; }
.rich-content b, .rich-content strong { color: var(--navy); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #0C1930; padding: 60px 40px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #223052; max-width: 1200px; margin: 0 auto; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 12px; }

/* ---------- Sticky buttons ---------- */
.sticky-actions { position: fixed; right: 0; bottom: 90px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; }
.sticky-actions a { padding: 14px 22px; font-size: 14px; font-weight: 700; border-radius: 4px 0 0 4px; box-shadow: -4px 4px 16px rgba(0,0,0,0.18); display: flex; align-items: center; gap: 8px; }

/* ---------- Contact / forms ---------- */
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #DCD6C7; border-radius: 2px; padding: 12px 14px; font-size: 14px; font-family: var(--font-body), sans-serif; background: var(--bg); box-sizing: border-box; }
.contact-form label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form .field { margin-bottom: 18px; }
.contact-form .row { display: flex; gap: 16px; }
.contact-form .row .field { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  nav.main-nav { display: none; }
  .header-topbar-inner { padding: 10px 20px 0; gap: 12px; flex-wrap: wrap; }
  .topbar-link span { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 90px 20px 24px; }
  .hero-inner h1 { font-size: 26px; }
  .section { padding: 56px 20px; }
}
