/* ================================================================
   Mental Pusula — Main Stylesheet
   Design: Minimal editorial, inspired by augustinusfonden.dk
   Stack: Vanilla CSS, custom properties, mobile-first
   ================================================================ */

@layer reset, tokens, base, layout, components, header, sections, footer, animations, utilities;

/* ================================================================
   RESET
   ================================================================ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; tab-size: 4; }
  body { min-height: 100svh; line-height: 1.5; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  ul, ol { list-style: none; }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; background: none; border: none; }
  fieldset { border: none; }
  table { border-collapse: collapse; }
}

/* ================================================================
   TOKENS — design system variables
   ================================================================ */
@layer tokens {

  :root {
    /* ----- Brand colors ----- */
    --c-accent:        hsl(142 28% 46%);   /* pastel yeşil */
    --c-accent-dark:   hsl(142 28% 36%);
    --c-accent-light:  hsl(142 28% 72%);
    --c-accent-muted:  hsl(142 28% 94%);
    --c-accent-2:      hsl(202 28% 46%);   /* pastel mavi */

    /* ----- Neutral palette ----- */
    --c-bg:            hsl(38 18% 97%);    /* warm off-white */
    --c-surface:       hsl(0 0% 100%);
    --c-beige:         hsl(38 22% 91%);
    --c-beige-mid:     hsl(38 18% 84%);
    --c-beige-dark:    hsl(38 14% 73%);
    --c-text:          hsl(30 8% 12%);
    --c-text-2:        hsl(30 5% 38%);
    --c-text-3:        hsl(30 4% 58%);
    --c-border:        hsl(36 15% 87%);

    /* ----- Semantic ----- */
    --c-success: hsl(145 60% 36%);
    --c-error:   hsl(4 72% 46%);
    --c-warning: hsl(38 80% 48%);

    /* ----- Typography ----- */
    --ff-heading: 'Inter',     system-ui, -apple-system, sans-serif;
    --ff-body:    'Open Sans', system-ui, sans-serif;

    /* Fluid type scale (Minor Third 1.25×) */
    --text-xs:   clamp(0.72rem,  0.68rem + 0.22vw, 0.84rem);
    --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
    --text-base: clamp(1rem,     0.94rem + 0.32vw, 1.125rem);
    --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw,  1.25rem);
    --text-xl:   clamp(1.25rem,  1.16rem + 0.5vw,  1.5rem);
    --text-2xl:  clamp(1.5rem,   1.35rem + 0.78vw, 2rem);
    --text-3xl:  clamp(1.875rem, 1.6rem  + 1.4vw,  2.5rem);
    --text-4xl:  clamp(2.25rem,  1.8rem  + 2.3vw,  3.5rem);
    --text-5xl:  clamp(2.75rem,  2.1rem  + 3.3vw,  5rem);

    /* ----- Spacing (8px grid) ----- */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* ----- Radius ----- */
    --r-sm:   0.25rem;
    --r-md:   0.5rem;
    --r-lg:   0.75rem;
    --r-xl:   1rem;
    --r-2xl:  1.5rem;
    --r-3xl:  2rem;
    --r-full: 9999px;

    /* ----- Shadows ----- */
    --sh-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --sh-sm: 0 2px 8px 0 rgb(0 0 0 / 0.07);
    --sh-md: 0 6px 18px -2px rgb(0 0 0 / 0.1);
    --sh-lg: 0 14px 30px -4px rgb(0 0 0 / 0.12);
    --sh-xl: 0 28px 56px -8px rgb(0 0 0 / 0.15);

    /* ----- Transitions ----- */
    --t-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ----- Layout ----- */
    --header-h: 72px;
    --section-py: clamp(4rem, 10vw, 7rem);
  }

  /* Dark mode */
  [data-theme="dark"] {
    --c-bg:          hsl(28 10% 9%);
    --c-surface:     hsl(28 8% 13%);
    --c-beige:       hsl(28 8% 18%);
    --c-beige-mid:   hsl(28 6% 24%);
    --c-beige-dark:  hsl(28 5% 32%);
    --c-text:        hsl(36 12% 93%);
    --c-text-2:      hsl(36 8% 68%);
    --c-text-3:      hsl(36 6% 48%);
    --c-border:      hsl(28 8% 20%);
    --c-accent-muted: hsl(142 20% 14%);

    --sh-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --sh-sm: 0 2px 8px 0 rgb(0 0 0 / 0.4);
    --sh-md: 0 6px 18px -2px rgb(0 0 0 / 0.5);
    --sh-lg: 0 14px 30px -4px rgb(0 0 0 / 0.55);
    --sh-xl: 0 28px 56px -8px rgb(0 0 0 / 0.6);
  }
}

