/* Rayven Xpress Limited website (WordPress theme)
   Type: Archivo (variable, self-hosted). Headlines use the condensed width axis, body uses normal width.
   Colours come from the Rayven logo: blue #3871C2, red #ED1C24, plus a deep navy. */

@font-face {
  font-family: "Archivo Variable";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a2352;
  --navy-deep: #071a3e;
  --blue: #3871c2;
  --blue-ink: #2a5ca6;
  --red: #ed1c24;
  --ink: #0e1b33;
  --muted: #4a5873;
  --line: #d3dbe8;
  --mist: #f1f4f9;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0; color: #fff; }

h1, h2, h3 {
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; font-stretch: 86%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { padding-left: 1.2rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-deep); color: #d7e1f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.85rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; order: 3; width: 100%; }
.nav a { font-stretch: 92%; font-weight: 600; color: var(--ink); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.site-header .btn { padding: 0.65rem 1.05rem; }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin-left: auto; margin-right: 0.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.35rem; border: 2px solid var(--navy); border-radius: 3px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 650; font-stretch: 95%; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--navy); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--mist); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; max-width: none; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-copy__inner { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 4.75rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem); }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 0.45em; }
.hero .lede { color: #c9d6ee; margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2.5rem 0 0; max-width: 34rem; }
.facts div { border-top: 1px solid rgba(255, 255, 255, 0.28); padding: 0.7rem 0 0.9rem; }
.facts dt { font-size: 0.88rem; color: #9fb4d9; }
.facts dd { margin: 0.1rem 0 0; font-stretch: 88%; font-weight: 650; font-size: 1.12rem; color: #fff; }
.wing { position: absolute; right: -6%; bottom: -3%; width: min(92%, 760px); opacity: 0.95; pointer-events: none; }

.hero-index { padding: clamp(2.25rem, 5vw, 3.5rem) var(--gutter); background: #fff; }
.hero-index h2 { font-size: 1.1rem; font-stretch: 100%; font-weight: 650; color: var(--muted); margin-bottom: 0.9rem; letter-spacing: 0; }
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.index a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center;
  padding: 0.8rem 0.35rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.index strong { font-stretch: 82%; font-weight: 700; font-size: 1.32rem; line-height: 1.15; color: var(--navy); }
.index span { grid-column: 1; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.index a::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 0.65rem; height: 0.65rem;
  border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); transition: transform 0.15s ease;
}
.index a:hover, .index a:focus-visible { background: var(--mist); }
.index a:hover::after { transform: translateX(4px) rotate(45deg); }

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero-copy__inner { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: clamp(2rem, 4vw, 4rem); min-height: 100%; }
  .hero-index { padding-left: clamp(2rem, 4vw, 4rem); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* The one page-load moment: the index rows settle in once. */
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.index li { animation: settle 0.45s ease both; }
.index li:nth-child(1) { animation-delay: 0.05s; } .index li:nth-child(2) { animation-delay: 0.10s; }
.index li:nth-child(3) { animation-delay: 0.15s; } .index li:nth-child(4) { animation-delay: 0.20s; }
.index li:nth-child(5) { animation-delay: 0.25s; } .index li:nth-child(6) { animation-delay: 0.30s; }
.index li:nth-child(7) { animation-delay: 0.35s; } .index li:nth-child(8) { animation-delay: 0.40s; }
.index li:nth-child(9) { animation-delay: 0.45s; } .index li:nth-child(10) { animation-delay: 0.50s; }
.index li:nth-child(11) { animation-delay: 0.55s; }
@media (prefers-reduced-motion: reduce) { .index li { animation: none; } .index a::after { transition: none; } }

/* ---------- Page heads ---------- */
.page-head { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.25rem); position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 0.35em; max-width: 20ch; }
.page-head p { color: #c9d6ee; font-size: 1.2rem; line-height: 1.5; margin-bottom: 0; max-width: 56ch; }
.page-head .wing { right: -8%; bottom: -35%; width: min(70%, 620px); opacity: 0.55; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 2.5rem; margin-top: 2.5rem; }
.sector { border-top: 3px solid var(--navy); padding-top: 1rem; }
.sector h3 { margin-bottom: 0.4rem; }
.sector p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Why ---------- */
.why { display: grid; gap: 2.5rem; }
.why .claim { font-stretch: 74%; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; color: var(--navy); max-width: 14ch; margin: 0; }
.why .claim::after { content: ""; display: block; width: 4.5rem; height: 4px; background: var(--red); margin-top: 1.25rem; border-radius: 2px; }
.reasons { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.reasons li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.reasons h3 { margin-bottom: 0.25rem; }
.reasons p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; } }

/* ---------- Clients ---------- */
.clients { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.25); }
.clients li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); font-stretch: 80%; font-weight: 650; font-size: 1.6rem; line-height: 1.15; color: #fff; }
.clients--light { border-top-color: var(--line); }
.clients--light li { border-bottom-color: var(--line); color: var(--navy); }

/* ---------- Contact band and notices ---------- */
.band { display: grid; gap: 2rem; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }
.ways { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.ways a { display: block; padding: 1rem 0.35rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ways a:hover { background: #fff; }
.ways strong { display: block; font-stretch: 84%; font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.ways span { color: var(--muted); font-size: 0.95rem; }
.notice { border-left: 4px solid var(--red); background: #fff; padding: 1rem 1.25rem; margin: 0; max-width: 60ch; }
.notice p { margin: 0; }
.notice a { font-weight: 600; }

/* ---------- Products ---------- */
.catalogue { display: grid; gap: 2.5rem; }
.toc { font-size: 0.98rem; }
.toc h2 { font-size: 1.05rem; font-stretch: 100%; font-weight: 650; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.toc a { display: block; padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 550; }
.toc a:hover { background: var(--mist); color: var(--navy); }
@media (min-width: 960px) {
  .catalogue { grid-template-columns: 270px minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 1.5rem; align-self: start; }
}
.group { padding-block: 2.25rem; border-top: 2px solid var(--navy); scroll-margin-top: 1rem; }
.group:first-child { padding-top: 0.5rem; border-top: 0; }
.group h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.75rem; }
.group ul { columns: 2 16rem; column-gap: 2.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.group li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.group p { color: var(--muted); }
.group .more { font-weight: 650; }
.download { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: 3px; }
.download p { margin: 0; }

/* ---------- About ---------- */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.caps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.caps li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.caps strong { font-stretch: 84%; font-size: 1.25rem; color: var(--navy); display: block; line-height: 1.2; }
.caps span { color: var(--muted); }
.person { margin-top: 1.5rem; padding-top: 1rem; border-top: 3px solid var(--navy); max-width: 22rem; }
.person strong { display: block; font-stretch: 84%; font-size: 1.4rem; color: var(--navy); line-height: 1.2; }
.person span { color: var(--muted); }
.photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.75rem; }
.photo-slot { aspect-ratio: 4 / 3; border: 2px dashed #9aa8c2; border-radius: 3px; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); background: #fff; font-size: 0.95rem; }
.visit { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .visit { grid-template-columns: 1fr 1fr; gap: 3rem; } .visit--solo { grid-template-columns: minmax(0, 36rem); } }

dl.details { margin: 0; border-top: 2px solid var(--navy); }
dl.details div { display: grid; gap: 0.1rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
dl.details dt { font-weight: 650; color: var(--navy); }
dl.details dd { margin: 0; }
@media (min-width: 640px) { dl.details div { grid-template-columns: 11rem minmax(0, 1fr); } }

/* ---------- Contact form ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; } }
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8f9db8; border-radius: 3px; padding: 0.7rem 0.8rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form .check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.form .check input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; }
.form .check label { font-weight: 400; margin: 0; }
.form .buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-status { min-height: 1.5rem; margin: 0; font-weight: 600; }
.form-status.is-error { color: #b3261e; }
.form-status.is-ok { color: #1b6b3a; }
.fine { font-size: 0.92rem; color: var(--muted); }

/* ---------- Prose pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3d0e8; padding-block: 3rem 2rem; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe0ff; }
.foot { display: grid; gap: 2rem; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; } }
.foot img { height: 52px; width: auto; margin-bottom: 0.9rem; }
.foot h2 { font-size: 1rem; font-stretch: 100%; font-weight: 650; color: #fff; letter-spacing: 0; margin-bottom: 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 0.15rem 0; }
.foot p { margin-bottom: 0.4rem; max-width: 34ch; }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 2.25rem; padding-top: 1.1rem; font-size: 0.9rem; color: #9fb4d9; }
.legal p { max-width: none; margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.center-page { text-align: left; }

@media print {
  .site-header .btn, .nav, .hero-copy .wing, .page-head .wing, .form { display: none; }
  .hero-copy, .page-head, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1 { color: #000; }
}


/* ---------- WordPress additions ---------- */
.nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; padding: 0; }
@media (max-width: 479px) { .nav ul { gap: 0.2rem 1.1rem; } }

.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.3rem 0; }
.prose .wp-block-heading { font-stretch: 80%; font-weight: 700; line-height: 1.05; color: var(--navy); text-wrap: balance; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.25rem 0 0.6em; }
.prose .wp-block-heading:first-child { margin-top: 0; }
.prose img { border-radius: 3px; }
.group .wp-block-list { columns: 2 16rem; column-gap: 2.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.person { margin-top: 2rem; }
.clients--light + .actions { margin-top: 1.5rem; }
.admin-bar .site-header { position: relative; }
