/* Moessner Family Relocation. Colours are the old site's, sampled from
   family-relocation.ch: --blue (frame), --pink (logo star), --sand (panels),
   --ink / --muted (text). --deep is --blue darkened for text on white. */
@font-face { font-family: Montserrat; font-weight: 300; font-display: swap; src: url(fonts/montserrat-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 300; font-display: swap; src: url(fonts/lato-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-700-normal.woff2) format("woff2"); }

:root {
  --blue: #7ea1b7;
  --blue-pale: #e4ecf1;
  --deep: #466a82;
  --pink: #e61090;
  --sand: #edebe8;
  --ink: #313539;
  --muted: #5a5d60;
  --line: #dcdad6;
  --head: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --body: Lato, "Helvetica Neue", Arial, sans-serif;
  --gap: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.7 var(--body); }
img, video { display: block; max-width: 100%; }
main:focus { outline: none; }
a { color: var(--deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }
.version-tag { position: absolute; top: 6px; right: 10px; z-index: 30; color: var(--muted); font: 400 11px/1.3 var(--head); pointer-events: none; }

h1, h2, h3 { font-family: var(--head); font-weight: 300; color: var(--ink); text-transform: uppercase; overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(25px, 3.5vw, 38px); line-height: 1.3; letter-spacing: .02em; }
h2 { margin: 0 0 .9em; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.35; letter-spacing: .02em; text-align: center; }
h3 { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: .03em; }

/* ---- header: logo row, then the sticky menu row ---- */
.site-header { padding: clamp(26px, 3.5vw, 44px) 16px 14px; }
.logo { display: block; width: min(420px, 100%); margin-inline: auto; }
.logo img { width: 100%; height: auto; }

.navbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); transition: box-shadow .2s; }
.navbar.stuck { box-shadow: 0 1px 0 var(--line); }
.navbar-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; }
.brand { position: absolute; left: 0; top: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.stuck .brand { opacity: 1; pointer-events: auto; }
.brand .wordmark { display: none; }
.menu { display: flex; justify-content: center; width: 100%; }
.main-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: 5px 12px; border-bottom: 1px solid var(--ink);
  color: var(--ink); font: 400 14px/1.5 var(--head); text-decoration: none;
}
.main-nav a:hover { border-color: var(--pink); }
.main-nav a[aria-current] { background: var(--blue); border-color: var(--blue); color: #1d2124; }
.lang { position: absolute; right: 0; top: 21px; font: 400 13px/1.5 var(--head); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--pink); }
.lang .cur { color: var(--ink); font-weight: 500; }
.lang .sep { margin-inline: 8px; color: var(--line); }
.nav-toggle { display: none; }

/* ---- video hero: no text on it ---- */
.hero { position: relative; overflow: hidden; height: clamp(240px, 38vw, 460px); background: var(--blue); }
.hero img, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.slim { height: clamp(130px, 16vw, 230px); }
.hero.whole { background: #fff; }
.hero.whole img { object-fit: contain; }
.hero video { opacity: 0; transition: opacity 1.2s ease; }
.hero video.active { opacity: 1; }
.hero-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(29, 33, 36, .55); cursor: pointer; transition: background .2s; }
.hero-toggle:hover { background: rgba(29, 33, 36, .8); }
.hero-toggle[hidden] { display: none; }
.hero-toggle::before { content: ""; position: absolute; left: 16px; top: 14px; width: 12px; height: 16px; box-sizing: border-box; border: solid #fff; border-width: 0 4px; }
.hero-toggle.paused::before { left: 17px; width: 0; height: 0; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }

/* ---- sections ---- */
section { padding-block: var(--gap); }
.band { background: var(--sand); }
.intro { padding-top: clamp(44px, 6vw, 72px); }
.intro h1 { max-width: 22em; margin: 0 auto .7em; text-align: center; }
.lede { max-width: 42em; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; font-size: 18px; }
.note { max-width: 42em; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; color: var(--muted); }

.cards { display: grid; gap: clamp(32px, 4vw, 56px); }
.cards.n4 { grid-template-columns: repeat(4, 1fr); }
.cards.n3 { grid-template-columns: repeat(3, 1fr); }
.cards.n2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.card { position: relative; display: flex; flex-direction: column; text-align: center; }
.card h3 { min-height: 2.8em; margin-bottom: 14px; }
.card h3 a { color: inherit; text-decoration: none; }
/* Above the hover zoom, which would otherwise lift the image over this link. */
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { margin: 16px 0 0; font-size: 16px; color: var(--muted); }
.pic { aspect-ratio: 1; overflow: hidden; background: var(--blue-pale); }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .pic img, .service:hover .pic img { transform: scale(1.03); }
.card:hover h3 { color: var(--deep); }
.pic:has(.face) { aspect-ratio: auto; background: none; }
.pic img.face { width: 88px; height: 88px; margin-inline: auto; object-fit: cover; border-radius: 50%; transform: none; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); }
.service { text-align: center; }
.service .pic { display: block; aspect-ratio: 4 / 3; }
.service h3 { margin: 18px 0 10px; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--deep); }
.service ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.service li + li { margin-top: 6px; }
.service li a { color: var(--muted); text-decoration: none; }
.service li a:hover { color: var(--deep); text-decoration: underline; }

