:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e0ea;
  --travel: #1f7a5b;
  --moment: #2f5f98;
  --profile: #8a5a2b;
  --shadow: 0 20px 60px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 28px clamp(18px, 4vw, 56px);
}

.compact-shell {
  max-width: 980px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.hub {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.25fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  width: 100%;
  padding: 44px 0 28px;
}

.hub-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  content: "";
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(23, 32, 51, 0.25);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.16);
  outline: none;
  transform: translateY(-3px);
}

.service-card strong {
  position: relative;
  z-index: 1;
  margin: 10px 0;
  font-size: 28px;
  letter-spacing: 0;
}

.service-card span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

.service-card .card-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.travelplan {
  background: linear-gradient(135deg, #17624a, var(--travel));
  color: #ffffff;
}

.momentmap {
  background: linear-gradient(135deg, #264d7c, var(--moment));
  color: #ffffff;
}

.profile {
  grid-column: span 2;
  min-height: 170px;
  background: linear-gradient(135deg, #6d4925, var(--profile));
  color: #ffffff;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  font-weight: 700;
}

.fallback-panel {
  width: min(100%, 720px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 56px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.fallback-panel h1 {
  font-size: clamp(36px, 7vw, 68px);
}

.fallback-panel p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hub {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 56px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .profile {
    grid-column: span 1;
    min-height: 170px;
  }

  h1 {
    font-size: 48px;
  }
}
