/* Swelmore Investments — site styles */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #1E2A33;
  --ink-2: #26343F;
  --ochre: #C27C2C;
  --ochre-dark: #8A5418;
  --sand: #E9C79A;
  --slate: #4A5560;
  --concrete: #EEF0EC;
  --rule: #CFD5D1;
  --white: #FFFFFF;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ochre-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-stretch: 112%; }
h3 { font-size: 1.3rem; font-stretch: 108%; font-weight: 750; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; }

/* Header */
.site-header { background: var(--ink); color: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px; flex-wrap: wrap;
}
.brand { display: inline-flex; padding: 12px 0; }
.brand img { width: 196px; }
.nav { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sand); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ochre); }
.nav .btn { padding: 10px 18px; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--ochre); color: var(--ink);
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--ochre); border-radius: 4px;
  cursor: pointer;
}
.btn:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-line:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.nav a.btn { color: var(--ink); }
.nav a.btn:hover { color: var(--ink); }

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: clamp(56px, 9vw, 112px) 0 0; overflow: hidden; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 28px; color: #D9DEE2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Route strip: the signature element */
.route {
  display: flex; align-items: center; gap: 0;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 28px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.stop { flex: none; display: flex; flex-direction: column; gap: 6px; }
.stop b {
  font-family: var(--display); font-stretch: 110%; font-weight: 750;
  font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.1;
}
.stop span { font-size: 0.9rem; color: var(--sand); }
.leg { flex: 1 1 auto; display: flex; justify-content: space-evenly; align-items: center; padding: 0 clamp(8px, 2vw, 24px); min-width: 40px; }
.chev {
  width: 18px; height: 18px; flex: none;
  border-top: 5px solid var(--ochre); border-right: 5px solid var(--ochre);
  transform: rotate(45deg); border-radius: 1px;
  opacity: 0.25;
  animation: drive 0.5s ease-out forwards;
}
.leg .chev:nth-child(n+4) { display: none; }
@media (min-width: 720px) { .leg .chev:nth-child(n+4) { display: block; } }
.leg:nth-of-type(2) .chev:nth-child(1) { animation-delay: 0.25s; }
.leg:nth-of-type(2) .chev:nth-child(2) { animation-delay: 0.35s; }
.leg:nth-of-type(2) .chev:nth-child(3) { animation-delay: 0.45s; }
.leg:nth-of-type(2) .chev:nth-child(4) { animation-delay: 0.55s; }
.leg:nth-of-type(2) .chev:nth-child(5) { animation-delay: 0.65s; }
.leg:nth-of-type(4) .chev:nth-child(1) { animation-delay: 0.85s; }
.leg:nth-of-type(4) .chev:nth-child(2) { animation-delay: 0.95s; }
.leg:nth-of-type(4) .chev:nth-child(3) { animation-delay: 1.05s; }
.leg:nth-of-type(4) .chev:nth-child(4) { animation-delay: 1.15s; }
.leg:nth-of-type(4) .chev:nth-child(5) { animation-delay: 1.25s; }
@keyframes drive { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chev { animation: none; opacity: 1; } }
@media (max-width: 560px) {
  .route { flex-direction: column; align-items: flex-start; }
  .leg { flex-direction: column; padding: 10px 0 10px 4px; gap: 4px; }
  .leg .chev { transform: rotate(135deg); width: 12px; height: 12px; }
  .leg .chev:nth-child(n+3) { display: none; }
}

/* Page title band (inner pages) */
.page-head { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-head .lede { margin-top: 20px; color: #D9DEE2; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--concrete); }
.section-head { display: grid; gap: 16px; max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--slate); }

/* Services: ruled list, not cards */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ruled > li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px; padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.ruled p { color: var(--slate); max-width: 38em; }
.ruled ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--slate); }
.ruled li li { padding: 2px 0; }
@media (max-width: 760px) { .ruled > li { grid-template-columns: 1fr; } }

/* Process: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--ochre); padding-top: 20px; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--ink); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Call to action band */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta-band p { color: #D9DEE2; margin-top: 14px; max-width: 32em; }

/* Facts table (About) */
.facts { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.facts th { width: 34%; font-weight: 600; }
.facts td { color: var(--slate); }
@media (max-width: 560px) { .facts th, .facts td { display: block; width: 100%; padding: 0; border: 0; } .facts th { padding-top: 14px; } .facts td { padding: 2px 0 14px; border-bottom: 1px solid var(--rule); } }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose p + p { margin-top: 16px; }
.prose { max-width: 36em; }
.prose h2 { margin-bottom: 20px; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--ochre-dark); }
.hint { font-size: 0.875rem; color: var(--slate); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: var(--white); border: 1px solid #9AA4AC; border-radius: 4px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ochre); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--slate); }
.alert { grid-column: 1 / -1; padding: 14px 16px; border-left: 4px solid #A33A2B; background: #FBEDEA; color: #5A1F17; }
.alert[hidden] { display: none; }
.direct { border-top: 2px solid var(--ink); }
.direct dl { margin: 0; }
.direct dt { font-weight: 600; padding-top: 18px; }
.direct dd { margin: 4px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--rule); color: var(--slate); }

/* Footer */
.site-footer { background: #17212A; color: #C3CBD2; padding: 48px 0 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; }
.site-footer a { color: var(--white); }
.site-footer img { width: 168px; margin-bottom: 16px; }
.site-footer p + p { margin-top: 6px; }
.site-footer nav { display: grid; gap: 6px; align-content: start; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; font-size: 0.85rem; color: #9FAAB3; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Mobile navigation */
@media (max-width: 760px) {
  .site-header .wrap { min-height: 72px; }
  .brand img { width: 164px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--white); font: inherit; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 4px; cursor: pointer;
  }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .js .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--sand); }
  .nav .btn { margin-top: 8px; }
}
