/* Swift Movers design tokens — the CMS Colours and Fonts tabs map onto these custom properties.
   Warm paper backdrop, near-black ink, a single bright orange accent, white rounded cards. */
:root {
  --color-primary: #ff5a14;
  --color-primary-dark: #e04800;
  --color-primary-soft: #ffe6d9;
  --color-secondary: #141416;
  --color-secondary-light: #2a2a2f;
  --color-surface: #f4f1ed;
  --color-surface-deep: #ebe5de;
  --color-default: #4a4a52;
  --color-muted: #8b8a91;
  --color-line: #e7e1da;
  --color-white: #ffffff;
  --font-default: 'Inter', system-ui, sans-serif;
  --font-primary: 'Manrope', system-ui, sans-serif;
  --font-heading: 'Manrope', system-ui, sans-serif;
  --radius: 28px;
  --radius-sm: 16px;
  --section-max-width: 82rem;
  --header-h: 96px;
  --section-pad-y: 110px;
  --base-size: 16px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body { font-family: var(--font-default); color: var(--color-default); line-height: 1.65; background: var(--color-surface); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--color-primary); color: #fff; }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad-y) 0; position: relative; }
/* entrance start positions must never widen the page; clip keeps sticky children working */
section, footer { overflow-x: clip; }
section.white { background: var(--color-white); }
section.deep { background: var(--color-surface-deep); }
section.dark { background: var(--color-secondary); color: color-mix(in srgb, #fff 72%, transparent); }
section.dark h2, section.dark h3 { color: #fff; }

/* the orange accent words in a headline ("Move Anything. Anywhere.") */
.hl { color: var(--color-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-secondary); color: #fff; font: 700 .95rem var(--font-primary); letter-spacing: -.01em; white-space: nowrap;
  transition: background .25s ease, transform .3s var(--ease), box-shadow .3s ease, color .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn .go { color: var(--color-primary); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--color-secondary) 70%, transparent); }
.btn:hover svg { transform: translateX(3px); }
.btn.accent { background: var(--color-primary); }
.btn.accent .go { color: #fff; }
.btn.accent:hover { background: var(--color-primary-dark); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--color-primary) 70%, transparent); }
.btn.soft { background: color-mix(in srgb, var(--color-secondary) 6%, #fff); color: var(--color-secondary); }
.btn.soft:hover { background: #fff; }
.btn.light { background: #fff; color: var(--color-secondary); }
.btn.outline { background: transparent; color: var(--color-secondary); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--color-secondary); }
.btn[disabled] { opacity: .6; pointer-events: none; }
/* a round arrow button (the hero form's "go") */
.round { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--color-primary); color: #fff;
  transition: background .25s ease, transform .3s var(--ease); }
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--color-primary-dark); transform: scale(1.06); }
.arrow-link { display: inline-flex; align-items: center; gap: .5rem; font: 700 .95rem var(--font-primary); color: var(--color-secondary); }
.arrow-link svg { width: 17px; height: 17px; color: var(--color-primary); transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ── Section heads: letter-spaced eyebrow, headline with orange words ── */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 600 .74rem var(--font-primary); letter-spacing: .26em; text-transform: uppercase; color: var(--color-muted); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--color-primary); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 1rem 0 1.1rem; }
.section-head > p { font-size: 1.06rem; color: var(--color-default); max-width: 60ch; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered > p { margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 72px; align-items: end; }
.section-head.split h2 { margin-bottom: 0; }

/* white rounded card */
.card { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 color-mix(in srgb, var(--color-secondary) 4%, transparent); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font: 600 .8rem var(--font-primary); color: var(--color-secondary); margin-bottom: .4rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: var(--color-surface); border: 1.5px solid transparent; border-radius: 14px; padding: .85rem 1rem; color: var(--color-secondary);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; background: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 14%, transparent); }
.form-grid ::placeholder { color: var(--color-muted); }
.field-err { color: #c0362c; font-size: .82rem; margin-top: .35rem; }
.form-note { font-size: .82rem; color: var(--color-muted); }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, #2e9e62 12%, #fff); color: #1d6b41; }
.form-ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-bad { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #a12e24; font-size: .9rem; }

/* a tick list, the tick drawn in CSS so it follows the theme colours */
.tick-list { list-style: none; display: grid; gap: .7rem; }
.tick-list li { position: relative; padding-left: 1.95rem; color: var(--color-secondary); }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .18em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--color-primary-soft); }
.tick-list li::after { content: ''; position: absolute; left: .44rem; top: .42em; width: .32rem; height: .58rem; border: solid var(--color-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* rating stars */
.stars { display: inline-flex; gap: 2px; color: #f5a300; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Logo: "swift." — the name with an orange full stop ── */
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.6rem var(--font-heading); color: var(--color-secondary); letter-spacing: -.05em; }
.logo img { max-height: 44px; width: auto; }
.logo .dot { color: var(--color-primary); }
.logo .wordmark { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05; min-width: 0; }
.logo .wl { display: block; }
.logo .sub { display: block; margin-top: .3em; font-size: .45em; font-weight: 600; letter-spacing: .02em; color: var(--color-muted); }
.logo { min-width: 0; }
.logo img { max-width: min(46vw, 240px); object-fit: contain; }

/* ══ Motion: section-enter animations (plugins/motion.client.ts) ══
   Hidden states apply only while html.hg-motion is set and the section has not
   entered the frame yet; --i staggers siblings, --d adds a fixed delay. */
.hg-motion [data-anim] {
  transition:
    opacity .8s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    transform 1s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    filter .9s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    clip-path 1.1s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.hg-motion section:not(.hg-inview) [data-anim], .hg-motion footer:not(.hg-inview) [data-anim] { opacity: 0; }
.hg-motion section:not(.hg-inview) [data-anim="up"], .hg-motion footer:not(.hg-inview) [data-anim="up"] { transform: translateY(42px); }
.hg-motion section:not(.hg-inview) [data-anim="down"] { transform: translateY(-34px); }
.hg-motion section:not(.hg-inview) [data-anim="left"] { transform: translateX(60px); }
.hg-motion section:not(.hg-inview) [data-anim="right"] { transform: translateX(-60px); }
.hg-motion section:not(.hg-inview) [data-anim="zoom"] { transform: scale(.88); }
.hg-motion section:not(.hg-inview) [data-anim="blur"] { filter: blur(14px); transform: scale(1.04); }
.hg-motion section:not(.hg-inview) [data-anim="pop"] { transform: translateY(18px) scale(.8); }
/* headings rise out of a mask */
.hg-motion section:not(.hg-inview) [data-anim="rise"] { clip-path: inset(0 0 100% 0); transform: translateY(40%); }
.hg-motion section.hg-inview [data-anim="rise"] { clip-path: inset(-10% -5% -20% -5%); }
/* photos unveil with a wipe while settling from a slight zoom */
.hg-motion section:not(.hg-inview) [data-anim="clip"] { opacity: 1; clip-path: inset(0 0 100% 0 round var(--radius)); }
.hg-motion section.hg-inview [data-anim="clip"] { clip-path: inset(0 0 0 0 round var(--radius)); }
.hg-motion [data-anim="clip"] img { transition: transform 1.6s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
.hg-motion section:not(.hg-inview) [data-anim="clip"] img { transform: scale(1.18); }
/* lines draw from left to right */
.hg-motion section:not(.hg-inview) [data-anim="draw"] { opacity: 1; transform: scaleX(0); transform-origin: left; }
.hg-motion [data-anim="draw"] { transition-duration: 1.4s; }

/* gentle idle float for cards on photos (on a child, so it never fights the entrance) */
@keyframes sw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float { animation: sw-float 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; animation-delay: -2s; }
.float.late { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
}
@media (max-width: 960px) {
  .section-head.split { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  :root { --section-pad-y: 76px; --radius: 22px; --header-h: 84px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 38px; }
}
