/* =========================================================
   SISTEM SUNYI HEADER LOGO CENTER
   Final refined version
   Light mode only
   ========================================================= */

.ss-site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(28, 35, 43, 0.08);
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.035);
  position: relative;
  z-index: 20;
}

.ss-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 28px 40px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  column-gap: 28px;
}

/* LEFT BRAND */

.ss-brand-left {
  justify-self: start;
}

.ss-parent-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: #2b3440;
}

.ss-parent-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ss-parent-subtitle {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #6d7480;
  letter-spacing: 0.01em;
}

/* CENTER BRAND */

.ss-brand-center {
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ss-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 4px;
  border-radius: 999px;
}

.ss-logo {
  display: block;
  width: clamp(76px, 7.4vw, 116px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 16px rgba(10, 18, 26, 0.12))
    drop-shadow(0 1px 1px rgba(183, 132, 43, 0.22));
}

.ss-title-link {
  text-decoration: none;
  color: #070707;
}

.ss-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.ss-subtitle {
  margin-top: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #121923;
  font-weight: 500;
}

/* RIGHT NAV */

.ss-brand-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ss-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #111820;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ss-top-link:hover {
  background: rgba(20, 24, 31, 0.065);
  color: #000000;
}

.ss-top-link-active {
  background: #d2d2d2;
  color: #111111;
}

.ss-top-link-active:hover {
  background: #c5c5c5;
}

/* ACCESSIBILITY */

.ss-logo-link:focus-visible,
.ss-title-link:focus-visible,
.ss-parent-brand:focus-visible,
.ss-top-link:focus-visible {
  outline: 2px solid rgba(177, 127, 44, 0.7);
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 980px) {
  .ss-header-inner {
    padding: 30px 22px 28px;
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .ss-brand-left,
  .ss-brand-center,
  .ss-brand-right {
    justify-self: center;
  }

  .ss-brand-left {
    text-align: center;
    order: 2;
  }

  .ss-brand-center {
    order: 1;
  }

  .ss-brand-right {
    order: 3;
  }

  .ss-parent-brand {
    align-items: center;
  }

  .ss-logo-link {
    margin-bottom: 4px;
  }

  .ss-logo {
    width: clamp(70px, 16vw, 92px);
  }
}

/* MOBILE */

@media (max-width: 640px) {
  .ss-header-inner {
    padding: 26px 18px 24px;
    row-gap: 17px;
  }

  .ss-logo {
    width: clamp(66px, 20vw, 84px);
  }

  .ss-title {
    font-size: clamp(31px, 10vw, 39px);
  }

  .ss-subtitle {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .ss-brand-right {
    gap: 8px;
  }

  .ss-top-link {
    min-height: 32px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
    border-radius: 11px;
  }

  .ss-parent-title {
    font-size: 17px;
  }

  .ss-parent-subtitle {
    font-size: 11px;
  }
}

/* VERY SMALL MOBILE */

@media (max-width: 420px) {
  .ss-header-inner {
    padding: 24px 14px 22px;
  }

  .ss-brand-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ss-subtitle {
    letter-spacing: 0.16em;
  }
}