/* =========================================================
   ZENORA — fresh brand system (no travel photography)
   Direction: signal field · ink wordmark · Viva Magenta
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --z-magenta: #BD3455;
  --z-magenta-deep: #8E1F3C;
  --z-magenta-soft: #F6E4E9;
  --z-ink: #141218;
  --z-mute: #6A646E;
  --z-line: #E7DCE0;
  --z-paper: #F7F5F6;
  --z-white: #FFFFFF;
  --z-display: "Space Grotesk", "Avenir Next", sans-serif;
  --z-body: "DM Sans", "Avenir Next", sans-serif;
  --z-max: 1120px;
  --header-h: 64px;

  /* Bridge legacy tokens used across site.css */
  --primary: var(--z-magenta);
  --primary-dark: var(--z-magenta-deep);
  --primary-mid: #D24A68;
  --primary-light: var(--z-magenta-soft);
  --accent: #E85A7A;
  --accent-soft: #FBF0F3;
  --text: var(--z-ink);
  --muted: var(--z-mute);
  --bg: var(--z-paper);
  --card: var(--z-white);
  --border: var(--z-line);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 0 rgba(20, 18, 24, 0.04), 0 12px 32px rgba(20, 18, 24, 0.06);
  --max: var(--z-max);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--z-body);
  color: var(--z-ink);
  background: var(--z-paper);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .catalog-section-title {
  font-family: var(--z-display);
  letter-spacing: -0.04em;
}

a { color: var(--z-magenta); }

/* —— Top strip —— */
.promo-bar {
  background: var(--z-ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.promo-bar a { color: #fff; font-weight: 600; }

.promo-badge {
  background: var(--z-magenta);
  border: none;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

/* —— Header: brand | centered nav | tools —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 245, 246, 0.94);
  border-bottom: 1px solid var(--z-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}

.site-header-inner {
  max-width: var(--z-max);
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0 1.25rem;
  margin: 0 auto;
}

.brand {
  gap: 0.55rem;
  color: var(--z-ink);
  text-decoration: none;
  justify-self: start;
  z-index: 1;
}

.brand:hover { color: var(--z-ink); opacity: 0.8; text-decoration: none; }

.brand img.brand-mark-z {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand img.brand-wordmark,
.brand img.brand-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand .brand-text-fallback { display: none; }
.brand img.brand-mark { display: none; }

.site-nav {
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
  flex: unset;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  justify-self: end;
  z-index: 1;
}

.header-lang { margin: 0; }

.lang-switch {
  border: 1px solid var(--z-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--z-white);
  box-shadow: none;
}

.lang-switch-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--z-mute);
  background: transparent;
}

.lang-switch-btn.is-active {
  background: var(--z-magenta);
  color: #fff;
}

.lang-switch-btn:hover { color: var(--z-ink); text-decoration: none; }
.lang-switch-btn.is-active:hover { color: #fff; }

.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--z-mute);
  border-radius: 0;
  padding: 0.45rem 0.65rem;
  background: transparent;
}

.nav-link:hover {
  color: var(--z-ink);
  background: transparent;
}

.nav-link.is-active {
  color: var(--z-ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--z-magenta);
  border-radius: 0;
  font-weight: 700;
}

.nav-link--cta {
  background: var(--z-magenta) !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0.45rem 0.9rem !important;
}

.nav-link--cta.is-active {
  box-shadow: none !important;
  background: var(--z-magenta) !important;
  color: #fff !important;
}

.nav-link--cta:hover { background: var(--z-magenta-deep) !important; }

.nav-toggle {
  border-radius: 8px;
  border-color: var(--z-line);
  background: var(--z-white);
}

.nav-toggle span { background: var(--z-ink); }

@media (max-width: 1100px) and (min-width: 993px) {
  .nav-link { padding: 0.4rem 0.45rem; font-size: 0.78rem; }
  .nav-link--cta { padding: 0.4rem 0.7rem !important; }
}

@media (min-width: 993px) {
  .site-nav {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex: unset !important;
    margin: 0 !important;
    width: auto !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 195;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--z-white);
    border-right: 1px solid var(--z-line);
    padding: calc(var(--header-h) + var(--promo-bar-h, 40px) + 0.5rem) 0.75rem 1.5rem;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s ease;
    box-shadow: 8px 0 32px rgba(20, 18, 24, 0.12);
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-link.is-active {
    box-shadow: none;
    background: var(--z-magenta-soft);
    color: var(--z-magenta);
    border-radius: 8px;
  }

  .header-tools { gap: 0.4rem; }
}

/* —— HERO: signal field (NO travel photo) —— */
.catalog-hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: center;
  justify-content: stretch;
  text-align: left;
  padding: clamp(4.5rem, 10vh, 6.5rem) 1.5rem clamp(3rem, 7vh, 4.5rem);
  border-bottom: 1px solid var(--z-line);
  color: var(--z-ink);
  background:
    #F7F5F6
    url(/assets/zenora-hero-signal.png) right center / cover no-repeat;
  animation: none;
}

.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 245, 246, 0.97) 0%, rgba(247, 245, 246, 0.88) 38%, rgba(247, 245, 246, 0.35) 68%, rgba(247, 245, 246, 0.15) 100%);
}

.catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url(/assets/hero-signal.svg) right -8% center / min(920px, 92vw) no-repeat;
  opacity: 0.28;
  animation: zenoraPulse 7s ease-in-out infinite;
}

.catalog-hero-inner {
  position: relative;
  z-index: 2;
  isolation: isolate;
  max-width: var(--z-max);
  margin: 0 auto;
  width: 100%;
  padding: 0;
  animation: zenoraIn 0.7s ease both;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-copy {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-brand {
  display: none !important;
}

.hero-brand .hero-z {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(189, 52, 85, 0.26);
  flex-shrink: 0;
}

.hero-brand .wm,
.hero-brand .hero-wordmark {
  display: block;
  width: auto;
  max-width: min(100%, 220px);
  height: 28px;
  object-fit: contain;
  filter: none !important;
}

.hero-brand .hero-wordmark {
  font-family: var(--z-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--z-ink);
  height: auto;
  max-width: none;
}

.catalog-hero h1,
.hero-copy h1 {
  margin: 0 0 0.85rem;
  max-width: 12ch;
  color: var(--z-ink);
  font-family: var(--z-display);
  font-size: clamp(2.35rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: none;
  text-align: left;
}

.catalog-hero > .catalog-hero-inner > p:not(.hero-cta-row):not(.trust-line):not(.hero-links):not(.hero-brand),
.hero-copy > p:not(.hero-cta-row):not(.hero-brand) {
  max-width: 34ch;
  margin: 0 0 1.75rem;
  color: var(--z-mute);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  text-shadow: none;
  text-align: left;
}

.catalog-hero p a { color: var(--z-magenta); }

.catalog-hero .trust-line,
.catalog-hero .hero-links { display: none !important; }

.hero-cta-row,
.catalog-hero .hero-cta-row,
.hero-copy .hero-cta-row,
p.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 0.7rem;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0;
  max-width: none !important;
  width: auto;
  text-align: left;
  text-shadow: none;
  color: inherit;
}

.hero-cta,
a.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-family: var(--z-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(189, 52, 85, 0.28);
  border: none;
  background: #BD3455 !important;
  background-color: #BD3455 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  position: relative;
  z-index: 3;
  isolation: isolate;
  mix-blend-mode: normal;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-cta:hover,
a.hero-cta:hover,
.hero-cta:focus-visible,
a.hero-cta:focus-visible {
  background: #8E1F3C !important;
  background-color: #8E1F3C !important;
  transform: translateY(-1px);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.hero-cta--ghost,
a.hero-cta--ghost {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #141218 !important;
  -webkit-text-fill-color: #141218;
  border: 1.5px solid #141218;
  box-shadow: none;
}

.hero-cta--ghost:hover,
a.hero-cta--ghost:hover {
  background: #141218 !important;
  background-color: #141218 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

/* Kill legacy site.css white-on-white / magenta-on-magenta CTA rules */
.catalog-hero .btn-primary,
.catalog-hero a.btn-primary,
.catalog-hero .hero-cta.btn-primary {
  background: var(--z-magenta) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.catalog-hero .btn-primary:hover,
.catalog-hero a.btn-primary:hover {
  background: var(--z-magenta-deep) !important;
  color: #fff !important;
}

@keyframes zenoraIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes zenoraPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

/* —— Catalog —— */
.catalog-toolbar {
  position: relative;
  z-index: 3;
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}

.catalog-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin-bottom: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--z-line);
  border-radius: 0;
  box-shadow: none;
}

.catalog-tab {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--z-mute);
  font-family: var(--z-body);
  font-weight: 650;
  font-size: 0.92rem;
  box-shadow: inset 0 -2px 0 transparent;
}

.catalog-tab:hover {
  color: var(--z-ink);
  background: transparent;
}

.catalog-tab.is-active {
  color: var(--z-ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--z-magenta);
}

.search-input {
  border: 1px solid var(--z-line);
  border-radius: 12px;
  background: var(--z-white);
  font-family: var(--z-body);
  box-shadow: none;
}

.search-input:focus {
  outline: none;
  border-color: var(--z-magenta);
  box-shadow: 0 0 0 3px rgba(189, 52, 85, 0.12);
}

.catalog-body {
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.catalog-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--z-ink);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.country-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "media body foot";
  align-items: center;
  gap: 0.85rem 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  border: 1px solid var(--z-line);
  border-radius: 16px;
  background: var(--z-white);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.country-card:hover {
  transform: translateY(-2px);
  border-color: #e0a8b6;
  box-shadow: 0 12px 28px rgba(189, 52, 85, 0.1);
}

.country-card-media {
  grid-area: media;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-card-flag {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(189, 52, 85, 0.1), rgba(189, 52, 85, 0.02));
  border: 1px solid var(--z-line);
  display: grid;
  place-items: center;
}

.country-card-flag .country-flag-img,
.country-card-flag .country-flag-emoji {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  font-size: 1.55rem;
  display: grid;
  place-items: center;
}

.country-card-badge {
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
  border-radius: 4px;
  background: var(--z-magenta);
  color: #fff;
  white-space: nowrap;
}

.country-card-body {
  grid-area: body;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.country-card-name {
  margin: 0;
  font-family: var(--z-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--z-ink);
  line-height: 1.2;
}

.country-card-meta,
.country-card-coverage {
  margin: 0;
  font-size: 0.78rem;
  color: var(--z-mute);
  font-weight: 500;
}

.country-card-guide {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--z-magenta);
  text-decoration: none;
}

.country-card-foot {
  grid-area: foot;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.country-card-price {
  margin: 0;
  font-family: var(--z-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--z-magenta);
  white-space: nowrap;
}

.country-card-price em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--z-mute);
  margin-right: 0.15rem;
}

.country-card-go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--z-magenta-soft);
  color: var(--z-magenta);
  transition: background 0.2s, color 0.2s;
}

