/* ============================================================
   Valoris Partners — brand system per Brand Book v1.0 (July 2026)
   Colors: Midnight Navy #0A1C30 (~60%) · White (~25%)
           Oxblood Red #A93241 (~10%) · Slate #445060 (~5%)
   Type:   Lato only — 900 headlines, 700 subheads, 400 body,
           italic 400 reserved for the tagline and quotations.
   ============================================================ */

/* ---------- Fonts (self-hosted Lato) ---------- */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/lato-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/lato-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/lato-900-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/lato-900-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: #0A1C30;
  font-family: 'Lato', sans-serif;
}
::selection { background: #A93241; color: #fff; }
a { color: #0A1C30; }
a:hover { color: #A93241; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes rev { from { opacity: 0; transform: translateY(34px); filter: blur(10px) } to { opacity: 1; transform: none; filter: blur(0) } }
@keyframes ruleIn { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes draw { to { stroke-dashoffset: 0 } }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #A93241;
  color: #ffffff;
  padding: 12px 20px;
  font: 700 12px 'Lato', sans-serif;
  letter-spacing: .12em;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #A93241; outline-offset: 3px; }
.cf-field:focus-visible { outline: none; }

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

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Hero mark (arcs draw themselves in) ---------- */
.hero-mark {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-54%);
  width: min(430px, 29vw);
  height: auto;
  pointer-events: none;
}
.hero-mark .arc { stroke-dasharray: 62; stroke-dashoffset: 62; animation: draw 1.1s cubic-bezier(.22,1,.36,1) forwards; }
.hero-mark .vee { stroke-dasharray: 76; stroke-dashoffset: 76; animation: draw .9s cubic-bezier(.22,1,.36,1) 1.5s forwards; }
@media (max-width: 1250px) { .hero-mark { display: none; } }

/* ---------- Header nav (scrollspy underline) ---------- */
header { transition: box-shadow .3s ease; }
header.scrolled { box-shadow: 0 12px 32px rgba(10, 28, 48, .38); }
header nav a { position: relative; padding-bottom: 5px; }
header nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: #A93241;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
header nav a:hover::after,
header nav a[data-active="true"]::after { transform: scaleX(1) !important; }
header nav a:hover { color: #A93241 !important; }

/* ---------- Hover states ---------- */
.lf-row { transition: background .25s ease; }
.lf-row:hover { background: rgba(169, 50, 65, .05); }

.btn-outline { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.btn-outline:hover { background: #A93241 !important; border-color: #A93241 !important; color: #ffffff !important; }

.red-link { transition: color .2s ease; }
.red-link:hover { color: #0A1C30 !important; }
.foot-link:hover { color: #A93241 !important; }
.plain-link:hover { color: #A93241 !important; }

/* ---------- Mobile nav (hamburger) ---------- */
#nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform .25s ease, opacity .2s ease;
}
#nav-toggle span + span { margin-top: 6px; }
#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  #nav-toggle { display: inline-block; }
  header nav {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0 !important;
    background: #0A1C30;
    padding: 6px 24px 18px !important;
    border-bottom: 2px solid #A93241;
    box-shadow: 0 18px 30px rgba(10, 28, 48, .35);
  }
  header nav.open { display: flex !important; }
  header nav a {
    padding: 15px 0 !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  header nav a:last-child { border-bottom: none; }
  header nav a::after { display: none; }
  header nav a[data-active="true"] { color: #A93241 !important; }
}

/* ---------- Section header (brand-book rule device) ---------- */
.shdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 3px solid #0A1C30;
  padding-bottom: 14px;
  margin-bottom: 44px;
}
.shdr .num {
  margin: 0;
  font: 900 19px 'Lato', sans-serif;
  letter-spacing: .12em;
  color: #0A1C30;
}
.shdr .brand {
  font: 700 10px 'Lato', sans-serif;
  letter-spacing: .22em;
  color: #A93241;
  white-space: nowrap;
}
.shdr.on-navy { border-bottom-color: #A93241; }
.shdr.on-navy .num { color: #ffffff; }

/* ---------- Value cards (red top rule, from brand book) ---------- */
.vcard { border-top: 3px solid #A93241; padding-top: 16px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.vcard:hover { transform: translateY(-4px); }
.vcard .vhead {
  font: 900 15px 'Lato', sans-serif;
  letter-spacing: .06em;
  color: #0A1C30;
  margin: 0 0 10px;
}
.vcard p { margin: 0; font: 400 16px/1.65 'Lato', sans-serif; color: #445060; }

/* ---------- Contact form (navy section) ---------- */
.cf-label {
  display: block;
  font: 700 11px 'Lato', sans-serif;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 10px;
}
.cf-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 0;
  color: #ffffff;
  font: 400 16px/1.5 'Lato', sans-serif;
  padding: 12px 14px;
  transition: border-color .25s ease;
}
.cf-field::placeholder { color: rgba(255, 255, 255, .35); font-style: italic; }
.cf-field:focus { outline: none; border-color: #A93241; }
.cf-field.cf-invalid { border-color: #d97985; }
textarea.cf-field { resize: vertical; min-height: 120px; }
#contact-submit:disabled { opacity: .55; cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section-pad { padding: 56px 40px !important; }
  header { padding: 18px 40px !important; }
  #top { padding: 72px 40px 0 !important; }
  #selling { padding: 64px 40px !important; }
  .pull-quote { padding: 72px 40px !important; }
  footer .footer-grid { padding: 48px 40px 44px !important; }
  footer .footer-bar { padding: 20px 40px !important; }
}

@media (max-width: 760px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr !important; }
  .section-pad { padding: 44px 24px !important; }
  header { padding: 14px 24px !important; }
  #top { padding: 56px 24px 0 !important; }
  #selling { padding: 56px 24px !important; }
  .pull-quote { padding: 56px 24px !important; }
  footer .footer-grid { padding: 40px 24px 36px !important; grid-template-columns: 1fr !important; }
  footer .footer-bar { padding: 16px 24px !important; flex-direction: column; align-items: flex-start; gap: 6px !important; }
  h1 { font-size: min(44px, 9.5vw) !important; }
  #selling > p { font-size: 26px !important; }
  .pull-quote p { font-size: 24px !important; }
  .lf-row { grid-template-columns: 34px 1fr !important; }
  .lf-row > span:last-child { grid-column: 2; }
  .shdr { flex-direction: column; gap: 6px; align-items: flex-start; }
}
