/* Squid website. Flat colour, no gradients, one glyph. */

@font-face { font-family: "Outfit"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Gentium Book Plus"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/gentium-book-plus-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gentium Book Plus"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/gentium-book-plus-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Gentium Book Plus"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/gentium-book-plus-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #398CCC;
  --pink: #F3A4B5;
  --green: #23B786;
  --yellow: #FFD358;
  --ink: #111111;
  --white: #FFFFFF;

  --serif: "Gentium Book Plus", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", Calibri, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 90rem;
  --header-h: 4.5rem;
  --header-h-small: 3.75rem;
  --glyph-w: min(30vw, 24rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-small); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--white);
  background: var(--ink);
  transition: height .5s ease-in-out;
}
.site-header.is-scrolled { height: var(--header-h-small); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { font-family: var(--sans); font-weight: 500; font-size: 1.75rem; letter-spacing: -.02em; text-decoration: none; line-height: 1; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a { text-decoration: none; font-family: var(--serif); font-size: 1.125rem; transition: color .3s ease; }
.nav a:hover { color: var(--blue); }

.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; font-family: var(--serif); cursor: pointer; padding: .75rem 0 .75rem .75rem; min-height: 44px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 60;
    background: var(--ink); color: var(--white);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.75rem;
    padding: 5rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-size: clamp(2rem, 9vw, 3rem); }
      .menu-btn[aria-expanded="true"] { position: relative; z-index: 70; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  min-height: min(100vh, 48rem); min-height: min(100svh, 48rem);
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
}
.hero .glyph {
  position: absolute; top: 50%; right: -2rem;
  width: var(--glyph-w); height: auto;
  transform: translate3d(0, var(--gy, -50%), 0);
  pointer-events: none; will-change: transform;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 7.4vw, 8.75rem);
  letter-spacing: -.01em; text-wrap: balance; max-width: 12ch;
}
.hero .lede { margin-top: 2rem; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem); }

/* Text never runs under the full-strength glyph. Below 900px the glyph is faint and sits behind the text. */
@media (min-width: 900px) {
  .hero .wrap { padding-right: max(var(--gutter), calc(var(--glyph-w) + .5rem - max(0px, (100vw - var(--max)) / 2))); }
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; padding-block: calc(var(--header-h) + 3rem) 3.5rem; }
  .hero .glyph { --gy: 0px; position: relative; top: auto; right: auto; width: min(34vw, 10rem); margin: 2.75rem var(--gutter) 0 auto; }
}

/* ---------- Yellow band ---------- */
.band { background: var(--yellow); color: var(--ink); padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); text-align: center; }
.band h2 { font-size: clamp(2.125rem, 1rem + 4.6vw, 5.25rem); max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.band p { margin: 1.75rem auto 0; text-wrap: balance; max-width: 40rem; font-weight: 400; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); }

.btn {
  display: inline-block; margin-top: 2.25rem;
  background: var(--ink); color: var(--white);
  font: inherit; font-weight: 500; font-size: 1.125rem;
  padding: .95rem 2.25rem; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.btn:hover { background: var(--blue); color: var(--ink); }
.contact .btn { background: var(--blue); color: var(--ink); }
.contact .btn:hover { background: var(--white); }
.form .btn { width: 100%; margin-top: .5rem; background: var(--white); }
.form .btn:hover { background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); }
.section h2.title { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); max-width: 20ch; text-wrap: balance; }

.how { background: var(--ink); color: var(--white); }
.services { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(4, 1fr); }
.service h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); color: var(--blue); }
.service p { margin-top: .875rem; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services { grid-template-columns: 1fr; } }

.who h2.title { font-weight: 700; }
.who-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.who-grid p { margin-top: 1.75rem; max-width: 34rem; }
.who-grid .logos img { width: 100%; max-width: 28rem; margin-inline: auto; will-change: transform; }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; } .who-grid .logos img { max-width: 22rem; margin-inline: 0; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact h2.title { font-weight: 700; }
.contact-grid { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact-grid h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.book p { margin-top: .75rem; }
.book .btn { margin-top: 1.75rem; width: auto; }
.form { margin-top: 1.75rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 1.25rem; }
.field span { display: block; font-weight: 400; font-size: 1rem; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 300; font-size: 1.0625rem;
  color: var(--ink); background: var(--white);
  border: 0; border-radius: 0; padding: .9rem 1rem; min-height: 3.25rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; display: block; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1.25rem; min-height: 1.5em; }

.footer { margin-top: clamp(4rem, 8vw, 7rem); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .9375rem; }
.footer a { text-decoration: none; display: inline-block; transition: transform .3s ease, color .3s ease; }
.footer a:hover { color: var(--blue); }
.footer .li:hover { transform: translateY(-3px); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 1.75rem, 0); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .nav { transition: none; }
}
