/* Homepage command shell. This file is loaded last in EN, PL and ES so the
   shared logo, menu and hero remain identical despite localized copy length. */
:root {
  --tr-shell-ink: #efe7dc;
  --tr-shell-muted: #b6a994;
  --tr-shell-pink: #df7e9e;
  --tr-shell-line: rgba(241, 233, 223, .17);
  --tr-shell-panel: rgba(10, 10, 13, .98);
}

body > header.site {
  position: relative;
  z-index: 40;
  overflow: visible;
  isolation: isolate;
}

body > header.site > .wrap {
  position: relative;
  overflow: visible;
}

body > header.site .nav {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: "brand languages price menu";
  align-items: center !important;
  gap: clamp(8px, 1.2vw, 16px);
  min-height: 84px;
  padding: 13px 0 !important;
  overflow: visible;
}

body > header.site .nav > .home-unified-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

/* The source frame is square and opaque. The circular mask plus screen blend
   removes its black tile while retaining the luminous TR monogram. */
body > header.site .home-unified-brand > .mono {
  position: relative;
  display: grid !important;
  flex: 0 0 56px !important;
  place-items: center;
  width: 56px !important;
  height: 56px !important;
  margin-right: 12px;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  clip-path: circle(49% at 50% 50%) !important;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 48%, transparent 50%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 48%, transparent 50%);
  isolation: isolate;
}

body > header.site .home-unified-brand > .mono > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  clip-path: inherit !important;
  filter: drop-shadow(0 0 11px rgba(239, 140, 175, .38)) !important;
  mix-blend-mode: screen !important;
  object-fit: contain !important;
}

body > header.site .home-unified-brand .brand-text {
  min-width: 0;
}

body > header.site .home-unified-brand .wordmark {
  display: block;
  color: var(--cream, var(--tr-shell-ink)) !important;
  font-family: var(--tr-role-display, var(--serif, "Playfair Display", Georgia, serif)) !important;
  font-size: clamp(1rem, .9rem + .44vw, 1.48rem) !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  line-height: .98 !important;
  white-space: nowrap;
}

body > header.site .home-unified-brand .est {
  display: block !important;
  margin-top: 5px;
  color: var(--faint, #857a6a) !important;
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .2em !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}

body > header.site .nav > .lang-switch {
  grid-area: languages;
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

body > header.site .lang-switch:not(.tr-language-picker) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  min-width: 36px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px;
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
}

body > header.site .nav > .pricebtn {
  grid-area: price;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px !important;
  max-width: min(210px, 25vw);
  margin: 0 !important;
  padding: 0 14px !important;
  overflow: hidden;
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  font-size: clamp(.8125rem, .78rem + .18vw, .875rem) !important;
  font-weight: 800;
  letter-spacing: .09em !important;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body > header.site .nav > .nav-toggle {
  grid-area: menu;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid rgba(198, 156, 104, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--cream, var(--tr-shell-ink));
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body > header.site .nav-toggle-label {
  white-space: nowrap;
}

body > header.site .nav-toggle .ic-open,
body > header.site .nav-toggle .ic-close {
  flex: 0 0 auto;
}

body > header.site .nav-toggle .ic-close {
  display: none !important;
}

body > header.site .nav-toggle[aria-expanded="true"] .ic-open {
  display: none !important;
}

body > header.site .nav-toggle[aria-expanded="true"] .ic-close {
  display: block !important;
}

/* A compact popover: sleek, balanced iOS drawer with clean touch targets */
body > header.site .nav > .nav-links {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 150;
  display: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start;
  width: min(320px, calc(100vw - 24px)) !important;
  max-height: 380px;
  max-height: min(65svh, 380px);
  margin: 0 !important;
  padding: 8px !important;
  gap: 6px !important;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 20px !important;
  background: rgba(18, 14, 22, 0.75) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  transform: translateY(-6px);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

body > header.site .nav > .nav-links.open,
body > header.site .nav > .nav-links[data-tr-nav-state="open"],
body > header.site .nav > .nav-links[data-trawa-menu-state="open"] {
  display: grid !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body > header.site .nav-links a {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  min-width: 0;
  min-height: 40px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .024);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(241, 233, 223, .9) !important;
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  font-size: 13px !important;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .01em !important;
  text-decoration: none;
  text-transform: none !important;
  overflow-wrap: anywhere;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}

body > header.site .nav-links a:active {
  transform: scale(.98);
}

body > header.site .nav-links a::after {
  content: none !important;
}

body > header.site .nav-links a:hover,
body > header.site .nav-links a:focus-visible,
body > header.site .nav-links a[aria-current="page"] {
  border-color: rgba(239, 140, 175, .54) !important;
  background: rgba(239, 140, 175, .15);
  color: #fff8f1 !important;
}

@media (max-width: 540px) {
  body > header.site .nav > .nav-links {
    width: min(260px, calc(100vw - 24px)) !important;
    grid-template-columns: 1fr !important;
    padding: 7px !important;
    gap: 4px !important;
  }
  body > header.site .nav-links a {
    min-height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
}

body > header.site :where(a, button):focus-visible {
  outline: 3px solid var(--pink, var(--tr-shell-pink)) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(223, 126, 158, .2) !important;
}

/* Hero: fixed visual role, flexible copy. Nothing forces the localized
   headings onto one line, so their words and focus rings can never clip. */
main > .hero:first-child {
  position: relative;
  z-index: 0;
}

main > .hero:first-child .hero-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  min-height: clamp(37rem, 56vw, 43rem) !important;
  height: auto !important;
}

main > .hero:first-child .hero-copy {
  grid-column: 1 / span 7 !important;
  grid-row: 1 !important;
  z-index: 2;
  align-self: center;
  min-width: 0;
  max-width: 45rem;
  padding: clamp(3rem, 5.5vw, 4.75rem) clamp(1.25rem, 3vw, 3rem) clamp(3rem, 5.5vw, 4.75rem) 0 !important;
}

main > .hero:first-child .hero h1,
main > .hero:first-child h1 {
  width: min(100%, 45rem) !important;
  max-width: 45rem !important;
  margin: 1.2rem 0 0 !important;
  color: var(--cream, var(--tr-shell-ink));
  font-family: var(--tr-role-display, var(--serif, "Playfair Display", Georgia, serif)) !important;
  font-size: clamp(3.05rem, 4.7vw, 4.9rem) !important;
  font-weight: 600 !important;
  line-height: .99 !important;
  letter-spacing: -.04em !important;
  text-wrap: balance !important;
  overflow-wrap: anywhere;
}

main > .hero:first-child .hero-title-line {
  display: block;
  white-space: normal !important;
}

main > .hero:first-child .hero-title-line--accent {
  margin-top: .07em;
  color: var(--pink, var(--tr-shell-pink));
  font-style: italic;
}

main > .hero:first-child .sub {
  max-width: 34rem !important;
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem) !important;
  line-height: 1.62 !important;
  overflow-wrap: anywhere;
}

main > .hero:first-child .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(1.45rem, 2.8vw, 2.15rem);
}

main > .hero:first-child .hero-cta .btn {
  min-width: 0;
  min-height: 52px;
  font-family: var(--tr-role-body, var(--ui, "Hanken Grotesk", system-ui, sans-serif)) !important;
  overflow-wrap: anywhere;
}

main > .hero:first-child .hero-visual {
  grid-column: 8 / -1 !important;
  grid-row: 1 !important;
  align-self: stretch;
  min-width: 0;
  min-height: clamp(25rem, 42vw, 38rem) !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 22px;
}

main > .hero:first-child .hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 68% center;
}

@media (max-width: 960px) {
  body > header.site .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand languages menu";
    align-items: center;
    row-gap: 0;
  }

  body > header.site .nav > .pricebtn {
    display: none !important;
  }
}