.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.client { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.client img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.client:hover { color: #fff; }
.client:hover img { transform: scale(1.03); }
.client-text { position: absolute; inset: auto 0 0; display: block; padding: clamp(18px, 3vw, 32px); background: linear-gradient(transparent, rgba(29, 33, 36, .88) 55%); font-size: 16px; line-height: 1.5; }
.client-text strong { display: block; margin-bottom: 4px; font: 400 clamp(17px, 2vw, 21px)/1.3 var(--head); text-transform: uppercase; letter-spacing: .03em; }

.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.why-head { text-align: center; }
.why h2 { margin-bottom: .4em; }
.years { color: var(--deep); font: 300 clamp(72px, 10vw, 120px)/1.1 var(--head); }
.years-label { font: 400 13px/1.5 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stars { margin: 0; padding: 0; list-style: none; }
.stars li { position: relative; padding: 7px 0 7px 26px; line-height: 1.5; }
.stars li::before { content: "★"; position: absolute; left: 0; top: 7px; color: var(--pink); font-size: 14px; }

.contact-band { background: var(--blue); color: #1d2124; text-align: center; }
.contact-band h2 { margin-bottom: .6em; color: inherit; }
.contact-band p { max-width: 38em; margin: 0 auto 28px; font-size: 18px; }
.contact-band .lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 26px auto 0; font-size: 16px; }
.contact-band .lines a { color: inherit; }
.btn { display: inline-block; padding: 13px 30px; background: var(--ink); color: #fff; font: 400 14px/1.4 var(--head); letter-spacing: .03em; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--deep); color: #fff; }

/* Floating enquiry tag, bottom right. */
.enquire-tag {
  position: fixed; right: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 28px); z-index: 15;
  padding: 11px 18px; border-radius: 4px; background: var(--ink); color: #fff;
  font: 400 14px/1.3 var(--head); text-decoration: none; box-shadow: 0 4px 16px rgba(29, 33, 36, .22);
}
.enquire-tag::before { content: "★"; margin-right: 8px; color: var(--pink); }
.enquire-tag:hover { background: var(--deep); color: #fff; }

/* ---- inner pages ---- */
.page-head { padding-top: clamp(44px, 6vw, 72px); text-align: center; }
.page { padding-block: clamp(32px, 4vw, 48px) var(--gap); }
.prose { max-width: 720px; margin-inline: auto; }
.prose.lead { margin-bottom: clamp(44px, 6vw, 72px); text-align: center; font-size: 18px; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 .8em; font-size: 20px; text-align: left; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose li { position: relative; padding: 4px 0 4px 26px; }
.prose li::before { content: "★"; position: absolute; left: 0; top: 5px; color: var(--pink); font-size: 14px; }
.prose blockquote { margin: 1.7em 0; padding: 0; text-align: center; font: 300 21px/1.5 var(--head); color: var(--deep); }
.prose blockquote p { margin: 0; }
.cards + .prose { margin-top: var(--gap); }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: var(--gap); }
.split-pic img { width: 100%; height: auto; }
.split .prose { max-width: none; margin: 0; }
.split .prose p:last-child { margin-bottom: 0; }
.demo-note { padding: 10px 16px; background: var(--blue-pale); }

.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
.item { padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.item:target h3 { color: var(--pink); }
.item h3 { margin-bottom: 8px; }
.item p { margin: 0; color: var(--muted); }

.member { display: flex; flex-direction: column; align-items: center; }
.member .face { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.member .face.mark { padding: 0; }
.role { margin: 18px 0 36px; color: var(--muted); font: 400 15px/1.5 var(--head); text-align: center; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; max-width: 720px; margin-inline: auto; }
.contact-form[hidden] { display: none; }
.contact-form .wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font: 400 14px/1.4 var(--head); }
.field input, .field textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #8a8f94; border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--deep); }
.field textarea { resize: vertical; min-height: 150px; }
.hp-field { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: center; min-width: 200px; border: 0; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.cf-turnstile { display: flex; justify-content: center; min-height: 65px; }
.email-reveal { padding: 0; border: 0; background: none; color: var(--deep); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-status { max-width: 720px; margin: 18px auto 0; text-align: center; }
.contact-status:empty { display: none; }

.pager { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.pager a { display: flex; align-items: center; gap: 12px; max-width: 48%; color: var(--ink); font: 400 15px/1.4 var(--head); text-decoration: none; }
.pager a[rel="next"] { margin-left: auto; text-align: right; }
.pager.has-up { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pager.has-up a { max-width: none; }
.pager.has-up a[rel="prev"] { grid-column: 1; grid-row: 1; }
.pager.has-up a[rel="next"] { grid-column: 3; grid-row: 1; justify-self: end; }
.pager .up { grid-column: 2; grid-row: 1; padding: 2px 4px; border-bottom: 1px solid var(--ink); font-size: 14px; }
.pager .arrow { flex: none; color: var(--pink); font-size: 20px; line-height: 1; transition: transform .2s; }
.pager a:hover { color: var(--deep); }
.pager a[rel="prev"]:hover .arrow { transform: translateX(-4px); }
.pager a[rel="next"]:hover .arrow { transform: translateX(4px); }

.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.nf-grid h2 { text-align: left; }

/* ---- footer ---- */
.site-footer { background: #24272a; color: #cfd2d4; padding-block: clamp(48px, 6vw, 72px) 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blue); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer h2 { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 400; letter-spacing: .1em; text-align: left; }
.site-footer p { margin: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.foot-copy { margin-top: 44px !important; padding-top: 20px; border-top: 1px solid #3b3f43; font-size: 13px; text-align: center; }
.build-tag { float: right; color: #6d7276; }

/* ---- narrower screens ---- */
@media (max-width: 960px) {
  .cards.n4, .services { grid-template-columns: repeat(2, 1fr); }
  .cards.n3 { grid-template-columns: repeat(3, 1fr); }
  .why, .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { display: none; }
  .version-tag { top: 1px; right: 16px; font-size: 9px; }
  .navbar { box-shadow: 0 1px 0 var(--line); }
  .navbar-inner { justify-content: flex-start; min-height: 58px; }
  .brand { position: static; opacity: 1; pointer-events: auto; }
  .brand .mark { display: none; }
  .brand .wordmark { display: block; width: 240px; }
  .brand .wordmark img { width: 100%; height: auto; }
  .nav-toggle { display: flex; flex-direction: column; gap: 6px; margin-left: auto; padding: 10px 0 10px 10px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); }
  .menu { display: none; position: absolute; top: 100%; left: -16px; right: -16px; width: auto; padding: 20px 16px 24px; background: #fff; box-shadow: 0 8px 16px rgba(29, 33, 36, .12); }
  .menu.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 10px; align-items: center; }
  .lang { position: static; margin-top: 18px; text-align: center; }
  .hero { height: 56vw; }
  .hero.slim { height: 34vw; }
  .lede, .prose.lead, .contact-band p { font-size: 17px; }

  /* Keep the home page short: the service headings link to the detail. */
  .services { gap: 28px 16px; }
  .service ul { display: none; }
  .service h3 { font-size: 13px; margin-bottom: 0; }
  .card h3 { min-height: 0; font-size: 13px; }
  .cards.n4 { gap: 28px 16px; }
  .cards.n4 .card p { display: none; }
  .cards.n3 { grid-template-columns: 1fr; }
  .cards.n2 { grid-template-columns: 1fr; }
  .clients { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .foot-cols, .nf-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .enquire-tag { padding: 10px 14px; font-size: 13px; }
  .pager a { font-size: 13px; gap: 8px; }
  .foot-copy { padding-bottom: 44px; }
  .build-tag { display: none; }
}