.country-card:hover .country-card-go {
  background: var(--z-magenta);
  color: #fff;
}

.country-card--regional {
  background: linear-gradient(180deg, #fff 0%, #FBF0F3 100%);
  border-color: #e8c4ce;
}

.site-footer .brand-mark-z {
  filter: none;
}

.site-footer .brand-logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 560px) {
  .country-grid {
    grid-template-columns: 1fr;
  }

  .country-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "media body"
      "foot foot";
  }

  .country-card-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.15rem;
    border-top: 1px solid var(--z-line);
  }
}

.btn-primary,
.btn.btn-primary,
a.btn-primary {
  background: var(--z-magenta) !important;
  color: #fff !important;
  border-radius: 12px;
  font-family: var(--z-display);
  font-weight: 700;
  text-decoration: none !important;
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--z-magenta-deep) !important;
  color: #fff !important;
}

/* —— Newsletter —— */
.newsletter-section { background: transparent; margin-top: 2rem; }

.newsletter-inner {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--z-line);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(189, 52, 85, 0.14), transparent 60%),
    var(--z-white);
  color: var(--z-ink);
  box-shadow: none;
}

.newsletter-copy h2 {
  font-family: var(--z-display);
  color: var(--z-ink);
  margin: 0 0 0.35rem;
}

.newsletter-copy p,
.newsletter-fine { color: var(--z-mute); }

.newsletter-fine a { color: var(--z-magenta); }

.newsletter-form .btn-primary {
  background: var(--z-magenta);
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  margin-top: 0;
  padding: 3.25rem 1.25rem 2rem;
  background: var(--z-ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .brand { color: #fff; }
.site-footer .brand-wordmark,
.site-footer .brand-logo {
  height: 22px;
  filter: brightness(0) invert(1);
}

.site-footer .brand span { display: none; }

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 30ch;
}

.footer-col-title {
  font-family: var(--z-display);
  color: #fff;
}

.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }

@media (max-width: 900px) {
  .catalog-hero {
    min-height: min(78vh, 620px);
    background-position: 65% center;
    padding: clamp(3.5rem, 8vh, 5rem) 1.25rem 2.75rem;
  }

  .catalog-hero::before {
    background: linear-gradient(180deg, rgba(247, 245, 246, 0.94) 0%, rgba(247, 245, 246, 0.86) 55%, rgba(247, 245, 246, 0.7) 100%);
  }

  .catalog-hero::after {
    opacity: 0.3;
    background-position: 70% 20%;
  }

  .hero-copy { max-width: 100%; }
  .catalog-hero h1,
  .hero-copy h1 { max-width: 12ch; }
  .hero-brand .hero-z { width: 48px; height: 48px; border-radius: 12px; }
  .hero-brand .wm { height: 24px; max-width: 180px; }
}

@media (max-width: 640px) {
  .site-header-inner { padding: 0 0.9rem; }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-cta,
  a.hero-cta {
    width: 100%;
    border-radius: 12px;
  }
  .catalog-tabs { overflow-x: auto; }
  .catalog-tab { flex: 0 0 auto; }
  .hero-brand { margin-bottom: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-hero-inner,
  .catalog-hero::after { animation: none !important; }
}