/* ================================================================
   BASE
   ================================================================ */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
  }

  body {
    font-family: var(--ff-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--c-text);
  }

  p {
    color: var(--c-text-2);
    line-height: 1.7;
  }

  a {
    transition: color var(--t-fast), opacity var(--t-fast);
  }
  a:hover { color: var(--c-accent); }
  a:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
  }

  img { width: 100%; height: 100%; object-fit: cover; }

  strong { font-weight: 700; color: var(--c-text); }

  hr {
    border: none;
    height: 1px;
    background: var(--c-border);
    margin-block: var(--sp-8);
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }
}

/* ================================================================
   LAYOUT
   ================================================================ */
@layer layout {
  .container {
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
  }
  .container-lg  { max-width: 1024px; }
  .container-xl  { max-width: 1280px; }
  .container-2xl { max-width: 1480px; }

  .skip-link {
    position: absolute;
    top: -200%;
    left: var(--sp-4);
    padding: var(--sp-2) var(--sp-6);
    background: var(--c-accent);
    color: #fff;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: 9999;
    transition: top var(--t-fast);
  }
  .skip-link:focus { top: 0; }
}

/* ================================================================
   COMPONENTS — Buttons
   ================================================================ */
@layer components {

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75em 1.75em;
    border-radius: var(--r-full);
    font-family: var(--ff-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    transition: all var(--t-base);
    border: 1.5px solid transparent;
  }
  .btn:active  { transform: scale(0.97); }
  .btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
  .btn svg     { flex-shrink: 0; }

  .btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
    box-shadow: var(--sh-sm);
  }
  .btn-primary:hover {
    background: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    color: #fff;
  }

  .btn-outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
  }
  .btn-outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-muted);
  }

  .btn-ghost {
    background: transparent;
    color: var(--c-text-2);
    border-color: transparent;
    padding-inline: var(--sp-4);
  }
  .btn-ghost:hover {
    color: var(--c-text);
    background: color-mix(in srgb, var(--c-text) 6%, transparent);
  }

  .btn-white {
    background: #fff;
    color: var(--c-accent-dark);
    border-color: #fff;
    box-shadow: var(--sh-sm);
  }
  .btn-white:hover {
    background: hsl(0 0% 96%);
    color: var(--c-accent-dark);
    transform: translateY(-2px);
  }

  .btn-lg { padding: 0.9em 2.2em; font-size: var(--text-base); }
  .btn-sm { padding: 0.55em 1.2em; font-size: var(--text-xs); }

  /* Icon-only arrow link */
  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-accent);
    transition: gap var(--t-base), color var(--t-base);
  }
  .link-arrow:hover { gap: var(--sp-3); color: var(--c-accent-dark); }
  .link-arrow svg { transition: transform var(--t-base); }
  .link-arrow:hover svg { transform: translateX(4px); }

  /* ---- Tag / Badge ---- */
  .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.8em;
    background: var(--c-accent-muted);
    color: var(--c-accent-dark);
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--ff-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* ---- Section header ---- */
  .section-header { margin-bottom: var(--sp-12); }
  .section-header.center { text-align: center; }

  .section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    font-family: var(--ff-heading);
    margin-bottom: var(--sp-4);
  }
  .section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    border-radius: var(--r-full);
  }

  .section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 22ch;
    color: var(--c-text);
  }
  .section-header.center .section-title { margin-inline: auto; }

  .section-subtitle {
    font-size: var(--text-lg);
    color: var(--c-text-2);
    max-width: 56ch;
    margin-top: var(--sp-4);
    line-height: 1.7;
  }
  .section-header.center .section-subtitle { margin-inline: auto; }

  /* ---- Card ---- */
  .card {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-lg);
    border-color: color-mix(in srgb, var(--c-accent) 30%, var(--c-border));
  }

  .card-img {
    position: relative;
    overflow: hidden;
    background: var(--c-beige);
  }
  .card-img img { transition: transform var(--t-slow); }
  .card:hover .card-img img { transform: scale(1.04); }

  .card-body { padding: var(--sp-6); }

  .card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-3);
    margin-bottom: var(--sp-3);
  }

  .card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--sp-2);
    line-height: 1.3;
  }
  .card-title a { transition: color var(--t-fast); }
  .card-title a:hover { color: var(--c-accent); }

  .card-excerpt {
    font-size: var(--text-sm);
    color: var(--c-text-2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-footer {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
  }

  .post-date, .read-time {
    font-size: var(--text-xs);
    color: var(--c-text-3);
    font-family: var(--ff-heading);
    font-weight: 500;
  }

  /* ---- Form ---- */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
  }

  .form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text);
    font-family: var(--ff-heading);
  }

  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-bg);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-lg);
    font-size: var(--text-base);
    color: var(--c-text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    line-height: 1.5;
  }
  .form-input::placeholder,
  .form-textarea::placeholder { color: var(--c-text-3); }
  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent);
    background: var(--c-surface);
  }

  .form-textarea {
    resize: vertical;
    min-height: 148px;
    line-height: 1.65;
  }

  .form-status {
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    display: none;
    font-family: var(--ff-heading);
  }
  .form-status.success {
    background: color-mix(in srgb, var(--c-success) 10%, transparent);
    color: var(--c-success);
    border: 1px solid color-mix(in srgb, var(--c-success) 25%, transparent);
  }
  .form-status.error {
    background: color-mix(in srgb, var(--c-error) 8%, transparent);
    color: var(--c-error);
    border: 1px solid color-mix(in srgb, var(--c-error) 25%, transparent);
  }

  /* ---- Image placeholder ---- */
  .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--sp-3);
    color: var(--c-text-3);
    font-size: var(--text-sm);
    font-family: var(--ff-heading);
  }
  .img-placeholder svg { opacity: 0.35; }
}

