/*
Theme Name: Nil Akademi Projects Consultancy
Theme URI: https://nilakademi.net/
Author: Tufan Yılmaz
Description: Nil Akademi için subdomain üzerinde kullanılmak üzere hazırlanan sol menülü kurumsal WordPress teması.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: nil-projects-sidebar
*/

:root {
  --nil-bg: #f4f5f7;
  --nil-surface: #ffffff;
  --nil-text: #111827;
  --nil-muted: #6b7280;
  --nil-line: #e5e7eb;
  --nil-navy: #12234d;
  --nil-blue: #244aa5;
  --nil-gold: #d8b86a;
  --nil-soft-blue: #eef4ff;
  --nil-sidebar: #ffffff;
  --nil-sidebar-width: 286px;
  --nil-radius: 0px;
  --nil-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--nil-bg);
  color: var(--nil-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.admin-bar .nil-sidebar {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.nil-shell {
  display: flex;
  min-height: 100vh;
}

.nil-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nil-sidebar-width);
  background: var(--nil-sidebar);
  border-right: 1px solid var(--nil-line);
  overflow-y: auto;
  z-index: 50;
}

.nil-sidebar-inner {
  padding: 28px 26px 26px;
}

.nil-brand {
  display: block;
  margin-bottom: 30px;
}

.nil-default-logo,
.nil-custom-logo {
  width: 218px;
  max-width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.nil-default-logo img,
.nil-custom-logo img {
  width: 218px;
  max-height: 178px;
  object-fit: contain;
  display: block;
}

.nil-mobile-brand {
  display: none;
}

.nil-mobile-brand img,
.nil-mobile-custom-logo img {
  width: 190px;
  max-height: 34px;
  object-fit: contain;
  display: block;
}

.nil-nav {
  border-top: 1px solid var(--nil-line);
  margin: 0 -26px 30px;
}

.nil-nav ul,
.nil-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nil-nav a {
  display: block;
  padding: 13px 26px;
  border-bottom: 1px solid var(--nil-line);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #101828;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nil-nav a:hover,
.nil-nav .current-menu-item > a,
.nil-nav .current_page_item > a {
  background: var(--nil-soft-blue);
  color: var(--nil-blue);
  padding-left: 32px;
}

.nil-contact-block {
  margin-top: 26px;
}

.nil-side-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 12px;
}

.nil-contact-block p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--nil-muted);
}

.nil-contact-block strong {
  color: #111827;
}

.nil-social {
  display: flex;
  gap: 12px;
  margin: 12px 0 28px;
}

.nil-social a {
  width: 28px;
  height: 28px;
  border: 1px solid var(--nil-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--nil-blue);
  transition: all 0.2s ease;
}

.nil-social a:hover {
  background: var(--nil-blue);
  color: #fff;
  border-color: var(--nil-blue);
}

.nil-copyright {
  border-top: 1px solid var(--nil-line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--nil-muted);
  line-height: 1.6;
}

.nil-page {
  width: calc(100% - var(--nil-sidebar-width));
  margin-left: var(--nil-sidebar-width);
  min-height: 100vh;
}

.nil-topbar {
  height: 70px;
  background: var(--nil-surface);
  border-bottom: 1px solid var(--nil-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
}

.nil-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nil-line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nil-menu-toggle span,
.nil-menu-toggle span::before,
.nil-menu-toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--nil-text);
  content: "";
}

.nil-menu-toggle span::before {
  transform: translateY(-7px);
}

.nil-menu-toggle span::after {
  transform: translateY(5px);
}

.nil-topline {
  width: 160px;
  height: 1px;
  background: var(--nil-text);
  opacity: 0.45;
}

.nil-top-social {
  display: flex;
  height: 70px;
  margin-right: -56px;
}

.nil-top-social a {
  width: 70px;
  border-left: 1px solid var(--nil-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nil-text);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.nil-top-social a:hover {
  background: var(--nil-navy);
  color: #fff;
}

.nil-hero {
  min-height: 370px;
  margin: 0;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 35, 77, 0.78), rgba(36, 74, 165, 0.38)),
    url('assets/img/hero-meeting.png') center/cover no-repeat;
}

.nil-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(216, 184, 106, 0.35), transparent 32%);
  pointer-events: none;
}

.nil-hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 1150px;
  color: #fff;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.nil-content-wrap {
  padding: 0 56px 70px;
}

.nil-card {
  max-width: 1120px;
  margin: -28px auto 0;
  background: var(--nil-surface);
  min-height: 330px;
  padding: 52px 58px 62px;
  position: relative;
  box-shadow: var(--nil-shadow);
}

.nil-card::before {
  content: "";
  position: absolute;
  top: 64px;
  right: 58px;
  width: 150px;
  height: 1px;
  background: #111827;
  opacity: 0.7;
}

.nil-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--nil-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nil-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--nil-gold);
}

.nil-card h1,
.nil-card h2,
.nil-entry-title {
  margin: 0 0 24px;
  max-width: 760px;
  color: #202938;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.nil-lead {
  max-width: 880px;
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.82;
}

.nil-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.nil-feature {
  border: 1px solid var(--nil-line);
  padding: 24px 22px;
  background: #fff;
  min-height: 170px;
}

.nil-feature-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--nil-soft-blue);
  color: var(--nil-blue);
  font-weight: 900;
  margin-bottom: 16px;
}

