/* John Bramley v18 — restrained premium system */
:root{
  --jb-navy:#071c31;
  --jb-navy-2:#0b2d4b;
  --jb-blue:#78b9f6;
  --jb-ink:#10283f;
  --jb-copy:#4a5f72;
  --jb-line:#d7e1e9;
  --jb-pale:#eef5fb;
}

html{scroll-behavior:smooth}
body{
  font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif!important;
  color:var(--jb-ink);
}

/* One alignment wall */
.jb31-nav-inner,
.section-inner,
.site-container,
.nav-inner{
  width:min(1320px,calc(100% - 64px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Typography: polished, not billboard-sized */
h1,
.hero h1,
.intro h1,
.page-hero h1,
.legal-hero h1,
.policy-hero h1,
.notice-hero h1{
  font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif!important;
  font-size:clamp(40px,4.4vw,60px)!important;
  line-height:1.02!important;
  letter-spacing:-.035em!important;
  font-weight:600!important;
}
.section-title,
main h2{
  font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif!important;
  font-size:clamp(30px,3.2vw,44px)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  font-weight:600!important;
}
main h3{
  font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif!important;
  font-weight:600!important;
}
main p{line-height:1.68}

/* Reliable contrast */
.body-copy p,
.service-copy p,
.meet-card p,
.pillar p,
.about-story-copy p,
.resource-card p,
.intro p,
.section-block p{
  color:var(--jb-copy)!important;
}
.hero p,
.cta p,
.dark-band p,
.about-hero-v18 p,
.about-hero-v18 span,
.about-hero-v18 strong{
  color:rgba(255,255,255,.84)!important;
}

/* Buttons */
.btn,
.hero-btn,
.outline-btn{
  font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif!important;
  letter-spacing:.075em!important;
}
.btn.primary,
.btn-primary,
.hero-btn.primary,
body.jb-financing-page .hero-side a{
  background:#e7f3ff!important;
  color:#08213a!important;
  -webkit-text-fill-color:#08213a!important;
  border-color:#e7f3ff!important;
}

/* Keep dark-page copy readable */
body.jb-financing-page .hero h1,
body.jb-financing-page .hero h2,
body.jb-financing-page .hero p,
body.jb-financing-page .hero span,
body.jb-financing-page .hero strong,
body.jb-financing-page .cta h2,
body.jb-financing-page .cta p{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* HOME — premium image-led hero with no card */
body.page-home .hero-shell,
body.page-home .hero-art,
body.page-home .hero-layout{
  min-height:calc(100svh - 84px)!important;
  height:calc(100svh - 84px)!important;
  max-height:calc(100svh - 84px)!important;
}
body.page-home .hero-art{position:relative!important;overflow:hidden!important}
body.page-home .hero-art::before{display:none!important}
body.page-home .hero-art::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:
    linear-gradient(90deg,rgba(3,18,32,.92) 0%,rgba(3,18,32,.78) 35%,rgba(3,18,32,.36) 62%,rgba(3,18,32,.12) 100%)!important;
  pointer-events:none!important;
}
body.page-home .hero-layout{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0!important;
}
body.page-home .hero-copy-plain{
  width:min(700px,58vw)!important;
  max-width:700px!important;
  margin:0!important;
  padding:0!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  text-align:left!important;
}
body.page-home .hero-copy-plain .hero-eyebrow{
  margin:0 0 18px!important;
  color:#a7d3fa!important;
  font-size:11px!important;
  font-weight:700!important;
  letter-spacing:.15em!important;
  text-transform:uppercase!important;
  text-shadow:0 2px 18px rgba(0,0,0,.35)!important;
}
body.page-home .hero-copy-plain h1{
  margin:0!important;
  max-width:14ch!important;
  color:#fff!important;
  font-size:clamp(46px,4.9vw,68px)!important;
  line-height:.98!important;
  text-shadow:0 10px 36px rgba(0,0,0,.36)!important;
}
body.page-home .hero-rule{
  width:68px!important;
  margin:24px 0 22px!important;
  background:rgba(255,255,255,.54)!important;
}
body.page-home .hero-copy-text{
  margin:0!important;
  max-width:43ch!important;
  color:rgba(255,255,255,.88)!important;
  font-size:18px!important;
  line-height:1.62!important;
  text-shadow:0 4px 22px rgba(0,0,0,.38)!important;
}
body.page-home .hero-actions-row{
  margin-top:28px!important;
  display:flex!important;
  gap:12px!important;
  justify-content:flex-start!important;
}
body.page-home .hero-btn.secondary{
  background:rgba(4,24,42,.36)!important;
  border:1px solid rgba(255,255,255,.62)!important;
  color:#fff!important;
}
body.page-home .home-content .section-title{max-width:18ch}

/* ABOUT — one-screen story, no stat card */
.about-hero-v18{
  position:relative;
  min-height:calc(100svh - 84px);
  height:calc(100svh - 84px);
  overflow:hidden;
  background:var(--jb-navy);
}
.about-hero-v18::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(3,16,29,.96) 0%,rgba(3,16,29,.82) 38%,rgba(7,29,49,.50) 67%,rgba(7,29,49,.42) 100%),
    url('images/about-marine-bg.png') center/cover no-repeat;
}
.about-hero-v18::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 21% 42%,rgba(120,185,246,.13),transparent 24%);
  pointer-events:none;
}
.about-hero-v18-inner{
  position:relative;
  z-index:2;
  width:min(1320px,calc(100% - 64px));
  height:100%;
  margin:0 auto;
  display:grid;
  grid-template-columns:290px minmax(0,760px);
  grid-template-rows:1fr auto;
  gap:0 54px;
  align-items:center;
  justify-content:start;
  padding:42px 0 30px;
}
.about-hero-v18-portrait{
  align-self:end;
  width:290px;
  height:430px;
  margin:0;
  position:relative;
}
.about-hero-v18-portrait img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 10%;
  border:0;
  box-shadow:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);
}
.about-hero-v18-copy{
  align-self:center;
  max-width:760px;
  padding-top:12px;
}
.about-hero-v18 .eyebrow{
  margin:0 0 16px!important;
  color:#a7d3fa!important;
  font-size:11px!important;
  font-weight:700!important;
  letter-spacing:.15em!important;
  text-transform:uppercase!important;
}
.about-hero-v18 h1{
  margin:0!important;
  max-width:15ch!important;
  color:#fff!important;
  font-size:clamp(44px,4.4vw,62px)!important;
  line-height:.98!important;
  letter-spacing:-.04em!important;
  text-shadow:0 8px 30px rgba(0,0,0,.30)!important;
}
.about-hero-v18 .lede{
  max-width:49ch!important;
  margin:20px 0 0!important;
  color:rgba(255,255,255,.82)!important;
  font-size:17px!important;
  line-height:1.62!important;
}
.about-hero-v18-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}
.about-hero-v18-actions .btn{min-width:174px}
.about-hero-v18-actions .secondary{
  color:#fff!important;
  border-color:rgba(255,255,255,.58)!important;
  background:rgba(7,28,49,.28)!important;
}
.about-hero-v18-stats{
  grid-column:1 / -1;
  align-self:end;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid rgba(255,255,255,.16);
  padding-top:18px;
}
.about-hero-v18-stat{
  min-width:0;
  padding:0 22px;
  border-right:1px solid rgba(255,255,255,.12);
}
.about-hero-v18-stat:first-child{padding-left:0}
.about-hero-v18-stat:last-child{border-right:0}
.about-hero-v18-stat strong{
  display:block;
  color:#fff!important;
  font-size:22px;
  line-height:1.1;
  font-weight:600;
}
.about-hero-v18-stat span{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.58)!important;
  font-size:10px;
  line-height:1.25;
  letter-spacing:.09em;
  text-transform:uppercase;
}