/* ================================================================
   HEADER
   ================================================================ */
@layer header {
  .site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--header-h);
    z-index: 1000;
    transition:
      background-color var(--t-base),
      backdrop-filter var(--t-base),
      box-shadow var(--t-base);
  }

  .site-header.scrolled {
    background-color: color-mix(in srgb, var(--c-bg) 88%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--c-border);
  }

  .header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
  }

  /* Brand */
  .header-brand { flex-shrink: 0; }

  .brand-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }
  .brand-link:hover { color: inherit; }

  .brand-icon {
    color: var(--c-accent);
    flex-shrink: 0;
    transition: transform var(--t-spring);
  }
  .brand-link:hover .brand-icon { transform: rotate(-15deg); }

  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .brand-name {
    font-family: var(--ff-heading);
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--c-text);
  }

  .brand-tagline {
    font-size: 0.62rem;
    color: var(--c-text-3);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    display: none;
  }
  @media (min-width: 640px) { .brand-tagline { display: block; } }

  .custom-logo-wrap a {
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity var(--t-fast);
  }
  .custom-logo-wrap a:hover { opacity: 0.85; }
  .custom-logo-wrap img { max-height: 48px; width: auto; }

  /* Navigation */
  .site-nav { flex: 1; display: flex; justify-content: center; }

  .nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
  }

  .nav-link {
    position: relative;
    padding: var(--sp-2) var(--sp-3);
    font-family: var(--ff-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--c-text-2);
    border-radius: var(--r-md);
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: var(--sp-3);
    right: var(--sp-3);
    height: 1.5px;
    background: var(--c-accent);
    border-radius: var(--r-full);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--c-text);
    background: color-mix(in srgb, var(--c-text) 5%, transparent);
  }
  .nav-link:hover::after,
  .nav-link.active::after { transform: scaleX(1); }

  /* Header actions */
  .header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }

  .btn-theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    color: var(--c-text-2);
    transition: color var(--t-fast), background var(--t-fast);
  }
  .btn-theme-toggle:hover {
    color: var(--c-text);
    background: color-mix(in srgb, var(--c-text) 8%, transparent);
  }
  .btn-theme-toggle .icon-sun  { display: block; }
  .btn-theme-toggle .icon-moon { display: none;  }
  [data-theme="dark"] .btn-theme-toggle .icon-sun  { display: none;  }
  [data-theme="dark"] .btn-theme-toggle .icon-moon { display: block; }

  .btn-menu {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--r-md);
    color: var(--c-text);
    transition: background var(--t-fast);
  }
  .btn-menu:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); }

  .menu-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    border-radius: var(--r-full);
    transition: transform var(--t-base), opacity var(--t-base);
    transform-origin: center;
  }
  .btn-menu[aria-expanded="true"] .menu-bar:nth-child(1) { transform: rotate(45deg)  translate(0, 6.5px); }
  .btn-menu[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .btn-menu[aria-expanded="true"] .menu-bar:nth-child(3) { transform: rotate(-45deg) translate(0, -6.5px); }

  @media (min-width: 1024px) { .btn-menu { display: none; } }

  /* Mobile nav overlay */
  @media (max-width: 1023px) {
    .site-nav {
      position: fixed;
      inset-block-start: var(--header-h);
      inset-inline: 0;
      bottom: 0;
      background: var(--c-surface);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      pointer-events: none;
      opacity: 0;
      transform: translateY(-10px);
      transition: opacity var(--t-base), transform var(--t-base);
      z-index: 999;
    }
    .site-nav.open {
      pointer-events: auto;
      opacity: 1;
      transform: translateY(0);
    }
    .nav-list {
      flex-direction: column;
      gap: var(--sp-3);
      align-items: center;
    }
    .nav-link {
      font-size: var(--text-2xl);
      padding: var(--sp-3) var(--sp-8);
    }
    .nav-link::after { bottom: 8px; }
  }
}

/* ================================================================
   SECTIONS
   ================================================================ */