@media (max-width: 700px) {
  body > header.site .nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand languages menu";
    align-items: center;
    gap: 9px;
    min-height: 0;
    padding: 12px 0 14px !important;
  }

  body > header.site .home-unified-brand > .mono {
    flex-basis: 50px !important;
    width: 50px !important;
    height: 50px !important;
    margin-right: 10px;
  }

  body > header.site .home-unified-brand .wordmark {
    font-size: 15px !important;
    letter-spacing: .11em !important;
  }

  body > header.site .home-unified-brand .est {
    font-size: 13px !important;
    letter-spacing: .16em !important;
  }

  body > header.site .nav > .pricebtn {
    width: auto !important;
    max-width: min(56vw, 200px);
    min-height: 44px !important;
  }

  body > header.site .nav > .nav-toggle {
    min-width: 46px;
    width: 46px !important;
    padding: 0;
  }

  body > header.site .nav-toggle-label {
    display: none;
  }

  body > header.site .nav > .nav-links {
    top: calc(100% + 6px) !important;
    right: 0 !important;
    width: calc(100vw - 20px) !important;
    max-height: 330px;
    max-height: min(58svh, 330px);
    padding: 8px !important;
    gap: 5px !important;
  }

  body > header.site .nav-links a {
    min-height: 44px !important;
    padding: 8px 9px !important;
    font-size: clamp(.8125rem, .8125rem + .42vw, .82rem) !important;
  }

  main > .hero:first-child .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  main > .hero:first-child .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: min(100%, 52rem);
    padding: clamp(2.2rem, 9vw, 3.2rem) 0 1.55rem !important;
  }

  main > .hero:first-child .hero h1,
  main > .hero:first-child h1 {
    font-size: clamp(2.75rem, 11.2vw, 4.1rem) !important;
  }

  main > .hero:first-child .hero-visual {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: clamp(19rem, 78vw, 25rem) !important;
    margin: 0 0 1.35rem !important;
    border-radius: 18px;
  }

  main > .hero:first-child .hero-cta {
    gap: 10px;
  }

  main > .hero:first-child .hero-cta .btn {
    flex: 1 1 13.5rem;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  body > header.site .home-unified-brand > .mono {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 8px;
  }

  body > header.site .home-unified-brand .wordmark {
    font-size: 13px !important;
    letter-spacing: .1em !important;
  }

  body > header.site .home-unified-brand .est {
    display: none !important;
  }

  body > header.site .lang-switch:not(.tr-language-picker) a {
    width: 32px !important;
    min-width: 32px !important;
    min-height: 42px !important;
    font-size: 13px !important;
  }

  body > header.site .nav > .pricebtn {
    max-width: min(55vw, 174px);
    padding: 0 10px !important;
    font-size: 13px !important;
    letter-spacing: .06em !important;
  }

  main > .hero:first-child .hero-cta .btn {
    flex-basis: 100%;
  }

  main > .hero:first-child .hero-visual {
    min-height: clamp(18rem, 86vw, 22rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > header.site .nav > .nav-links,
  body > header.site .nav > .nav-toggle,
  body > header.site .home-unified-brand > .mono,
  body > header.site .home-unified-brand > .mono > img {
    transition: none !important;
    animation: none !important;
  }
}
