/* ==========================================================================
   Loquinar — site stylesheet
   Brand palette derived from the original site: #0C3C60 / #39729B / #6EA4CA
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand navy scale */
  --navy-900: #061f30;
  --navy-800: #082b45;
  --navy-700: #0c3c60; /* primary brand colour */
  --navy-600: #16507c;
  --navy-500: #39729b; /* secondary */
  --sky-400:  #6ea4ca; /* accent */
  --sky-100:  #d1e0eb; /* light accent */

  /* Hover green — dark enough to carry white label text at AA */
  --green-600: #2e7d5b;
  --green-700: #256849;

  /* Neutrals */
  --paper:     #ffffff;
  --paper-alt: #f4f7f9;
  --ink:       #16202a;
  --ink-soft:  #4d5f70;
  --rule:      #dfe6ec;

  /* Type */
  --font-head: "Raleway", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(6, 31, 48, .06), 0 2px 8px rgba(6, 31, 48, .05);
  --shadow-md: 0 6px 16px rgba(6, 31, 48, .09), 0 2px 4px rgba(6, 31, 48, .06);
  --shadow-lg: 0 18px 40px rgba(6, 31, 48, .14);

  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  /* Stop sticky header covering anchor targets */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .97rem + .16vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy-700);
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); }
a:hover { color: var(--navy-700); }

:focus-visible {
  outline: 3px solid var(--sky-400);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--paper-alt); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Small uppercase eyebrow label above headings */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sky-100);
  max-width: 5rem;
}

h2 { font-size: clamp(1.65rem, 1.25rem + 1.75vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

.lede {
  font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-700);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(110, 164, 202, .18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .17em;
  color: #fff;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 600;
  margin-top: 1px;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.6rem); }
.nav a {
  color: var(--sky-100);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .87rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .5rem .25rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--sky-400); }
.nav a[aria-current] { color: #fff; border-bottom-color: var(--sky-400); }

.nav__cta {
  background: var(--sky-400);
  color: var(--navy-900) !important;
  border-radius: 6px;
  padding: .5rem 1.1rem !important;
  border-bottom: none !important;
}
.nav__cta:hover { background: #fff; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 520px at 78% -10%, rgba(57, 114, 155, .55), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 58%, #04141f 100%);
  padding-block: clamp(4rem, 11vw, 8rem);
  overflow: hidden;
}

/* Photo-backed hero — opt in per page with .hero--photo.
   The NYC skyline sits under a navy wash. The photo's top half averages
   211/255, so the overlay stays near-opaque on the left where the white copy
   sits and thins out to the right, where only the logo mark overlaps it. */
.hero--photo {
  background:
    linear-gradient(100deg,
      rgba(6, 31, 48, .94) 0%,
      rgba(6, 31, 48, .86) 40%,
      rgba(6, 31, 48, .42) 70%,
      rgba(6, 31, 48, .18) 100%),
    url("/assets/img/hero-nyc.jpg") center 35% / cover no-repeat;
  background-color: var(--navy-900);
}


/* Faint grid texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 164, 202, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 164, 202, .06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.4rem);
  letter-spacing: .04em;
  margin: 0 0 .35em;
}
.hero__sub {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + .7vw, 1.6rem);
  font-weight: 600;
  color: var(--sky-400);
  line-height: 1.4;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}
.hero__blurb { color: var(--sky-100); max-width: 52ch; margin-bottom: 2rem; }

.hero__mark {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, .5));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(110, 164, 202, .13);
  border: 1px solid rgba(110, 164, 202, .35);
  color: var(--sky-100);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ec9a8;
  box-shadow: 0 0 0 3px rgba(78, 201, 168, .22);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--sky-400); color: var(--navy-900); }
.btn--primary:hover { background: #fff; color: var(--navy-900); }

.btn--ghost { border-color: rgba(209, 224, 235, .45); color: var(--sky-100); }
.btn--ghost:hover { border-color: var(--sky-400); color: #fff; }

.btn--solid { background: var(--navy-700); color: #fff; }
.btn--solid:hover { background: var(--navy-600); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Stat strip --------------------------------------------------------- */
.stats {
  background: var(--navy-700);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: block;
}
.stat__label {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 600;
}

/* --- Cards -------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--sky-400);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--navy-700);
}
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ink-soft); }
.card ul { color: var(--ink-soft); }
.card__link {
  margin-top: auto;
  padding-top: 1.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-600);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.card__link::after { content: "→"; transition: transform .18s ease; }
.card__link:hover::after { transform: translateX(4px); }

/* Ticked list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .5rem;
}

/* Two ticked lists stacked in one card get a hairline divider between them
   (the Citrix card on the home page). Adjacent-sibling only, so a single
   list is never given a stray rule. */
.ticks + .ticks {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
}

/* --- Prose blocks ------------------------------------------------------- */
.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
}

.block { max-width: 68ch; }
.block h3 {
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--sky-100);
  margin-bottom: 1rem;
}

.pull {
  border-left: 4px solid var(--sky-400);
  background: var(--paper-alt);
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2rem);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy-700);
  margin: 0;
}
.section--alt .pull { background: #fff; }

/* --- Customer chips ----------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .87rem;
  color: var(--ink-soft);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chips li:hover {
  background: var(--green-600);
  border-color: var(--green-700);
  color: #fff;
}

/* --- Tech columns (products page) --------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.tech {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.tech h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
}
.tech h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sky-400);
  flex-shrink: 0;
}

/* --- Contact ------------------------------------------------------------ */
.contact {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(57, 114, 155, .5), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--sky-400); }
.contact .eyebrow::after { background: rgba(110, 164, 202, .3); }
.contact p { color: var(--sky-100); }

