/* Layout */
.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background var(--t-hover) var(--ease),
    color var(--t-hover) var(--ease),
    border-color var(--t-hover) var(--ease),
    transform var(--t-press) var(--ease),
    box-shadow var(--t-hover) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: #000;
}

.btn-ghost {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.btn-soft {
  background: var(--soft);
  color: var(--black);
  border-color: transparent;
}

.btn-soft:hover {
  background: var(--line);
}

.btn-on-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-on-dark:hover {
  background: var(--soft);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover) var(--ease), background var(--t-hover) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  margin-left: -8px;
  transition: background var(--t-hover) var(--ease);
  line-height: 0;
}

.nav-brand:hover {
  background: var(--soft);
}

.nav-brand img {
  height: 30px;
  width: auto;
  max-width: min(180px, 46vw);
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: background var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}

.nav-link:hover {
  background: var(--soft);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: var(--soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition:
    background var(--t-hover) var(--ease),
    border-color var(--t-hover) var(--ease),
    transform var(--t-press) var(--ease);
}

.nav-toggle:hover {
  background: var(--soft);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle-bars {
  width: 16px;
  height: 10px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--t-menu) var(--ease), top var(--t-menu) var(--ease);
}

.nav-toggle-bars::before {
  top: 1px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--t-menu) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav-mobile.is-open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--line);
}

.nav-mobile-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 var(--pad) 0;
}

.nav-mobile.is-open .nav-mobile-inner {
  padding-bottom: 16px;
}

.nav-mobile .nav-link {
  padding: 14px 16px;
  font-size: 15px;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none;
  }
}

/* Hero */
.hero {
  padding: clamp(36px, 8vw, 72px) 0 clamp(48px, 10vw, 88px);
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  max-width: 12ch;
}

.hero-lead {
  margin-top: 16px;
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--mute);
  max-width: 28ch;
}

.hero-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--mute);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1.1fr 0.9fr;
  gap: 12px;
  min-height: min(52vw, 420px);
}

.hero-frame {
  border-radius: var(--radius-media);
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.hero-frame--tall {
  grid-row: 1 / span 2;
}

.hero-frame--wide {
  grid-column: 2;
}

.hero-frame--square {
  grid-column: 2;
}

.hero-frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background:
    linear-gradient(160deg, #f7f7f7 0%, #ececec 48%, #dddddd 100%);
}

.hero-frame--tall .hero-frame-inner {
  background:
    linear-gradient(180deg, #fafafa 0%, #ededed 55%, #d8d8d8 100%);
}

.hero-frame--wide .hero-frame-inner {
  background:
    linear-gradient(135deg, #f3f3f3 0%, #e4e4e4 100%);
}

.hero-frame-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--black);
  margin-bottom: auto;
}

.hero-frame-caption {
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: clamp(48px, 9vw, 88px) 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
}

.section-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--mute);
  max-width: 36ch;
}

/* City search */
.search-panel {
  position: relative;
  max-width: 560px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 6px 6px 6px 18px;
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}

.search-field:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.search-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  min-width: 0;
}

.search-field input:focus {
  outline: none;
  box-shadow: none;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity var(--t-modal) var(--ease),
    transform var(--t-modal) var(--ease),
    visibility var(--t-modal);
}

.search-suggest.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggest-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: var(--radius-card);
  padding: 14px 16px;
  transition: background var(--t-hover) var(--ease);
}

.suggest-item:hover,
.suggest-item.is-active {
  background: var(--soft);
}

.suggest-item strong {
  font-weight: 600;
  display: block;
}

.suggest-item span {
  font-size: 13px;
  color: var(--mute);
}

.suggest-badge {
  flex-shrink: 0;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--mute);
}

.suggest-badge.is-live {
  background: var(--black);
  color: var(--white);
}

.suggest-empty {
  padding: 18px 16px;
  font-size: 14px;
  color: var(--mute);
}

/* City cards */
.city-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.city-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius-media);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    transform var(--t-card) var(--ease),
    border-color var(--t-card) var(--ease),
    background var(--t-card) var(--ease);
}

