/* ----------------------------------------------------------------------
   Old Bridge Capital Management — shared styles
   Two static pages use this: the landing holding page (index.html) and
   the story page (story.html). Dark palette, Montserrat/Lato, no motion.
---------------------------------------------------------------------- */
:root {
  --dark: #383838;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --rule: rgba(255, 255, 255, 0.55);
  --prose: rgba(255, 255, 255, 0.85);

  /* left gutter matches the live site: .container-holder 90px + .col1-padding 60px */
  --gutter: 150px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--dark);
  color: var(--white);
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* ===== Hero / banner ================================================= */
.hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* shorter photo band used on the story page (no text, just the bridge) */
.hero--compact {
  flex: 0 0 auto;
  align-items: flex-end;
  min-height: 32vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #1c1c1c;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* dark wash over the photo so the white type stays legible */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.62) 0%,
    rgba(15, 15, 15, 0.42) 55%,
    rgba(15, 15, 15, 0.5) 100%
  );
}

.hero__logo {
  position: absolute;
  top: 34px;
  right: var(--gutter);
  width: 116px;
  height: auto;
  z-index: 2;
}

.hero__back {
  position: absolute;
  top: 40px;
  left: var(--gutter);
  z-index: 2;
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 96px var(--gutter);
  max-width: 760px;
}

.eyebrow {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.92;
}

.title {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 45px);
  line-height: 1.24;
  letter-spacing: 0.5px;
  padding: 10px 0 16px;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.read-story {
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s;
}

.read-story:hover,
.read-story:focus-visible {
  border-bottom-color: var(--white);
}

.soon {
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Story panel =================================================
   Matches the "story behind Old Bridge" section on oldbridgecapital.com/about:
   white content column on the left, the dark #383838 + diamond-pattern
   background showing through a right-hand column that carries the logo.
   Exact values (font, size, colour, spacing) taken from that page's
   computed styles.
------------------------------------------------------------------- */

/* fixed patterned backdrop behind everything (the site's .other-bg) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--dark) url("../img/pattern.svg") repeat;
}

.storypanel {
  flex: 1 0 auto;
  display: flex;
  align-items: stretch;
}

.storypanel__main {
  flex: 1 1 auto;
  min-width: 0;
  background: #ffffff;
  color: #383838;
  /* .container-holder 90px + .about-text 60px = text 150px from the left */
  padding: 32px 60px 48px var(--gutter);
}

.storypanel__aside {
  flex: 0 0 26%;
  padding: 34px 24px;
  text-align: center;
}

.storypanel__aside img {
  width: 132px;
  height: auto;
}

.storypanel .inplus {
  margin: 0 0 20px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0077aa;
}

.storypanel .blogH1 {
  margin: 30px 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  color: #383838;
}

.storypanel .blogPara {
  max-width: 720px;
}

.storypanel .blogPara p {
  margin: 0 0 25px;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.5px;
  color: #383838;
}

.storypanel .blogPara p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
  color: #383838;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 56, 56, 0.5);
}

/* ===== Footer ===================================================== */
.site-footer {
  flex-shrink: 0;
  background: var(--dark);
  padding: 16px var(--gutter);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: var(--muted);
}

/* keep the grey band compact on desktop; scroll inside it if it can't fit */
@media (min-width: 768px) {
  .site-footer {
    max-height: 34vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.footer__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.assoc {
  flex: 2 1 0;
}

.assoc__label,
.contact__label {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.assoc__cols {
  display: flex;
  gap: 40px;
}

.company {
  flex: 1 1 0;
}

.company__name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.contact {
  flex: 1 1 0;
  min-width: 0;
}

.contact p {
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: var(--rule);
}

.company__link {
  display: inline-block;
  margin-top: 4px;
  word-break: break-word;
}

/* ===== Responsive ================================================ */
@media (max-width: 1024px) {
  :root {
    --gutter: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 24px;
  }

  .hero__logo {
    top: 20px;
    width: 92px;
  }

  .hero__back {
    top: 22px;
  }

  .hero__inner {
    padding: 120px var(--gutter) 64px;
  }

  .hero--compact {
    min-height: 26vh;
  }

  .storypanel {
    flex-direction: column;
  }

  /* logo already sits in the photo band on small screens */
  .storypanel__aside {
    display: none;
  }

  .storypanel__main {
    padding: 32px var(--gutter) 44px;
  }

  .storypanel .blogH1 {
    font-size: 26px;
    line-height: 1.25;
    margin: 22px 0;
  }

  .footer__inner {
    flex-direction: column;
    gap: 28px;
  }

  .assoc__cols {
    flex-direction: column;
    gap: 24px;
  }
}