@layer sections {

  .section {
    padding-block: var(--section-py);
  }

  /* ================================================================
     1. HERO  #anasayfa
     ================================================================ */
  #anasayfa {
    min-height: 100svh;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    padding-block: 0;
    background: var(--c-bg);
  }
  @media (min-width: 768px) {
    #anasayfa { grid-template-columns: 1fr 1fr; }
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block-start: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
    padding-block-end: clamp(3rem, 6vw, 5rem);
    padding-inline: clamp(1.25rem, 7vw, 5rem);
    position: relative;
    z-index: 2;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-accent);
    font-family: var(--ff-heading);
    margin-bottom: var(--sp-6);
    opacity: 0;
    animation: fade-up 0.8s ease 0.1s forwards;
  }
  .hero-eyebrow span {
    width: 28px;
    height: 1.5px;
    background: currentColor;
    border-radius: var(--r-full);
    display: block;
  }

  .hero-title {
    font-size: clamp(2.4rem, 2rem + 2.5vw, 5rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--c-text);
    margin-bottom: var(--sp-6);
    opacity: 0;
    animation: fade-up 0.8s ease 0.2s forwards;
  }
  .hero-title .highlight {
    color: var(--c-accent);
    display: inline;
    position: relative;
  }

  .hero-subtitle {
    font-size: var(--text-lg);
    color: var(--c-text-2);
    line-height: 1.7;
    max-width: 44ch;
    margin-bottom: var(--sp-10);
    opacity: 0;
    animation: fade-up 0.8s ease 0.3s forwards;
  }

  .hero-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-4);
    opacity: 0;
    animation: fade-up 0.8s ease 0.4s forwards;
  }

  .hero-scroll {
    position: absolute;
    bottom: var(--sp-8);
    left: clamp(1.25rem, 7vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    color: var(--c-text-3);
    font-size: var(--text-xs);
    font-family: var(--ff-heading);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in 1s ease 1s forwards;
  }
  .hero-scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, var(--c-accent), transparent);
    animation: scroll-pulse 2.2s ease-in-out infinite;
  }
  @media (max-width: 767px) { .hero-scroll { display: none; } }

  /* Hero right visual */
  .hero-visual {
    position: relative;
    overflow: hidden;
    display: none;
    background: var(--c-beige);
  }
  @media (min-width: 768px) { .hero-visual { display: block; } }

  .hero-main-img {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
  }
  .hero-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .hero-circle {
    position: absolute;
    border-radius: 50%;
  }
  .hero-circle-1 {
    width: 65%;
    aspect-ratio: 1;
    top: 8%;
    left: 12%;
    background: color-mix(in srgb, var(--c-accent-light) 35%, var(--c-beige));
    animation: float 14s ease-in-out infinite;
  }
  .hero-circle-2 {
    width: 45%;
    aspect-ratio: 1;
    bottom: 12%;
    right: 8%;
    background: color-mix(in srgb, var(--c-beige-dark) 45%, var(--c-beige));
    animation: float 10s ease-in-out infinite reverse;
  }
  .hero-circle-3 {
    width: 30%;
    aspect-ratio: 1;
    top: 55%;
    left: 40%;
    background: color-mix(in srgb, var(--c-accent) 14%, var(--c-beige));
    animation: float 8s ease-in-out infinite 2s;
  }

  /* Floating stats card */
  .hero-stats-card {
    position: absolute;
    bottom: var(--sp-12);
    left: var(--sp-10);
    right: var(--sp-10);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
    z-index: 3;
    opacity: 0;
    animation: fade-up 0.8s ease 0.9s forwards;
  }
  .hero-stat {
    background: color-mix(in srgb, white 82%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 0.65);
    border-radius: var(--r-xl);
    padding: var(--sp-4) var(--sp-3);
    text-align: center;
    box-shadow: var(--sh-md);
  }
  [data-theme="dark"] .hero-stat {
    background: color-mix(in srgb, var(--c-surface) 80%, transparent);
    border-color: var(--c-border);
  }
  .hero-stat strong {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 900;
    font-family: var(--ff-heading);
    color: var(--c-text);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--sp-1);
  }
  .hero-stat span {
    font-size: var(--text-xs);
    color: var(--c-text-2);
    font-weight: 500;
    line-height: 1.3;
  }

  /* ================================================================
     2. HAKKIMIZDA  #hakkimizda
     ================================================================ */
  #hakkimizda { background: var(--c-surface); }

  .about-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-16);
    align-items: center;
  }
  @media (min-width: 768px) {
    .about-wrap { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  }

  .about-image-col { position: relative; }

  .about-main-img {
    aspect-ratio: 4/5;
    border-radius: var(--r-3xl);
    overflow: hidden;
    background: var(--c-beige);
    box-shadow: var(--sh-lg);
  }
  .about-main-img .img-placeholder {
    background: linear-gradient(
      145deg,
      var(--c-beige) 0%,
      color-mix(in srgb, var(--c-accent-light) 35%, var(--c-beige)) 100%
    );
  }

  .about-badge {
    position: absolute;
    bottom: var(--sp-8);
    right: calc(-1 * var(--sp-8));
    background: var(--c-surface);
    border-radius: var(--r-2xl);
    padding: var(--sp-5) var(--sp-6);
    text-align: center;
    min-width: 140px;
    box-shadow: var(--sh-xl);
    border: 1px solid var(--c-border);
    animation: float 6s ease-in-out infinite;
  }
  @media (max-width: 767px) { .about-badge { right: var(--sp-6); } }
  .about-badge strong {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 900;
    font-family: var(--ff-heading);
    color: var(--c-accent);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--sp-1);
  }
  .about-badge span { font-size: var(--text-xs); color: var(--c-text-2); font-weight: 500; }

  .about-text-col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
  }

  .about-lead {
    font-size: var(--text-lg);
    color: var(--c-text-2);
    line-height: 1.8;
  }

  .about-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
  .about-mv-card {
    padding: var(--sp-5);
    background: var(--c-bg);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-border);
    transition: border-color var(--t-base), box-shadow var(--t-base);
  }
  .about-mv-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--sh-sm);
  }
  .about-mv-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: var(--sp-3);
  }
  .about-mv-card h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--sp-1);
  }
  .about-mv-card p {
    font-size: var(--text-xs);
    color: var(--c-text-2);
    margin: 0;
    line-height: 1.6;
  }

  .about-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }
  .about-value-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--c-beige);
    border-radius: var(--r-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--ff-heading);
    color: var(--c-text);
    transition: background var(--t-fast);
  }
  .about-value-item:hover { background: var(--c-beige-mid); }
  .about-value-item .vi { font-size: 1.2rem; }

  /* ================================================================
     3. BLOG  #blog
     ================================================================ */
  #blog { background: var(--c-bg); }

  /* Featured post */
  .blog-featured {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--c-surface);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-12);
    transition: box-shadow var(--t-base);
  }
  .blog-featured:hover { box-shadow: var(--sh-xl); }
  @media (min-width: 768px) {
    .blog-featured { grid-template-columns: 1.15fr 1fr; }
  }

  .blog-featured-img {
    aspect-ratio: 4/3;
    background: var(--c-beige);
    overflow: hidden;
    position: relative;
    min-height: 260px;
  }
  @media (min-width: 768px) { .blog-featured-img { aspect-ratio: auto; min-height: 420px; } }
  .blog-featured-img .img-placeholder {
    background: linear-gradient(140deg,
      color-mix(in srgb, var(--c-accent-light) 35%, var(--c-beige)) 0%,
      var(--c-beige-mid) 100%
    );
  }

  .blog-featured-body {
    padding: clamp(1.75rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-4);
  }

  .blog-featured-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
  .blog-featured-title a { transition: color var(--t-fast); }
  .blog-featured-title a:hover { color: var(--c-accent); }

  .blog-featured-excerpt {
    font-size: var(--text-base);
    color: var(--c-text-2);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Blog grid */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: var(--sp-6);
  }

  .blog-card .card-img { aspect-ratio: 16/9; }
  .blog-card .card-img .img-placeholder { background: var(--c-beige); }

  .blog-more { text-align: center; margin-top: var(--sp-12); }

  /* ================================================================
     4. KATEGORİLER  #kategoriler
     ================================================================ */
  #kategoriler { background: var(--c-beige); }

  .cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--sp-5);
  }
  @media (min-width: 768px) { .cats-grid { grid-template-columns: repeat(3, 1fr); } }

  .cat-card {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
  }
  .cat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
  }
  .cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-lg);
    border-color: color-mix(in srgb, var(--c-accent) 30%, transparent);
  }
  .cat-card:hover::before { transform: scaleX(1); }
  .cat-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

  .cat-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: var(--sp-4);
    transition: transform var(--t-spring);
  }
  .cat-card:hover .cat-icon { transform: scale(1.2) rotate(-5deg); }

  .cat-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--sp-2);
    font-family: var(--ff-heading);
    color: var(--c-text);
  }

  .cat-desc {
    font-size: var(--text-sm);
    color: var(--c-text-2);
    line-height: 1.6;
    margin-bottom: var(--sp-5);
  }

  .cat-count {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--c-accent);
    font-family: var(--ff-heading);
    letter-spacing: 0.05em;
  }

  /* ================================================================
     5. REHBERLİK  #rehberlik
     ================================================================ */
  #rehberlik { background: var(--c-surface); overflow: hidden; }

  .guidance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-5);
    background: var(--c-accent-muted);
    border-radius: var(--r-2xl);
    padding: var(--sp-10) var(--sp-8);
    margin-bottom: var(--sp-16);
    border: 1px solid color-mix(in srgb, var(--c-accent) 20%, transparent);
  }

  .guidance-stat-item {
    text-align: center;
    padding: var(--sp-4);
  }
  .guidance-stat-item strong {
    display: block;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    font-family: var(--ff-heading);
    color: var(--c-accent);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: var(--sp-2);
  }
  .guidance-stat-item span {
    font-size: var(--text-sm);
    color: var(--c-text-2);
    font-weight: 500;
  }

  .guidance-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    align-items: center;
  }
  @media (min-width: 768px) {
    .guidance-body { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  }

  .guidance-items { display: flex; flex-direction: column; gap: var(--sp-5); }

  .guidance-item {
    display: flex;
    gap: var(--sp-5);
    padding: var(--sp-6);
    background: var(--c-bg);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-border);
    transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
  }
  .guidance-item:hover {
    border-color: color-mix(in srgb, var(--c-accent) 40%, var(--c-border));
    box-shadow: var(--sh-sm);
    background: color-mix(in srgb, var(--c-accent) 3%, var(--c-bg));
  }

  .guidance-item-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--c-accent-muted);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform var(--t-spring);
  }
  .guidance-item:hover .guidance-item-icon { transform: scale(1.1); }

  .guidance-item-text h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--sp-1);
  }
  .guidance-item-text p {
    font-size: var(--text-sm);
    color: var(--c-text-2);
    margin: 0;
    line-height: 1.6;
  }

  /* CTA card */
  .guidance-cta-col { position: relative; }
  @media (max-width: 767px) { .guidance-cta-col { display: none; } }

  .guidance-cta-card {
    background: var(--c-accent);
    color: #fff;
    border-radius: var(--r-3xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
  }
  .guidance-cta-card::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    top: -80px;
    right: -80px;
    border-radius: 50%;
    background: color-mix(in srgb, white 12%, transparent);
  }
  .guidance-cta-card::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, white 8%, transparent);
  }

  .guidance-cta-card h3 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--sp-4);
    line-height: 1.2;
    position: relative;
    z-index: 1;
  }
  .guidance-cta-card p {
    color: rgba(255,255,255,0.82);
    margin-bottom: var(--sp-8);
    position: relative;
    z-index: 1;
  }
  .guidance-cta-card .btn-white { position: relative; z-index: 1; }

  .guidance-float-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--c-surface);
    border-radius: var(--r-2xl);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: var(--sh-xl);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    border: 1px solid var(--c-border);
    z-index: 2;
    animation: float 5s ease-in-out infinite;
  }
  .guidance-float-badge strong {
    display: block;
    font-size: var(--text-xl);
    font-weight: 900;
    font-family: var(--ff-heading);
    color: var(--c-text);
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .guidance-float-badge span {
    font-size: var(--text-xs);
    color: var(--c-text-2);
    white-space: nowrap;
  }

  /* ================================================================
     6. İLETİŞİM  #iletisim
     ================================================================ */
  #iletisim { background: var(--c-bg); }

  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }
  @media (min-width: 768px) {
    .contact-wrap { grid-template-columns: 1fr 1.5fr; gap: clamp(3rem, 6vw, 6rem); }
  }

  .contact-info { display: flex; flex-direction: column; gap: var(--sp-8); }

  .contact-items { display: flex; flex-direction: column; gap: var(--sp-5); }

  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .contact-item-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: var(--c-accent-muted);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
  }
  .contact-item h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--sp-1);
  }
  .contact-item p { font-size: var(--text-sm); color: var(--c-text-2); margin: 0; }

  .contact-social-wrap h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--sp-4);
  }
  .social-links { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
  .social-link {
    width: 46px;
    height: 46px;
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-2);
    font-size: 1.1rem;
    transition: all var(--t-base);
  }
  .social-link:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-muted);
    transform: translateY(-2px);
  }

  /* Contact form */
  .contact-form-wrap {
    background: var(--c-surface);
    border-radius: var(--r-2xl);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: var(--sh-md);
    border: 1px solid var(--c-border);
  }
  .contact-form-wrap h3 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--sp-8);
  }

  .contact-form { display: flex; flex-direction: column; gap: var(--sp-5); }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
  @media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

  .contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-top: var(--sp-2);
  }
  .contact-privacy {
    font-size: var(--text-xs);
    color: var(--c-text-3);
    max-width: 36ch;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
@layer footer {
  /* Footer wave ayırıcı */
  #footer-waves {
    width: 100%;
    height: 220px;
    overflow: hidden;
  }
  #footer-waves-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* Gündüz: beyaz zemin, siyah yazı */
  .site-footer {
    background: #ffffff;
    color: rgba(0,0,0,0.60);
    padding-block: 0 var(--sp-8);
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .site-footer > .container {
    padding-block-start: var(--sp-10);
  }

  /* Gece: koyu zemin, beyaz yazı */
  [data-theme="dark"] .site-footer {
    background: hsl(28 10% 7%);
    color: rgba(255,255,255,0.60);
    border-top-color: transparent;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    padding-block-end: var(--sp-12);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-block-end: var(--sp-8);
  }
  @media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  }

  /* Gündüz: siyah yazılar */
  .footer-brand .brand-link { color: rgba(0,0,0,0.85); }
  .footer-brand .brand-name { color: rgba(0,0,0,0.85); }
  .footer-brand .brand-icon { color: var(--c-accent); }
  .footer-brand > p {
    font-size: var(--text-sm);
    color: rgba(0,0,0,0.50);
    margin-block: var(--sp-5) var(--sp-6);
    max-width: 32ch;
    line-height: 1.75;
  }

  .footer-brand .social-link {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.55);
  }
  .footer-brand .social-link:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: white;
  }

  .footer-col h4 {
    color: rgba(0,0,0,0.85);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-block-end: var(--sp-5);
    font-family: var(--ff-heading);
  }
  .footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
  .footer-col li a {
    font-size: var(--text-sm);
    color: rgba(0,0,0,0.50);
    transition: color var(--t-fast);
  }
  .footer-col li a:hover { color: rgba(0,0,0,0.90); }

  .footer-disclaimer {
    font-size: var(--text-xs);
    color: rgba(0,0,0,0.35);
    line-height: 1.65;
    margin-block-start: var(--sp-5);
    font-style: italic;
  }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
  }
  .footer-bottom p { font-size: var(--text-xs); color: rgba(0,0,0,0.35); margin: 0; }
  .footer-legal { display: flex; gap: var(--sp-6); }
  .footer-legal a { font-size: var(--text-xs); color: rgba(0,0,0,0.35); transition: color var(--t-fast); }
  .footer-legal a:hover { color: rgba(0,0,0,0.80); }

  /* Gece modu — beyaz yazılar */
  [data-theme="dark"] .footer-brand .brand-link,
  [data-theme="dark"] .footer-brand .brand-name { color: rgba(255,255,255,0.90); }
  [data-theme="dark"] .footer-brand .brand-icon  { color: var(--c-accent-light); }
  [data-theme="dark"] .footer-brand > p          { color: rgba(255,255,255,0.50); }
  [data-theme="dark"] .footer-brand .social-link {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.65);
  }
  [data-theme="dark"] .footer-col h4         { color: rgba(255,255,255,0.90); }
  [data-theme="dark"] .footer-col li a       { color: rgba(255,255,255,0.50); }
  [data-theme="dark"] .footer-col li a:hover { color: rgba(255,255,255,0.90); }
  [data-theme="dark"] .footer-disclaimer     { color: rgba(255,255,255,0.30); }
  [data-theme="dark"] .footer-bottom p       { color: rgba(255,255,255,0.30); }
  [data-theme="dark"] .footer-legal a        { color: rgba(255,255,255,0.30); }
  [data-theme="dark"] .footer-legal a:hover  { color: rgba(255,255,255,0.80); }
}

