/* ============================================
   ATLAS HUKUK BÜROSU — Shared Stylesheet
   ============================================ */

:root {
  --bg-main:    #181511;
  --bg-dark:    #121212;
  --bg-surface: #1E1E1E;
  --primary:    #f99e1f;
  --accent:     #D95D39;
  --text:       #F5F5F5;
  --muted:      #8A8A8A;
  --border:     #2e2e2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
  background-color: var(--bg-main);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Page wrapper: leaves room for bottom nav on mobile ── */
.page-content { padding-bottom: 80px; }
@media (min-width: 768px) { .page-content { padding-bottom: 0; } }

/* ============================================
   TOP NAV (desktop)
   ============================================ */
.top-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 21, 17, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.top-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.top-nav__logo span.logo-icon {
  color: var(--primary);
  font-size: 22px;
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.top-nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.top-nav__links a:hover,
.top-nav__links a.active { color: var(--text); }

.top-nav__cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1.25rem;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: opacity 0.2s;
}

.top-nav__cta:hover { opacity: 0.88; }

@media (min-width: 768px) { .top-nav { display: block; } }

/* ============================================
   MOBILE HEADER (mobile only)
   ============================================ */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: rgba(24, 21, 17, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.mobile-header__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mobile-header__title em {
  color: var(--primary);
  font-style: normal;
}

@media (min-width: 768px) { .mobile-header { display: none; } }

/* ============================================
   BOTTOM NAV (mobile only)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
  padding: 6px 0;
  transition: color 0.2s;
}

.bottom-nav__item .material-symbols-outlined { font-size: 22px; }
.bottom-nav__item.active,
.bottom-nav__item:hover { color: var(--primary); }

@media (min-width: 768px) { .bottom-nav { display: none; } }

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(249, 158, 31, 0.35);
  z-index: 50;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.whatsapp-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(249, 158, 31, 0.5); }
.whatsapp-btn:active { transform: scale(0.95); }
.whatsapp-btn .material-symbols-outlined { color: var(--bg-dark); font-size: 26px; font-variation-settings: 'FILL' 1; }

@media (min-width: 768px) { .whatsapp-btn { bottom: 1.5rem; } }

/* ============================================
   SECTION
   ============================================ */
.section {
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section {
    padding: 3.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    border-top: none;
  }

  .section-bordered {
    border-top: 1px solid var(--border);
    max-width: 100%;
    padding: 3.5rem 0;
  }

  .section-bordered .container { padding: 0 2rem; }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) { .section-title { font-size: 1.75rem; } }

.section-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: opacity 0.2s;
}

.section-link:hover { opacity: 0.8; }
.section-link .material-symbols-outlined { font-size: 16px; }

/* ============================================
   CHIP
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.chip:hover { border-color: var(--primary); }

/* ============================================
   PRACTICE AREA CARD
   ============================================ */
.practice-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.375rem;
  padding: 1rem 1.125rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}

.practice-card:hover { background: #191919; }
.practice-card.open {
  border-left-color: var(--primary);
  background: #191612;
  box-shadow: 0 0 0 1px rgba(249,158,31,0.15);
}

.practice-card__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.practice-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(217, 93, 57, 0.12);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.practice-card__icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--accent);
  font-variation-settings: 'FILL' 1;
}

.practice-card.open .practice-card__icon {
  background: rgba(249, 158, 31, 0.12);
}
.practice-card.open .practice-card__icon .material-symbols-outlined {
  color: var(--primary);
}

.practice-card__title {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
}

.practice-card__arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.25s;
}

.practice-card.open .practice-card__arrow { transform: rotate(90deg); color: var(--primary); }

.practice-card__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  transition: max-height 0.32s ease, opacity 0.25s ease, margin-top 0.32s ease, padding-top 0.32s ease;
}

.practice-card.open .practice-card__body {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.practice-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

@media (min-width: 1024px) {
  .practice-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================
   DICTIONARY
   ============================================ */
.search-wrap { position: relative; }

.search-wrap .material-symbols-outlined {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--muted); }

.dict-letter {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.25rem 0;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.625rem;
}

.dict-term {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem 1.125rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.dict-term:hover { border-color: #444; }

.dict-term h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.dict-term p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.dict-term--hidden { display: none; }

/* Featured term */
.featured-term {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.tag {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
   CONTACT / FORM
   ============================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--muted); }

select.form-input { cursor: pointer; }
select.form-input option { background: var(--bg-surface); }

textarea.form-input { resize: vertical; min-height: 120px; }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

.info-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.info-row .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  font-variation-settings: 'FILL' 1;
}

.info-row__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.info-row__value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ============================================
   HERO (index)
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  padding: 2.5rem 1.5rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(18,18,18,0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px)  { .hero__title { font-size: 3rem; line-height: 1.15; } }
@media (min-width: 768px)  {
  .hero { min-height: 640px; padding: 3rem 2rem; }
  .hero__title { font-size: 3.75rem; max-width: 640px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 720px; padding: 4rem 2rem; }
  .hero__title { font-size: 4.5rem; }
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 2rem;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: opacity 0.2s;
  box-shadow: 0 4px 20px rgba(249, 158, 31, 0.3);
}

.hero__cta:hover { opacity: 0.9; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 2.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .page-hero {
    padding: 3rem 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: none;
  }
}

.page-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) { .page-hero__title { font-size: 2.5rem; } }

.page-hero__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
}

.footer__logo {
  font-weight: 800;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer__logo em { color: var(--primary); font-style: normal; }

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  list-style: none;
}

@media (min-width: 768px) { .footer__links { margin-top: 0; } }

.footer__links a {
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--primary); }

.footer__disclaimer {
  width: 100%;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .footer { flex-wrap: wrap; }
  .footer__disclaimer { text-align: left; }
}

/* ============================================
   STAT STRIP
   ============================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 0 1rem;
}

@media (min-width: 768px) { .stat-strip { margin: 0; } }

.stat-strip__item {
  background: var(--bg-dark);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-strip__value {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-strip__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
