/* ============================================================
   İMG Hukuk ve Danışmanlık — imghukuk.com.tr
   Design tokens + components (İMG Hukuk Design System)
   ============================================================ */

:root {
  /* Brand orange (from logo mark) */
  --orange-50:  #FDF3E7;
  --orange-100: #FAE3C8;
  --orange-200: #F5C48D;
  --orange-300: #F0A452;
  --orange-400: #ED8F33;
  --orange-500: #E97E1C;
  --orange-600: #CF6A10;
  --orange-700: #A9560D;
  --orange-800: #7E400B;

  /* Warm neutrals */
  --gray-25:  #FCFBFA;
  --gray-50:  #F7F5F3;
  --gray-100: #EFECE8;
  --gray-200: #E0DCD6;
  --gray-300: #C6C1BA;
  --gray-400: #A39E97;
  --gray-500: #8A8580;
  --gray-600: #6B6660;
  --gray-700: #4D4943;
  --gray-800: #33302B;
  --gray-900: #211F1B;

  /* Deep slate */
  --slate-100: #E8EDF1;
  --slate-300: #A9BBC9;
  --slate-500: #4E6B80;
  --slate-700: #2E4557;
  --slate-900: #1C2C39;

  /* Semantic */
  --green-600: #2F7D4F;
  --green-100: #E3F1E8;
  --red-600:   #B3372B;
  --red-100:   #F9E7E4;
  --yellow-600:#9A6B14;
  --yellow-100:#F8EFDA;

  /* Aliases */
  --text-heading: var(--gray-900);
  --text-body: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-link: var(--orange-600);
  --text-link-hover: var(--orange-700);
  --surface-page: #FFFFFF;
  --surface-alt: var(--gray-50);
  --surface-card: #FFFFFF;
  --border-default: var(--gray-200);
  --border-strong: var(--gray-300);
  --border-focus: var(--orange-500);
  --accent: var(--orange-500);
  --accent-hover: var(--orange-600);
  --accent-press: var(--orange-700);

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 25px;
  --text-2xl: 31px;
  --text-3xl: 39px;
  --text-4xl: 49px;
  --leading-tight: 1.15;
  --leading-body: 1.6;
  --tracking-caps: 0.08em;

  /* Spacing, radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --container-max: 1140px;
  --gutter: 24px;

  /* Effects */
  --shadow-card: 0 1px 2px rgba(33,31,27,0.05), 0 4px 12px rgba(33,31,27,0.06);
  --shadow-raised: 0 2px 6px rgba(33,31,27,0.08), 0 12px 32px rgba(33,31,27,0.12);
  --ring-focus: 0 0 0 3px rgba(233,126,28,0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-sans);
  color: var(--text-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: var(--leading-tight);
  font-weight: 600;
  margin: 0;
}
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-sm); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--orange-600); margin-bottom: 14px;
}
.eyebrow--light { color: var(--orange-400); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; line-height: 1.2;
  border-radius: var(--radius-md); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  background: var(--accent); color: #fff; border: 1px solid transparent;
  padding: 10px 20px; font-size: var(--text-sm); text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { background: var(--accent-press); }
.btn--secondary { background: #fff; color: var(--gray-800); border: 1px solid var(--border-strong); }
.btn--secondary:hover { background: var(--gray-50); color: var(--gray-800); }
.btn--secondary:active { background: var(--gray-100); }
.btn--sm { padding: 6px 14px; font-size: var(--text-sm); }
.btn--lg { padding: 13px 26px; font-size: var(--text-md); }

/* ============ Topbar ============ */
.topbar { background: var(--slate-900); color: var(--slate-300); font-size: 12px; padding: 8px 24px; }
.topbar__inner {
  max-width: var(--container-max); margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.topbar__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.topbar__item svg { flex: none; }
.topbar__phone { color: var(--orange-300); font-weight: 600; }
.topbar__phone:hover { color: var(--orange-200); }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch a {
  border: 1px solid var(--slate-700); border-radius: 6px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; color: var(--slate-300);
}
.lang-switch a.active { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; }

/* ============ Header / nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.site-header__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img { height: 46px; display: block; }
.site-nav { display: flex; gap: 2px; align-items: center; }
.site-nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--gray-700);
  padding: 8px 12px; border-radius: var(--radius-md);
}
.site-nav a:hover { background: var(--gray-50); color: var(--gray-800); }
.site-nav a.active { font-weight: 600; color: var(--orange-600); background: var(--orange-50); }
.site-nav .btn { margin-left: 12px; }
.nav-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  padding: 10px; color: var(--gray-800);
}

/* ============ Sections ============ */
.section { background: #fff; padding: 80px 0; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--slate-900); }
.section--hero { padding: 88px 0 96px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.section-title { font-size: var(--text-3xl); }
.section--dark .section-title { color: #fff; }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: var(--text-4xl); font-weight: 600; }
.hero__text { font-size: var(--text-lg); color: var(--text-body); line-height: 1.55; max-width: 520px; margin: 20px 0 32px; }
.hero__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__deadline { display: flex; gap: 10px; align-items: center; margin-top: 24px; font-size: var(--text-sm); color: var(--text-muted); }
.hero__media { display: grid; gap: 16px; }
.hero__img { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__stats { display: flex; gap: 16px; }
.stat-card {
  flex: 1; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 16px;
}
.stat-card__n { font-family: var(--font-mono); font-size: var(--text-xl); color: var(--gray-900); }
.stat-card__l { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============ Problems (dark band) ============ */
.problems-intro { font-size: var(--text-md); color: var(--slate-300); max-width: 380px; margin: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--slate-700); }
.problem-card__img { aspect-ratio: 4/3; overflow: hidden; }
.problem-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.problem-card__body { padding: 18px 20px; }
.problem-card__title { font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; color: #fff; margin-bottom: 6px; }
.problem-card__text { font-size: var(--text-sm); color: var(--slate-300); line-height: 1.5; }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.cta-row__note { font-size: var(--text-sm); color: var(--slate-300); }

/* ============ Service cards ============ */
.svc-card {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px; font-size: var(--text-sm); line-height: 1.6;
}
.svc-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--orange-50); color: var(--orange-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.svc-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }

/* ============ Stats band ============ */
.band { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; align-items: center; }
.band__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: #fff; line-height: 1.25; }
.band__n { font-family: var(--font-mono); font-size: var(--text-lg); color: var(--orange-400); }
.band__l { font-size: var(--text-sm); color: var(--slate-300); margin-top: 6px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 36px; }
.step { border-top: 2px solid var(--orange-500); padding-top: 18px; }
.step__n { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--orange-600); margin-bottom: 8px; }
.step__t { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.step__d { font-size: var(--text-sm); color: var(--text-body); line-height: 1.6; }

/* Long steps (surec page) */
.step-long {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px;
}
.step-long__n { font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--orange-500); }
.step-long__t { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--text-heading); margin-bottom: 10px; }
.step-long__d { font-size: var(--text-md); color: var(--text-body); line-height: 1.6; max-width: 720px; }
.step-long__dur { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 14px; }

/* ============ Page hero (subpages) ============ */
.page-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.page-hero h1 { font-size: var(--text-3xl); }
.page-hero__intro { font-size: var(--text-md); color: var(--text-body); max-width: 620px; margin: 14px 0 0; }
.page-hero__img { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ CTA band ============ */
.cta-center { text-align: center; }
.cta-center h2 { font-size: var(--text-2xl); max-width: 640px; margin: 0 auto; }
.cta-center p { font-size: var(--text-md); color: var(--text-body); max-width: 520px; margin: 14px auto 28px; }
.cta-center__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dark-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dark-cta__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: #fff; }

/* ============ Posts ============ */
.post-card {
  display: block; background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.post-card:hover { border-color: var(--orange-300); color: inherit; }
.post-card__img { aspect-ratio: 16/9; background: var(--gray-100); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 28px; }
.post-card__tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.post-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); line-height: 1.3; margin-bottom: 10px; }
.post-card__text { font-size: var(--text-sm); color: var(--text-body); line-height: 1.6; }
.post-card__more { font-size: var(--text-sm); font-weight: 600; color: var(--orange-600); margin-top: 16px; }

/* ============ Article ============ */
.article { max-width: 760px; }
.article h1 { font-size: var(--text-3xl); margin: 10px 0 18px; }
.article__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.article__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); margin: 28px 0; }
.article__img img { width: 100%; display: block; }
.article h2 { font-size: var(--text-xl); margin: 36px 0 12px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--gray-800); }

/* ============ Accordion (FAQ) ============ */
.accordion { font-family: var(--font-sans); border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.accordion details { border-top: 1px solid var(--border-default); }
.accordion details:first-child { border-top: none; }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: var(--text-md); font-weight: 600; color: var(--text-heading);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { flex: none; stroke: var(--gray-400); transition: transform var(--dur-base) var(--ease-out); }
.accordion details[open] summary svg { transform: rotate(180deg); stroke: var(--accent); }
.accordion .accordion__body { padding: 0 22px 20px; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--text-body); }

/* ============ Alert ============ */
.alert {
  font-family: var(--font-sans); display: flex; gap: 12px; padding: 14px 18px;
  border-radius: var(--radius-md); background: var(--slate-100); border: 1px solid var(--slate-300);
}
.alert svg { flex: none; margin-top: 2px; }
.alert__content { font-size: var(--text-sm); line-height: 1.55; color: var(--gray-800); }
.alert__title { font-weight: 600; margin-bottom: 2px; }
.alert--warning { background: var(--yellow-100); border-color: var(--yellow-600); }
.alert--warning svg { stroke: var(--yellow-600); }
.alert--warning .alert__title { color: var(--yellow-600); }
.alert--success { background: var(--green-100); border-color: var(--green-600); }
.alert--success svg { stroke: var(--green-600); }
.alert--success .alert__title { color: var(--green-600); }

/* ============ Forms ============ */
.form-card {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px;
}
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--gray-800); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-md); color: var(--gray-900);
  padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border-default); outline: none; background: #fff;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--border-focus); box-shadow: var(--ring-focus);
}
.field__hint { font-size: var(--text-sm); color: var(--text-muted); }
.select-wrap { position: relative; }
.select-wrap select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.radio-row { display: flex; flex-direction: row; gap: 20px; flex-wrap: wrap; font-family: var(--font-sans); }
.radio-row label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--text-sm); color: var(--gray-800); }
.radio-row input[type="radio"] {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0;
  border-radius: 50%; border: 1px solid var(--border-strong); background: #fff;
  transition: border var(--dur-fast) var(--ease-out); cursor: pointer; flex: none;
}
.radio-row input[type="radio"]:checked { border: 6px solid var(--accent); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--text-sm); color: var(--gray-800); line-height: 1.5; }
.check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; flex: none;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #fff;
  transition: background var(--dur-fast) var(--ease-out); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.check input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.check input[type="checkbox"]:checked::after {
  content: ""; width: 12px; height: 7px; margin-top: -2px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.form-actions { display: flex; justify-content: flex-end; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-list { display: grid; gap: 12px; font-size: var(--text-md); color: var(--gray-800); }
.contact-list a, .contact-list div { display: flex; gap: 10px; align-items: center; color: var(--gray-800); }
.contact-list a { font-weight: 600; }
.contact-list .addr { align-items: flex-start; }
.contact-list svg { flex: none; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }

/* ============ Footer ============ */
.site-footer { background: var(--slate-900); color: var(--slate-300); padding: 56px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer__brand { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: #fff; }
.site-footer p { font-size: var(--text-sm); line-height: 1.6; max-width: 380px; margin: 12px 0 0; }
.site-footer__col { display: grid; gap: 10px; font-size: var(--text-sm); align-content: start; }
.site-footer__label {
  font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--slate-500);
}
.site-footer__col a { color: var(--slate-300); }
.site-footer__col a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid var(--slate-700); margin-top: 40px; padding-top: 20px; font-size: 12px; color: var(--slate-500); }

@media (max-width: 700px) {
  .topbar { padding: 8px 16px; }
  .topbar__item--addr { display: none; }
}

/* ============ Legal pages ============ */
.legal { max-width: 760px; }
.legal h1 { font-size: var(--text-3xl); margin-bottom: 18px; }
.legal h2 { font-size: var(--text-xl); margin: 32px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 24px; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border-default);
    flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-raised);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 900px) {
  .hero, .page-hero, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: var(--text-3xl); }
  .section { padding: 56px 0; }
  .section--hero { padding: 56px 0 64px; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .step-long { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats { flex-direction: column; }
  .section-title { font-size: var(--text-2xl); }
}