.contact__card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(110, 164, 202, .28);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 620px;
}
.contact__label {
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 700;
  margin: 0 0 .5rem;
}
.contact__email {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
  border-bottom: 2px solid var(--sky-400);
  padding-bottom: 2px;
}
.contact__email:hover { color: var(--sky-400); }
.contact__note {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--sky-100);
  opacity: .85;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: #04141f;
  color: var(--sky-100);
  padding-block: 2.75rem;
  font-size: .89rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.site-footer a { color: var(--sky-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; opacity: .8; }

/* --- Motion ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --- Responsive --------------------------------------------------------- */
/* The brand tagline is the widest part of the brand block. With six nav
   items alongside it, brand + nav needs ~1036px, so retire the tagline
   before the two can collide. */
@media (max-width: 1140px) {
  .brand__tag { display: none; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }

  /* Even with the tagline gone, six nav items will not sit on one row
     beside the brand. Stack them onto their own wrapping row. */
  :root { --header-h: 112px; }
  .site-header__inner {
    flex-direction: column;
    gap: .4rem;
    padding-block: .7rem;
  }
  .nav { flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }

  /* The nav wraps to two lines here, making a sticky header ~140px tall —
     roughly a fifth of a phone screen. Let it scroll away instead. */
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }

  .nav a { font-size: .78rem; padding: .35rem .2rem; }
  .nav__cta { padding: .4rem .85rem !important; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .nav, .btn, .hero::after { display: none !important; }
  body { color: #000; }
  .hero, .contact, .stats { background: none !important; color: #000 !important; }
  .hero h1, .contact h2, .stat__num { color: #000 !important; }
}

/* --- Interior page variants --------------------------------------------- */
/* Smaller hero heading for pages below the home page.
   Qualified with `.hero h1` so it outranks the `.hero h1` base rule. */
.hero h1.hero__title--page {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  letter-spacing: -.01em;
}

/* Eyebrow sitting on a dark background */
.eyebrow--light { color: var(--sky-400); }
.eyebrow--light::after { background: rgba(110, 164, 202, .3); }

/* Closing note after a prose grid */
.section__head--footnote {
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

/* Vertical breathing room between stacked prose grids in one section */
.prose-grid--gap-below { margin-bottom: clamp(2rem, 4vw, 3rem); }
.prose-grid--gap-above { margin-top: clamp(2rem, 4vw, 3rem); }

/* Four-column variant — narrower minimum so four columns fit the container */
.tech-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}
/* Lead-in line above a ticked list inside a card */
.card__lead,
.tech__lead {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-600);
  margin-bottom: .75rem;
}
/* Links inside ticked lists need to read as links against the body text */
.ticks a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
.ticks a:hover { color: var(--navy-700); }

/* --- Hero photo: small screens ------------------------------------------ */
/* Below 860px the logo mark is hidden and the copy spans the full width, so
   the thinned right-hand side of the overlay would sit behind text. Use a
   uniform, heavier wash and the smaller image file. */
@media (max-width: 860px) {
  .hero--photo {
    background:
      linear-gradient(165deg, rgba(6, 31, 48, .88) 0%, rgba(6, 31, 48, .84) 55%, rgba(4, 20, 31, .88) 100%),
      url("/assets/img/hero-nyc-960.jpg") center 35% / cover no-repeat;
    background-color: var(--navy-900);
  }
}

/* --- Image credit ------------------------------------------------------- */
.site-footer__credit {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(110, 164, 202, .18);
  font-size: .78rem;
  opacity: .7;
  width: 100%;
}

/* --- Content figures ---------------------------------------------------- */
.figure { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.figure:last-child { margin-bottom: 0; }
.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.figure figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
/* Diagram-style figures shouldn't blow up past their natural size */
.figure--contain img { max-width: 860px; margin-inline: auto; }

/* Two-column card grid for longer prose blocks */
.card-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
/* Vertical rhythm for stacked blocks within one section */
.flow > * + * { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* The ERS mark is a 100x100 original, so cap its display size — upscaling it to
   the default 220px is what made it look soft. Placed at the end of the file and
   double-classed so it beats .hero__mark on both specificity and source order. */
.hero__mark.hero__mark--compact { width: clamp(84px, 10vw, 116px); }

/* --- Home page hero photo ------------------------------------------------
   Sydney at dusk, colour-graded toward blue to sit in the navy palette.
   The graded photo averages 76/255 (the NYC one on the ERS page averages 152),
   so it carries a noticeably lighter wash and shows far more of the skyline.
   Double-classed and placed last so it beats .hero on specificity and order. */
.hero.hero--sydney {
  background:
    linear-gradient(100deg,
      rgba(6, 31, 48, .88) 0%,
      rgba(6, 31, 48, .74) 42%,
      rgba(6, 31, 48, .36) 72%,
      rgba(6, 31, 48, .16) 100%),
    url("/assets/img/hero-sydney.jpg") center 52% / cover no-repeat;
  background-color: var(--navy-900);
}

/* Below 860px the logo is hidden and the copy runs full width, so the thinned
   right-hand side would sit behind text. Uniform wash, smaller file. */
@media (max-width: 860px) {
  .hero.hero--sydney {
    background:
      linear-gradient(165deg,
        rgba(6, 31, 48, .84) 0%,
        rgba(6, 31, 48, .80) 55%,
        rgba(4, 20, 31, .86) 100%),
      url("/assets/img/hero-sydney-960.jpg") center 52% / cover no-repeat;
    background-color: var(--navy-900);
  }
}