/* ================================================================
   ANIMATIONS — keyframes
   ================================================================ */
@layer animations {
  @keyframes fade-in  {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes fade-up  {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0);     }
    50%       { transform: translateY(-18px); }
  }
  @keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1);   }
    50%       { opacity: 0.25; transform: scaleY(0.6); }
  }

  /* Intersection Observer reveal classes */
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal       { opacity: 0; transform: translateY(30px); }
  .reveal-left  { opacity: 0; transform: translateX(-28px); }
  .reveal-right { opacity: 0; transform: translateX(28px);  }

  .reveal.visible,
  .reveal-left.visible,
  .reveal-right.visible { opacity: 1; transform: translate(0); }

  /* Stagger children */
  .stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .stagger > *.visible { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   UTILITIES
   ================================================================ */
@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .text-accent   { color: var(--c-accent); }
  .text-muted    { color: var(--c-text-2); }
  .text-center   { text-align: center; }
  .no-posts-msg  {
    text-align: center;
    padding: var(--sp-16);
    color: var(--c-text-3);
    font-size: var(--text-lg);
    font-style: italic;
  }

  /* WordPress alignment classes */
  .alignleft  { float: left; margin-right: var(--sp-6); margin-bottom: var(--sp-4); }
  .alignright { float: right; margin-left: var(--sp-6); margin-bottom: var(--sp-4); }
  .aligncenter { display: block; margin-inline: auto; }
  .wp-caption { max-width: 100%; }
  .wp-caption-text { font-size: var(--text-xs); color: var(--c-text-3); text-align: center; margin-top: var(--sp-2); }

  /* Blog / single post content */
  .entry-content h2 { font-size: var(--text-3xl); margin-block: var(--sp-8) var(--sp-4); }
  .entry-content h3 { font-size: var(--text-2xl); margin-block: var(--sp-6) var(--sp-3); }
  .entry-content p  { margin-bottom: var(--sp-5); }
  .entry-content ul,
  .entry-content ol { margin-bottom: var(--sp-5); padding-inline-start: var(--sp-6); list-style: revert; }
  .entry-content li { margin-bottom: var(--sp-2); }
  .entry-content blockquote {
    margin-block: var(--sp-8);
    padding: var(--sp-6) var(--sp-8);
    border-inline-start: 4px solid var(--c-accent);
    background: var(--c-accent-muted);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--c-text);
  }
  .entry-content img { border-radius: var(--r-xl); margin-block: var(--sp-6); }
  .entry-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
}

