/* Header styles for CityCleaningPro */

.ccp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.ccp-header__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ccp-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ccp-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ccp-header__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 30%, #4ade80 0, #22c55e 38%, #14b8a6 70%, #0f766e 100%);
  position: relative;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.ccp-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 18% 18% 32% 18%;
  border-radius: 0.6rem 0.6rem 0.35rem 0.35rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ccp-header__logo-text {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}

.ccp-header__logo-main {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.ccp-header__logo-sub {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.2;
}

/* Navigation */

.ccp-header__nav {
  display: flex;
  align-items: center;
}

.ccp-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.ccp-header__nav-item {
  position: relative;
}

.ccp-header__nav-link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  position: relative;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.ccp-header__nav-link:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.ccp-header__nav-link:hover {
  background-color: rgba(15, 23, 42, 0.03);
  color: #0f172a;
}

.ccp-header__nav-item--cta .ccp-header__nav-link--cta {
  background: linear-gradient(135deg, #0f6ddf, #22c55e);
  color: #ffffff;
  padding-inline: 1.1rem;
  box-shadow: 0 8px 20px rgba(15, 76, 183, 0.35);
}

.ccp-header__nav-item--cta .ccp-header__nav-link--cta:hover {
  background: linear-gradient(135deg, #0753b6, #16a34a);
  box-shadow: 0 10px 24px rgba(15, 76, 183, 0.43);
}

.ccp-header__nav-item--cta .ccp-header__nav-link--cta:focus-visible {
  outline-color: #22c55e;
}

/* Mobile menu toggle */

.ccp-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background-color: #ffffff;
  cursor: pointer;
  color: #0f172a;
}

.ccp-header__menu-toggle:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}

.ccp-header__menu-toggle-box {
  width: 1.4rem;
  height: 1.1rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.ccp-header__menu-toggle-line {
  height: 2px;
  border-radius: 999px;
  background-color: #0f172a;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
}

.ccp-header__menu-toggle-text {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Mobile / small screens */

@media (max-width: 768px) {
  .ccp-header__inner {
    padding-inline: 1rem;
  }

  .ccp-header__menu-toggle {
    display: inline-flex;
  }

  .ccp-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
    transform-origin: top;
  }

  .ccp-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .ccp-header__nav-link {
    display: block;
    padding: 0.7rem 0.8rem;
  }

  .ccp-header__nav-item--cta .ccp-header__nav-link--cta {
    text-align: center;
    margin-top: 0.15rem;
  }

  .ccp-header--menu-open .ccp-header__nav-list {
    max-height: 18rem;
    opacity: 1;
    transform: translateY(0);
  }

  .ccp-header--menu-open .ccp-header__menu-toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(42deg);
  }

  .ccp-header--menu-open .ccp-header__menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .ccp-header--menu-open .ccp-header__menu-toggle-line:nth-child(3) {
    transform: translateY(-5px) rotate(-42deg);
    width: 100%;
  }
}

/* Medium screens */

@media (min-width: 769px) and (max-width: 1024px) {
  .ccp-header__inner {
    padding-inline: 1.25rem;
  }

  .ccp-header__nav-list {
    gap: 0.35rem;
  }

  .ccp-header__nav-link {
    font-size: 0.9rem;
    padding-inline: 0.6rem;
  }
}

/* Large screens */

@media (min-width: 1025px) {
  .ccp-header__inner {
    padding-inline: 1.5rem;
  }
}