.city-card:hover {
  transform: translateY(-3px);
  border-color: #d8d8d8;
  background: #fcfcfc;
}

.city-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.city-card h3 {
  font-size: 24px;
}

.city-card p {
  margin-top: 8px;
  color: var(--mute);
  font-size: 14px;
  max-width: 28ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--soft);
  color: var(--mute);
}

.badge-dark {
  background: var(--black);
  color: var(--white);
}

.city-card-cta {
  font-size: 14px;
  font-weight: 500;
}

/* Discover life — editorial rhythm, not equal cards */
.discover {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .discover {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
  }

  .discover-item:nth-child(1) {
    grid-row: 1 / span 2;
    min-height: 360px;
  }
}

.discover-item {
  border-radius: var(--radius-media);
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 160px;
  transition: transform var(--t-card) var(--ease), background var(--t-card) var(--ease);
}

.discover-item:hover {
  transform: translateY(-2px);
  background: #fcfcfc;
}

.discover-item:nth-child(1) {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  min-height: 220px;
}

.discover-item:nth-child(1):hover {
  background: #000;
}

.discover-item:nth-child(1) .discover-label,
.discover-item:nth-child(1) .discover-text {
  color: rgba(255, 255, 255, 0.72);
}

.discover-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.discover-item h3 {
  font-size: clamp(20px, 3vw, 28px);
}

.discover-text {
  font-size: 14px;
  color: var(--mute);
  max-width: 28ch;
}

/* Business CTA */
.biz-cta {
  border-radius: var(--radius-panel);
  background: var(--black);
  color: var(--white);
  padding: clamp(36px, 7vw, 64px);
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .biz-cta {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }
}

.biz-cta h2 {
  font-size: clamp(28px, 5vw, 42px);
  max-width: 10ch;
}

.biz-cta p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
  font-size: 15px;
}

/* About */
.about-block {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 800px) {
  .about-block {
    grid-template-columns: auto 1fr;
    gap: 48px;
  }
}

.about-logo {
  width: min(160px, 42vw);
  height: auto;
}

.about-block h2 {
  font-size: clamp(26px, 4vw, 36px);
  max-width: 12ch;
}

.about-block p {
  margin-top: 12px;
  color: var(--mute);
  max-width: 40ch;
  font-size: 15px;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(36px, 7vw, 64px) 0 24px;
}

.page-hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
}

.page-hero p {
  margin-top: 12px;
  color: var(--mute);
  max-width: 40ch;
  font-size: 16px;
}

/* Forms */
.form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
}

.field .hint {
  font-size: 12px;
  color: var(--mute);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 12px 14px;
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: var(--radius-card);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #d4d4d4;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
  outline: none;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: #111;
}

.field-error {
  font-size: 12px;
  color: #444;
  min-height: 1em;
}

.form-status {
  border-radius: var(--radius-card);
  padding: 14px 16px;
  font-size: 14px;
  background: var(--soft);
  color: var(--mute);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  background: var(--soft);
  color: var(--black);
}

.form-status.is-err {
  background: #f3f3f3;
  color: var(--black);
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footer-tagline {
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
}

.footer-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
  display: grid;
  gap: 4px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-content: start;
}

.footer-nav a {
  font-size: 14px;
  color: var(--mute);
  padding: 6px 0;
  border-radius: 4px;
  transition: color var(--t-hover) var(--ease);
}

.footer-nav a:hover {
  color: var(--black);
}

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--t-enter) var(--ease),
    transform var(--t-enter) var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Utility */
.stack-sm {
  display: grid;
  gap: 12px;
}

.stack-md {
  display: grid;
  gap: 20px;
}

.muted {
  color: var(--mute);
}

.prose {
  max-width: 42rem;
  font-size: 15px;
  color: var(--mute);
}

.prose p + p {
  margin-top: 14px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-note {
  padding: 28px;
  border-radius: var(--radius-media);
  background: var(--soft);
  color: var(--mute);
  font-size: 14px;
}
