/* =========================================================================
   Waters Agency — 1:1 replica of the live watersagency.com homepage
   (Squarespace 7.1 / Fluid Engine, captured 2026-09-11)
   ========================================================================= */

/* ---------- Site palette & type tokens (from Squarespace site.css) ------- */
:root {
  --white-hsl: 0, 0%, 100%;
  --black-hsl: 210, 35.59%, 23.14%;
  --accent-hsl: 182.62, 89.8%, 50%;
  --lightAccent-hsl: 200, 36%, 95.1%;
  --darkAccent-hsl: 210, 35.59%, 23.14%;

  --white: hsl(var(--white-hsl));          /* #ffffff */
  --black: hsl(var(--black-hsl));          /* #263b50 */
  --accent: hsl(var(--accent-hsl));        /* #0de8f2 */
  --light: hsl(var(--lightAccent-hsl));    /* #eef4f7 */
  --dark: hsl(var(--darkAccent-hsl));      /* #263b50 */

  --sqs-site-max-width: 1440px;
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;

  --body-font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading-font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --meta-font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Squarespace 7.1 fluid type: calc((size-value - 1) * 1.2vmax + 1rem) */
  --fs-h1: calc(3.84vmax + 1rem);   /* heading-1 = 4.2 */
  --fs-h2: calc(2.16vmax + 1rem);   /* heading-2 = 2.8 */
  --fs-h3: calc(0.96vmax + 1rem);   /* heading-3 = 1.8 */
  --fs-h4: calc(0.72vmax + 1rem);   /* heading-4 = 1.6 */
  --fs-large: calc(0.24vmax + 1rem);/* paragraph-1 = 1.2 */
  --fs-body: 1rem;                  /* paragraph-2 = 1.0 */

  --header-height: 145px;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5em;
  letter-spacing: 0em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; border: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
.anchor-link { scroll-margin: 150px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.header--menu-open { overflow: hidden; }

/* ---------- Global animations (Squarespace "slide" style) --------------- */
.pre-slide {
  opacity: 0;
  transform: translate(0, 30%);
  transition-property: transform, opacity;
  transition-duration: .8s;
  transition-timing-function: ease;
}
.pre-fade {
  opacity: 0;
  transition-property: opacity;
  transition-duration: .8s;
  transition-timing-function: ease;
}
.pre-slide.in, .pre-fade.in { opacity: 1; transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) {
  .pre-slide, .pre-fade { opacity: 1; transform: none; transition: none; }
}

/* ---------- Typography -------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 2rem 0 1rem;
}
h1 { font-size: var(--fs-h1); line-height: 1.0464em; }
h2 { font-size: var(--fs-h2); line-height: 1.1136em; }
h3 { font-size: var(--fs-h3); line-height: 1.1616em; }
h4 { font-size: var(--fs-h4); line-height: 1.1712em; }
p { margin: 1rem 0; font-size: var(--fs-body); line-height: 1.5em; white-space: pre-wrap; }
p.large { font-size: var(--fs-large); }

/* Text block (Squarespace .sqs-html-content) */
.txt > :first-child { margin-top: 0; }
.txt > :last-child  { margin-bottom: 0; }
.txt a:not(.btn) {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
/* palette-colour spans re-draw the link underline in their own colour */
[class^="c-"] { text-decoration: inherit; }
/* cyan links are unreadable on light backgrounds (WCAG AA) */
.light .txt a:not(.btn), .white .txt a:not(.btn) { color: var(--black); }
.dark .txt { color: var(--white); }
.light .txt { color: var(--black); }
.c-black  { color: var(--black); }               /* explicit palette colour, same on every theme */
.c-white  { color: var(--white); }
.c-light  { color: var(--light); }
.c-dark   { color: var(--dark); }
.c-grey   { color: #686868; }
.ta-center { text-align: center; }
.ta-right  { text-align: right; }

/* Text highlight (Squarespace TextShape underline): 0.1em square-cap stroke
   behind the text, centred at 90% of the span box, overrunning each end */
/* underline layers are drawn by script.js, one per line fragment, behind the text */
.txt { position: relative; z-index: 0; }
.txt :is(h1, h2) { position: relative; }
.hl-line { position: absolute; z-index: -1; pointer-events: none; }
.hl { --hl-c: var(--hl, var(--accent)); }
.hl-white { --hl: var(--white); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: var(--fs-large);
  line-height: normal;
  text-decoration: none;
  text-align: center;
  border-radius: 300px;
  padding: 15px 80px 15px 20px;
  transition: opacity .1s linear;
  cursor: pointer;
}
.btn:hover { opacity: .8; }
.btn::after {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; right: 4px;
  width: 45px; height: 45px;
  display: inline-block;
  background: url(assets/arrow-dark.png) no-repeat;
  background-size: contain;
}
/* primary on a dark section: white / navy, dark arrow */
.btn-primary { background: var(--white); color: var(--black); }
/* secondary on a light section: navy / white, blue arrow */
.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary::after { background-image: url(assets/arrow-blue.png); }
/* secondary on a dark section: light-accent / black, blue arrow */
.dark .btn-secondary { background: var(--light); color: #000; }

/* Header CTA (tertiary, no arrow) */
.btn-cta {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: var(--fs-large);
  line-height: normal;
  text-decoration: none;
  padding: .8em 2em;
  border-radius: 300px;
  background: var(--accent);
  color: var(--black);
  transition: opacity .1s linear;
}
.btn-cta:hover { opacity: .8; }

.btn-block { display: flex; width: 100%; }
.btn-block.align-left   { justify-content: flex-start; text-align: left; }
.btn-block.align-right  { justify-content: flex-end;   text-align: right; }
.btn-block.align-center { justify-content: center;     text-align: center; }

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  display: flow-root;           /* keeps the wrapper margins inside the header box */
}
.header-wrap {
  position: relative;
  width: 95%;
  max-width: 100%;
  margin: 30px auto;
  padding: 15px 20px;
}
.header-bg {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: 99px;
}
.header-inner { position: relative; }

/* desktop layout: nav centred */
.header-desktop { display: flex; align-items: center; justify-content: flex-start; }
.header-title-nav { flex: 1 0 80%; display: flex; align-items: center; }
.header-title { flex: 1 1 33%; display: flex; }
.header-logo { display: inline-block; }
.header-logo img { display: block; max-height: 45px; width: auto; }
.header-nav { flex: 1 1 90%; width: 90%; text-align: center; }
.header-nav-list { display: inline-flex; justify-content: center; }
.header-nav-item { margin: 0 .9vw; }
.header-nav-item a {
  display: block;
  padding: .1em 0;
  font-size: var(--fs-large);
  line-height: 1.5em;
  color: var(--black);
  text-decoration: none;
  transition: all .1s;
}
.header-nav-item a:hover { opacity: .5; }
.header-actions { flex: 0 0 20%; display: flex; align-items: center; justify-content: flex-end; }
.header-actions .btn-cta { margin-left: .4vw; }

/* mobile layout: logo left, burger right */
.header-mobile { display: none; align-items: center; justify-content: space-between; }
.header-mobile .header-logo img { max-height: 30px; }
.burger {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 37px;
  padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer;
}
.burger-box { position: relative; width: 35px; height: 35px; }
.burger-box span {
  position: absolute; left: 0; top: 0; bottom: 0;
  margin: auto;
  width: 100%; height: 2px;
  background: var(--black);
  transition: transform 250ms cubic-bezier(.2,.6,.3,1), width 250ms cubic-bezier(.2,.6,.3,1);
  will-change: transform, width;
}
.burger-box .top-bun    { transform: translateY(-9.5px); }
.burger-box .bottom-bun { transform: translateY(9.5px); }
.header--menu-open .burger-box .top-bun    { transform: translate(3.5px, 0) rotate(-135deg); }
.header--menu-open .burger-box .patty      { transform: scale(0); }
.header--menu-open .burger-box .bottom-bun { transform: translate(3.5px, 0) rotate(135deg); }

/* mobile menu overlay (fade) */
.header-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh; height: 100dvh;
  z-index: -1;
  display: flex; flex-direction: column;
  padding-top: var(--header-height);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: visibility .6s cubic-bezier(.4,0,.2,1), opacity .4s cubic-bezier(.4,0,.2,1);
}
.header--menu-open .header-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.header-menu-bg { position: absolute; inset: 0; background: var(--light); }
.header-menu-nav {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.header-menu-nav-list { text-align: center; }
.header-menu-nav-item a {
  position: relative;
  display: inline-flex; align-items: center;
  margin: 3vw 5vw;
  font-size: 8.5vmin;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
  transition: opacity 250ms cubic-bezier(.4,0,.2,1);
}
.header-menu-nav-item a:hover { opacity: .5; }
@media (min-width: 576px) { .header-menu-nav-item a { font-size: 6.6vmin; } }
.header-menu-cta { position: relative; text-align: center; padding: 15.6px 20px 23px; }   /* live: 15.6px above the button */

@media (max-width: 767px) {
  :root { --header-height: 107px; }
  .header-desktop { display: none; }
  .header-mobile { display: flex; }
}
@media (max-width: 640px) {
  .header-wrap { width: auto; margin: 20px; }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.page-section {
  position: relative;
  display: flex;
  min-height: var(--min-h, 0px);
  padding-top: var(--sec-pt, 0px);
  padding-bottom: var(--sec-pb, 0px);
}
.page-section.dark  { --bg: var(--black); color: var(--white); }
.page-section.light { --bg: var(--light); color: var(--black); }
.section-bg {
  position: absolute; inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.section-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.content-wrapper {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--cw-pad, 0px) 0;
}
.content { position: relative; width: 100%; }

/* ---------- Fluid Engine grid (verbatim from Squarespace) --------------- */
.fe {
  --grid-gutter: calc(var(--sqs-mobile-site-gutter, 6vw) - 11.0px);
  --cell-max-width: calc((var(--sqs-site-max-width, 1500px) - (11.0px * (8 - 1))) / 8);
  display: grid;
  position: relative;
  grid-area: 1/1/-1/-1;
  grid-template-rows: repeat(var(--rows-m), minmax(24px, auto));
  grid-template-columns: minmax(var(--grid-gutter), 1fr) repeat(8, minmax(0, var(--cell-max-width))) minmax(var(--grid-gutter), 1fr);
  row-gap: 11.0px;
  column-gap: 11.0px;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 768px) {
  .fe {
    --grid-gutter: calc(var(--sqs-site-gutter, 4vw) - 11.0px);
    --cell-max-width: calc((var(--sqs-site-max-width, 1500px) - (11.0px * (24 - 1))) / 24);
    --inset-padding: 0vw;
    --row-height-scaling-factor: 0.0215;
    --container-width: min(var(--sqs-site-max-width, 1500px), calc(100vw - var(--sqs-site-gutter, 4vw) * 2 - var(--inset-padding)));
    grid-template-rows: repeat(var(--rows-d), minmax(calc(var(--container-width) * var(--row-height-scaling-factor)), auto));
    grid-template-columns: minmax(var(--grid-gutter), 1fr) repeat(24, minmax(0, var(--cell-max-width))) minmax(var(--grid-gutter), 1fr);
  }
}
.fe-block {
  grid-area: var(--m);
  z-index: var(--zm, 1);
  display: flex; flex-direction: column;
  justify-content: var(--jm, center);
  min-width: 0;
}
@media (min-width: 768px) {
  .fe-block {
    grid-area: var(--d);
    z-index: var(--zd, 1);
    justify-content: var(--jd, center);
  }
}

/* image block (fills its grid area) */
.img-block { position: relative; width: 100%; height: 100%; }
.img-block img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  display: block;
}
/* "content fit" mode: image contained in its block, aligned by --fit-pos */
.img-block:not(.fit) { border-radius: 20px; overflow: hidden; }
.img-block.fit img { object-fit: contain; object-position: var(--fit-pos, 50% 50%); }

/* shape block (rounded rectangle, r = 20) */
.shape { width: 100%; height: 100%; border-radius: 20px; background: var(--fill); }

/* horizontal rule block */
.hr hr { display: block; width: 100%; height: 1px; border: 0; margin: 8px 0; background: var(--hr-color, rgba(38,59,80,.1)); }
.dark .hr hr { --hr-color: rgba(238,244,247,.32); }

/* social links (knockout style, circle, large = 36px) */
.social { display: flex; align-items: center; justify-content: flex-start; column-gap: 10px; row-gap: 10px; }
.social a {
  display: block;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  color: var(--white);
}
.social svg { display: block; width: 36px; height: 36px; fill: var(--accent); }
.social a:hover svg { fill: var(--accent); }

/* Footer link behaviour (custom CSS on live site) */
.footer .txt a { text-decoration-line: none; background: none; }
.footer a:hover { text-decoration: underline; transition: .2s; }

/* =========================================================================
   HERO
   ========================================================================= */
#hero { padding-top: var(--header-height); --cw-pad: 1vmax; min-height: 90px; }
#hero .section-bg img { object-position: 65.2886% 52.8033%; }
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(to top, #263b50 1vh, transparent 60vh);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 100% 0%;
  z-index: 1;
}
#hero .content-wrapper { z-index: 2; }
/* section background overlay: navy at 50% */
#hero .section-bg::after { content: ''; position: absolute; inset: 0; background: var(--black); opacity: .5; }

/* =========================================================================
   LOGO SCROLLER (sewebdesign scrolling-logos plugin)
   ========================================================================= */
.logos-section {
  --desklogoheight: 85px;
  --desklogospacing: 15px;
  --mobilelogoheight: 65px;
  --mobilelogospacing: 10px;
  --mobscrollslow: 1.4;
  --scrollspeed: 90;
}
.logos-section .content {
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}
.logos { overflow: hidden; padding: 0 0 4vmax; }
.logo-scroller {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  width: fit-content;
  margin: 0; padding: 0;
  opacity: 0;
  --animation-duration: calc((var(--scroller-set-width, 2000) / var(--scrollspeed)) * 1s);
  --animation-distance: calc(var(--scroller-set-width, 2000) * -1px);
  animation: logos-scrolling var(--animation-duration) linear infinite;
  will-change: transform;
}
.logo-scroller[data-scroller-scrolling="true"] { opacity: 1; }
.logo-scroller li {
  position: relative;
  flex: 0 0 auto;
  margin: 0 var(--desklogospacing) 0 0;
  border-radius: 15px;
  transform: translateZ(0);
}
.logo-scroller img { display: block; width: auto; height: var(--desklogoheight); }
@keyframes logos-scrolling { to { transform: translate3d(var(--animation-distance), 0, 0); } }
@media (max-width: 767px) {
  .logo-scroller { --animation-duration: calc((var(--scroller-set-width, 2000) / var(--scrollspeed) * var(--mobscrollslow)) * 1s); }
  .logo-scroller li { margin-right: var(--mobilelogospacing); }
  .logo-scroller img { height: var(--mobilelogoheight); }
}

/* =========================================================================
   SERVICE CARDS (Squarespace list section, simple layout, 2 columns)
   ========================================================================= */
.cards-list { padding: 2vmax 0 10vmax; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px 20px;
  max-width: var(--sqs-site-max-width);
  margin: 0 auto;
  padding: 0 var(--sqs-site-gutter);
}
.card {
  display: flex; flex-direction: column;
  padding: 6%;
  background: var(--white);
  border-radius: 15px;
}
.card-media { width: 15%; margin-bottom: 6%; }
.card-media img { display: block; width: 100%; height: auto; }
.card-content { width: 100%; }
.card-title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.1136em;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--black);
  text-align: left;
}
.card-desc { margin-top: 3%; }
.card-desc p { margin: 0; font-size: var(--fs-large); line-height: 1.5em; color: #686868; text-align: left; }
@media (max-width: 767px) {
  .cards { grid-template-columns: 1fr; }
}

/* =========================================================================
   SECTION-SPECIFIC
   ========================================================================= */
.section-large { --cw-pad: 10vmax; --min-h: 100vh; }
#case-study .fe-block:has(> .shape) { filter: drop-shadow(rgba(38,59,80,.09) 7px 7px 36px); }
#cta .fe-block:has(> .shape) { filter: drop-shadow(#fff 2px 2px 27px); }
#cta { --sec-pb: 2vw; }
/* divider under the CTA: footer navy shows through with 2vw rounded shoulders */
#cta .section-divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2vw; display: block; fill: var(--black); z-index: 1; }
#cta img { opacity: .15; }
.footer { --cw-pad: 4vmax; --min-h: 40vh; }
.footer-logo { --fit-pos: 0 50%; }
@media (min-width: 768px) { .footer-logo { --fit-pos: 0 0; } }

@media (max-width: 640px) {
  #what-we-do .btn-block.align-right { justify-content: flex-start; }
  .footer * { text-align: left; }
}

/* Cookie banner: replaced by the GDPR consent bar (chrome.css + /consent.js), 27 Oct 2026 */

/* live parity (10 Oct): header pill disappears while the mobile menu is open */
.header-bg { transition: background-color .4s cubic-bezier(.4,0,.2,1); }
.header--menu-open .header-bg { background-color: transparent; }

/* "Skip to Content" (Squarespace header skip link): off-screen until keyboard focus */
.header-skip-link {
  position: absolute; z-index: 2;
  left: -999em; top: 54px;
  padding: 15px 20px;
  border-radius: 300px;
  background: var(--white); color: var(--black);
  font: 500 16px/1 var(--body-font);
  text-decoration: none;
}
.header-skip-link:focus-visible { left: 56px; outline: 2px solid var(--accent); }

/* Footer legal links: Privacy Policy · Terms of Service (client, 12 Oct 2026) */
.footer .legal-sep { margin: 0 .35em; opacity: .6; }