.nil-feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.nil-feature p {
  margin: 0;
  color: var(--nil-muted);
  font-size: 14px;
  line-height: 1.65;
}

.nil-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.nil-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--nil-navy);
  background: var(--nil-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.nil-button:hover {
  background: var(--nil-blue);
  border-color: var(--nil-blue);
}

.nil-button.secondary {
  background: transparent;
  color: var(--nil-navy);
}

.nil-button.secondary:hover {
  background: var(--nil-navy);
  color: #fff;
}

.nil-entry-content {
  max-width: 880px;
}

.nil-entry-content p {
  color: #4b5563;
}

.nil-footer {
  padding: 28px 56px;
  color: var(--nil-muted);
  font-size: 13px;
  text-align: center;
}

.nil-overlay {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --nil-sidebar-width: 258px;
  }

  .nil-sidebar-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nil-nav {
    margin-left: -22px;
    margin-right: -22px;
  }

  .nil-nav a {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nil-grid {
    grid-template-columns: 1fr;
  }

  .nil-card::before {
    display: none;
  }
}

@media (max-width: 860px) {
  body.admin-bar .nil-sidebar {
    top: 0;
  }

  .nil-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .nil-sidebar.is-open {
    transform: translateX(0);
  }

  .nil-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
  }

  .nil-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .nil-page {
    width: 100%;
    margin-left: 0;
  }

  .nil-topbar {
    padding: 0 22px;
  }

  .nil-menu-toggle {
    display: inline-flex;
    flex: 0 0 42px;
  }

  .nil-mobile-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
    margin-right: auto;
  }

  .nil-topline {
    display: none;
  }

  .nil-top-social {
    margin-right: -22px;
  }

  .nil-top-social a {
    width: 52px;
  }

  .nil-hero {
    min-height: 280px;
    padding: 0 24px;
  }

  .nil-content-wrap {
    padding: 0 18px 50px;
  }

  .nil-card {
    margin-top: -18px;
    padding: 34px 24px 40px;
  }

  .nil-lead {
    font-size: 16px;
  }

  .nil-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 560px) {
  .nil-top-social a:nth-child(n+3) {
    display: none;
  }

  .nil-default-logo,
  .nil-custom-logo {
    width: 196px;
    min-height: 138px;
  }

  .nil-default-logo img,
  .nil-custom-logo img {
    width: 196px;
    max-height: 160px;
  }

  .nil-mobile-brand img,
  .nil-mobile-custom-logo img {
    width: 150px;
  }

  .nil-actions {
    flex-direction: column;
  }

  .nil-button {
    width: 100%;
  }
}


/* Enhanced homepage prototype with filled visual areas */
.nil-hero-filled {
  min-height: 382px;
  background:
    linear-gradient(90deg, rgba(6, 16, 38, 0.42), rgba(12, 30, 70, 0.26)),
    url('assets/img/hero-meeting.png') center/cover no-repeat;
  align-items: center;
  justify-content: center;
}

.nil-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 9, 23, 0.18), rgba(3, 9, 23, 0.38)),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.12), transparent 34%);
  pointer-events: none;
}

.nil-hero-title span {
  display: block;
}

.nil-home-stage {
  max-width: 1120px;
  margin: -38px auto 0;
  padding: 0 56px 76px;
  position: relative;
  z-index: 3;
}

.nil-intro-card {
  background: #fff;
  min-height: 224px;
  padding: 52px 58px 50px;
  position: relative;
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.10);
  overflow: hidden;
}

.nil-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 98px;
  background: linear-gradient(180deg, #7c3f98, #b76ad7);
}

.nil-intro-card .nil-eyebrow {
  margin-bottom: 10px;
}

.nil-intro-card h1 {
  margin: 0 0 16px;
  max-width: 820px;
  color: #1f2937;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.nil-intro-card .nil-lead {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.75;
}

.nil-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.nil-service-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .95);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  overflow: hidden;
}

.nil-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 63, 152, .35);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.nil-service-image {
  height: 150px;
  background-color: #eef4ff;
  background-position: center;
  background-size: cover;
}

.nil-service-body {
  padding: 0 22px 24px;
  position: relative;
}

.nil-service-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3f98, #b76ad7);
  color: #fff;
  border: 5px solid #fff;
  box-shadow: 0 8px 16px rgba(124, 63, 152, .22);
  margin-top: -28px;
}

.nil-service-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.nil-service-card h3 {
  margin: 14px 0 8px;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
}

.nil-service-card p {
  margin: 0 0 16px;
  min-height: 54px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.nil-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c3f98;
  font-size: 13px;
  font-weight: 900;
}

.nil-learn-link span {
  transition: transform .2s ease;
}

.nil-learn-link:hover span {
  transform: translateX(4px);
}

.nil-nav a:first-child {
  color: #7c3f98;
}

@media (max-width: 1100px) {
  .nil-home-stage {
    padding-left: 32px;
    padding-right: 32px;
  }
  .nil-service-cards {
    grid-template-columns: 1fr;
  }
  .nil-service-image {
    height: 190px;
  }
}

@media (max-width: 860px) {
  .nil-home-stage {
    margin-top: -22px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 54px;
  }
  .nil-intro-card {
    padding: 34px 24px 36px;
  }
  .nil-hero-filled {
    min-height: 300px;
  }
}