/* ================================================================
   WORDPRESS YÖNETİCİ ÇUBUĞU (ADMIN BAR) UYUMLULUĞU
   WordPress oturum açıkken 32px (mobil: 46px) yüksekliğinde
   siyah bir admin bar eklenir. position:fixed olan header'ımız
   bu barın ALTINDA görünmeli; hero section da buna göre offset almalı.
   ================================================================ */

/* Masaüstü: admin bar 32px */
.admin-bar .site-header {
  top: 32px;
}

/* Hero content — admin bar yüksekliğini hesaba kat */
.admin-bar .hero-content {
  padding-block-start: calc(var(--header-h) + 32px + clamp(2.5rem, 6vw, 5rem));
}

/* Mobil: admin bar 46px (WordPress'in kendi breakpoint'i 782px) */
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .hero-content {
    padding-block-start: calc(var(--header-h) + 46px + clamp(2.5rem, 6vw, 5rem));
  }
}

/* ================================================================
   WORDPRESS VARSAYILAN STİL SIFIRLAMA
   WordPress bazı elementlere kendi stillerini ekler; bunları
   tema tasarımımızla uyumlu hale getiriyoruz.
   ================================================================ */

/* WordPress default img stilleri — tema'nın img stilini koru */
.wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gutenberg blok stillerini devre dışı bırak (tema kendi stilini kullanır) */
.wp-block-image figcaption {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  text-align: center;
}

