/* Sticky header wrapper */
.calc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: var(--cold-dark);
  border-bottom: 1px solid rgba(229, 231, 235, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: 100vw;
  max-width: 100dvw;
}

.calc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

/* Hard constrain the logo so it can never “blow up” */
.brand-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 52px;              /* <- key */
  max-height: 52px;
}

.brand-logo img {
  height: 52px;              /* <- key */
  width: auto;
  max-width: 220px;          /* optional guard */
  display: block;
}

.brand-text-main {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  color: var(--pizza);
}

.brand-text-sub {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--pita-dark);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--pita-dark);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--pizza);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after { width: 100%; }

/* Mobile tweaks */
@media (max-width: 720px) {
  .nav-links { display: none; }
}
