/* ====== Base ====== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ===== Theme (Light default variables) ===== */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #dfe3ea;
  --surface: #ffffff;
  --surface2: #f3f5f9;
  --hover: #f3f3f3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --brand: #2f6fd6;
}

html[data-theme="dark"] {
  --bg: #0f1115;
  --text: #e9e9ea;
  --muted: #a0a4ad;
  --border: #232634;
  --surface: #141824;
  --surface2: #101522;
  --hover: #1c2233;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --brand: #f5c400;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 500px) {
  .container {
    width: 94%;
    padding: 0 10px;
  }
}
/* Never allow anything to display when hidden */
[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;

  /* stronger button silhouette */
  border: 2px solid color-mix(in srgb, var(--border) 55%, var(--text));
  border-radius: 12px;

  /* slightly more “button” background (still elegant) */
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
  color: var(--text);
  font-weight: 700;
  line-height: 1;

  /* small shadow helps people instantly read “clickable” */
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent);

  transition:
    background 140ms ease,
    transform 120ms ease,
    border-color 140ms ease;
}

.btn:hover {
  background: color-mix(in srgb, var(--hover) 75%, var(--surface2));
  border-color: color-mix(in srgb, var(--text) 70%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 10%, transparent);
}

.btn.btn-ghost {
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--border) 55%, var(--text));
}
.btn.btn-ghost:hover {
  background: color-mix(in srgb, var(--hover) 70%, transparent);
  border-color: color-mix(in srgb, var(--text) 70%, var(--border));
}
.btn.btn-primary {
  background: color-mix(in srgb, var(--surface2) 88%, transparent);
  border-color: color-mix(in srgb, var(--text) 70%, var(--border));
}
.btn.btn-primary:hover {
  background: var(--hover);
}

.btn:focus-visible {
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 45%, transparent);
  outline: 3px solid color-mix(in srgb, var(--text) 60%, transparent);
  outline-offset: 3px;
}

/* === GLOBAL UI BUTTON ENHANCEMENT === */
.ui-button {
  border-width: 2px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent);
}
/* Icon-only buttons (menu + theme) */
.ui-button.icon {
  width: 52px;
  height: 52px;
  padding: 0;
}

.muted {
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  aspect-ratio: 253 / 63;
  width: auto;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}
/* ====== Simple Hero / Grid placeholders ====== */
.hero {
  padding: 70px 0;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  line-height: 1.15;
  letter-spacing: -0.3px;
}
@media (max-width: 700px) {
  .hero {
    padding: 44px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
}
.hero p {
  margin: 0 0 18px;
}

.page-hero--simple {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero--simple h1 {
  margin-bottom: 12px;
}

.page-hero--simple .hero-lead {
  max-width: 65ch;
  color: var(--muted);
}

/* ====== Breadcrumb ====== */
.breadcrumb {
  font-size: 12px;
  margin: 12px 0 20px;
  letter-spacing: 0.2px;
}

.breadcrumb a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover {
  opacity: 0.85;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--muted);
  opacity: 0.8;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ====== components ====== */
.card {
  height: 100%;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
html[data-theme="dark"] .card {
  box-shadow: none; /* keep dark clean */
}

.card-pad {
  padding: 18px;
}
@media (max-width: 700px) {
  .card-pad {
    padding: 14px;
  }
}

/* keep for learning. .card:not(.is-expanded) .card-preview { ... } */
.card.is-expanded .card-preview {
  color: var(--text);
  overflow: visible;
}
.card.is-clickable {
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}
.card.is-clickable:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--border) 60%, var(--text));
  background: var(--hover);
}
.card.is-clickable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 55%, transparent);
  outline-offset: 3px;
}

/* ====== layout ====== */
/* ====== header nav ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-shadow: 0 1px 0 var(--border);
}
html[data-theme="dark"] .site-header {
  box-shadow: none;
}
@supports (background: color-mix(in srgb, white 90%, transparent)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }
}

/* ====== Theme toggle button ====== */
.theme-toggle {
  cursor: pointer;
}

.theme-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.menu-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* make black svg become white in dark mode (works for simple monochrome svgs) */
html[data-theme="dark"] .menu-icon {
  filter: invert(1);
}

.menu-theme-row {
  margin-top: 10px;
  width: 100%;
  display: none; /* only show in mobile open menu */
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.menu-theme-icon {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 900px) {
  .nav.open .menu-theme-row {
    display: inline-flex;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav a {
  display: inline-flex;
}
.nav-link {
  text-decoration: none;
}
.nav-link.is-active {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .nav {
    display: none;
    width: 100%;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 8px;
    margin-top: 6px;
  }
  .nav.open a {
    width: 100%;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .mobile-toggle {
    display: inline-block;
  }
}

/* ====== footer ====== */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .footer-col + .footer-col {
    margin-top: 24px;
  }
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.footer-address {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
}
.footer-address a {
  color: inherit;
  text-decoration: none;
}
.footer-address a:hover {
  text-decoration: underline;
}
.footer-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.footer-line span:first-child {
  color: var(--muted);
  min-width: 78px; /* keeps labels aligned (E-posta/Tel/GSM/WhatsApp) */
}

.footer-line a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px 0;
  padding-top: 28px; /* a little more breathing */
}
.footer-bottom {
  padding: 18px 0 16px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-cta {
  margin-top: 18px;
}

/* ===== section ===== */
.section {
  padding: 46px 0;
}
@media (max-width: 700px) {
  .section {
    padding: 34px 0;
  }
}

/* ====== Base ====== */
/* ====== Base ====== */
/* ====== Base ====== */
/* ====== Base ====== */