/* WordPress gallery */
.wp-block-gallery { margin-block: var(--sp-8); }

/* Yorum formu */
#commentform input,
#commentform textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  color: var(--c-text);
  font-family: var(--ff-body);
  margin-bottom: var(--sp-4);
}
#commentform input:focus,
#commentform textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent);
}

/* Elementor sayfaları için wrapper düzeltmesi */
.elementor-front-page-wrap {
  padding-block-start: var(--header-h);
}
.admin-bar .elementor-front-page-wrap {
  padding-block-start: calc(var(--header-h) + 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .elementor-front-page-wrap {
    padding-block-start: calc(var(--header-h) + 46px);
  }
}

/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-page-wrap {
  padding-block: var(--section-py);
}
.blog-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
.blog-cats-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 1em;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--ff-heading);
  border: 1.5px solid var(--c-border);
  color: var(--c-text-2);
  background: var(--c-surface);
  transition: all var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}
.cat-pill:hover,
.cat-pill.active {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-md);
  font-family: var(--ff-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  text-decoration: none;
  transition: all var(--t-fast);
}
.page-btn:hover,
.page-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-wrap {
  padding-block: var(--section-py);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: var(--sp-10);
  transition: color var(--t-fast), gap var(--t-fast);
}
.back-btn:hover { color: var(--c-accent); gap: var(--sp-3); }