/* About content: editorial, not card soup */
body.page-about .about-profile{padding:88px 0!important}
body.page-about .about-profile-text-only{
  width:min(1040px,calc(100% - 64px))!important;
  margin:0 auto!important;
}
body.page-about .about-story-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:40px!important;
  align-items:end!important;
}
body.page-about .about-story-head h2{max-width:17ch!important}
body.page-about .about-principles{gap:0!important;border-top:1px solid var(--jb-line)!important}
body.page-about .about-principle{border:0!important;border-bottom:1px solid var(--jb-line)!important;border-radius:0!important;background:transparent!important}

@media(max-width:980px){
  .jb31-nav-inner,.section-inner,.site-container,.nav-inner{width:calc(100% - 28px)!important}
  h1,.hero h1,.intro h1,.page-hero h1{font-size:clamp(34px,9.4vw,44px)!important}
  .section-title,main h2{font-size:clamp(28px,8vw,36px)!important}

  body.page-home .hero-shell,
  body.page-home .hero-art,
  body.page-home .hero-layout{
    min-height:calc(100svh - 74px)!important;
    height:calc(100svh - 74px)!important;
    max-height:calc(100svh - 74px)!important;
  }
  body.page-home .hero-art::after{
    background:linear-gradient(180deg,rgba(3,18,32,.58) 0%,rgba(3,18,32,.52) 52%,rgba(3,18,32,.72) 100%)!important;
  }
  body.page-home .hero-copy-plain{
    width:100%!important;
    max-width:440px!important;
    margin:0 auto!important;
    text-align:center!important;
  }
  body.page-home .hero-copy-plain .hero-eyebrow,
  body.page-home .hero-copy-plain h1,
  body.page-home .hero-copy-text{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
  body.page-home .hero-copy-plain h1{font-size:clamp(34px,9.2vw,48px)!important;max-width:none!important}
  body.page-home .hero-rule{margin:18px auto!important}
  body.page-home .hero-copy-text{font-size:15.5px!important;line-height:1.52!important;max-width:34ch!important}
  body.page-home .hero-actions-row{justify-content:center!important;margin-top:22px!important}

  .about-hero-v18{height:auto;min-height:calc(100svh - 74px)}
  .about-hero-v18-inner{
    width:calc(100% - 28px);
    min-height:calc(100svh - 74px);
    height:auto;
    grid-template-columns:112px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:18px;
    row-gap:18px;
    padding:26px 0 24px;
    align-content:center;
  }
  .about-hero-v18-portrait{
    width:112px;
    height:168px;
    align-self:start;
  }
  .about-hero-v18-copy{padding:0;align-self:start}
  .about-hero-v18 h1{font-size:clamp(30px,7.8vw,40px)!important;max-width:none!important}
  .about-hero-v18 .lede{font-size:14.5px!important;line-height:1.50!important;margin-top:14px!important}
  .about-hero-v18-actions{margin-top:16px;gap:8px}
  .about-hero-v18-actions .btn{min-width:0;flex:1;padding-left:12px!important;padding-right:12px!important}
  .about-hero-v18-stats{grid-column:1 / -1;grid-template-columns:repeat(2,1fr);gap:14px 0;padding-top:14px}
  .about-hero-v18-stat{padding:0 12px!important}
  .about-hero-v18-stat:nth-child(odd){padding-left:0!important}
  .about-hero-v18-stat:nth-child(2){border-right:0}
  .about-hero-v18-stat strong{font-size:18px}
  body.page-about .about-profile-text-only{width:calc(100% - 28px)!important}
  body.page-about .about-story-head{grid-template-columns:1fr!important;align-items:start!important}
}


/* v18 about lower-page editorial rhythm */
body.page-about .about-standard{padding:86px 0!important;background:#f7fafc!important}
body.page-about .about-standard-head{align-items:start!important;gap:48px!important}
body.page-about .about-standard-head > p{max-width:52ch!important;color:var(--jb-copy)!important}
body.page-about .about-principles{display:block!important;margin-top:34px!important}
body.page-about .about-principle{display:grid!important;grid-template-columns:minmax(240px,.42fr) 1fr!important;gap:38px!important;padding:24px 0!important}
body.page-about .about-principle h3{margin:0!important;font-size:22px!important;color:var(--jb-ink)!important}
body.page-about .about-principle p{margin:0!important;max-width:58ch!important;color:var(--jb-copy)!important}
body.page-about .about-path{padding:88px 0!important;background:#fff!important}
body.page-about .about-path-grid{gap:56px!important;align-items:start!important}
body.page-about .about-timeline{border-top:1px solid var(--jb-line)!important}
body.page-about .about-step{padding:24px 0!important;border-bottom:1px solid var(--jb-line)!important}
body.page-about .about-step h3{margin:8px 0 8px!important;font-size:22px!important}
body.page-about .about-step p{margin:0!important;color:var(--jb-copy)!important;max-width:58ch!important}
body.page-about .about-cta{padding:72px 0!important}

@media(max-width:980px){
  body.page-about .about-principle{grid-template-columns:1fr!important;gap:8px!important}
}
