/* Kutyacica brand, illustration and responsive navigation enhancements. */

.kc-site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(111, 83, 72, 0.08);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 10px 34px rgba(93, 68, 58, 0.05);
  backdrop-filter: blur(18px);
}

.kc-site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.25fr) auto;
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  width: min(1460px, calc(100% - 64px));
  min-height: 92px;
  margin-inline: auto;
}

/*
 * Canonical public logo: this intentionally matches the final approved
 * homepage top-left identity. Other surfaces reuse this mark/wordmark instead
 * of introducing page-specific color or shape variants.
 */
.kc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #34231b;
  text-decoration: none;
}

.kc-brand__paw {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ff7b66;
  line-height: 1;
  transform: rotate(-5deg);
}

.kc-brand__paw svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 9px rgba(255, 123, 102, .18));
}

.kc-brand__text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.kc-brand__name {
  display: block;
  color: #34231b;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(27px, 2vw, 35px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.kc-brand__dog { color: #34231b; }
.kc-brand__cat { color: #ff7b66; }
.kc-brand__domain { color: #34231b; }

.kc-brand__text small {
  display: block;
  margin-top: 7px;
  color: #725f56;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .01em;
  white-space: nowrap;
}

.kc-header-search {
  display: flex;
  min-height: 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(112, 83, 69, .12);
  border-radius: 999px;
  background: #fbf3e9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.kc-header-search:focus-within {
  border-color: rgba(238, 124, 98, .46);
  box-shadow: 0 0 0 4px rgba(238, 124, 98, .1);
}

.kc-header-search input {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4a382f;
  font-size: .91rem;
}

.kc-header-search button {
  width: 50px;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: #563b2d;
  font-size: 1.65rem;
  cursor: pointer;
}

.kc-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.kc-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #573b2d;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.kc-header-action > span:first-child {
  font-size: 1.65rem;
  line-height: 1;
}

.kc-menu-toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #573b2d;
  cursor: pointer;
}

.kc-menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.kc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.kc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.kc-primary-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

.kc-primary-nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.kc-primary-nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid rgba(98, 76, 74, 0.11);
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.99);
  box-shadow: 0 24px 70px rgba(83, 62, 62, 0.16);
}

.kc-primary-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 15px;
  border-radius: 14px;
  color: #4f3a31;
  font-weight: 700;
  text-decoration: none;
}

.kc-primary-nav a:hover,
.kc-primary-nav a:focus-visible { background: linear-gradient(135deg, #fff0e8, #f1edff); }

.kc-pet-visual {
  background: url('../images/hero-pets.svg') center / contain no-repeat;
}

.kc-pet-visual::before,
.kc-pet-visual__blob,
.kc-pet-visual__pet,
.kc-pet-visual__paw { display: none !important; }

.kc-pet-visual__badge {
  right: 46px;
  bottom: 34px;
  transform: rotate(-2deg);
}

.kc-hero-search .wp-block-search__input:focus { outline: none; }
.kc-hero-search .wp-block-search__inside-wrapper:focus-within {
  border-color: rgba(222, 113, 95, 0.42);
  box-shadow: 0 18px 52px rgba(113, 88, 83, 0.16), 0 0 0 4px rgba(238, 128, 110, 0.1);
}

html.kc-menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .kc-site-header__inner {
    grid-template-columns: minmax(220px, .8fr) minmax(250px, 1fr) auto;
    width: min(100% - 36px, 1180px);
    gap: 20px;
  }
  .kc-header-actions { gap: 14px; }
  .kc-header-action span:last-child { display: none; }
}

@media (max-width: 900px) {
  .kc-brand__paw { width: 42px; height: 42px; }
}

@media (max-width: 780px) {
  .kc-site-header__inner {
    display: flex;
    min-height: 78px;
  }
  .kc-header-search { display: none; }
  .kc-header-actions { margin-left: auto; }
  .kc-header-action { display: none; }
  .kc-primary-nav { left: 0; width: 100%; transform-origin: top center; }
  .kc-pet-visual { min-height: 430px; }
}

@media (max-width: 620px) {
  .kc-brand__paw { width: 38px; height: 38px; }
  .kc-brand__name { font-size: 25px; }
}

@media (max-width: 520px) {
  .kc-site-header__inner { width: calc(100% - 24px); }
  .kc-brand { gap: 8px; }
  .kc-brand__text small { max-width: 190px; white-space: normal; }
  .kc-pet-visual { min-height: 340px; }
  .kc-pet-visual__badge { right: 10px; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-menu-toggle span,
  .kc-primary-nav,
  .kc-search-result { transition: none !important; }
}