.single-header { margin-bottom: var(--sp-10); }
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-5);
}
.single-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
}
.single-lead {
  font-size: var(--text-xl);
  color: var(--c-text-2);
  line-height: 1.65;
  max-width: 62ch;
}
.single-hero-img {
  aspect-ratio: 16/7;
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
  background: var(--c-beige);
}
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Author box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  margin-block: var(--sp-12);
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--ff-heading);
  overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--c-text);
}
.author-box-role {
  font-size: var(--text-xs);
  color: var(--c-accent);
  font-weight: 600;
  font-family: var(--ff-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.author-box-bio { font-size: var(--text-sm); color: var(--c-text-2); margin: 0; }

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-block: var(--sp-12);
}
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  transition: all var(--t-base);
}
.post-nav a:hover { border-color: var(--c-accent); box-shadow: var(--sh-sm); }
.post-nav-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-text-3);
  font-family: var(--ff-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-nav-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

/* Tags row */
.tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block: var(--sp-8);
}
.tags-row-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-text-3);
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ================================================================
   TYPEWRITER BAND
   ================================================================ */
.tw-band {
  padding: 4rem 0 4.5rem;
  background: var(--c-bg);
  overflow: hidden;
}

[data-theme="dark"] .tw-band {
  background: var(--c-bg);
}

.tw-sentence {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
  white-space: pre-wrap;
  color: var(--c-text);
}

.tw-prefix {
  color: var(--c-text);
}

.tw-word {
  color: var(--c-accent);
  display: inline;
  white-space: pre-wrap;
  letter-spacing: -0.025em;
  min-width: 2px;
}

.tw-cursor {
  color: var(--c-accent);
  margin-left: 1px;
  animation: tw-blink 0.75s step-end infinite;
  display: inline;
}

@keyframes tw-blink {
  0%,  100% { opacity: 1; }
  50%        { opacity: 0; }
}

[data-theme="dark"] .tw-word   { color: var(--c-accent-light); }
[data-theme="dark"] .tw-cursor { color: var(--c-accent-light); }
