/* Scrivin Logistics — colours and type taken from the Squarespace site it replaces. */
:root {
  --blue: #25459f;        /* header, footer, page heads (Squarespace darkAccent) */
  --accent: #0c66c2;      /* buttons (Squarespace accent) */
  --accent-hover: #0a58a8;
  --arrow: #4a90e2;
  --grey: #dedede;
  --ink: #212020;
  --white: #fff;
  --head: "Archivo Black", "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --slant: clamp(40px, 7vw, 100px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1.1; margin: 0 0 .6em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.h-lg { font-size: clamp(28px, 3.6vw, 44px); }
.h-md { font-size: clamp(24px, 2.6vw, 34px); }
.lead { font-size: 18px; font-weight: 500; }

.btn { display: inline-block; background: var(--accent); color: var(--white); text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 20px 64px; transition: background .15s; }
.btn:hover, .btn:focus-visible { background: var(--accent-hover); }
.btn--lg { padding: 26px 64px; }

/* Header sits over the hero on the home page, over a blue band elsewhere. */
.header { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--white); }
.header__inner { max-width: 1280px; margin: 0 auto; padding: 36px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { width: 200px; }
.nav { display: flex; gap: 20px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.header__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.header__toggle span { display: block; width: 30px; height: 2px; background: var(--white); margin: 7px 0; transition: transform .2s; }

.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; color: var(--white); background: #333 var(--bg) center / cover no-repeat; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); margin-bottom: calc(var(--slant) * -1); padding: 160px 0 calc(120px + var(--slant)); }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.hero .container { position: relative; width: 100%; }
.hero__title { font-size: clamp(40px, 6vw, 80px); margin-bottom: 48px; }

.page-head { background: var(--blue); color: var(--white); text-align: center; padding: 170px 0 calc(90px + var(--slant)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); margin: 0; }

.hands { background: var(--grey); padding: calc(var(--slant) + 60px) 0 90px; }
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: var(--white); padding: 40px 48px; }
.card h3 { font-size: 22px; }
.card p { font-size: 15px; font-weight: 500; margin: 0; }
.card--tall { padding: 56px 48px; }

.tailored { padding: 90px 0; }
.tailored__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.tailored .lead { margin-bottom: 1.8em; max-width: 30em; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { border: 1px solid var(--accent); padding: 26px 48px; }
.features h3 { font-size: 22px; margin-bottom: .3em; }
.features p { font-size: 14px; font-weight: 500; margin: 0; }

.cta { position: relative; color: var(--white); background: #333 var(--bg) center / cover no-repeat; padding: 120px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cta .container { position: relative; }
.cta__title { font-size: clamp(24px, 2.8vw, 36px); }
.cta p { font-size: 18px; font-weight: 500; margin-bottom: 2em; }

.testimonials { padding: 110px 0; }
.testimonials__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.testimonial { margin: 0; text-align: center; max-width: 620px; margin-inline: auto; }
.testimonial blockquote { margin: 0 0 40px; }
.testimonial blockquote p { font-family: var(--head); text-transform: uppercase; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; margin: 0; }
.testimonial figcaption { display: grid; gap: 14px; font-weight: 500; font-size: 18px; }
.testimonials__arrow { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--arrow); color: var(--white); font-size: 26px; cursor: pointer; line-height: 1; }
.testimonials__arrow:hover { background: var(--accent); }

.history { background: var(--grey); padding: calc(var(--slant) + 60px) 0 90px; }
.history p { max-width: 64em; font-weight: 500; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; }
.pair h3 { font-size: 22px; margin-bottom: 1.4em; }

.services { padding: calc(var(--slant) + 40px) 0 60px; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 50px 0 90px; }
.service--flip .service__text { order: 2; }
.service p { font-weight: 500; }
.service__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery { padding: calc(var(--slant) + 60px) 0 80px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 20px; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .15s; }
.gallery__item:hover img { opacity: .85; }

.contact { padding: calc(var(--slant) + 60px) 0 110px; }
.contact__line { display: block; font-family: var(--head); text-transform: uppercase; text-decoration: none; font-size: clamp(15px, 4.5vw, 34px); margin-bottom: .6em; overflow-wrap: anywhere; }
.contact__line:hover { color: var(--accent); }
.contact .lead { margin-top: 2em; }

/* A page head or hero is followed by a section that starts underneath its slant. */
.page-head + section { margin-top: calc(var(--slant) * -1); }

.footer { background: var(--blue); color: var(--white); padding: 70px 0 40px; }
.footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.footer__logo img { width: 230px; }
.footer__contact { text-align: right; display: grid; gap: 18px; justify-items: end; }
.footer__contact > a { font-family: var(--head); text-transform: uppercase; text-decoration: none; font-size: clamp(18px, 1.8vw, 24px); overflow-wrap: anywhere; }
.footer__contact > a:hover { text-decoration: underline; }
.footer__credit { font-size: 13px; font-weight: 700; margin: 24px 0 0; }
.footer__credit a { text-decoration: none; }

@media (max-width: 900px) {
  .cards, .tailored__grid, .pair, .service { grid-template-columns: 1fr; }
  .tailored__grid, .service { gap: 36px; }
  .pair { gap: 16px; }
  .service--flip .service__text { order: 0; }
  .service { padding: 30px 0 50px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header__inner { padding-top: 20px; padding-bottom: 20px; }
  .header__logo img { width: 130px; }
  .header__toggle { display: block; position: relative; z-index: 12; }
  .nav { position: fixed; inset: 0; z-index: 11; background: var(--blue); flex-direction: column; align-items: center; justify-content: center; gap: 28px; display: none; }
  .nav a { font-size: 26px; }
  .nav-open .nav { display: flex; }
  .nav-open .header__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-open .header__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .hero { min-height: 0; padding: 140px 0 calc(80px + var(--slant)); }
  .page-head { padding: 130px 0 calc(60px + var(--slant)); }
  .card, .card--tall, .features li { padding: 28px 24px; }
  .btn, .btn--lg { padding: 18px 36px; }
  .testimonials { padding: 70px 0; }
  .testimonials__inner { grid-template-columns: 1fr 1fr; }
  .testimonials__track { grid-column: 1 / -1; grid-row: 1; }
  .testimonials__arrow { justify-self: end; }
  .testimonials__arrow[data-next] { justify-self: start; }
  .gallery__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__contact { text-align: left; justify-items: start; }
}
