/* Shared PHP/static header. Keep this breakpoint in sync with site.js. */
.site-header .navbar { gap: 16px; }
.site-header .brand,
.site-header .header-phone,
.site-header .header-actions { flex-shrink: 0; }
.site-header .brand-mark {
  width: 104px;
  height: 80px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}
.site-header .nav-links { gap: clamp(12px, 1.2vw, 20px); }
.site-header .nav-links a { white-space: nowrap; }
.site-header .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 2px;
}
.site-header .nav-dropdown-label { display: inline-flex; align-items: center; }
.site-header .nav-dropdown-toggle {
  position: relative;
  width: 22px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}
.site-header .nav-dropdown-toggle span {
  position: absolute;
  top: 18px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease, top 180ms ease;
}
.site-header .nav-dropdown.is-open .nav-dropdown-toggle span {
  top: 22px;
  transform: rotate(225deg);
}
.site-header .nav-dropdown-panel {
  position: absolute;
  top: calc(100% - 5px);
  right: -18px;
  z-index: 70;
  width: min(440px, calc(100vw - 32px));
  border: 1px solid rgba(68, 32, 82, .13);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 55px rgba(34, 23, 39, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
html:not(.motion-ready) .site-header .nav-dropdown:hover .nav-dropdown-panel,
html:not(.motion-ready) .site-header .nav-dropdown:focus-within .nav-dropdown-panel,
.site-header .nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.site-header .nav-dropdown-panel a::after { display: none; }
.site-header .nav-dropdown-all {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 10px 14px;
  background: #f2edf4;
  color: var(--plum);
}
.site-header .nav-dropdown-all:hover,
.site-header .nav-dropdown-all:focus-visible { background: var(--plum); color: #fff; }
.site-header .nav-dropdown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  margin-top: 8px;
}
.site-header .nav-dropdown-list a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: .8rem;
}
.site-header .nav-dropdown-list a:hover,
.site-header .nav-dropdown-list a:focus-visible { background: #faf7fb; color: var(--plum); }
.site-header .header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.site-header .header-search:hover { color: var(--gold); }
.site-header .header-search.active { color: var(--plum); border-color: var(--gold); }
.site-header .search-icon {
  display: block;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin: -3px 3px 0 0;
}
.site-header .search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.site-header .menu-toggle { order: 0; width: 44px; height: 44px; }

body.search-open { overflow: hidden; }
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: clamp(70px, 10vh, 120px) 24px 40px;
}
.site-search-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(23, 20, 25, .78);
  backdrop-filter: blur(10px);
  cursor: default;
}
.site-search-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}
.site-search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.site-search-heading p {
  margin: 0 0 5px;
  color: var(--plum);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
}
.site-search-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.45;
}
.site-search-close {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.site-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px 7px 16px;
  background: var(--mist);
}
.site-search-form .search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--plum);
  border-radius: 50%;
  margin: -3px 3px 0 2px;
}
.site-search-form .search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--plum);
  content: "";
  transform: rotate(45deg);
}
.site-search-form input {
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.site-search-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 7px;
  padding: 0 20px;
  background: var(--plum);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.site-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .86rem;
}
.site-search-suggestions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff;
  color: var(--ink-soft);
}
.site-search-suggestions a:hover { border-color: var(--gold); color: var(--plum); }
.site-search-note { margin: 20px 0 0; color: var(--muted); font-size: .84rem; }

@media (min-width: 1101px) and (max-width: 1350px) {
  .site-header .nav-cta { display: none; }
}

@media (max-width: 1100px) {
  .site-header { --header-height: 76px; }
  .site-header .brand-mark { width: 88px; height: 70px; }
  .site-header .navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: var(--header-height);
    gap: 10px;
  }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .header-phone { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
  .site-header .header-actions { grid-column: 3; grid-row: 1; gap: 8px; }
  .site-header .nav-cta { display: none; }
  .site-header .menu-toggle { display: none; }
  /* Without JavaScript, navigation stays visible and usable. */
  .site-header .nav-links {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 20px;
    max-height: none;
    padding: 8px 0 16px;
    color: inherit;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-header .nav-links a { min-height: 44px; padding: 12px 0; border: 0; }
  .site-header .nav-dropdown {
    width: 100%;
    min-height: 52px;
    align-self: auto;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .site-header .nav-dropdown-label { flex: 1 1 auto; border: 0; }
  .site-header .nav-dropdown-toggle { flex: 0 0 52px; height: 52px; }
  .site-header .nav-dropdown-toggle span { top: 19px; left: 20px; width: 10px; height: 10px; }
  .site-header .nav-dropdown.is-open .nav-dropdown-toggle span { top: 24px; }
  .site-header .nav-dropdown-panel,
  .site-header .nav-dropdown:hover .nav-dropdown-panel,
  .site-header .nav-dropdown:focus-within .nav-dropdown-panel {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .motion-ready .site-header .nav-dropdown.is-open .nav-dropdown-panel,
  html:not(.motion-ready) .site-header .nav-dropdown-panel { display: block; }
  .motion-ready .site-header .nav-links > a { flex: 0 0 auto; }
  .site-header .nav-dropdown-all {
    min-height: 46px;
    background: rgba(255, 255, 255, .11);
    color: #fff;
  }
  .site-header .nav-dropdown-list { grid-template-columns: 1fr; margin-top: 4px; }
  .site-header .nav-dropdown-list a {
    min-height: 44px;
    padding: 9px 12px;
    border: 0;
    color: rgba(255, 255, 255, .88);
    font-size: .9rem;
  }
  .site-header .nav-dropdown-list a:hover,
  .site-header .nav-dropdown-list a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
  .motion-ready .site-header .menu-toggle { display: block; }
  .motion-ready .site-header .nav-links {
    position: fixed;
    inset: var(--header-height) 0 auto;
    z-index: 48;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 24px 24px;
    color: #fff;
    background: #241230;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .motion-ready .site-header .nav-links a {
    min-height: 52px;
    padding: 14px 8px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .motion-ready body.menu-open .site-header .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  body.menu-open .site-header .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .site-header .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  html:not(.motion-ready) .home-page .site-header { position: relative; background: #241230; }
}

@media (max-width: 680px) {
  .site-header { --header-height: 72px; }
  .site-search-overlay { padding: 24px 12px; place-items: center; }
  .site-search-panel { padding: 24px 18px; border-radius: 14px; }
  .site-search-heading { margin-bottom: 20px; }
  .site-search-form { grid-template-columns: auto minmax(0, 1fr); }
  .site-search-form button { grid-column: 1 / -1; justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
  .site-header .navbar { gap: 8px; }
  .site-header .brand-mark { width: 78px; height: 62px; padding: 0; }
  .site-header .brand-mark img { width: 100%; height: 100%; }
  .site-header .header-phone { font-size: .82rem; }
  .site-header .header-phone .gt-contact-icon { display: none; }
  .site-header .header-actions { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .site-header .nav-links,
  .site-header .menu-toggle span { transition: none; }
}

/* One public header, shared by the homepage, PHP pages and static landings.
   Keep page-level styles out of this component; desktop/mobile match Studio. */
.site-header[data-header],
.site-header[data-header].is-scrolled,
body.menu-open .site-header[data-header] {
  position: sticky;
  inset: 0 0 auto;
  background: #faf9f6f5;
  color: #2b2031;
  border-bottom: 1px solid #e9e5e1;
  backdrop-filter: blur(16px);
}
.site-header[data-header] .navbar {
  width: min(1280px, calc(100% - 88px));
  min-height: 94px;
  gap: 24px;
}
.site-header[data-header] .header-phone { display: none; }
.site-header[data-header] .brand-mark {
  width: 95px;
  height: 78px;
  padding: 3px;
}
.site-header[data-header] .nav-links { margin-inline: auto; gap: 20px; }
.site-header[data-header] .nav-links > a,
.site-header[data-header] .nav-dropdown-label { font-size: .85rem; }
.site-header[data-header] .header-search { border: 0; background: transparent; }
.site-header[data-header] .nav-cta {
  display: inline-flex;
  min-height: 47px;
  padding: 0 22px;
  border: 1px solid #66377c;
  border-radius: 50px;
  background: #482359;
  color: #fff;
  font-size: .76rem;
}
.site-header[data-header] .nav-cta:hover {
  background: #713a87;
  color: #fff;
  border-color: #66377c;
  box-shadow: 0 6px 22px #66377c22;
}
.site-header[data-header] .menu-toggle { color: #2b2031; }
.site-header[data-header] .menu-toggle span { background: currentColor; }
.site-header[data-header] .site-search-heading h2 {
  font-size: clamp(1.9rem, 3.45vw, 3.3rem);
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: -.05em;
}
@media (max-width: 1100px) {
  .site-header[data-header] { --header-height: 82px; }
  .site-header[data-header] .navbar {
    width: calc(100% - 48px);
    min-height: 82px;
    gap: 18px;
  }
  .site-header[data-header] .nav-links { margin: 0; gap: 3px; color: #2b2031; background: #faf8f4; }
  .site-header[data-header] .nav-links a,
  .site-header[data-header] .nav-dropdown { border-bottom-color: #e6dfe5; }
  .site-header[data-header] .nav-dropdown-panel { color: #2b2031; background: #eee8f0; }
  .site-header[data-header] .nav-dropdown-all { color: #66377c; background: #e4d9e9; }
  .site-header[data-header] .nav-dropdown-list a { color: #2b2031; }
  .site-header[data-header] .nav-dropdown-list a:hover,
  .site-header[data-header] .nav-dropdown-list a:focus-visible { background: #e4d9e9; color: #66377c; }
  html:not(.motion-ready) .site-header[data-header] { position: relative; background: #faf9f6; }
}
@media (max-width: 700px) {
  .site-header[data-header] { --header-height: 78px; }
  .site-header[data-header] .navbar {
    width: calc(100% - 32px);
    min-height: 78px;
    gap: 12px;
  }
  .site-header[data-header] .brand-mark { width: 77px; height: 64px; }
  .site-header[data-header] .nav-cta { min-height: 42px; padding-inline: 13px; font-size: .66rem; }
  .site-header[data-header] .nav-cta > span:last-child { display: none; }
  .site-header[data-header] .site-search-heading h2 { font-size: 1.9rem; }
}
@media (max-width: 380px) {
  .site-header[data-header] .nav-cta { display: none; }
}
